setQuery("SELECT userid FROM #__sb_moderation WHERE catid='$catid' and userid='$my->id'");
if ($database->loadResult() ) {$is_Mod=1;}
}else{ $is_Mod=1;} //superadmins always are
if (!$is_Mod) { die ("You are not a moderator!!
This error is logged and your IP address has been sent to the SuperAdmin(s) of this site; sorry..");}
//but we don't send the email; we might do that in the future, but for now we just want to scare 'em off..
//TODO: need to check if the mod has privs on this particular forum... no rush; we trust mods, don't we?
//******************************
//LIST MESSAGES
//******************************
if ($action == "list" ){
?>
|
|
|||||
|
| |||||