* $Author:: $ *
* -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2009 by Roland Haeder *
- * Copyright (c) 2009 - 2012 by Mailer Developer Team *
+ * Copyright (c) 2009 - 2013 by Mailer Developer Team *
* For more information visit: http://mxchange.org *
* *
* This program is free software; you can redistribute it and/or modify *
} // END - switch
if (!empty($sql)) {
- // Init additional WHERE statement
- $whereStatement = '';
-
- // Is ext-holiday installed?
- // @TODO Rewrite these if() blocks to a filter
- if (isExtensionActive('holiday')) {
- // Exclude those as well
- $whereStatement .= " AND `d`.`holiday_active`='N'";
- } // END - if
-
// The SQL command needs to be finisched here (only confirmed accounts!)
- $sql .= ')' . $whereStatement . runFilterChain('user_exclusion_sql', " AND `d`.`status`='CONFIRMED'") . ' ORDER BY `d`.`last_online` ASC';
+ $sql .= ')' . runFilterChain('user_exclusion_sql', " AND `d`.`status`='CONFIRMED'") . ' ORDER BY `d`.`last_online` ASC';
// No IP locking setuped by default
$content['ip_locker'] = '{--BEG_NO_LIMITATION--}';
} // END - if
// Check for accounts to be notified
- $result_main = SQL_QUERY($sql, __FILE__, __LINE__);
- if (!SQL_HASZERONUMS($result_main)) {
+ $result_main = sqlQuery($sql, __FILE__, __LINE__);
+ if (!ifSqlHasZeroNums($result_main)) {
// Normal notification mails or bonus mails?
$sentBonusMails = ((getBegNotifyBonus() > 0) && ($mode == 'enable') && (isExtensionActive('bonus')));
$receiver = ''; $userids = array();
// Okay lets notify all users!
- while ($row = SQL_FETCHARRAY($result_main)) {
+ while ($row = sqlFetchArray($result_main)) {
// Merge arrays
$content = merge_array($content, $row);
// Update account
- SQL_QUERY_ESC("UPDATE
+ sqlQueryEscaped("UPDATE
`{?_MYSQL_PREFIX?}_user_data`
SET
`beg_rallye_%s_notify`=UNIX_TIMESTAMP()
$url = 'modules.php?module=index&what=login';
// Insert mail
- addBonusMailToQueue('{--BEG_RALLYE_' . strtoupper($mode) . '_SUBJECT--}', $message, $receiver, getBegNotifyBonus(), getBegNotifyWait(), $url, 0, 'normal', SQL_NUMROWS($result_main));
+ addBonusMailToQueue('{--BEG_RALLYE_' . strtoupper($mode) . '_SUBJECT--}', $message, $receiver, getBegNotifyBonus(), getBegNotifyWait(), $url, 0, 'normal', sqlNumRows($result_main));
} // END - if
} // END - if
// Free memory
- SQL_FREERESULT($result_main);
+ sqlFreeResult($result_main);
} // END - if
// [EOF]