Updated to support a demo user

This commit is contained in:
Neil Lathwood
2015-02-16 23:45:28 +00:00
parent f0b0ed4468
commit 2cb5d727b4
20 changed files with 57 additions and 35 deletions

View File

@ -712,7 +712,7 @@ function generate_pagination($count,$limit,$page,$links = 2) {
}
function is_admin() {
if ($_SESSION['userlevel'] == '10') {
if ($_SESSION['userlevel'] >= '10') {
$allowed = true;
} else {
$allowed = false;
@ -720,4 +720,8 @@ function is_admin() {
return $allowed;
}
function demo_account() {
print_error("You are logged in as a demo account, this page isn't accessible to you");
}
?>