Removed all old Session Data Keys

This commit is contained in:
2025-07-19 16:31:41 +02:00
parent 33fee4d678
commit 05e3d91ecc
7 changed files with 0 additions and 50 deletions
-9
View File
@@ -3,28 +3,19 @@ require_once("/var/www/furatalog/data/script/furatalog.sessions.php");
$fs = new furatalogSessions();
if (isset($_GET["ref"])) {
//$_SESSION["ref"] = $_GET["ref"];
$fs->setSessionData("ref", $_GET["ref"]);
}
if (isset($_POST["username"]) && isset($_POST["password"])) {
if ($_POST["username"] == "SiskelDev" && password_verify($_POST["password"], "\$2y\$10\$uhkbDXtndzyDKsJh7d14HOBE7JoWiqYQPx3r88xDhWHnL9W4t4OJa")) {
//$_SESSION["login"] = "true-as-hell";
$fs->setSessionData("login", "true-as-hell");
//$redirect = isset($_SESSION["ref"]) ? $_SESSION["ref"] : "index";
$redirect = $fs->issetSessionData("ref") ? $fs->getSessionData("ref") : "index";
//unset($_SESSION["ref"]);
$fs->unsetSessionData("ref");
header("Location: " . $redirect . ".php");
die();
}
}
/*if (isset($_SESSION["login"]) && $_SESSION["login"] == "true-as-hell") {
header("Location: index.php");
die();
}*/
if ($fs->issetSessionData("login") && ($fs->getSessionData("login") == "true-as-hell")) {
header("Location: index.php");
die();