Created Custom Session System and Updated Admin Section to new System
This commit is contained in:
+9
-1
@@ -1,8 +1,16 @@
|
||||
<?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();
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user