I don’t know what I am doing wrong here… I tried to input exactly what you said, and I guess maybe I am just being dumb.
Here is what I have for the code now:
Display_pages.php
[php]<?php
//------------------------------------------------------------------------
// Restrict access to these files
//------------------------------------------------------------------------
// Specify some disallowed paths
$restricted_files = array(
‘header’,
‘footer’
);
//----------------------------------------------------------------------------------------
// Display Pages
//----------------------------------------------------------------------------------------
if (isset($_GET[‘p’]))
{
 $page = basename($_GET['p']);
 $folder = basename($_GET['f']);
 
 // If it's not a disallowed path, and if the file exists, update $action
 if (!in_array($page, $restricted_files) && file_exists("./$folder/$page.php"))
 
 {
     $include = "./$folder/$page.php";
     }
	  else
     {
     $include = "./includes/$page.php";
     }
     {
     $include = './includes/default.php';
     }
 }
else
{
$include = ‘./includes/default.php’;
}
?>[/php]
menu.php
[php]<?php
if (!defined(‘securepage’)) {
die(‘
Direct File Access Prohibited
’);
}
?>
 
Home | 
Confess | 
Confessions
 [/php]
Confess.php
[php]
Lust
Gluttony
[/php]
Currently with the code, now my menu links arent going anywhere, and when they did go somewhere, the links werent opening up to the folder…
If you wanna PM me, I can give you access to the ftp site so you can view the files better if you wish!
Sorry to be so dumbfounded here
-Eric