diff options
author | Thedro Neely <thedroneely@gmail.com> | 2019-11-27 01:54:20 -0500 |
---|---|---|
committer | Thedro Neely <thedroneely@gmail.com> | 2019-11-27 01:54:20 -0500 |
commit | 7827b6f82269a1386c4f95218cde6eafa16ac4cd (patch) | |
tree | ab4ec1e49a8e0f9bb0e2ae5ee6c928ae392caf88 /bootstrap | |
parent | 6cc1da434175b0d6552347ea2cc5bf5c1432ea7b (diff) | |
download | thedroneely.com-7827b6f82269a1386c4f95218cde6eafa16ac4cd.tar.gz thedroneely.com-7827b6f82269a1386c4f95218cde6eafa16ac4cd.tar.bz2 thedroneely.com-7827b6f82269a1386c4f95218cde6eafa16ac4cd.zip |
bootstrap/Functions: Add base64_encode helper function
Diffstat (limited to 'bootstrap')
-rw-r--r-- | bootstrap/Functions.php | 8 |
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 + ) + ); +} |