if (in_array($foruminfo['forumid'], array(x,y,z))) { $forumperms = $forumperms & ~CANPOSTATTACHMENT; }