A lot rewrites from double-quote to single-quote, some fixes for extension handling...
[mailer.git] / inc / monthly / monthly_beg.php
index d243864380b7c7ac61d1988e9511158d0d5a89e6..7d6f26b65fd2e50b2654bb342294fd6852a474d8 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("beg")) {
+} elseif (!EXT_IS_ACTIVE('beg')) {
        return;
 }
 
@@ -53,8 +53,8 @@ $curr = date("m", time());
 
 // Check if month is done
 if (($curr != getConfig('last_month')) && (getConfig('last_month') > 0) && (getConfig('beg_ranks') > 0) && ($GLOBALS['output_mode'] != 1)) {
-       // Extension "autopurge" is inactive or purging of inactive accounts is deactivated
-       $whereStatement1 = "";
+       // Extension 'autopurge' is inactive or purging of inactive accounts is deactivated
+       $whereStatement1 = '';
        $whereStatement2 = getConfig(('beg_ranks'));
 
        // Shall we exclude webmaster's own userid?
@@ -64,9 +64,9 @@ if (($curr != getConfig('last_month')) && (getConfig('last_month') > 0) && (getC
        } // END - if
 
        // Let's check if there are some points left we can "pay"...
-       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) && (getConfig('beg_active') == "Y")) {
+               if ((getConfig('ap_inactive_since') > 0) && (getConfig('beg_active') == 'Y')) {
                        // Okay, include last online timestamp
                        $whereStatement1 .= sprintf(" AND last_online >= (UNIX_TIMESTAMP() - %s)", getConfig(('ap_inactive_since')));;
                } // END - if