<?php
/************************************************************************
- * MXChange v0.2.1 Start: 02/12/2005 *
- * ================ Last change: 02/12/2005 *
+ * Mailer v0.2.1-FINAL Start: 02/12/2005 *
+ * =================== Last change: 02/12/2005 *
* *
* -------------------------------------------------------------------- *
* File : what-config_doubler.php *
* 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 *
if (isFormSent()) {
// Replace commata with decimal dot
- setRequestPostElement('doubler_charge', (convertCommaToDot(postRequestElement('doubler_charge')) / 100));
- setRequestPostElement('doubler_ref' , (convertCommaToDot(postRequestElement('doubler_ref')) / 100));
- setRequestPostElement('doubler_min' , convertCommaToDot(postRequestElement('doubler_min')));
- setRequestPostElement('doubler_max' , convertCommaToDot(postRequestElement('doubler_max')));
- setRequestPostElement('doubler_left' , convertCommaToDot(postRequestElement('doubler_left')));
+ setPostRequestParameter('doubler_charge', convertCommaToDot(postRequestParameter('doubler_charge')));
+ setPostRequestParameter('doubler_ref' , convertCommaToDot(postRequestParameter('doubler_ref')));
+ setPostRequestParameter('doubler_min' , convertCommaToDot(postRequestParameter('doubler_min')));
+ setPostRequestParameter('doubler_max' , convertCommaToDot(postRequestParameter('doubler_max')));
+ setPostRequestParameter('doubler_left' , convertCommaToDot(postRequestParameter('doubler_left')));
// Save settings
adminSaveSettingsFromPostData();
} else {
- // Prepare data for the template
- // - Charge rate
- $content['charge'] = translateComma((getConfig('doubler_charge') * 100), false);
- // - Referal rate
- $content['referal'] = translateComma((getConfig('doubler_ref') * 100), false);
- // - Minimum points to double
- $content['minimum'] = translateComma(getConfig('doubler_min'), false);
- // - Maximum points to double
- $content['maximum'] = translateComma(getConfig('doubler_max'), false);
- // - Points left on users account after doubling
- $content['left'] = translateComma(getConfig('doubler_left'), false);
-
// Init all Y/N selections
foreach (array('jackpot','own','sent_all') as $entry) {
$content[$entry . '_y'] = '';
} // END - foreach
// Transfer options
- $content['member_selection'] = addMemberSelectionBox(getConfig('doubler_userid'), false, true, true, 'doubler_userid');
+ $content['form_selection'] = addMemberSelectionBox(getConfig('doubler_userid'), false, true, true, 'doubler_userid');
// Number of rows to display (option lines!!!)
foreach (array('new','pay','old') as $entry) {
- $content['display_' . $entry] = generateOptionList('/ARRAY/', array(5,10,20,30,40,50,100), array(5,10,20,30,40,50,100), getConfig('doubler_display_' . $entry));
+ $content['display_' . $entry] = generateOptionList(
+ '/ARRAY/',
+ array(
+ 5,
+ 10,
+ 20,
+ 30,
+ 40,
+ 50,
+ 100
+ ), array(
+ 5,
+ 10,
+ 20,
+ 30,
+ 40,
+ 50,
+ 100
+ ),
+ getConfig('doubler_display_' . $entry)
+ );
} // END - foreach
// Timeout selection box or input box?