This is dragonfly_7456.
I can't believe I got this to work, but I did it... 
PHP Code:
<?php
$pagesList = array( "default", "missing", "help" );
$page = isset( $HTTP_GET_VARS['page'] ) ? strtolower( $HTTP_GET_VARS['page']) : 'default';
$check = @include($file);
if (in_array($page, $pagesList) ) {
include( $page.'.php' );
}
elseif (!$check)
{
include('missing.php');
}
?>
1. All pages load from index.php?page=
2. index.php loads default.php as the default page.
3. If a page exists but is not in the page list, it will show up as "Missing".
4. If a page is missing, and is called through index.php?page= you will get a default "Missing.php" page. 
5. Pages that are in the list load correctly under index.php?page=page
Only problem is, what if my site gets to 100 pages. Will that increase page loading time, or will it still work fine?
Bookmarks