Forum Moderators: coopster
if ($_SESSION['SESS_ACCESS_LEVEL'] >= 3) {
header("location:http://intranet/unauthorised.php?mode=accesslevel");
exit();
}
...but these opened the page up to anyone.
if (empty($_SESSION['SESS_ACCESS_LEVEL']) || ($_SESSION['SESS_ACCESS_LEVEL'] >= 3)) {
header("location:http://intranet/unauthorised.php?mode=accesslevel");
exit();
}
if (isset($_SESSION['SESS_USER_ID']) && loggedIn($_SESSION['SESS_USER_ID'])) {
// User ID is valid
} else {
// Not valid
}