if (in_array($foruminfo['forumid'], array(x,y,z)) AND $threadinfo['firstpostid'] != $postinfo['postid']) { $forumperms = $forumperms & ~CANPOSTATTACHMENT; }