yes, Bruno appears to have
This commit is contained in:
		@@ -32,23 +32,17 @@ if (isset($_SESSION['user_id'])) {
 | 
			
		||||
    }
 | 
			
		||||
    
 | 
			
		||||
    $paths_to_check[] = "pages/user";
 | 
			
		||||
    $paths_to_check[] = "pages/global";
 | 
			
		||||
}
 | 
			
		||||
$paths_to_check[] = "pages/global";
 | 
			
		||||
 | 
			
		||||
$page_file = "$template_dir/404.html";
 | 
			
		||||
 | 
			
		||||
print_r($paths_to_check);
 | 
			
		||||
 | 
			
		||||
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