X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Freset%2Freset_bonus.php;h=38d97091fb96b7b494bca0988473ae7c065ab5d3;hb=3767eef30a9e514e95625e6da22418ab297b204d;hp=f57a665cf63555f21550fe3080572020fdc74ef2;hpb=5dc48c7ca2416a0893a34a2e049827a4b4ce68b9;p=mailer.git diff --git a/inc/reset/reset_bonus.php b/inc/reset/reset_bonus.php index f57a665cf6..38d97091fb 100644 --- a/inc/reset/reset_bonus.php +++ b/inc/reset/reset_bonus.php @@ -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]