X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-config_beg.php;h=a01277b134e896728234a9f0d02fec3402886331;hb=2272afc569a7b308e6c34a2d28457495e6b2483b;hp=f5e6f9373aa4372b0313c260c7eb6dc4ff236e6a;hpb=4ba2527b63b429e8572b4f36e4b9cfeecc75bdf4;p=mailer.git diff --git a/inc/modules/admin/what-config_beg.php b/inc/modules/admin/what-config_beg.php index f5e6f9373a..a01277b134 100644 --- a/inc/modules/admin/what-config_beg.php +++ b/inc/modules/admin/what-config_beg.php @@ -16,7 +16,7 @@ * $Author:: $ * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * - * Copyright (c) 2009, 2010 by Mailer Developer Team * + * Copyright (c) 2009 - 2011 by Mailer Developer Team * * For more information visit: http://www.mxchange.org * * * * This program is free software; you can redistribute it and/or modify * @@ -44,10 +44,8 @@ if ((!defined('__SECURITY')) || (!isAdmin())) { addYouAreHereLink('admin', __FILE__); if (isFormSent()) { - // Translate german decimal commas to computer decimal dots - setPostRequestParameter('beg_points' , convertCommaToDot(postRequestParameter('beg_points') )); - setPostRequestParameter('beg_points_max' , convertCommaToDot(postRequestParameter('beg_points_max') )); - setPostRequestParameter('beg_notify_bonus', convertCommaToDot(postRequestParameter('beg_notify_bonus'))); + // Replace german decimal comma with computer decimal dot + convertCommaToDotInPostDataArray(array('beg_points', 'beg_points_max', 'beg_notify_bonus')); // Save settings adminSaveSettingsFromPostData(); @@ -58,13 +56,10 @@ if (isFormSent()) { setConfigEntry('beg_rallye_disable_notify', postRequestParameter('beg_rallye_disable_notify')); } else { // Prepare constants for the template - $content['points'] = translateComma(getBegPoints() , false); - $content['points_max'] = translateComma(getBegPointsMax() , false); - $content['notify_bonus'] = translateComma(getBegNotifyBonus() , false); - $content['timeout'] = createTimeSelections(getBegTimeout() , 'beg_timeout' , 'Dhm'); - $content['userid_timeout'] = createTimeSelections(getBegUseridTimeout(), 'beg_userid_timeout', 'Dhm'); - $content['ip_timeout'] = createTimeSelections(getBegIpTimeout() , 'beg_ip_timeout' , 'Dhm'); - $content['wait_selection'] = createTimeSelections(getBegNotifyWait() , 'beg_notify_wait' , 'ms' ); + $content['timeout'] = createConfigurationTimeSelections('beg_timeout' , 'Dhm'); + $content['userid_timeout'] = createConfigurationTimeSelections('beg_userid_timeout', 'Dhm'); + $content['beg_ip_timeout'] = createConfigurationTimeSelections('beg_ip_timeout' , 'Dhm'); + $content['wait_selection'] = createConfigurationTimeSelections('beg_notify_wait' , 'ms' ); // Init all Y/N selections foreach (array('rallye', 'active', 'mode', 'rallye_enable_notify', 'rallye_disable_notify', 'new_member_notify', 'include_own') as $entry) { @@ -82,15 +77,15 @@ if (isFormSent()) { $content['pay_mode_' . strtolower(getBegPayMode())] = ' selected="selected"'; // Init beg_mode elements - foreach (array('direct', 'ref') as $entry) { - $content['beg_mode_' . $entry] = ''; + foreach (array('DIRECT', 'REF') as $entry) { + $content['beg_mode_' . strtolower($entry)] = ''; } // END - foreach // Set default mode $content['beg_mode_' . strtolower(getBegMode())] = ' checked="checked"'; // Member selection box - $content['form_selection'] = addMemberSelectionBox(getBegUserid(), false, true, true, 'beg_userid'); + $content['beg_userid'] = addMemberSelectionBox(getBegUserid(), false, true, true, 'beg_userid'); // Load form template loadTemplate('admin_config_beg', false, $content);