fooRequestElementBar() functions renamed, adding of request parameters added:
[mailer.git] / inc / modules / admin / what-list_bonus.php
index 318b75fb216eba7b19abc1c561b6201ec561c81f..581855e47a089e32c8032c4196269d1d145f0c81 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /************************************************************************
- * MXChange v0.2.1                                    Start: 02/04/2005 *
- * ================                             Last change: 11/19/2005 *
+ * Mailer v0.2.1-FINAL                                Start: 02/04/2005 *
+ * ===================                          Last change: 11/19/2005 *
  *                                                                      *
  * -------------------------------------------------------------------- *
  * File              : what-list_bonus.php                              *
@@ -46,7 +46,7 @@ addMenuDescription('admin', __FILE__);
 
 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;
@@ -57,11 +57,11 @@ if (getConfig('bonus_active') == 'Y') {
        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 ???
@@ -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_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 {
-                       $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