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
-6
View File
@@ -1,10 +1,4 @@
<?php <?php
/*session_start();
if (!isset($_SESSION["login"]) && $_SESSION["login"] != "true-as-hell") {
header("Location: login.php");
die();
}*/
require_once("/var/www/furatalog/data/script/furatalog.sessions.php"); require_once("/var/www/furatalog/data/script/furatalog.sessions.php");
$fs = new furatalogSessions(); $fs = new furatalogSessions();
-5
View File
@@ -1,9 +1,4 @@
<?php <?php
/*session_start();
if (!isset($_SESSION["login"]) && $_SESSION["login"] != "true-as-hell") {
header("Location: login.php");
die();
}*/
require_once("/var/www/furatalog/data/script/furatalog.sessions.php"); require_once("/var/www/furatalog/data/script/furatalog.sessions.php");
$fs = new furatalogSessions(); $fs = new furatalogSessions();
-6
View File
@@ -1,11 +1,5 @@
<?php <?php
/*session_start();
if (!isset($_SESSION["login"]) && $_SESSION["login"] != "true-as-hell") {
header("Location: login.php");
die();
}*/
require_once("/var/www/furatalog/data/script/furatalog.sessions.php"); require_once("/var/www/furatalog/data/script/furatalog.sessions.php");
$fs = new furatalogSessions(); $fs = new furatalogSessions();
-6
View File
@@ -1,11 +1,5 @@
<?php <?php
/*session_start();
if (!isset($_SESSION["login"]) && $_SESSION["login"] != "true-as-hell") {
header("Location: login.php");
die();
}*/
require_once("/var/www/furatalog/data/script/furatalog.sessions.php"); require_once("/var/www/furatalog/data/script/furatalog.sessions.php");
$fs = new furatalogSessions(); $fs = new furatalogSessions();
-9
View File
@@ -3,28 +3,19 @@ require_once("/var/www/furatalog/data/script/furatalog.sessions.php");
$fs = new furatalogSessions(); $fs = new furatalogSessions();
if (isset($_GET["ref"])) { if (isset($_GET["ref"])) {
//$_SESSION["ref"] = $_GET["ref"];
$fs->setSessionData("ref", $_GET["ref"]); $fs->setSessionData("ref", $_GET["ref"]);
} }
if (isset($_POST["username"]) && isset($_POST["password"])) { if (isset($_POST["username"]) && isset($_POST["password"])) {
if ($_POST["username"] == "SiskelDev" && password_verify($_POST["password"], "\$2y\$10\$uhkbDXtndzyDKsJh7d14HOBE7JoWiqYQPx3r88xDhWHnL9W4t4OJa")) { if ($_POST["username"] == "SiskelDev" && password_verify($_POST["password"], "\$2y\$10\$uhkbDXtndzyDKsJh7d14HOBE7JoWiqYQPx3r88xDhWHnL9W4t4OJa")) {
//$_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 = $fs->issetSessionData("ref") ? $fs->getSessionData("ref") : "index"; $redirect = $fs->issetSessionData("ref") ? $fs->getSessionData("ref") : "index";
//unset($_SESSION["ref"]);
$fs->unsetSessionData("ref"); $fs->unsetSessionData("ref");
header("Location: " . $redirect . ".php"); header("Location: " . $redirect . ".php");
die(); 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")) { if ($fs->issetSessionData("login") && ($fs->getSessionData("login") == "true-as-hell")) {
header("Location: index.php"); header("Location: index.php");
die(); die();
-5
View File
@@ -1,9 +1,4 @@
<?php <?php
/*session_start();
session_destroy();
header("Location: login.php");
die();*/
require_once("/var/www/furatalog/data/script/furatalog.sessions.php"); require_once("/var/www/furatalog/data/script/furatalog.sessions.php");
$fs = new furatalogSessions(); $fs = new furatalogSessions();
$fs->destroy(); $fs->destroy();
-13
View File
@@ -1,18 +1,5 @@
<?php <?php
/*session_start();
if (isset($_SESSION["tmpdata"])) {
$_POST["data"] = $_SESSION["tmpdata"];
unset($_SESSION["tmpdata"]);
}
if (!isset($_SESSION["login"]) && $_SESSION["login"] != "true-as-hell") {
$_SESSION["tmpdata"] = $_POST["data"];
header("Location: login.php?ref=redirectFromJinxxy");
die();
}*/
require_once("/var/www/furatalog/data/script/furatalog.sessions.php"); require_once("/var/www/furatalog/data/script/furatalog.sessions.php");
$fs = new furatalogSessions(); $fs = new furatalogSessions();