All resets rewritten, missing svn:properties added
[mailer.git] / inc / monthly / monthly_surfbar.php
index fa2c73c85b5d15a81ea4ebb6bac38aa3a2806047..9e886c67d0bec53271c3a318a1afab32cfce1847 100644 (file)
@@ -1,14 +1,14 @@
 <?php
 /************************************************************************
  * Mailer v0.2.1-FINAL                                Start: 09/08/2008 *
- * ===================                          Last change: 09/08/2008 *
+ * ===================                          Last change: 06/20/2010 *
  *                                                                      *
  * -------------------------------------------------------------------- *
  * File              : monthly_surfbar.php                              *
  * -------------------------------------------------------------------- *
- * Short description :                                                  *
+ * Short description : Monthly resets on surfbar                        *
  * -------------------------------------------------------------------- *
- * Kurzbeschreibung  :                                                  *
+ * Kurzbeschreibung  : Monatliche Zuruecksetzungen an der Surfbar       *
  * -------------------------------------------------------------------- *
  * $Revision::                                                        $ *
  * $Date::                                                            $ *
 // Some security stuff...
 if (!defined('__SECURITY')) {
        die();
+} elseif ((getOutputMode() == 1) || (!isResetModeEnabled())) {
+       // Do not execute when script is in CSS mode or no daily reset
+       return;
 } elseif (!isExtensionActive('surfbar')) {
+       logDebugMessage(__FILE__, __LINE__, 'Not resetting, needed extension disabled.');
        return;
 }
 
-// Do not execute when script is in CSS mode or no daily reset
-if ((getOutputMode() == 1) || (!isResetModeEnabled())) return;
-//* DEBUG: */ outputHtml(basename(__FILE__)."<br />");
-
 // Reset surfbar counter
 updateConfiguration('surfbar_monthly_counter', 0);
 
-//
+// [EOF]
 ?>