]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-config_register2.php
AJAX installation is 'basicly finished' :) Plus I threw in a small christmas present...
[mailer.git] / inc / modules / admin / what-config_register2.php
index 32f87c17edf19670e94ae982892ec6fe192b1085..30aac7adc97c09e8739ce415dc3c33771ed2065b 100644 (file)
@@ -18,8 +18,8 @@
  * $Author::                                                          $ *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * Copyright (c) 2009 - 2011 by Mailer Developer Team                   *
- * For more information visit: http://www.mxchange.org                  *
+ * Copyright (c) 2009 - 2012 by Mailer Developer Team                   *
+ * For more information visit: http://mxchange.org                      *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
  * it under the terms of the GNU General Public License as published by *
@@ -45,10 +45,10 @@ if ((!defined('__SECURITY')) || (!isAdmin())) {
 // Add description as navigation point
 addYouAreHereLink('admin', __FILE__);
 
-if (isFormSent()) {
+if (isFormSent('save_config')) {
        // Calculate timestamp from selections...
-       setPostRequestParameter('ip_timeout', createEpocheTimeFromSelections('ip_timeout', postRequestArray()));
-       setPostRequestParameter('least_cats', round(postRequestParameter('least_cats')));
+       setPostRequestElement('ip_timeout', createEpocheTimeFromSelections('ip_timeout', postRequestArray()));
+       setPostRequestElement('least_cats', round(postRequestElement('least_cats')));
 
        // Save settings
        adminSaveSettingsFromPostData();
@@ -61,7 +61,7 @@ if (isFormSent()) {
        $content['register_generate_password_empty'] = addSelectionBox('yn', getRegisterGeneratePasswordEmpty(), 'register_generate_password_empty');
 
        // Load normal template
-       loadTemplate('admin_config_register2', false, $content);
+       loadTemplate('admin_config_register2', FALSE, $content);
 }
 
 // [EOF]