From 94c57fa247ba107fce8fc1d1fc355191229dbddc Mon Sep 17 00:00:00 2001 From: Minteck Date: Sun, 8 Aug 2021 22:31:51 +0200 Subject: Permissions system --- admin/private/header.php | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'admin/private/header.php') diff --git a/admin/private/header.php b/admin/private/header.php index ddbee58..454fa7d 100644 --- a/admin/private/header.php +++ b/admin/private/header.php @@ -10,13 +10,31 @@ if (!isset($_COOKIE["ADMIN_TOKEN"])) { die(); } +$_PERMSFORAPI = false; +require_once $_SERVER['DOCUMENT_ROOT'] . "/admin/private/permissions.php"; + +if (!function_exists("l")) { + function l($en, $fr = null) { + global $lang; + + if ((($lang === "fr" && isset($fr)) || (isset($_GET['fr']) && isset($fr) || isset($_COOKIE['fr']))) && !isset($_GET['en']) && !isset($_COOKIE['en']) && isset($fr)) { + setlocale(LC_TIME, array('fr_FR.UTF-8','fr_FR@euro','fr_FR','french')); + return $fr; + } else { + return $en; + } + } +} + +ob_start(); + ?> - Minteck Admin + Minteck Cloud Admin Console -- cgit