except remember user, changed all cookies to sessions.

This commit is contained in:
2025-04-13 20:07:07 -06:00
parent 006cffef38
commit 3ef61e1c9e
24 changed files with 42 additions and 158 deletions
+3 -3
View File
@@ -8,10 +8,10 @@ foreach (glob('components/admin/*.php') as $file)
include_once 'components/head.php';
if (!isset($_COOKIE['role_id']))
if (!isset($_SESSION['role_id']))
header('Location: user.php');
else if ($_COOKIE['role_id'] >= 3)
header('Location: user.php?action=view&user_id=' . $_COOKIE['user_id']);
else if ($_SESSION['role_id'] >= 3)
header('Location: user.php?action=view&user_id=' . $_SESSION['user_id']);
include_once 'functions/admin_functions.php';