X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fweekly%2Fweekly_surfbar.php;h=5dd550f5207102ea6d98643f3d8e036c75c56286;hp=bb11e6ceafa8e97cca10d514c20d64999f676919;hb=35fd597b272983427fd88f541ea55642e0b42c9e;hpb=c72268213d4d4829d845d39c101bb08fbe4ed79a diff --git a/inc/weekly/weekly_surfbar.php b/inc/weekly/weekly_surfbar.php index bb11e6ceaf..5dd550f520 100644 --- a/inc/weekly/weekly_surfbar.php +++ b/inc/weekly/weekly_surfbar.php @@ -14,12 +14,10 @@ * $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 * - * For more information visit: http://www.mxchange.org * + * Copyright (c) 2009 - 2013 by Mailer Developer Team * + * For more information visit: http://mxchange.org * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * @@ -40,16 +38,22 @@ // Some security stuff... if (!defined('__SECURITY')) { die(); -} elseif ((getScriptOutputMode() == 1) || (!isResetModeEnabled())) { - // Do not execute when script is in CSS mode or no daily reset +} elseif ((!isHtmlOutputMode()) || (!isWeeklyResetEnabled())) { + // Do not execute when script is in non-HTML mode or no daily reset return; } elseif (!isExtensionActive('surfbar')) { - logDebugMessage(__FILE__, __LINE__, 'Not resetting, needed extension disabled.'); + logDebugMessage(__FILE__, __LINE__, 'Not resetting, needed extension ext-surfbar disabled.'); return; } +// Debug line +//* DEBUG: */ logDebugMessage(__FILE__, __LINE__, 'Weekly reset started.'); + // Reset the surfbar counter updateConfiguration('surfbar_weekly_counter', 0); +// Debug line +//* DEBUG: */ logDebugMessage(__FILE__, __LINE__, 'Weekly reset ended.'); + // [EOF] ?>