* $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 *
// Some security stuff...
if ((!defined('__SECURITY')) || (!isAdmin())) {
- die();
+ exit();
} // END - if
// Add description as navigation point
-addMenuDescription('admin', __FILE__);
+addYouAreHereLink('admin', __FILE__);
-if (isFormSent()) {
+if (isFormSent('save_config')) {
// 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]