One question - Does this hack check permissions of the user viewing the logs?
Reason being the file allows the user to "Clear the Logs" and I would like to make sure that it can only be performed by an Admin.
I want to give access to my moderators but I don't want them to be able to clear the logs. So I added this...but it didn't work because the script is not defining $bbuserinfo['usergroupid']
Code:
<?
if ($bbuserinfo['usergroupid']==6) {
echo "<a href=\"javascript:void(0);\" onClick=\"javascript:if(confirm(\'Click OK to clear all moderator logs.\')) {document.location.href=\'<?=$PHP_SELF?>?rt=<?=time()?>&clearLogs=yes&showLimit=<?=$showLimit?>\';}\">CLEAR ALL LOGS</a> -";
} else {
echo "";
}
?>
I tried adding: require("./config.php");
but that produced errors. Any ideas?