$receiver = ''; $userids = array();
// 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)) {
// Okay lets notify all users!
- while ($content = SQL_FETCHARRAY($result_main)) {
+ while ($content = sqlFetchArray($result_main)) {
// Update account
- SQL_QUERY_ESC("UPDATE
+ sqlQueryEscaped("UPDATE
`{?_MYSQL_PREFIX?}_user_data`
SET
`bonus_rallye_%s_notify`=UNIX_TIMESTAMP()
$url = 'modules.php?module=index&what=login';
// Insert mail
- addBonusMailToQueue('{--MEMBER_BONUS_RALLYE_' . strtoupper($mode) . '_SUBJECT--}', $message, $receiver, getBonusNotifyPoints(), getConfig('bonus_notify_wait'), $url, 0, 'normal', SQL_NUMROWS($result_main));
+ addBonusMailToQueue('{--MEMBER_BONUS_RALLYE_' . strtoupper($mode) . '_SUBJECT--}', $message, $receiver, getBonusNotifyPoints(), getConfig('bonus_notify_wait'), $url, 0, 'normal', sqlNumRows($result_main));
} // END - if
} // END - if
// Free memory
- SQL_FREERESULT($result_main);
+ sqlFreeResult($result_main);
} // END - if
//