From 7827b6f82269a1386c4f95218cde6eafa16ac4cd Mon Sep 17 00:00:00 2001 From: Thedro Neely Date: Wed, 27 Nov 2019 01:54:20 -0500 Subject: bootstrap/Functions: Add base64_encode helper function --- bootstrap/Functions.php | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'bootstrap') 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 + ) + ); +} -- cgit v1.2.3