There you go:
PHP Code:
if ( !isset($forum['moderators']) ) {
$forum['moderators'] = ' ';
}
if ($forum['cancontainthreads']==1) {
$tempext = '_post';
} else {
$tempext = '_nopost';
}
// Category sponsoring hack
if ($forum['sponsorimg'] && $forum['cancontainthreads']==0 && $depth==1) {
eval("\$forumbits .= \"".gettemplate("forumhome_forumbit_level1_nopost_sponsor")."\";");
} else {
eval("\$forumbits .= \"".gettemplate("forumhome_forumbit_level$depth$tempext")."\";");
}
// Category sponsoring hack
if ($forum['forumimg'] && $forum['cancontainthreads']==1 && $depth==2) {
eval("\$forumbits .= \"".gettemplate("forumhome_forumbit_level2_post_image")."\";");
} else {
eval("\$forumbits .= \"".gettemplate("forumhome_forumbit_level$depth$tempext")."\";");
}
if ($depth<$forumhomedepth) {
$forumbits.=makeforumbit($forum['forumid'],$depth+1,$forumperms);
}
} // END if can view
} // END while ( list($key2,$forum)=each($val1) ) {
} // END while ( list($key1,$val1)=each($iforumcache["$forumid"]) ) {
unset($iforumcache["$forumid"]);