if (!$threadinfo[open]) { if (!ismoderator($threadinfo[forumid],"canopenclose")) {
if (!$threadinfo[open]) { if ($bbuserinfo['usergroupid'] != 6 and $bbuserinfo['usergroupid'] != 5) {