]> git.mxchange.org Git - mailer.git/blobdiff - inc/monthly/monthly_bonus.php
All resets rewritten, missing svn:properties added
[mailer.git] / inc / monthly / monthly_bonus.php
index ed3dfaa445d0089e4520d316e137bbb38883e6af..d4131cdae5a6f0637d5c47642f5fb05903ef80d4 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /************************************************************************
  * Mailer v0.2.1-FINAL                                Start: 11/14/2004 *
- * ===================                          Last change: 11/19/2004 *
+ * ===================                          Last change: 06/20/2010 *
  *                                                                      *
  * -------------------------------------------------------------------- *
  * File              : monthly_bonus.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('bonus')) {
+       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 />");
-
 // Get current month (2 digits)
 $curr = date('m', time());
 
@@ -118,5 +118,5 @@ SET
        SQL_FREERESULT($result_main);
 } // END - if
 
-//
+// [EOF]
 ?>