]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/task_functions.php
Fixes for MT_WORD vs. install vs. installed
[mailer.git] / inc / libs / task_functions.php
index 4f79540237bd5b964571092111ebaea516f3a14b..cfd0277d8da639c02c7230404a11b497c43445f9 100644 (file)
@@ -47,8 +47,6 @@ if (!defined('__SECURITY')) {
 //
 // @TODO Move all extension-dependent queries into filters
 function OUTPUT_ADVANCED_OVERVIEW (&$result_main) {
-       global $_CONFIG;
-
        // Init variables/arrays
        $EXTRAS = "";
        $OUT = "";
@@ -338,15 +336,15 @@ ORDER BY d.userid";
                }
 
                // Autopurge installed?
-               $LAST = "";
+               $lastOnline = "";
                if ((EXT_IS_ACTIVE("autopurge")) && (getConfig('autopurge_inactive') == "Y") && (getConfig('ap_inactive_since') > 0)) {
                        // Use last online timestamp to keep inactive members away from here
-                       $LAST   = sprintf(" AND last_online >= (UNIX_TIMESTAMP() - %s)", getConfig('ap_inactive_since'));
+                       $lastOnline   = sprintf(" AND last_online >= (UNIX_TIMESTAMP() - %s)", getConfig('ap_inactive_since'));
                }
 
                $SQLs[]   = "SELECT ".$USE." AS points
 FROM `{!_MYSQL_PREFIX!}_user_data`
-WHERE `status`='CONFIRMED' AND ".$USE.">0".$LAST."
+WHERE `status`='CONFIRMED' AND ".$USE.">0".$lastOnline."
 ORDER BY points DESC, userid";
                $WHATs[]  = "list_bonus";
                $DESCRs[] = getMessage('ADMIN_TASK_LIST_BONUS');
@@ -357,14 +355,14 @@ ORDER BY points DESC, userid";
                // Begging rallye
 
                // Autopurge installed?
-               $LAST = "";
+               $lastOnline = "";
                if ((EXT_IS_ACTIVE("autopurge")) && (getConfig('autopurge_inactive') == "Y") && (getConfig('ap_inactive_since') > 0)) {
                        // Use last online timestamp to keep inactive members away from here
-                       $LAST   = sprintf(" AND last_online >= (UNIX_TIMESTAMP() - %s)", getConfig('ap_inactive_since'));
+                       $lastOnline   = sprintf(" AND last_online >= (UNIX_TIMESTAMP() - %s)", getConfig('ap_inactive_since'));
                }
 
                $SQLs[]   = "SELECT userid FROM `{!_MYSQL_PREFIX!}_user_data`
-WHERE `status`='CONFIRMED' AND beg_points>0".$LAST."
+WHERE `status`='CONFIRMED' AND beg_points>0".$lastOnline."
 ORDER BY beg_points DESC, userid";
                $WHATs[]  = "list_beg";
                $DESCRs[] = getMessage('ADMIN_TASK_LIST_BEG');