except remember user, changed all cookies to sessions.
This commit is contained in:
@@ -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';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user