Update debug.php
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
// Initialize the session
|
// Initialize the session
|
||||||
session_start();
|
session_start();
|
||||||
include "../config/config.php";
|
include "../config/config.php";
|
||||||
include "./api/queue.php";
|
include "../api/queue.php";
|
||||||
// Check if the user is logged in, if not then redirect him to login page
|
// Check if the user is logged in, if not then redirect him to login page
|
||||||
if(!isset($_SESSION["loggedin"]) || $_SESSION["loggedin"] !== true || $_SESSION["role"][9]!=="1"){
|
if(!isset($_SESSION["loggedin"]) || $_SESSION["loggedin"] !== true || $_SESSION["role"][9]!=="1"){
|
||||||
header("location: /login/login.php");
|
header("location: /login/login.php");
|
||||||
|
|||||||
Reference in New Issue
Block a user