* svn:keywords Date Revision" (autoprobset!) at least!!!!!! *
* -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2009 by Roland Haeder *
+ * Copyright (c) 2009, 2010 by Mailer Developer Team *
* For more information visit: http://www.mxchange.org *
* *
* This program is free software; you can redistribute it and/or modify *
adminSaveSettingsFromPostData();
// Remember new settings
- setConfigEntry('beg_rallye' , postRequestParameter('beg_rallye'));
- setConfigEntry('beg_ral_en_notify', postRequestParameter('beg_ral_en_notify'));
- setConfigEntry('beg_ral_di_notify', postRequestParameter('beg_ral_di_notify'));
+ 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'));
} else {
// Prepare constants for the template
$content['points'] = translateComma(getConfig('beg_points') , false);
$content['wait_selection'] = createTimeSelections(getConfig('beg_notify_wait') , 'beg_notify_wait' , 'ms' );
// Init all Y/N selections
- foreach (array('rallye','activate','mode','ral_en_notify','ral_di_notify','new_mem_notify','include_own') as $entry) {
+ 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('rallye_' . $entry))] = ' checked="checked"';
+ $content[$entry . '_' . strtolower(getConfig('beg_' . $entry))] = ' checked="checked"';
} // END - foreach
- // Init elements
- foreach (array('pay_mode_img','pay_mode_js','pay_mode_both','pay_mode_none') as $key) {
- $content[$entry] = '';
+ // Init elements for faker-mode
+ foreach (array('pay_mode_img','pay_mode_js','pay_mode_both','pay_mode_none') as $entry) {
+ $content[$entry] = '';
} // END - foreach
- // Set pay mode
- $content['pay_mode_'.strtolower(getConfig('beg_pay_mode'))] = ' selected="selected"';
+ // Set default faker-mode
+ $content['pay_mode_' . strtolower(getConfig('beg_pay_mode'))] = ' selected="selected"';
+
+ // Init beg_mode elements
+ foreach (array('direct', 'ref') as $entry) {
+ $content['beg_mode_' . $entry] = '';
+ } // END - foreach
+
+ // Set default mode
+ $content['beg_mode_' . strtolower(getConfig('beg_mode'))] = ' checked="checked"';
// Member selection box
- $content['member_selection'] = addMemberSelectionBox(getConfig('beg_userid'), false, true, true, 'beg_userid');
+ $content['form_selection'] = addMemberSelectionBox(getConfig('beg_userid'), false, true, true, 'beg_userid');
// Load form template
loadTemplate('admin_config_beg', false, $content);