]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-config_beg.php
New naming convention applied to many functions, see #118 for details
[mailer.git] / inc / modules / admin / what-config_beg.php
index 70d591f6e9c67e10b52d9a2000baca17a6641d3e..7200379faf5d1bb5a074009d800818abc47685fd 100644 (file)
@@ -47,9 +47,9 @@ ADD_DESCR('admin', __FILE__);
 
 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();
@@ -60,13 +60,13 @@ if (IS_FORM_SENT()) {
        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)