(This is untested) Make your changes to the top variable and...
Find:
PHP Code:
if (eregi("[a-z]",$forumID) or $forumID < 1 or
strstr($privateForums,"|".$forumID."|"))
Replace with:
PHP Code:
if (eregi("[a-z]",$forumID) or $forumID < 1 or
!strstr($privateForums,"|".$forumID."|"))
Find:
PHP Code:
while($pf=array_shift($pfs)) {
if(ereg("[0-9]",$pf)) {
if($wherecounter==0) {
$whereclause= " WHERE forumid!='$pf'";
$wherecounter++;
} else {
$whereclause .= " AND forumid!='$pf'";
}
}
}
Replace with:
PHP Code:
while($pf=array_shift($pfs)) {
if(ereg("[0-9]",$pf)) {
if($wherecounter==0) {
$whereclause= " WHERE forumid='$pf'";
$wherecounter++;
} else {
$whereclause .= " AND forumid='$pf'";
}
}
}