//Include config
include_once($pg_root_dir.'aconfig/config.php');
// constant title
$site_title = $G_WEBSITE_TITLE;
// Load the page list
include("include/pagelist.php");
// Load the functions
include("include/functions.php");
include("include/sitefunctions.php");
// Open a database connection
connect_to_mysql();
if ($Qerror) {die($Qerror);}
// Debugging
/*
print_r($_GET);
print "
" . $this_page["key"];
print "
";
print_r($this_page);
*/
// check the query string against the page list
if(isset($this_page["key"])) {
// Include template contents
include("include/template_contents.php");
// Include header
include("include/header.php");
// Trigger the menu navagation highlight
$menu_highlight[$URLstring] = " id=\"SelectNav\"";
// Include the menu
include("include/menu.php");
// Include content template page
include("include/template.php");
// last but not least, give it a grand old sendoff with
// our drop in of the footer page. P.S. Go Red Sox!
include("include/footer.php");
} else {
if($URLstring == "") {
//
// show the index page
//
// This is temporary until a complete index page is set up
// Too much repeating code here
} else {
// Show the not found error page
header ('HTTP/1.1 404 Not Found');
?>
The requested URL / was not found on this server.