// Add description as navigation point
ADD_DESCR('admin', __FILE__);
-if (IS_FORM_SENT()) {
+if (isFormSent()) {
// Replace german decimal commas to computer decimal dots
- REQUEST_POST('login_bonus') = convertCommaToDot(REQUEST_POST('login_bonus') );
- REQUEST_POST('turbo_bonus') = convertCommaToDot(REQUEST_POST('turbo_bonus') );
- REQUEST_POST('bonus_ref') = convertCommaToDot(REQUEST_POST('bonus_ref') );
- REQUEST_POST('bonus_order') = convertCommaToDot(REQUEST_POST('bonus_order') );
+ REQUEST_SET_POST('login_bonus', convertCommaToDot(REQUEST_POST('login_bonus')));
+ REQUEST_SET_POST('turbo_bonus', convertCommaToDot(REQUEST_POST('turbo_bonus')));
+ REQUEST_SET_POST('bonus_ref', convertCommaToDot(REQUEST_POST('bonus_ref')));
+ REQUEST_SET_POST('bonus_order', convertCommaToDot(REQUEST_POST('bonus_order')));
REQUEST_SET_POST('bonus_notify_points', convertCommaToDot(REQUEST_POST('bonus_notify_points')));
// Generate string for saving ranks
if (!empty($rate)) $RATES[] = $rate;
}
REQUEST_SET_POST('turbo_rates', trim(implode(';', $RATES)));
- REQUEST_UNSET_POST(('rate'));
+ REQUEST_UNSET_POST('rate');
// Automatically calculate bonus points for ranks 2 and 3 when not set
- if (!REQUEST_ISSET_POST(('turbo_rates'))) REQUEST_SET_POST('turbo_rates', "".round(getConfig('turbo_bonus') / 2).';'.round(getConfig('turbo_bonus') / 4)."");
+ if (!REQUEST_ISSET_POST(('turbo_rates'))) REQUEST_SET_POST('turbo_rates', ''.round(getConfig('turbo_bonus') / 2).';'.round(getConfig('turbo_bonus') / 4).'');
// Save data
ADMIN_SAVE_SETTINGS_POST();
define('__TLINES_VALUE', getConfig('bonus_lines'));
// Transfer options to template __MEMBER_SELECTION
- define('__MEMBER_SELECTION', ADD_MEMBER_SELECTION_BOX(getConfig('bonus_uid'), false, true, true, "bonus_uid"));
+ define('__MEMBER_SELECTION', ADD_MEMBER_SELECTION_BOX(getConfig('bonus_uid'), false, true, true, 'bonus_uid'));
// Initialize array for the points list
//die("*".getConfig('turbo_rates')."*");