/* Roddefig's index.php script (generic demo) */ $location=$_GET['location']; if (empty($location)) { $location='index'; } changelocation($location); function changelocation($location) { include ('header.html'); echo ''; echo ''; echo ''; echo '
'; include('navbar.html'); echo ''; switch ($location) { case 'index': include ('actualindex.html'); break; case 'tutorials': include ('http://www.genericsite.com/tutorials/index.html'); break; } echo '
'; include ('footer.html'); }