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->getSessionData("ref") == null) ? $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(); } ?>