]> git.mxchange.org Git - mailer.git/blobdiff - inc/mails/beg_mails.php
Renamed all SQL-related functions to camel-case notation
[mailer.git] / inc / mails / beg_mails.php
index efe0738383e0c761d610f908112cb3b7ef709976..a773063f8e15132753a5a066fb503edc679888ec 100644 (file)
@@ -99,8 +99,8 @@ if (!empty($sql)) {
        } // 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')));
 
@@ -109,12 +109,12 @@ if (!empty($sql)) {
                $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()
@@ -146,12 +146,12 @@ LIMIT 1",
                        $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]