]> git.mxchange.org Git - mailer.git/blobdiff - inc/reset/reset_100_bonus.php
Unknown module in non-HTML mode, debug comments removed :(
[mailer.git] / inc / reset / reset_100_bonus.php
index ab6e348bb1d2f85f6b2d8226545986e152ac8ca0..860af31134318f9cb90a00bf833e7875be156606 100644 (file)
@@ -44,7 +44,7 @@ if (!defined('__SECURITY')) {
 }
 
 // Do not execute when script is in CSS mode or no daily reset
-if ((getOutputMode() != 0) || (!isResetModeEnabled()) || (getConfig('beg_rallye') == 'Y')) return;
+if ((getOutputMode() != 0) || (!isResetModeEnabled())) return;
 //* DEBUG: */ outputHtml(basename(__FILE__)."<br />");
 
 // Check for 100% klickrate mails
@@ -53,7 +53,9 @@ $result_bonus = SQL_QUERY("SELECT
 FROM
        `{?_MYSQL_PREFIX?}_user_stats`
 WHERE
-       `max_rec`=`clicks` AND `clicks` > 0 AND `bonus_stats_active`='N'
+       `max_rec`=`clicks` AND
+       `clicks` > 0 AND
+       `bonus_stats_active`='N'
 ORDER BY
        `userid` ASC", __FILE__, __LINE__);
 
@@ -68,7 +70,7 @@ if (SQL_NUMROWS($result_bonus) > 0) {
                        array(bigintval($content['userid'])), __FILE__, __LINE__);
 
                // Translate some data
-               $content['timestamp'] = generateDateTime($content['timestamp_ordered'], '2');
+               $content['timestamp'] = generateDateTime($content['timestamp_ordered'], 2);
 
                // Load email template and send email
                $message = loadEmailTemplate('member_stats_bonus', $content, bigintval($content['userid']));