All resets rewritten, missing svn:properties added
[mailer.git] / inc / monthly / monthly_beg.php
index 370f3fddcc59c4ac41972157572640b5564dc12f..6b3d1ad13f09bdc8ec33ecf0e051ab4cdd02f8a2 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /************************************************************************
  * Mailer v0.2.1-FINAL                                Start: 10/22/2005 *
- * ===================                          Last change: 10/22/2005 *
+ * ===================                          Last change: 06/20/2010 *
  *                                                                      *
  * -------------------------------------------------------------------- *
  * File              : monthly_beg.php                                  *
 // Some security stuff...
 if (!defined('__SECURITY')) {
        die();
+} elseif ((getOutputMode() == 1) || (!isResetModeEnabled()) || (getConfig('beg_rallye') != 'Y')) {
+       // Do not execute when script is in CSS mode or no daily reset
+       return;
 } elseif (!isExtensionActive('beg')) {
+       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()) || (getConfig('beg_rallye') != 'Y')) return;
-//* DEBUG: */ outputHtml(basename(__FILE__)."<br />");
-
 // Get current month (2 digits)
 $curr = date('m', time());
 
@@ -103,5 +103,5 @@ LIMIT {?beg_ranks?}", __FILE__, __LINE__);
        SQL_FREERESULT($result_main);
 } // END - if
 
-//
+// [EOF]
 ?>