]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-config_validator.php
mailer project continued:
[mailer.git] / inc / modules / admin / what-config_validator.php
index eda1ed0e8a96ca8576952952ca10ef69957abce8..b239445ad923033c30cb02f157d12fdef5fd3bf7 100644 (file)
@@ -16,8 +16,8 @@
  * $Author::                                                          $ *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * Copyright (c) 2009, 2010 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 *
@@ -37,7 +37,7 @@
 
 // Some security stuff...
 if ((!defined('__SECURITY')) || (!isAdmin())) {
-       die();
+       exit();
 } // END - if
 
 // Add description as navigation point
@@ -47,19 +47,8 @@ if (isFormSent()) {
        // Save data
        adminSaveSettingsFromPostData();
 } else {
-       // Prepare content (default)
-       $content['enable_validator_yes'] = ' checked="checked"';
-       $content['enable_validator_no']  = '';
-
-       // Is the configuration is "N"?
-       if (getConfig('enable_validator') == 'N') {
-               // Set them again
-               $content['enable_validator_yes'] = '';
-               $content['enable_validator_no']  = ' checked="checked"';
-       } // END - if
-
        // Load template
-       loadTemplate('admin_config_validator', false, $content);
+       loadTemplate('admin_config_validator');
 }
 
 // [EOF]