This commit is contained in:
Richard Mikloš 2024-01-20 20:03:19 +01:00
parent 8c348e4ade
commit 9fdd7d72dc

@ -15,7 +15,6 @@ session_start();
require_once 'config.php'; require_once 'config.php';
$paths_to_check = array(); $paths_to_check = array();
$paths_to_check[] = "pages/global";
$page = basename($_SERVER['QUERY_STRING']); $page = basename($_SERVER['QUERY_STRING']);
@ -33,8 +32,9 @@ if (isset($_SESSION['user_id'])) {
if ($user['isAdmin'] == 1) { if ($user['isAdmin'] == 1) {
$paths_to_check[] = "pages/admin"; $paths_to_check[] = "pages/admin";
} }
$paths_to_check[] = "pages/user"; $paths_to_check[] = "pages/user";
$paths_to_check[] = "pages/global";
} }
$page_file = "$template_dir/404.html"; $page_file = "$template_dir/404.html";