<?php include CLASS_USERS; $user = new handleUser(); if (isset($_GET["logout"])) { $user->logOut(); } if (false == $user->authUser()) { $_SESSION[P_SESSION_ID] = ""; setcookie(P_SESSION_ID, "", -1); session_destroy(); header("location: index.php?m=2"); exit; } if ($access_level != null) { if ($access_level > $user->user_info[2]) { header("location: noaccess.php"); exit; } }
<?php require "_globals.php"; include CLASS_USERS; $user = new handleUser(); if ($_SESSION[P_SESSION_ID]) { header("location:home.php"); exit; } if (isset($_GET[m])) { $post_message[1] = "You have logged out."; $post_message[2] = "There was a problem accessing your account. If you continue to see this message, please contact an administrator."; $message = $post_message[$_GET[m]]; } if (isset($_POST["un"])) { $message = $user->logInUser(); } if (isset($message)) { $show_message = "<br><span style='color:#F00;'>" . $message . "</span>"; } ?> <html> <head> <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"> <meta http-equiv="content-language" content="en-us"> <meta name="rating" content="general"> </head> <body>