]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-config_bonus.php
More improved SQL queries
[mailer.git] / inc / modules / admin / what-config_bonus.php
index 63e933d9f336e95c7776bfc251147d247e1ef8f0..eacf938ace1f6b4002ed56fcb9cc0d3dbf3b3f01 100644 (file)
@@ -64,7 +64,7 @@ if (isset($_POST['ok'])) {
        ADMIN_SAVE_SETTINGS($_POST);
 
        // Remember new settings
-       getConfig('bonus_active')    = $_POST['bonus_active'];
+       $_CONFIG['bonus_active']    = $_POST['bonus_active'];
        $_CONFIG['bonus_en_notify'] = $_POST['bonus_en_notify'];
        $_CONFIG['bonus_di_notify'] = $_POST['bonus_di_notify'];
 } else {
@@ -89,12 +89,12 @@ if (isset($_POST['ok'])) {
        if (getConfig('turbo_rates') == "") $RANKS = array(round(getConfig('turbo_bonus') / 2), round(getConfig('turbo_bonus') / 4));
 
        // Generate list
-       $OUT = "<OL start=\"2\">\n";
+       $OUT = "<ol start=\"2\">\n";
        $cnt = 0;
        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;<FONT class=\"admin_notes\">(".POINTS.")</FONT?</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++;
        }
@@ -104,9 +104,9 @@ if (isset($_POST['ok'])) {
 
        // 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;<FONT class=\"admin_notes\">(".POINTS.")</FONT?</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";
+       $OUT .= "</ol>\n";
        define('__TRATES_LIST', $OUT);
 
        define('__LOGIN_TIMEOUT_SELECTION', CREATE_TIME_SELECTIONS(getConfig('login_timeout')    , "login_timeout"    , "WDh"));