Update debug.php

This commit is contained in:
Janis Steiner
2024-06-27 15:55:15 +00:00
committed by GitHub
parent 76a5760861
commit 129e6df887

View File

@@ -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");