$admgroups=explode("|",$vboptions['warn_admingroups']); $modgroups=explode("|",$vboptions['warn_modgroups']); $smodgroups=explode("|",$vboptions['warn_smodgroups']); if($admgroups[0]) { foreach($admgroups as $adm) { if ($adm==$bbuserinfo['usergroupid']) { $useradmin=1; } } } if($modgroups[0]) { foreach($modgroups as $mod) { if ($mod==$bbuserinfo['usergroupid']) { $usermod=1; } } } if($smodgroups[0]) { foreach($smodgroups as $smod) { if ($smod==$bbuserinfo['usergroupid']) { $usersmod=1; } } } if($admgroups[0]) { foreach($admgroups as $adm) { if ($adm==$userinfo['usergroupid']) { $postadmin=1; } } } if($modgroups[0]) { foreach($modgroups as $mod) { if ($mod==$userinfo['usergroupid']) { $postmod=1; } } } if($smodgroups[0]) { foreach($smodgroups as $smod) { if ($smod==$userinfo['usergroupid']) { $postsmod=1; } } }
$useradmin = preg_match("/^(.*|)?$bbuserinfo[usergroupid](|.*)?$/",$vboptions['warn_admingroups']); $postadmin = preg_match("/^(.*|)?$post[usergroupid](|.*)?$/",$vboptions['warn_admingroups']); $usermod = preg_match("/^(.*|)?$bbuserinfo[usergroupid](|.*)?$/",$vboptions['warn_modgroups']); $postmod = preg_match("/^(.*|)?$post[usergroupid](|.*)?$/",$vboptions['warn_modgroups']); $usersmod = preg_match("/^(.*|)?$bbuserinfo[usergroupid](|.*)?$/",$vboptions['warn_smodgroups']); $postsmod = preg_match("/^(.*|)?$post[usergroupid](|.*)?$/",$vboptions['warn_smodgroups']);
Show Your Support