aboutsummaryrefslogtreecommitdiff
path: root/bootstrap
diff options
context:
space:
mode:
Diffstat (limited to 'bootstrap')
-rw-r--r--bootstrap/Functions.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/bootstrap/Functions.php b/bootstrap/Functions.php
index 52ec992..252b522 100644
--- a/bootstrap/Functions.php
+++ b/bootstrap/Functions.php
@@ -10,3 +10,11 @@ function featherIcon($name) {
. '/..' . '/public/css/fonts/feather-icons/' . $name . '.svg'
);
}
+
+function base64($path) {
+ echo base64_encode(
+ file_get_contents($_SERVER['DOCUMENT_ROOT']
+ . '/..' . $path
+ )
+ );
+}