Created Custom Session System and Updated Admin Section to new System

This commit is contained in:
2025-07-19 15:57:10 +02:00
parent 1c73557ae4
commit faa65803f2
8 changed files with 188 additions and 11 deletions
+9 -1
View File
@@ -1,9 +1,17 @@
<?php
session_start();
/*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");
$fs = new furatalogSessions();
if (($fs->getSessionData("login") == null) && ($fs->getSessionData("login") != "true-as-hell")) {
header("Location: login.php");
die();
}
if (isset($_GET["url"])) {