]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-list_bonus.php
'what','action','module' and 'output_mode' wrapped into functions (WARNUNG: Code...
[mailer.git] / inc / modules / admin / what-list_bonus.php
index 1a225c96f34836ffe89e8cc740750b81f907ea70..1052ebf4009c76c6e3e7e58fc2e14ed3da33fb3f 100644 (file)
@@ -57,16 +57,16 @@ if (getConfig('bonus_active') == 'Y') {
 
        if (GET_EXT_VERSION('bonus') >= '0.6.9') {
                // Add more bonus points here
-               $USE = "(0";
-               if (getConfig('bonus_click_yn') == 'Y') $USE .= " + turbo_bonus";
-               if (getConfig('bonus_login_yn') == 'Y') $USE .= " + login_bonus";
-               if (getConfig('bonus_order_yn') == 'Y') $USE .= " + bonus_order";
-               if (getConfig('bonus_stats_yn') == 'Y') $USE .= " + bonus_stats";
-               if (getConfig('bonus_ref_yn')   == 'Y') $USE .= " + bonus_ref";
-               $USE .= ")";
+               $USE = '(0';
+               if (getConfig('bonus_click_yn') == 'Y') $USE .= " + `turbo_bonus`";
+               if (getConfig('bonus_login_yn') == 'Y') $USE .= " + `login_bonus`";
+               if (getConfig('bonus_order_yn') == 'Y') $USE .= " + `bonus_order`";
+               if (getConfig('bonus_stats_yn') == 'Y') $USE .= " + `bonus_stats`";
+               if (getConfig('bonus_ref_yn')   == 'Y') $USE .= " + `bonus_ref`";
+               $USE .= ')';
        } else {
                // Old version ???
-               $USE = "turbo_bonus";
+               $USE = 'turbo_bonus';
        }
 
        // Autopurge installed?
@@ -82,7 +82,7 @@ if (getConfig('bonus_active') == 'Y') {
 FROM `{!_MYSQL_PREFIX!}_user_data`
 WHERE `status`='CONFIRMED' AND ".$USE." > 0".$lastOnline."
 ORDER BY points DESC, last_online DESC, userid",
-        array($ONLINE), __FILE__, __LINE__);
+       array($ONLINE), __FILE__, __LINE__);
 
        if (SQL_NUMROWS($result) > 0) {
                // List users
@@ -104,7 +104,7 @@ ORDER BY points DESC, last_online DESC, userid",
                        $content['email']  = generateMemberEmailLink($content['email'], "user_data");
                        $content['gender'] = translateGender($content['gender']);
                        $content['points'] = translateComma($content['points']);
-                       $content['last']   = generateDateTime($content['last'], "2");
+                       $content['last']   = generateDateTime($content['last'], '2');
                        $content['sw']     = $SW;
                        $content['win1']   = $WIN1;
                        $content['win2']   = $WIN2;
@@ -128,7 +128,7 @@ ORDER BY points DESC, last_online DESC, userid",
 
                // Prepare constant for timemark
                if (EXT_IS_ACTIVE('autopurge')) {
-                       define('__AUTOPURGE_TIMEOUT', generateDateTime(time() - getConfig('ap_inactive_since'), "2"));
+                       define('__AUTOPURGE_TIMEOUT', generateDateTime(time() - getConfig('ap_inactive_since'), '2'));
                } else {
                        define('__AUTOPURGE_TIMEOUT', sprintf(getMessage('EXTENSION_PROBLEM_NOT_INSTALLED'), 'autopurge'));
                }