more debug print
This commit is contained in:
		@@ -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);
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user