View Single Post
  #5  
Old 10 Apr 2018, 21:54
KC WEIRDWOLF KC WEIRDWOLF is offline
 
Join Date: Sep 2012
This is my code. How much of this do I comment out?


// time for the reminders
$subscriptions_reminders = vB::getDbAssertor()->assertQuery('getSubscriptionsReminders', array('time1' => vB::getRequest()->getTimeNow() + (86400 * 2), 'time2' => vB::getRequest()->getTimeNow() + (86400 * 3)));

vB_Mail::vbmailStart();
foreach ($subscriptions_reminders as $subscriptions_reminder)
{
$phraseAux = vB_Api::instanceInternal('phrase')->fetch(array('sub' . $subscriptions_reminder['subscriptionid'] . '_title', 'subscription'));
$subscription_title = $phraseAux['sub' . $subscriptions_reminder['subscriptionid'] . '_title'];

$username = unhtmlspecialchars($subscriptions_reminder['username']);
$maildata = vB_Api::instanceInternal('phrase')
->fetchEmailPhrases('paidsubscription_reminder', array($username, $subscription_title, $vbulletin->options['bburl'], $vbulletin->options['bbtitle']), array(), $subscriptions_reminder['languageid']);
vB_Mail::vbmail($subscriptions_reminder['email'], $maildata['subject'], $maildata['message']);
}
vB_Mail::vbmailEnd();

// Legacy Hook 'cron_script_subscriptions' Removed //
}

log_cron_action('', $nextitem, 1);
Reply With Quote