ok i've checked my code and it all looks fine
$perms=getpermissions(0, $userid);
that gets the permission for forumid 0 for the userid which is specified, it then does a check to see the permissions of that user
if($perms[ismoderator] || $perms[cancontrolpanel] || $ismod=$DB_site->query_first("SELECT * FROM moderator WHERE userid=$userid")) {
then checks to see which one they are, if i've taken the getpermissions function wrong then could someone please tell me
|