]> git.mxchange.org Git - mailer.git/blobdiff - inc/monthly/monthly_surfbar.php
Hourly reset introduced
[mailer.git] / inc / monthly / monthly_surfbar.php
index 9e886c67d0bec53271c3a318a1afab32cfce1847..83f98c95163a091f62a6cf334534a73722d7bee2 100644 (file)
  * $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                    *
+ * Copyright (c) 2009 - 2011 by Mailer Developer Team                   *
  * For more information visit: http://www.mxchange.org                  *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
 // Some security stuff...
 if (!defined('__SECURITY')) {
        die();
-} elseif ((getOutputMode() == 1) || (!isResetModeEnabled())) {
-       // Do not execute when script is in CSS mode or no daily reset
+} elseif ((isCssOutputMode()) || (!isResetModeEnabled())) {
+       // Do not execute when script is in CSS mode or no hourly reset
        return;
 } elseif (!isExtensionActive('surfbar')) {
        logDebugMessage(__FILE__, __LINE__, 'Not resetting, needed extension disabled.');
        return;
 }
 
+// Debug line
+//* DEBUG: */ logDebugMessage(__FILE__, __LINE__, 'Monthly reset started.');
+
 // Reset surfbar counter
 updateConfiguration('surfbar_monthly_counter', 0);
 
+// Debug line
+//* DEBUG: */ logDebugMessage(__FILE__, __LINE__, 'Monthly reset ended.');
+
 // [EOF]
 ?>