diff options
Diffstat (limited to 'admin/private/header.php')
-rw-r--r-- | admin/private/header.php | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/admin/private/header.php b/admin/private/header.php index 454fa7d..d3d3ce8 100644 --- a/admin/private/header.php +++ b/admin/private/header.php @@ -1,12 +1,12 @@ <?php
if (!isset($_COOKIE["ADMIN_TOKEN"])) {
- header("Location: https://jetbrains.minteck.ro.lt:1024/hub/hub/api/rest/oauth2/auth?client_id=36245ba5-ee9f-44c1-a149-ab2006fcb226&response_type=code&redirect_uri=https://minteck.ro.lt/admin/callback&scope=hub&request_credentials=default&access_type=offline");
+ 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://jetbrains.minteck.ro.lt:1024/hub/hub/api/rest/oauth2/auth?client_id=36245ba5-ee9f-44c1-a149-ab2006fcb226&response_type=code&redirect_uri=https://minteck.ro.lt/admin/callback&scope=hub&request_credentials=default&access_type=offline");
+ 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();
}
@@ -14,11 +14,12 @@ $_PERMSFORAPI = false; require_once $_SERVER['DOCUMENT_ROOT'] . "/admin/private/permissions.php";
if (!function_exists("l")) {
- function l($en, $fr = null) {
+ 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'));
+ setlocale(LC_TIME, array('fr_FR.UTF-8', 'fr_FR@euro', 'fr_FR', 'french'));
return $fr;
} else {
return $en;
|