$foruminfo=getforuminfo($forumid); if ($foruminfo['allowposting']==0) { eval("standarderror(\"".gettemplate("error_forumclosed")."\");"); }
$threads=$DB_site->query_first("SELECT COUNT(*) as counter FROM thread WHERE postuserid=$bbuserinfo[userid] AND forumid IN(13, 17, 19, 20, 26, 27, 33, 34, 44, 45, 51, 52, 58, 59)"); if(in_array($foruminfo[forumid],array(21, 28, 35, 46, 53, 61)) and $threads[counter]<5) show_nopermission();