]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/member/what-bonus.php
More constant rewrites
[mailer.git] / inc / modules / member / what-bonus.php
index 60f6163b6561c8ccc573edc426e216183d37a5a8..ee9965faafac13e0fb95628ef8cdcc88a4c19f6a 100644 (file)
@@ -38,7 +38,7 @@ if (!defined('__SECURITY')) {
 } elseif (!IS_MEMBER()) {
        LOAD_URL("modules.php[5~?module=index");
 } elseif ((!EXT_IS_ACTIVE("bonus")) && (!IS_ADMIN())) {
-       addFatalMessage(getMessage('EXTENSION_PROBLEM_EXT_INACTIVE'), "bonus");
+       addFatalMessage(__FILE__, __LINE__, getMessage('EXTENSION_PROBLEM_EXT_INACTIVE'), "bonus");
        return;
 }
 
@@ -61,16 +61,16 @@ if (GET_EXT_VERSION("bonus") >= "0.6.9") {
 }
 
 // Autopurge installed?
-$LAST = "%s"; $ONLINE = "";
+$lastOnline = "%s"; $ONLINE = "";
 if (EXT_IS_ACTIVE("autopurge")) {
        // Use last online timestamp to keep inactive members away from here
-       $LAST   = " AND last_online >= (UNIX_TIMESTAMP() - %s)";
+       $lastOnline   = " AND last_online >= (UNIX_TIMESTAMP() - %s)";
        $ONLINE = getConfig('ap_inactive_since');
 }
 
 // Let's check if there are some points left we can "pay"...
 $result = SQL_QUERY_ESC("SELECT userid, ".$USE." AS points, last_online FROM `{!_MYSQL_PREFIX!}_user_data`
-WHERE ".$USE." > 0 AND `status`='CONFIRMED'".$LAST."
+WHERE ".$USE." > 0 AND `status`='CONFIRMED'".$lastOnline."
 ORDER BY points DESC, last_online DESC, userid
 LIMIT %s",
        array($ONLINE, getConfig('bonus_ranks')), __FILE__, __LINE__);