PHP Code:
if (in_array($bbuserinfo['usergroupid'], array(5,6,7)))
{
eval(print_standard_redirect('redirect_reportthanks'));
}
else
{
vbmail_start();
foreach ($mods AS $index => $moderator)
{
if (!empty($moderator['email']))
{
eval(fetch_email_phrases('reportbadpost', $moderator['languageid']));
vbmail($moderator['email'], $subject, $message);
}
}
vbmail_end();
eval(print_standard_redirect('redirect_reportthanks'));
}
}
Im trying to set it up so that if they are a mod/smod/admin they dont get the email if they report it. only if they are a regular user... any ideas?
vB3 RC4 if that matter