$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'];
// index if the page is null
function index(){
$bodytext = "Welcome to my page!";
}
if($tpage == null) index();
else{
// if called page is in array, then show that page.. else show index
if(in_array($tpage, $pages)) $tpage();
else index();
}
function head(){
?>