$value) $page[] = htmlentities(stripslashes($key)); // allowed pages $pages = array('index','source','directory','about','development','authors','logo','siteindex'); // the first element in the $page array $tpage = in_array($page[0], $pages) ? $page[0] : null; // writes color to session if isset if(isset($_GET['c'])) $_SESSION['c'] = $_GET['c']; // calls the head function with specified color, and default if not set if(isset($_SESSION['c'])) head($_SESSION['c'], $loc, $tpage); else head(fc0, $loc, $tpage); // index if the page is null if($tpage == null) index(); else{ // if called page is in array, then show that page.. else show index if(in_array($page[0], $pages)) $page[0](); else index(); } foot('true'); // flushes out buffer to browser ob_end_flush; // functions //structure: page function then supporting functions. function index(){ top(index, 'mmddyy'); echo 'lucmedia - index Welcome to the personal development site of Lucas Brown.
Please feel free to use any of the sites features and view anything as the site is being developed.
'; } function source(){ top(source, 'mmddyy'); echo 'lucmedia - source
'; $self = substr($_SERVER['SCRIPT_NAME'], 1); $expr = '/function db_connect\(\) \{[^}]+/is'; $repl = "-private db_connect() {\r\n"; highlight_string(preg_replace($expr, $repl, file_get_contents($self))); echo "
"; } function directory(){ top(directory, 'mmddyy'); echo 'lucmedia - directory sites by lucas
brccmen.net
bassassist.com [old]
omfgaturte.net
lucmedia.org'; } function logo(){ top(logo, 'mmddyy'); echo 'lucmedia - logo this is the lucmedia logo for now ---

pesky edging...'; } function siteindex(){ top(site index, 'mmddyy'); echo 'lucmedia - site index'; '; } function about(){ top(about, 'mmddyy'); echo 'lucmedia - about LucMedia is a small personal development site founded by Lucas Brown.'; } function authors(){ top(authors, 'mmddyy'); echo 'lucmedia - authors kryptn :: original php and design
lucas :: content and modification
nintendo8 :: Game Player'; } function development(){ top(development, 'mmddyy'); echo 'lucmedia - development under construction'; } function microtime_float(){ list($usec, $sec) = explode(" ", microtime()); return ((float)$usec + (float)$sec); } function top($title, $time, $auth = 'lucmedia'){ global $page; echo '

'.$title.'

'.$time.' |'; //echo ' '.$auth.'
'."\n"; echo ' '.$auth.''."\n"; //echo '
';
    //print_r($page);
    //echo '
'; } function head($color, $location, $sub = 'index'){ ?>
/lucmedia/site//