1
while trying to create an index on the front page of my XOOPS site I get parse errors, I am trying to do this using :
include('mainfile.php');
include('header.php');
$xoopsOption['show_rblock'] = 1;
$page = $_GET['page'];
$ext = ".php";
$email = "your email addy for 404";
$includepath = "contents/";
$filepath = $includepath.$page.$ext;
if(file_exists($filepath))
{
include($filepath);
} else {
print ("
404Sorry but this page does not exist. Click
here to go back to the main page. If you have any question email the webmaster
here.");
}
include('footer.php');
?>
I followed evrything to the letter but still geting errors?
any help solving this would be greately appreciated
Atmoloq