$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 '
";
}
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 - authorskryptn :: 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 '