X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-config_bonus.php;h=eacf938ace1f6b4002ed56fcb9cc0d3dbf3b3f01;hb=397eb5dee2611cfaa1ff494d73e6785b88109cd6;hp=63e933d9f336e95c7776bfc251147d247e1ef8f0;hpb=f9a9c09e1ae257449bfd98f8854e321efba1dc3c;p=mailer.git diff --git a/inc/modules/admin/what-config_bonus.php b/inc/modules/admin/what-config_bonus.php index 63e933d9f3..eacf938ace 100644 --- a/inc/modules/admin/what-config_bonus.php +++ b/inc/modules/admin/what-config_bonus.php @@ -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 = "
    \n"; + $OUT = "
      \n"; $cnt = 0; foreach ($RANKS as $k => $rate) { if (!empty($rate)) { // Print only when something is in - $OUT .= "
    1.  (".POINTS.")\n"; + $OUT .= "
    2.  
      ({!POINTS!})\n"; } $cnt++; } @@ -104,9 +104,9 @@ if (isset($_POST['ok'])) { // Add more empty fields for ($i = $cnt; $i < $max; $i++) { - $OUT .= "
    3.  (".POINTS.")\n"; + $OUT .= "
    4.  
      ({!POINTS!})\n"; } - $OUT .= "
    \n"; + $OUT .= "
\n"; define('__TRATES_LIST', $OUT); define('__LOGIN_TIMEOUT_SELECTION', CREATE_TIME_SELECTIONS(getConfig('login_timeout') , "login_timeout" , "WDh"));