X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Freset%2Freset_100_bonus.php;h=f551ef47b7591c74e7b59193e56a1fa6505a87ab;hb=d209e76db84001db79168347308dac1cd855c489;hp=265388459af8f4b4c8fb74dc6287709f57655e31;hpb=bf2a8b44cc8790e34aeb9144a66f4df3256d67d0;p=mailer.git diff --git a/inc/reset/reset_100_bonus.php b/inc/reset/reset_100_bonus.php index 265388459a..f551ef47b7 100644 --- a/inc/reset/reset_100_bonus.php +++ b/inc/reset/reset_100_bonus.php @@ -1,94 +1,3 @@ 0 AND - `bonus_stats_active`='N' -ORDER BY - `userid` ASC", __FILE__, __LINE__); - -if (!SQL_HASZERONUMS($result_bonus)) { - // We found some mail orders... - while ($content = SQL_FETCHARRAY($result_bonus)) { - // Add points - SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_user_data` SET `bonus_stats`=`bonus_stats`+{?bonus_stats?} WHERE `userid`=%s LIMIT 1", - array(bigintval($content['userid'])), __FILE__, __LINE__); - - // Translate some data - $content['timestamp'] = generateDateTime($content['timestamp_ordered'], 2); - - // Load email template and send email - $message = loadEmailTemplate('member_stats_bonus', $content, bigintval($content['userid'])); - sendEmail($content['userid'], '{--MEMBER_BONUS_STATS_SUBJECT--}', $message); - - // Update database - $result_update = SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_user_stats` SET `bonus_stats_active`='Y' WHERE `id`=%s LIMIT 1", - array(bigintval($content['id'])), __FILE__, __LINE__); - } // END - while - - // Handle bonus points - handleBonusPoints(getConfig('bonus_stats')); -} // END - if - -// Free memory -SQL_FREERESULT($result_bonus); - -// Debug line -//* DEBUG: */ logDebugMessage(__FILE__, __LINE__, 'Daily reset ended.'); - -// [EOF] +// @DEPRECATED ?>