* $Author:: $ *
* -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2009 by Roland Haeder *
- * Copyright (c) 2009, 2010 by Mailer Developer Team *
+ * Copyright (c) 2009 - 2011 by Mailer Developer Team *
* For more information visit: http://www.mxchange.org *
* *
* This program is free software; you can redistribute it and/or modify *
} // END - if
// Add description as navigation point
-addMenuDescription('admin', __FILE__);
+addYouAreHereLink('admin', __FILE__);
if (isFormSent()) {
- // Replace german decimal commas to computer decimal dots
- setPostRequestParameter('login_bonus', convertCommaToDot(postRequestParameter('login_bonus')));
- setPostRequestParameter('turbo_bonus', convertCommaToDot(postRequestParameter('turbo_bonus')));
- setPostRequestParameter('bonus_ref', convertCommaToDot(postRequestParameter('bonus_ref')));
- setPostRequestParameter('bonus_order', convertCommaToDot(postRequestParameter('bonus_order')));
- setPostRequestParameter('bonus_notify_points', convertCommaToDot(postRequestParameter('bonus_notify_points')));
+ // Replace german decimal comma with computer decimal dot
+ convertCommaToDotInPostDataArray(array('login_bonus', 'turbo_bonus', 'bonus_ref', 'bonus_order', 'bonus_notify_points'));
// Generate string for saving ranks
setPostRequestParameter('turbo_rates', '');
unsetPostRequestParameter('rate');
// Automatically calculate bonus points for ranks 2 and 3 when not set
- if (!isPostRequestParameterSet('turbo_rates')) setPostRequestParameter('turbo_rates', ''.round(getConfig('turbo_bonus') / 2).';'.round(getConfig('turbo_bonus') / 4).'');
+ if (!isPostRequestParameterSet('turbo_rates')) {
+ setPostRequestParameter('turbo_rates', ''.round(getConfig('turbo_bonus') / 2).';'.round(getConfig('turbo_bonus') / 4).'');
+ } // END - if
// Save data
adminSaveSettingsFromPostData();
setConfigEntry('bonus_disable_notify', postRequestParameter('bonus_disable_notify'));
} else {
// Transfer options to template
- $content['form_selection'] = addMemberSelectionBox(getBonusUserId(), false, true, true, 'bonus_userid');
+ $content['bonus_userid'] = addMemberSelectionBox(getBonusUserid(), false, true, true, 'bonus_userid');
// Initialize array for the points list
$RANKS = explode(';', getConfig('turbo_rates'));
$content['trates_list'] = $OUT;
// Selection boxes
- $content['login_timeout_selection'] = createTimeSelections(getConfig('login_timeout') , 'login_timeout' , 'WDh');
- $content['bonus_timeout_selection'] = createTimeSelections(getConfig('bonus_timeout') , 'bonus_timeout' , 'WDh');
- $content['wait_selection'] = createTimeSelections(getConfig('bonus_notify_wait'), 'bonus_notify_wait', 'ms' );
+ $content['login_timeout_selection'] = createConfigurationTimeSelections('login_timeout' , 'WDh');
+ $content['bonus_timeout_selection'] = createConfigurationTimeSelections('bonus_timeout' , 'WDh');
+ $content['wait_selection'] = createConfigurationTimeSelections('bonus_notify_wait', 'ms' );
// Init Y/N selections
foreach (array('active','login_yn','stats_yn','order_yn','ref_yn','click_yn','enable_notify','disable_notify','new_member_notify','include_own') as $entry) {