The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#3
|
||||
|
||||
![]()
Sorry about that, I posted the wrong one.
Code:
// ######################################################################## // ######################### START MAIN SCRIPT ############################ // ######################################################################## $today = date('m-d', TIMENOW); $ids = '0'; foreach($vbulletin->usergroupcache AS $usergroupid => $usergroup) { if ($usergroup['genericoptions'] & $vbulletin->bf_ugp_genericoptions['showbirthday'] AND !in_array($usergroup['usergroupid'], array(1, 3, 4))) { $ids .= ",$usergroupid"; } } $birthdays = $vbulletin->db->query_read(" SELECT username, email, languageid FROM " . TABLE_PREFIX . "user WHERE birthday LIKE '$today-%' AND (options & " . $vbulletin->bf_misc_useroptions['adminemail'] . ") AND usergroupid IN ($ids) "); vbmail_start(); while ($userinfo = $vbulletin->db->fetch_array($birthdays)) { $username = unhtmlspecialchars($userinfo['username']); eval(fetch_email_phrases('birthday', $userinfo['languageid'])); vbmail($userinfo['email'], $subject, $message); $emails .= iif($emails, ', '); $emails .= $userinfo['username']; } vbmail_end(); if ($emails) { log_cron_action($emails, $nextitem, 1); } |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|