]> git.mxchange.org Git - mailer.git/blobdiff - inc/monthly/monthly_bonus.php
Global variables rewritten
[mailer.git] / inc / monthly / monthly_bonus.php
index d90c75d387780533a12b0463efc635b359b2d173..de78e488c7219697f8157d216938b45da5326fd4 100644 (file)
@@ -40,13 +40,13 @@ if (!defined('__SECURITY')) {
 }
 
 // Do not execute when script is in CSS mode or no daily reset
-if (($CSS == 1) || (!defined('__DAILY_RESET'))) return;
+if (($GLOBALS['output_mode'] == 1) || (!defined('__DAILY_RESET'))) return;
 //* DEBUG: */ echo basename(__FILE__)."<br />\n";
 
 // Get current month (2 digits)
 $curr = date("m", time());
 
-if (($curr != getConfig('last_month')) && (getConfig('bonus_ranks') > 0) && ($CSS != 1)) {
+if (($curr != getConfig('last_month')) && (getConfig('bonus_ranks') > 0) && ($GLOBALS['output_mode'] != 1)) {
        // Extension "autopurge" is inactive or purging of inactive accounts is deactivated
        $whereStatement1 = "WHERE `status`='CONFIRMED'";
        $whereStatement2 = bigintval(getConfig('bonus_ranks'));