Hi there is a fatal error in your mass_cron.php it spams moderator applicants with mails if they got less then 7 points and the application is older then 14 days.
see your code here:
PHP Code:
if ($day >= 14 AND $avg < 7) // Email users who we're declining.
{
eval(fetch_email_phrases('mas_feedback_failed', $user['languageid']));
vbmail($user['email'], $subject, $message, true);
echo("Declination Email Sent To ". $user['username'] ."<br />");
$declinationemail[] = $user['username'];
$getuser = $db->query_first("
SELECT u.userid, mas.appid
FROM " . TABLE_PREFIX . "user u
LEFT JOIN " . TABLE_PREFIX . "mas_application mas ON(u.userid = mas.userid)
WHERE username = '" . $username . "'
");
$vbulletin->db->query("DELETE FROM " . TABLE_PREFIX . "mas_application WHERE userid = " . $userid);
$vbulletin->db->query("DELETE FROM " . TABLE_PREFIX . "mas_rating WHERE appid = " . $getuser['appid']);
}
find this row
PHP Code:
$getuser = $db->query_first("
and replace it with
PHP Code:
$getuser = $vbulletin->db->query_first("