From 7b4af63a90a726b98a59b83e53f040a7a566a11d Mon Sep 17 00:00:00 2001 From: Gitea Date: Wed, 10 Nov 2021 17:53:13 +0100 Subject: Update --- Neutron-trunk/cms-special/admin-v2/login-old/index.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) mode change 100755 => 100644 Neutron-trunk/cms-special/admin-v2/login-old/index.php (limited to 'Neutron-trunk/cms-special/admin-v2/login-old/index.php') diff --git a/Neutron-trunk/cms-special/admin-v2/login-old/index.php b/Neutron-trunk/cms-special/admin-v2/login-old/index.php old mode 100755 new mode 100644 index d4428d7..a2f09ba --- a/Neutron-trunk/cms-special/admin-v2/login-old/index.php +++ b/Neutron-trunk/cms-special/admin-v2/login-old/index.php @@ -14,7 +14,7 @@ if (isset($_POST['authkey'])) { $callback = $_GET['pr']; } } else { - $callback = "{$GLOBALS["SYSTEM_ROOT"]}/cms-special/admin/home"; + $callback = "{$GLOBALS["SYSTEM_ROOT"]}/cms-special/admin-v2"; } if (password_verify($_POST['password'], file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/data/webcontent/password"))) { $token = str_ireplace("/", "-", password_hash(password_hash(rand(0, 999999) + rand(0, 999999) + rand(0, 999999) + rand(0, 999999) + rand(0, 999999), PASSWORD_BCRYPT, ['cost' => 12,]), PASSWORD_BCRYPT, ['cost' => 12,])); @@ -37,7 +37,7 @@ if (isset($_POST['authkey'])) { } } -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'])) { @@ -46,7 +46,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); } @@ -94,7 +94,7 @@ if (file_exists($_SERVER['DOCUMENT_ROOT'] . "/data/webcontent")) {
/resources/upload/siteicon.png" style="border-radius:100%;" class="intro-element">

-

", str_replace("{", "", $lang["login"]["redirect"])); ?>

+

", str_replace("{", "", $lang["login"]["redirect"])); ?>

" disabled>

- " . $lang["login"]["nokey"][1] . "
" . $lang["login"]["nokey"][2] ?> + " . $lang["login"]["nokey"][1] . " " . $lang["login"]["nokey"][2] ?>

-- cgit