setSessionData("ref", $_GET["ref"]); } if (isset($_POST["username"]) && isset($_POST["password"])) { if ($_POST["username"] == "SiskelDev" && password_verify($_POST["password"], "\$2y\$10\$uhkbDXtndzyDKsJh7d14HOBE7JoWiqYQPx3r88xDhWHnL9W4t4OJa")) { $fs->setSessionData("login", "true-as-hell"); $redirect = $fs->issetSessionData("ref") ? $fs->getSessionData("ref") : "index"; $fs->unsetSessionData("ref"); header("Location: " . $redirect . ".php"); die(); } } if ($fs->issetSessionData("login") && ($fs->getSessionData("login") == "true-as-hell")) { header("Location: index.php"); die(); } ?>