<?php
/************************************************************************
* Mailer v0.2.1-FINAL Start: 01/09/2005 *
- * ================ Last change: 01/09/2005 *
+ * =================== Last change: 01/09/2005 *
* *
* -------------------------------------------------------------------- *
* File : what-config_beg.php *
* $Date:: $ *
* $Tag:: 0.2.1-FINAL $ *
* $Author:: $ *
- * Needs to be in all Files and every File needs "svn propset *
- * 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 *
// Some security stuff...
if ((!defined('__SECURITY')) || (!isAdmin())) {
die();
-}
+} // END - if
// Add description as navigation point
addMenuDescription('admin', __FILE__);
if (isFormSent()) {
// Translate german decimal commas to computer decimal dots
- setRequestPostElement('beg_points' , convertCommaToDot(postRequestElement('beg_points') ));
- setRequestPostElement('beg_points_max' , convertCommaToDot(postRequestElement('beg_points_max') ));
- setRequestPostElement('beg_notify_bonus', convertCommaToDot(postRequestElement('beg_notify_bonus')));
+ setPostRequestParameter('beg_points' , convertCommaToDot(postRequestParameter('beg_points') ));
+ setPostRequestParameter('beg_points_max' , convertCommaToDot(postRequestParameter('beg_points_max') ));
+ setPostRequestParameter('beg_notify_bonus', convertCommaToDot(postRequestParameter('beg_notify_bonus')));
// Save settings
adminSaveSettingsFromPostData();
// Remember new settings
- setConfigEntry('beg_rallye' , postRequestElement('beg_rallye'));
- setConfigEntry('beg_ral_en_notify', postRequestElement('beg_ral_en_notify'));
- setConfigEntry('beg_ral_di_notify', postRequestElement('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 for faker-mode
+ foreach (array('pay_mode_img','pay_mode_js','pay_mode_both','pay_mode_none') as $entry) {
+ $content[$entry] = '';
} // END - foreach
- // Init elements
- foreach (array('pay_mode_img','pay_mode_js','pay_mode_both','pay_mode_none') as $key) {
- $content[$entry] = '';
+ // 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 pay mode
- $content['pay_mode_'.strtolower(getConfig('beg_pay_mode'))] = ' selected="selected"';
+ // 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);