X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-config_beg.php;h=f202e78c296081dc6358cc719ef31030b29ae49b;hb=4f7df133f736da124e6f7bd02008b9093f736451;hp=786d5c43852a2797943417491e59779ccc81687f;hpb=56931cd9321119dd37372bd16d6c552857e40066;p=mailer.git diff --git a/inc/modules/admin/what-config_beg.php b/inc/modules/admin/what-config_beg.php index 786d5c4385..f202e78c29 100644 --- a/inc/modules/admin/what-config_beg.php +++ b/inc/modules/admin/what-config_beg.php @@ -16,8 +16,8 @@ * $Author:: $ * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * - * Copyright (c) 2009 - 2011 by Mailer Developer Team * - * For more information visit: http://www.mxchange.org * + * Copyright (c) 2009 - 2012 by Mailer Developer Team * + * For more information visit: http://mxchange.org * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * @@ -43,7 +43,7 @@ if ((!defined('__SECURITY')) || (!isAdmin())) { // Add description as navigation point addYouAreHereLink('admin', __FILE__); -if (isFormSent()) { +if (isFormSent('save_config')) { // Replace german decimal comma with computer decimal dot convertCommaToDotInPostDataArray(array('beg_points', 'beg_points_max', 'beg_notify_bonus')); @@ -51,9 +51,9 @@ if (isFormSent()) { adminSaveSettingsFromPostData(); // Remember new settings - setConfigEntry('beg_rallye' , postRequestParameter('beg_rallye')); - setConfigEntry('beg_rallye_enable_notify' , postRequestParameter('beg_rallye_enable_notify')); - setConfigEntry('beg_rallye_disable_notify', postRequestParameter('beg_rallye_disable_notify')); + setConfigEntry('beg_rallye' , postRequestElement('beg_rallye')); + setConfigEntry('beg_rallye_enable_notify' , postRequestElement('beg_rallye_enable_notify')); + setConfigEntry('beg_rallye_disable_notify', postRequestElement('beg_rallye_disable_notify')); } else { // Prepare constants for the template $content['timeout'] = createConfigurationTimeSelections('beg_timeout' , 'Dhm'); @@ -61,15 +61,8 @@ if (isFormSent()) { $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) { - $content[$entry . '_y'] = ''; - $content[$entry . '_n'] = ''; - $content[$entry . '_' . strtolower(getConfig('beg_' . $entry))] = ' checked="checked"'; - } // END - foreach - // Init elements for faker-mode - foreach (array('pay_mode_img','pay_mode_js','pay_mode_both','pay_mode_none') as $entry) { + foreach (array('pay_mode_img', 'pay_mode_js', 'pay_mode_both', 'pay_mode_none') as $entry) { $content[$entry] = ''; } // END - foreach @@ -77,10 +70,10 @@ if (isFormSent()) { $content['pay_mode_' . strtolower(getBegPayMode())] = ' selected="selected"'; // Member selection box - $content['beg_userid'] = 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); + loadTemplate('admin_config_beg', FALSE, $content); } // [EOF]