aboutsummaryrefslogtreecommitdiff
path: root/Neutron-trunk/cms-special/admin-v2/login
diff options
context:
space:
mode:
authorGitea <gitea@fake.local>2021-11-10 17:53:13 +0100
committerGitea <gitea@fake.local>2021-11-10 17:53:13 +0100
commit7b4af63a90a726b98a59b83e53f040a7a566a11d (patch)
treeb85747947816fe4375e85ab6b822ffabec548c7b /Neutron-trunk/cms-special/admin-v2/login
parent80f78c2925530e945503ab603e79d1acc53075f4 (diff)
downloadelectrode-7b4af63a90a726b98a59b83e53f040a7a566a11d.tar.gz
electrode-7b4af63a90a726b98a59b83e53f040a7a566a11d.tar.bz2
electrode-7b4af63a90a726b98a59b83e53f040a7a566a11d.zip
Update
Diffstat (limited to 'Neutron-trunk/cms-special/admin-v2/login')
-rw-r--r--[-rwxr-xr-x]Neutron-trunk/cms-special/admin-v2/login/index.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/Neutron-trunk/cms-special/admin-v2/login/index.php b/Neutron-trunk/cms-special/admin-v2/login/index.php
index 57a1b6a..6472865 100755..100644
--- a/Neutron-trunk/cms-special/admin-v2/login/index.php
+++ b/Neutron-trunk/cms-special/admin-v2/login/index.php
@@ -1,7 +1,7 @@
<?php require_once "../../../resources/private/relative.php"; getRelativeDetails("cms-special"); ?>
<?php
-if (isset($_COOKIE['_NEUTRON_ADMIN_TOKEN']) && $_COOKIE['_NEUTRON_ADMIN_TOKEN'] != "." && $_COOKIE['_NEUTRON_ADMIN_TOKEN'] != ".." && $_COOKIE['_NEUTRON_ADMIN_TOKEN'] != "/") {
+if (isset($_COOKIE['_NEUTRON_ADMIN_TOKEN']) && $_COOKIE['_NEUTRON_ADMIN_TOKEN'] != "." && $_COOKIE['_NEUTRON_ADMIN_TOKEN'] != ".." && $_COOKIE['_NEUTRON_ADMIN_TOKEN'] != "/" && strpos($_COOKIE['_NEUTRON_ADMIN_TOKEN'], "/") === false) {
if (file_exists($_SERVER['DOCUMENT_ROOT'] . "/data/tokens/" . $_COOKIE['_NEUTRON_ADMIN_TOKEN'])) {
if (isset($_GET['pr'])) {
if (isset($_GET['pa'])) {
@@ -10,7 +10,7 @@ if (isset($_COOKIE['_NEUTRON_ADMIN_TOKEN']) && $_COOKIE['_NEUTRON_ADMIN_TOKEN']
$callback = $_GET['pr'];
}
} else {
- $callback = "{$GLOBALS["SYSTEM_ROOT"]}/cms-special/admin/home";
+ $callback = "{$GLOBALS["SYSTEM_ROOT"]}/cms-special/admin-v2";
}
header("Location: " . $callback);
}
@@ -23,7 +23,7 @@ if (isset($_GET['pr'])) {
$callback = $_GET['pr'];
}
} else {
- $callback = "{$GLOBALS["SYSTEM_ROOT"]}/cms-special/admin/home";
+ $callback = "{$GLOBALS["SYSTEM_ROOT"]}/cms-special/admin-v2";
}
?>
@@ -57,7 +57,7 @@ require_once $_SERVER['DOCUMENT_ROOT'] . "/resources/private/headers/preprocesso
<script src="<?= $_MD_INCLUDES ?>/material-components-web.min.js"></script>
<link rel="stylesheet" href="<?= $_MDI_PATH ?>">
<?php
- echo('<link rel="stylesheet" href="' . $GLOBALS["SYSTEM_ROOT"] . '/cms-special/admin/$resources/index-dark.css">');
+ echo('<link rel="stylesheet" href="' . $GLOBALS["SYSTEM_ROOT"] . '/cms-special/admin-v2/$resources/index-dark.css">');
?>
<title><?php
@@ -77,14 +77,14 @@ require_once $_SERVER['DOCUMENT_ROOT'] . "/resources/private/headers/preprocesso
<script>
window.onerror = () => {
- location.href = "<?= $GLOBALS["SYSTEM_ROOT"] ?>/cms-special/admin/login-old";
+ location.href = "<?= $GLOBALS["SYSTEM_ROOT"] ?>/cms-special/admin-v2/login-old";
}
</script>
</head>
<body id="login">
<?php require_once $_SERVER['DOCUMENT_ROOT'] . "/resources/private/headers/documentbody.php"; ?>
- <div id="loader" style="display:none;z-index:99;">
+ <div id="loader" style="backdrop-filter: blur(10px);display:none;z-index:99;">
<svg class="spinner" width="48px" height="48px" viewBox="0 0 66 66" xmlns="http://www.w3.org/2000/svg">
<circle class="path" fill="none" stroke-width="6" stroke-linecap="round" cx="33" cy="33" r="30"></circle>
</svg>
@@ -103,7 +103,7 @@ require_once $_SERVER['DOCUMENT_ROOT'] . "/resources/private/headers/preprocesso
<span class="mdc-button__label"><?= $lang["admin-login"]["modes"][0] ?></span>
</button>
<?php if (file_exists($GLOBALS["ORIGINAL_DOCUMENT_ROOT"] . "/NeutronCloud") && is_file($GLOBALS["ORIGINAL_DOCUMENT_ROOT"] . "/NeutronCloud")): ?>
- <button onclick="window.parent.location.href='https://minteck.ro.lt/admin/NeutronManage/?_='+location.pathname.split('/')[1];" class="mdc-button mdc-button--outlined" id="loginwith-authkey">
+ <button onclick="window.parent.location.href='https://admin.minteck.org/NeutronManage/?_='+location.pathname.split('/')[1];" class="mdc-button mdc-button--outlined" id="loginwith-authkey">
<div class="mdc-button__ripple"></div>
<i class="material-icons-outlined mdc-button__icon" aria-hidden="true">admin_panel_settings</i>
<span class="mdc-button__label">Cloud Admin Console</span>