]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-list_bonus.php
fooRequestElementBar() functions renamed, adding of request parameters added:
[mailer.git] / inc / modules / admin / what-list_bonus.php
index 2605fa99e4bcb39782f32224b60b481caa67f95a..581855e47a089e32c8032c4196269d1d145f0c81 100644 (file)
@@ -46,7 +46,7 @@ addMenuDescription('admin', __FILE__);
 
 if (getConfig('bonus_active') == 'Y') {
        // Shall I withdraw now?
 
 if (getConfig('bonus_active') == 'Y') {
        // Shall I withdraw now?
-       if (isPostRequestElementSet(('withdraw'))) {
+       if (isPostRequestParameterSet(('withdraw'))) {
                // Okay, let's prepare...
                $curr = date('m', time()) - 1;
                if (strlen($curr) == 1) $curr = '0' . $curr;
                // Okay, let's prepare...
                $curr = date('m', time()) - 1;
                if (strlen($curr) == 1) $curr = '0' . $curr;
@@ -57,11 +57,11 @@ if (getConfig('bonus_active') == 'Y') {
        if (getExtensionVersion('bonus') >= '0.6.9') {
                // Add more bonus points here
                $USE = '(0';
        if (getExtensionVersion('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`";
+               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 .= ')';
        } else {
                // Old version ???
@@ -123,14 +123,14 @@ ORDER BY `points` DESC, `last_online` DESC, `userid` ASC",
                        $content['withdraw_form'] = loadTemplate('admin_list_bonus_form', true);
                } else {
                        // Display message "no manual withdraw possible"
                        $content['withdraw_form'] = loadTemplate('admin_list_bonus_form', true);
                } else {
                        // Display message "no manual withdraw possible"
-                       $content['withdraw_form'] = loadTemplate('admin_settings_saved', true, "<div class=\"admin_failed\">{--ADMIN_BONUS_ALREADY_WITHDRAW--}</div>");
+                       $content['withdraw_form'] = loadTemplate('admin_settings_saved', true, '<div class="admin_failed">{--ADMIN_BONUS_ALREADY_WITHDRAW--}</div>');
                }
 
                // Prepare constant for timemark
                if (isExtensionActive('autopurge')) {
                        $content['autopurge_timeout'] = generateDateTime(time() - getConfig('ap_inactive_since'), 2);
                } else {
                }
 
                // Prepare constant for timemark
                if (isExtensionActive('autopurge')) {
                        $content['autopurge_timeout'] = generateDateTime(time() - getConfig('ap_inactive_since'), 2);
                } else {
-                       $content['autopurge_timeout'] = loadTemplate('admin_settings_saved', true, sprintf(getMessage('EXTENSION_PROBLEM_NOT_INSTALLED'), 'autopurge'));
+                       $content['autopurge_timeout'] = loadTemplate('admin_settings_saved', true, getMaskedMessage('EXTENSION_PROBLEM_NOT_INSTALLED', 'autopurge'));
                }
 
                // Load final template
                }
 
                // Load final template