Hmm, for some reason that didn't work... should it be AND $forumid == X OR $forumid == X OR $forumid == X OR $forumid == X OR $forumid == X OR $forumid == X ???
Code:
if ($bbuserinfo['userid'] == 0 AND !preg_match("#(google|slurp@inktomi|yahoo! slurp)#si", $_SERVER['HTTP_USER_AGENT']) AND $forumid == 78 AND $forumid == 111 AND $forumid == 108 AND $forumid == 141 AND $forumid == 110 AND $forumid == 129 AND $forumid == 109 AND $forumid == 112 AND $forumid == 150 AND $forumid == 151 AND $forumid == 152 AND $forumid == 153 AND $forumid == 154 AND $forumid == 155 AND $forumid == 156 AND $forumid == 157)
{
print_no_permission();
}