]> git.mxchange.org Git - mailer.git/blobdiff - inc/monthly/monthly_surfbar.php
Fix for broken confirmation
[mailer.git] / inc / monthly / monthly_surfbar.php
index fa2c73c85b5d15a81ea4ebb6bac38aa3a2806047..0fc646ba235dac76c9e4d5abdf39e61dd4fbeefd 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 ((isCssOutputMode()) || (!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]
 ?>