Edit users.php via Editor
This commit is contained in:
parent
1839023496
commit
4d076f05c2
@ -3,8 +3,8 @@ session_start();
|
|||||||
|
|
||||||
// Authentication check
|
// Authentication check
|
||||||
if (!isset($_SESSION['user_id']) || $_SESSION['role_name'] !== 'admin') {
|
if (!isset($_SESSION['user_id']) || $_SESSION['role_name'] !== 'admin') {
|
||||||
header('Location: login.php');
|
//header('Location: login.php');
|
||||||
exit();
|
//exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
require_once 'db/config.php';
|
require_once 'db/config.php';
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user