diff options
author | Minteck <contact@minteck.org> | 2022-01-01 10:37:28 +0100 |
---|---|---|
committer | Minteck <contact@minteck.org> | 2022-01-01 10:37:28 +0100 |
commit | ef055e79855cf3be1ad5e1aa5f9ebad480062384 (patch) | |
tree | ff074b29a7a87c3ccfc3b10741bbe30cb28e103e /admin/private/header.php | |
parent | e3a79df6428799024eac64e9cffbb062317aeb95 (diff) | |
download | main-ef055e79855cf3be1ad5e1aa5f9ebad480062384.tar.gz main-ef055e79855cf3be1ad5e1aa5f9ebad480062384.tar.bz2 main-ef055e79855cf3be1ad5e1aa5f9ebad480062384.zip |
Diffstat (limited to 'admin/private/header.php')
-rw-r--r-- | admin/private/header.php | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/admin/private/header.php b/admin/private/header.php deleted file mode 100644 index d3d3ce8..0000000 --- a/admin/private/header.php +++ /dev/null @@ -1,47 +0,0 @@ -<?php
-
-if (!isset($_COOKIE["ADMIN_TOKEN"])) {
- header("Location: https://account.minteck.org/hub/hub/api/rest/oauth2/auth?client_id=36245ba5-ee9f-44c1-a149-ab2006fcb226&response_type=code&redirect_uri=https://minteck.org/admin/callback&scope=hub&request_credentials=default&access_type=offline");
- die();
-} else if (ctype_xdigit($_COOKIE["ADMIN_TOKEN"]) && file_exists($_SERVER['DOCUMENT_ROOT'] . "/admin/private/tokens/" . $_COOKIE['ADMIN_TOKEN'])) {
- $_DATA = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/admin/private/tokens/" . $_COOKIE['ADMIN_TOKEN']), true);
-} else {
- header("Location: https://account.minteck.org/hub/hub/api/rest/oauth2/auth?client_id=36245ba5-ee9f-44c1-a149-ab2006fcb226&response_type=code&redirect_uri=https://minteck.org/admin/callback&scope=hub&request_credentials=default&access_type=offline");
- 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 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">
- <link rel="stylesheet" href="/static/css/fonts">
- <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
- <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js"></script>
- <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
-</head>
-<body class="admin" style="background-color:transparent;height:100%;">
\ No newline at end of file |