From 1fb35cbf6a0ec2f825379a0c131397d68e0fe841 Mon Sep 17 00:00:00 2001 From: AkisYTB3 Date: Mon, 22 Jan 2024 09:30:29 +0100 Subject: [PATCH] more debug print --- index.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index 447de05..d34c865 100644 --- a/index.php +++ b/index.php @@ -21,8 +21,6 @@ $page = basename($_SERVER['QUERY_STRING']); $nav = include_ob("$template_dir/navigation.html"); -echo $_SERVER['QUERY_STRING']; - if(empty($page)){ $page = 'index'; } @@ -42,9 +40,13 @@ $page_file = "$template_dir/404.html"; foreach($paths_to_check as $page_dir){ $page_file_tmp = "$page_dir/$page.html"; if(file_exists($page_file_tmp)){ + echo "$page_file_tmp exists"; $page_file = $page_file_tmp; break; } + else{ + echo "$page_file_tmp exists'n t"; + } } $page_data = include_ob($page_file);