]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-config_doubler.php
earning_name renamed to earning_provider
[mailer.git] / inc / modules / admin / what-config_doubler.php
index acb86ea6e806b7875668e684c74d1eb034d39903..83714c3f7883cfd9173b975813266f9cb5b642b5 100644 (file)
@@ -44,23 +44,12 @@ if ((!defined('__SECURITY')) || (!isAdmin())) {
 addYouAreHereLink('admin', __FILE__);
 
 if (isFormSent()) {
-       // Replace commata with decimal dot
-       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')));
+       // Replace german decimal comma with computer decimal dot
+       convertCommaToDotInPostDataArray(array('doubler_charge', 'doubler_ref', 'doubler_min', 'doubler_max', 'doubler_left'));
 
        // Save settings
        adminSaveSettingsFromPostData();
 } else {
-       // Init all Y/N selections
-       foreach (array('jackpot','own','sent_all') as $entry) {
-               $content[$entry . '_y'] = '';
-               $content[$entry . '_n'] = '';
-               $content[$entry . '_' . strtolower(getConfig('doubler_' . $entry))] = ' checked="checked"';
-       } // END - foreach
-
        // Init other selections
        foreach (array('send_mode_direct','send_mode_reset') as $entry) {
                $content[$entry] = '';
@@ -72,7 +61,7 @@ if (isFormSent()) {
        } // END - foreach
 
        // Transfer options
-       $content['form_selection'] = addMemberSelectionBox(getConfig('doubler_userid'), false, true, true, 'doubler_userid');
+       $content['doubler_userid'] = addMemberSelectionBox(getConfig('doubler_userid'), false, true, true, 'doubler_userid');
 
        // Number of rows to display (option lines!!!)
        foreach (array('new','pay','old') as $entry) {
@@ -100,7 +89,7 @@ if (isFormSent()) {
        } // END - foreach
 
        // Timeout selection box or input box?
-       $content['timeout_selection'] = createTimeSelections(getConfig('doubler_timeout')  , 'doubler_timeout'  , 'WDh');
+       $content['timeout_selection'] = createConfigurationTimeSelections('doubler_timeout', 'WDh');
 
        // Load template
        loadTemplate('admin_config_doubler', false, $content);