<? require ("config.inc.php"); require_once ("global.inc.php"); $s = new Session; $s -> init_session(); if ($s->get_session_value("login")!="success"){ header("Location: ".$login_page); }elseif ($s->get_session_value("level")!=$level){ //header("Location: ".$login_page); die; } ?>