All resets rewritten, missing svn:properties added
[mailer.git] / inc / weekly / weekly_surfbar.php
index 7ea221d5aeb462e6b5471ba716d686c21232562e..06a306d54115df80680743838150078fbc36bfcc 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /************************************************************************
  * Mailer v0.2.1-FINAL                                Start: 09/08/2008 *
- * ===================                          Last change: 09/08/2008 *
+ * ===================                          Last change: 06/20/2010 *
  *                                                                      *
  * -------------------------------------------------------------------- *
  * File              : weekly_surfbar.php                               *
 // 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 the surfbar counter
 updateConfiguration('surfbar_weekly_counter', 0);
 
-//
+// [EOF]
 ?>