X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-config_beg.php;h=853d037f81f7f3f78e68cfd4ba1b8f4f3fb5ccaf;hb=ee3a0b42f93de7676fca549c866c1c2e6f3f0576;hp=537781600552fd7ad5ac5e904dd6c5e96d6a5314;hpb=76740e48546bb3fdb9fca65d8d205765f2bd4d68;p=mailer.git diff --git a/inc/modules/admin/what-config_beg.php b/inc/modules/admin/what-config_beg.php index 5377816005..853d037f81 100644 --- a/inc/modules/admin/what-config_beg.php +++ b/inc/modules/admin/what-config_beg.php @@ -17,7 +17,7 @@ * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * * Copyright (c) 2009 - 2011 by Mailer Developer Team * - * For more information visit: http://www.mxchange.org * + * 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 * @@ -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', '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