X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-config_bonus.php;h=e7b44c3eb760618595d46870db939f14e5482d56;hb=64ad7e20acdc9b16363e25cecc3e7f2a0f435a37;hp=fc320e7d81dad06f071dd8acf4fc98bfd9d0d160;hpb=4bd3e0bc483e982bc2e000337372a0e3fd4ca212;p=mailer.git diff --git a/inc/modules/admin/what-config_bonus.php b/inc/modules/admin/what-config_bonus.php index fc320e7d81..e7b44c3eb7 100644 --- a/inc/modules/admin/what-config_bonus.php +++ b/inc/modules/admin/what-config_bonus.php @@ -14,8 +14,6 @@ * $Date:: $ * * $Tag:: 0.2.1-FINAL $ * * $Author:: $ * - * Needs to be in all Files and every File needs "svn propset * - * svn:keywords Date Revision" (autoprobset!) at least!!!!!! * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * * Copyright (c) 2009, 2010 by Mailer Developer Team * @@ -43,7 +41,7 @@ if ((!defined('__SECURITY')) || (!isAdmin())) { } // END - if // Add description as navigation point -addMenuDescription('admin', __FILE__); +addYouAreHereLink('admin', __FILE__); if (isFormSent()) { // Replace german decimal commas to computer decimal dots @@ -70,20 +68,12 @@ if (isFormSent()) { adminSaveSettingsFromPostData(); // Remember new settings - setConfigEntry('bonus_active' , postRequestParameter('bonus_active')); - setConfigEntry('bonus_en_notify', postRequestParameter('bonus_en_notify')); - setConfigEntry('bonus_di_notify', postRequestParameter('bonus_di_notify')); + setConfigEntry('bonus_active' , postRequestParameter('bonus_active')); + setConfigEntry('bonus_enable_notify' , postRequestParameter('bonus_enable_notify')); + setConfigEntry('bonus_disable_notify', postRequestParameter('bonus_disable_notify')); } else { - // Prepare contants for the template - $content['login'] = translateComma(getConfig('login_bonus') , false); - $content['turbo'] = translateComma(getConfig('turbo_bonus') , false); - $content['order'] = translateComma(getConfig('bonus_order') , false); - $content['ref'] = translateComma(getConfig('bonus_ref') , false); - $content['stats'] = translateComma(getConfig('bonus_stats') , false); - $content['notify'] = translateComma(getConfig('bonus_notify_points'), false); - // Transfer options to template - $content['member_selection'] = addMemberSelectionBox(getConfig('bonus_userid'), false, true, true, 'bonus_userid'); + $content['form_selection'] = addMemberSelectionBox(getBonusUserId(), false, true, true, 'bonus_userid'); // Initialize array for the points list $RANKS = explode(';', getConfig('turbo_rates')); @@ -93,22 +83,22 @@ if (isFormSent()) { // Generate list $OUT = '
    '; - $cnt = '0'; + $count = '0'; foreach ($RANKS as $k => $rate) { if (!empty($rate)) { // Print only when something is in - $OUT .= '
  1. ({?POINTS?})
  2. '; + $OUT .= '
  3. ({?POINTS?})
  4. '; } // END - if - $cnt++; + $count++; } // END - foreach // Maxmium entries $max = 10; - if ($cnt >= 8) $max = $cnt+3; + if ($count >= 8) $max = $count+3; // Add more empty fields - for ($i = $cnt; $i < $max; $i++) { - $OUT .= '
  5. ({?POINTS?})
  6. '; + for ($i = $count; $i < $max; $i++) { + $OUT .= '
  7. ({?POINTS?})
  8. '; } // END - for $OUT .= '
'; $content['trates_list'] = $OUT; @@ -119,7 +109,7 @@ if (isFormSent()) { $content['wait_selection'] = createTimeSelections(getConfig('bonus_notify_wait'), 'bonus_notify_wait', 'ms' ); // Init Y/N selections - foreach (array('active','login_yn','stats_yn','order_yn','ref_yn','click_yn','en_notify','di_notify','new_mem_notify','include_own') as $entry) { + foreach (array('active','login_yn','stats_yn','order_yn','ref_yn','click_yn','enable_notify','disable_notify','new_member_notify','include_own') as $entry) { $content[$entry . '_y'] = ''; $content[$entry . '_n'] = ''; $content[$entry . '_' . strtolower(getConfig('bonus_' . $entry))] = ' checked="checked"';