]> git.mxchange.org Git - mailer.git/blobdiff - inc/monthly/monthly_bonus.php
A lot rewrites from double-quote to single-quote, some fixes for extension handling...
[mailer.git] / inc / monthly / monthly_bonus.php
index 060b0d599926199b3201589f6da644642525ee54..0dea2f2ac5987f125ff981dd60fc14b95a89c21e 100644 (file)
@@ -40,7 +40,7 @@
 if (!defined('__SECURITY')) {
        $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
        require($INC);
-} elseif (!EXT_IS_ACTIVE("bonus")) {
+} elseif (!EXT_IS_ACTIVE('bonus')) {
        return;
 }
 
@@ -52,12 +52,12 @@ if (($GLOBALS['output_mode'] == 1) || (!isResetModeEnabled())) return;
 $curr = date("m", time());
 
 if (($curr != getConfig('last_month')) && (getConfig('bonus_ranks') > 0) && ($GLOBALS['output_mode'] != 1)) {
-       // Extension "autopurge" is inactive or purging of inactive accounts is deactivated
+       // Extension 'autopurge' is inactive or purging of inactive accounts is deactivated
        $whereStatement1 = "WHERE `status`='CONFIRMED'";
        $whereStatement2 = getConfig(('bonus_ranks'));
 
        // Shall I keep inactive members away from here? (mostly wanted in an "active-rallye" ...)
-       if (EXT_IS_ACTIVE("autopurge")) {
+       if (EXT_IS_ACTIVE('autopurge')) {
                // Use last online stamp only when autopurge for inactive members is activated
                if (getConfig('ap_inactive_since') > 0) {
                        // Okay, include last online timestamp
@@ -67,12 +67,12 @@ if (($curr != getConfig('last_month')) && (getConfig('bonus_ranks') > 0) && ($GL
        } // END - if
 
        // Add more bonus points here
-       $add = "";
-       if (getConfig('bonus_click_yn') == "Y") $add .= " + turbo_bonus";
-       if (getConfig('bonus_login_yn') == "Y") $add .= " + login_bonus";
-       if (getConfig('bonus_order_yn') == "Y") $add .= " + bonus_order";
-       if (getConfig('bonus_stats_yn') == "Y") $add .= " + bonus_stats";
-       if (getConfig('bonus_ref_yn')   == "Y") $add .= " + bonus_ref";
+       $add = '';
+       if (getConfig('bonus_click_yn') == 'Y') $add .= " + turbo_bonus";
+       if (getConfig('bonus_login_yn') == 'Y') $add .= " + login_bonus";
+       if (getConfig('bonus_order_yn') == 'Y') $add .= " + bonus_order";
+       if (getConfig('bonus_stats_yn') == 'Y') $add .= " + bonus_stats";
+       if (getConfig('bonus_ref_yn')   == 'Y') $add .= " + bonus_ref";
 
        // Shall we add some entries?
        if (!empty($add)) {