]> git.mxchange.org Git - mailer.git/blobdiff - inc/reset/reset_bonus.php
is only supported in email templates and not required in member login area
[mailer.git] / inc / reset / reset_bonus.php
index f57a665cf63555f21550fe3080572020fdc74ef2..38d97091fb96b7b494bca0988473ae7c065ab5d3 100644 (file)
@@ -14,8 +14,6 @@
  * $Date::                                                            $ *
  * $Tag:: 0.2.1-FINAL                                                 $ *
  * $Author::                                                          $ *
- * Needs to be in all Files and every File needs "svn propset           *
- * svn:keywords Date Revision" (autoprobset!) at least!!!!!!            *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
  * Copyright (c) 2009, 2010 by Mailer Developer Team                    *
@@ -40,7 +38,7 @@
 // Some security stuff...
 if (!defined('__SECURITY')) {
        die();
-} elseif ((getScriptOutputMode() != 0) || (!isResetModeEnabled())) {
+} elseif ((!isHtmlOutputMode()) || (!isResetModeEnabled())) {
        // Do not execute when script is in CSS mode or no daily reset
        return;
 } elseif (!isExtensionActive('bonus')) {
@@ -52,14 +50,14 @@ if (!defined('__SECURITY')) {
 purgeExpiredTurboBonus();
 
 // Reset accounts
-SQL_QUERY("UPDATE
+SQL_QUERY('UPDATE
        `{?_MYSQL_PREFIX?}_user_data`
 SET
        `turbo_bonus`=0,
        `login_bonus`=0,
        `bonus_order`=0,
        `bonus_stats`=0,
-       `bonus_ref`=0",
+       `bonus_ref`=0',
        __FILE__, __LINE__);
 
 // [EOF]