* $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 *
// 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'));
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');
$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
$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]