Removed all old Session Data Keys
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user