]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-config_beg.php
Referal system refactured (and some parts fixed), wrapper function introduced:
[mailer.git] / inc / modules / admin / what-config_beg.php
index bc8872712f4679a0c22cc7e80d1d62709883d362..786d5c43852a2797943417491e59779ccc81687f 100644 (file)
@@ -58,7 +58,7 @@ if (isFormSent()) {
        // Prepare constants for the template
        $content['timeout']          = createConfigurationTimeSelections('beg_timeout'       , 'Dhm');
        $content['userid_timeout']   = createConfigurationTimeSelections('beg_userid_timeout', 'Dhm');
-       $content['ip_timeout']       = createConfigurationTimeSelections('beg_ip_timeout'    , 'Dhm');
+       $content['beg_ip_timeout']   = createConfigurationTimeSelections('beg_ip_timeout'    , 'Dhm');
        $content['wait_selection']   = createConfigurationTimeSelections('beg_notify_wait'   , 'ms' );
 
        // Init all Y/N selections
@@ -76,16 +76,8 @@ if (isFormSent()) {
        // Set default faker-mode
        $content['pay_mode_' . strtolower(getBegPayMode())] = ' selected="selected"';
 
-       // Init beg_mode elements
-       foreach (array('direct', 'ref') as $entry) {
-               $content['beg_mode_' . $entry] = '';
-       } // END - foreach
-
-       // Set default mode
-       $content['beg_mode_' . strtolower(getBegMode())] = ' checked="checked"';
-
        // Member selection box
-       $content['form_selection'] = addMemberSelectionBox(getBegUserid(), false, true, true, 'beg_userid');
+       $content['beg_userid'] = addMemberSelectionBox(getBegUserid(), false, true, true, 'beg_userid');
 
        // Load form template
        loadTemplate('admin_config_beg', false, $content);