]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-config_bonus.php
Several more constants rewritten to getConfig()
[mailer.git] / inc / modules / admin / what-config_bonus.php
index 84912169d5cc332df93dc0aaa7e708401fc47be0..8c4d5497bbead05ef70cd90106f1b95315e4a81e 100644 (file)
@@ -61,10 +61,10 @@ if (isFormSent()) {
                if (!empty($rate)) $RATES[] = $rate;
        }
        REQUEST_SET_POST('turbo_rates', trim(implode(';', $RATES)));
-       REQUEST_UNSET_POST(('rate'));
+       REQUEST_UNSET_POST('rate');
 
        // Automatically calculate bonus points for ranks 2 and 3 when not set
-       if (!REQUEST_ISSET_POST(('turbo_rates'))) REQUEST_SET_POST('turbo_rates', "".round(getConfig('turbo_bonus') / 2).';'.round(getConfig('turbo_bonus') / 4)."");
+       if (!REQUEST_ISSET_POST(('turbo_rates'))) REQUEST_SET_POST('turbo_rates', ''.round(getConfig('turbo_bonus') / 2).';'.round(getConfig('turbo_bonus') / 4).'');
 
        // Save data
        ADMIN_SAVE_SETTINGS_POST();
@@ -85,7 +85,7 @@ if (isFormSent()) {
        define('__TLINES_VALUE', getConfig('bonus_lines'));
 
        // Transfer options to template __MEMBER_SELECTION
-       define('__MEMBER_SELECTION', ADD_MEMBER_SELECTION_BOX(getConfig('bonus_uid'), false, true, true, "bonus_uid"));
+       define('__MEMBER_SELECTION', ADD_MEMBER_SELECTION_BOX(getConfig('bonus_uid'), false, true, true, 'bonus_uid'));
 
        // Initialize array for the points list
        //die("*".getConfig('turbo_rates')."*");
@@ -100,7 +100,7 @@ if (isFormSent()) {
        foreach ($RANKS as $k => $rate) {
                if (!empty($rate))      {
                        // Print only when something is in
-                       $OUT .= "  <li><input type=\"text\" name=\"rate[".($k + 2)."]\" class=\"admin_normal\" size=\"4\" maxlength=\"7\" value=\"".$rate."\">&nbsp;<div class=\"admin_notes\">({!POINTS!})</div?</li>\n";
+                       $OUT .= "  <li><input type=\"text\" name=\"rate[".($k + 2)."]\" class=\"admin_normal\" size=\"4\" maxlength=\"7\" value=\"".$rate."\">&nbsp;<div class=\"admin_notes\">({?POINTS?})</div?</li>\n";
                }
                $cnt++;
        }
@@ -110,7 +110,7 @@ if (isFormSent()) {
 
        // Add more empty fields
        for ($i = $cnt; $i < $max; $i++) {
-               $OUT .= "  <li><input type=\"text\" name=\"rate[".($i+2)."]\" class=\"admin_normal\" size=\"4\" maxlength=\"7\">&nbsp;<div class=\"admin_notes\">({!POINTS!})</div?</li>\n";
+               $OUT .= "  <li><input type=\"text\" name=\"rate[".($i+2)."]\" class=\"admin_normal\" size=\"4\" maxlength=\"7\">&nbsp;<div class=\"admin_notes\">({?POINTS?})</div?</li>\n";
        }
        $OUT .= "</ol>\n";
        define('__TRATES_LIST', $OUT);