$value) $page[] = htmlentities(stripslashes($key)); // allowed pages $pages = array('index'); // 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(){ echo "welcome test 123"; } function direc($dir) { if(is_dir($dir)) { if($dh = opendir($dir)) { while(($fh = readdir($dh)) !== false) { if($fh != '.' && $fh != '..') { if(is_dir($realfile)) { chdir('.'); $tree[$fh] = direc($realfile); } else { $tree[] = $fh; } } } closedir($dh); return @$tree; } } } 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'){ ?> lucasmedia - <?= $sub ?>
/lucmedia/site//