From 9fdd7d72dc473ccd55001859b9164750904f2c13 Mon Sep 17 00:00:00 2001 From: AkisYTB3 Date: Sat, 20 Jan 2024 20:03:19 +0100 Subject: [PATCH] SDF --- index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index 32bf1f6..4b4321e 100644 --- a/index.php +++ b/index.php @@ -15,7 +15,6 @@ session_start(); require_once 'config.php'; $paths_to_check = array(); -$paths_to_check[] = "pages/global"; $page = basename($_SERVER['QUERY_STRING']); @@ -33,8 +32,9 @@ if (isset($_SESSION['user_id'])) { if ($user['isAdmin'] == 1) { $paths_to_check[] = "pages/admin"; } - + $paths_to_check[] = "pages/user"; + $paths_to_check[] = "pages/global"; } $page_file = "$template_dir/404.html";