fixing PHP warnings

This commit is contained in:
Jokob-sk
2022-12-24 21:57:43 +11:00
parent da3ac55122
commit 0714aea30d
17 changed files with 213 additions and 79 deletions

View File

@@ -8,12 +8,15 @@
#--------------------------------------------------------------------------- -->
<?php
session_start();
session_start();
if ($_SESSION["login"] != 1)
if(array_search('login', $_SESSION) != FALSE)
{
header('Location: index.php');
exit;
if ($_SESSION["login"] != 1)
{
header('Location: index.php');
exit;
}
}
require 'php/templates/header.php';