<? if(!isset($_SESSION['admintype']) || ($_SESSION['admintype']>3)){ $_SESSION['msg'] = "Invalid access"; header('LOCATION:login.php');exit; } ?>