if (IS_FORM_SENT()) {
// Translate german decimal commas to computer decimal dots
- REQUEST_SET_POST('beg_points' , REVERT_COMMA(REQUEST_POST('beg_points') ));
- REQUEST_SET_POST('beg_points_max' , REVERT_COMMA(REQUEST_POST('beg_points_max') ));
- REQUEST_SET_POST('beg_notify_bonus', REVERT_COMMA(REQUEST_POST('beg_notify_bonus')));
+ REQUEST_SET_POST('beg_points' , convertCommaToDot(REQUEST_POST('beg_points') ));
+ REQUEST_SET_POST('beg_points_max' , convertCommaToDot(REQUEST_POST('beg_points_max') ));
+ REQUEST_SET_POST('beg_notify_bonus', convertCommaToDot(REQUEST_POST('beg_notify_bonus')));
// Save settings
ADMIN_SAVE_SETTINGS_POST();
setConfigEntry('beg_ral_di_notify', REQUEST_POST('beg_ral_di_notify'));
} else {
// Prepare constants for the template
- define('__BEG_POINTS' , TRANSLATE_COMMA(getConfig('beg_points') , false));
- define('__BEG_POINTS_MAX' , TRANSLATE_COMMA(getConfig('beg_points_max') , false));
- define('__BEG_NOTIFY_BONUS' , TRANSLATE_COMMA(getConfig('beg_notify_bonus'), false));
- define('__BEG_TIMEOUT' , CREATE_TIME_SELECTIONS(getConfig('beg_timeout') , "beg_timeout" , "Dhm"));
- define('__BEG_UID_TIMEOUT' , CREATE_TIME_SELECTIONS(getConfig('beg_uid_timeout'), "beg_uid_timeout", "Dhm"));
- define('__BEG_REMOTE_IP_TIMEOUT', CREATE_TIME_SELECTIONS(getConfig('beg_ip_timeout') , "beg_ip_timeout" , "Dhm"));
- define('__WAIT_SELECTION' , CREATE_TIME_SELECTIONS(getConfig('beg_notify_wait'), "beg_notify_wait", "ms" ));
+ define('__BEG_POINTS' , translateComma(getConfig('beg_points') , false));
+ define('__BEG_POINTS_MAX' , translateComma(getConfig('beg_points_max') , false));
+ define('__BEG_NOTIFY_BONUS' , translateComma(getConfig('beg_notify_bonus'), false));
+ define('__BEG_TIMEOUT' , createTimeSelections(getConfig('beg_timeout') , "beg_timeout" , "Dhm"));
+ define('__BEG_UID_TIMEOUT' , createTimeSelections(getConfig('beg_uid_timeout'), "beg_uid_timeout", "Dhm"));
+ define('__BEG_REMOTE_IP_TIMEOUT', createTimeSelections(getConfig('beg_ip_timeout') , "beg_ip_timeout" , "Dhm"));
+ define('__WAIT_SELECTION' , createTimeSelections(getConfig('beg_notify_wait'), "beg_notify_wait", "ms" ));
define('__BEG_RANKS' , getConfig('beg_ranks'));
// Activate / Deactivate beg rallye (Y/N)