]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-config_register2.php
More rewrites to configuration:
[mailer.git] / inc / modules / admin / what-config_register2.php
index 209a75e89c2830560f00f6d4cfbe192377bcc2bb..b18e01787de2acd774dc74a84c6057a7759dd21b 100644 (file)
@@ -45,7 +45,7 @@ if ((!defined('__SECURITY')) || (!isAdmin())) {
 // Add description as navigation point
 addYouAreHereLink('admin', __FILE__);
 
-if (isFormSent()) {
+if (isFormSent('save_config')) {
        // Calculate timestamp from selections...
        setPostRequestElement('ip_timeout', createEpocheTimeFromSelections('ip_timeout', postRequestArray()));
        setPostRequestElement('least_cats', round(postRequestElement('least_cats')));
@@ -54,11 +54,7 @@ if (isFormSent()) {
        adminSaveSettingsFromPostData();
 } else {
        // Remember stuff in constants
-       $content['display_refid']                    = addSelectionBox('yn', getDisplayRefid()                 , 'display_refid');
-       $content['ip_timeout']                       = createConfigurationTimeSelections('ip_timeout', 'Dhm');
-       $content['check_double_email']               = addSelectionBox('yn', getCheckDoubleEmail()             , 'check_double_email');
-       $content['register_default']                 = addSelectionBox('yn', getRegisterDefault()              , 'register_default');
-       $content['register_generate_password_empty'] = addSelectionBox('yn', getRegisterGeneratePasswordEmpty(), 'register_generate_password_empty');
+       $content['ip_timeout'] = createConfigurationTimeSelections('ip_timeout', 'Dhm');
 
        // Load normal template
        loadTemplate('admin_config_register2', FALSE, $content);