]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-config_beg.php
'what' files should be loaded only once
[mailer.git] / inc / modules / admin / what-config_beg.php
index 537781600552fd7ad5ac5e904dd6c5e96d6a5314..853d037f81f7f3f78e68cfd4ba1b8f4f3fb5ccaf 100644 (file)
@@ -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