Parašė Martynas.· 2011 Lie. 7 16:07:14
#11
function checkgroup($group) {
if (iSUPERADMIN&& ($group == "0" || $group == "101")) { return true; }
elseif (iADMIN && ($group == "0" || $group == "101" || $group == "102")) { return true;
} elseif (iMEMBER && ($group == "0" || $group == "101")) { return true;
} elseif (iGUEST && $group == "0") { return true;
} elseif (iMEMBER && in_array($group, explode(".", iUSER_GROUPS))) {
return true;
} else {
return false;
}
}
Redagavo Martynas.· 2011 Lie. 7 16:07:42