bug fix 7

This commit is contained in:
2025-07-19 16:25:27 +02:00
parent 8090a7d850
commit 1d6eba8738
+1 -1
View File
@@ -12,7 +12,7 @@ if (isset($_POST["username"]) && isset($_POST["password"])) {
//$_SESSION["login"] = "true-as-hell"; //$_SESSION["login"] = "true-as-hell";
$fs->setSessionData("login", "true-as-hell"); $fs->setSessionData("login", "true-as-hell");
//$redirect = isset($_SESSION["ref"]) ? $_SESSION["ref"] : "index"; //$redirect = isset($_SESSION["ref"]) ? $_SESSION["ref"] : "index";
$redirect = !($fs->getSessionData("ref") == null) ? $fs->getSessionData("ref") : "index"; $redirect = $fs->issetSessionData("ref") ? $fs->getSessionData("ref") : "index";
//unset($_SESSION["ref"]); //unset($_SESSION["ref"]);
$fs->unsetSessionData("ref"); $fs->unsetSessionData("ref");
header("Location: " . $redirect . ".php"); header("Location: " . $redirect . ".php");