]> 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 726fae8205ef74d51272fc82d5741766dce3d052..b18e01787de2acd774dc74a84c6057a7759dd21b 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /************************************************************************
- * MXChange v0.2.1                                    Start: 10/12/2003 *
- * ===============                              Last change: 11/29/2005 *
+ * Mailer v0.2.1-FINAL                                Start: 10/12/2003 *
+ * ===================                          Last change: 11/29/2005 *
  *                                                                      *
  * -------------------------------------------------------------------- *
  * File              : what-config_register2.php                        *
  * -------------------------------------------------------------------- *
  *          Adapted from what-config_reg.php                            *
  * -------------------------------------------------------------------- *
+ * $Revision::                                                        $ *
+ * $Date::                                                            $ *
+ * $Tag:: 0.2.1-FINAL                                                 $ *
+ * $Author::                                                          $ *
+ * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * 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 *
 // Some security stuff...
 if ((!defined('__SECURITY')) || (!isAdmin())) {
        die();
-}
+} // END - if
 
 // Add description as navigation point
-addMenuDescription('admin', __FILE__);
+addYouAreHereLink('admin', __FILE__);
 
-if (isFormSent()) {
+if (isFormSent('save_config')) {
        // Calculate timestamp from selections...
-       setRequestPostElement('ip_timeout', createTimestampFromSelections('ip_timeout', postRequestArray()));
-       setRequestPostElement('least_cats', round(postRequestElement('least_cats')));
+       setPostRequestElement('ip_timeout', createEpocheTimeFromSelections('ip_timeout', postRequestArray()));
+       setPostRequestElement('least_cats', round(postRequestElement('least_cats')));
 
        // Save settings
        adminSaveSettingsFromPostData();
 } else {
        // Remember stuff in constants
-       $content['display_refid']      = addSelectionBox('yn', getConfig('display_refid')     , 'display_refid');
-       $content['ip_timeout']         = createTimeSelections(getConfig('ip_timeout')       , 'ip_timeout', 'Dhm');
-       $content['check_double_email'] = addSelectionBox('yn', getConfig('check_double_email'), 'check_double_email');
-       $content['check_double_pass']  = addSelectionBox('yn', getConfig('check_double_pass') , 'check_double_pass');
-       $content['register_default']   =addSelectionBox('yn', getConfig('register_default')  , 'register_default');
+       $content['ip_timeout'] = createConfigurationTimeSelections('ip_timeout', 'Dhm');
 
        // Load normal template
-       loadTemplate('admin_config_register2', false, $content);
+       loadTemplate('admin_config_register2', FALSE, $content);
 }
 
 // [EOF]