aboutsummaryrefslogtreecommitdiff
path: root/admin/private/header.php
diff options
context:
space:
mode:
authorMinteck <nekostarfan@gmail.com>2021-08-08 22:31:51 +0200
committerMinteck <nekostarfan@gmail.com>2021-08-08 22:31:51 +0200
commit94c57fa247ba107fce8fc1d1fc355191229dbddc (patch)
tree865048aa574ef63ad322ed8e5057eb7629e03c29 /admin/private/header.php
parente255736e3f2a95ee82cadc01b0c70749ab946226 (diff)
downloadmain-94c57fa247ba107fce8fc1d1fc355191229dbddc.tar.gz
main-94c57fa247ba107fce8fc1d1fc355191229dbddc.tar.bz2
main-94c57fa247ba107fce8fc1d1fc355191229dbddc.zip
Permissions system
Diffstat (limited to 'admin/private/header.php')
-rw-r--r--admin/private/header.php20
1 files changed, 19 insertions, 1 deletions
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();
+
?>
<!DOCTYPE html>
<html lang="en" style="height:100%;">
<head>
<meta charset="UTF-8">
- <title>Minteck Admin</title>
+ <title>Minteck Cloud Admin Console</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" href="/logo.svg">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">