12,]), PASSWORD_BCRYPT, ['cost' => 12,])); if (!file_exists($_SERVER['DOCUMENT_ROOT'] . "/data/tokens")) { mkdir($_SERVER['DOCUMENT_ROOT'] . "/data/tokens"); } $tokens = scandir($_SERVER['DOCUMENT_ROOT'] . "/data/tokens"); foreach ($tokens as $atoken) { if ($atoken == "." || $atoken == "..") {} else { unlink($_SERVER['DOCUMENT_ROOT'] . "/data/tokens/" . $atoken); } } file_put_contents($_SERVER['DOCUMENT_ROOT'] . "/data/tokens/" . $token, ""); header("Set-Cookie: _NEUTRON_ADMIN_TOKEN={$token}; Path=/; Http-Only; SameSite=Strict"); header("Location: " . $callback); return; } else { $invalid = true; } } } if (isset($_COOKIE['_NEUTRON_ADMIN_TOKEN']) && $_COOKIE['_NEUTRON_ADMIN_TOKEN'] != "." && $_COOKIE['_NEUTRON_ADMIN_TOKEN'] != ".." && $_COOKIE['_NEUTRON_ADMIN_TOKEN'] != "/") { if (file_exists($_SERVER['DOCUMENT_ROOT'] . "/data/tokens/" . $_COOKIE['_NEUTRON_ADMIN_TOKEN'])) { if (isset($_GET['pr'])) { if (isset($_GET['pa'])) { $callback = $_GET['pr'] . $_GET['pa']; } else { $callback = $_GET['pr']; } } else { $callback = "{$GLOBALS["SYSTEM_ROOT"]}/cms-special/admin/home"; } header("Location: " . $callback); } } ?> ") ?>
/resources/css/admin.css"> /resources/css/fonts-import.css"> /resources/css/ui.css">= str_replace("}", "", str_replace("{", "", $lang["login"]["redirect"])); ?>
' . $lang["login"]["uauth"] . '
' . $lang['login']['pass'] . '');
} else {
echo('' . $lang["login"]["upass"] . '
' . $lang['login']['auth'] . '');
}
?>