Fixed some scrut issues

This commit is contained in:
laf
2015-07-23 17:48:22 +01:00
parent a91ab4d987
commit 1cbd142ad7
9 changed files with 39 additions and 40 deletions

View File

@ -966,6 +966,25 @@ function is_read() {
}//end is_read()
function is_demo_user() {
if ($_SESSION['userlevel'] == 11) {
return true;
}
else {
return false;
}
}// end is_demo_user();
function is_normal_user() {
if (is_admin() === false && is_read() === false && is_demo_user() === false) {
return true;
}
else {
return false;
}
}// end is_normal_user()
function demo_account() {
print_error("You are logged in as a demo account, this page isn't accessible to you");
@ -1130,3 +1149,4 @@ function alert_details($details) {
return $fault_detail;
}//end alert_details()