pages = array('home'=>'Home', /* 'announcements'=>'Announcements',*/ 'cfp'=>'Call for Papers', 'submission'=>'Paper Submission', 'cameraready'=>'Camera Ready', 'organization'=>'Organizaton', 'tracks'=>'Tracks', 'special'=>'Special Sessions', 'venue'=>'Venue', 'accommodation'=>'Accommodation', 'registration'=>'Registration', 'invited'=>'Invited Talks', 'program'=>'Technical Program', 'album'=>'Photo Album', 'contact'=>'Contact Us'); $my->page = isset($_GET['page']) ? $_GET['page'] : 'home'; $my->pagefound = isset($my->pages[$my->page]); if ($my->pagefound) $my->title = $my->pages[$my->page]; elseif(strpos($my->page,'..')===FALSE && strpos($my->page,'/')===FALSE && strpos($my->page,'\\')===FALSE && file_exists(dirname(__FILE__)."/$my->page.html")){ $my->pagefound=true; $my->title=''; } else $my->title = "Page $my->page Not Found"; require_once dirname(__FILE__).'/header.html'; if($my->pagefound) require_once "$my->page.html"; else echo "The requested page [$my->page] is not found."; require_once dirname(__FILE__).'/footer.html';