]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-config_menu.php
Large code cleanups:
[mailer.git] / inc / modules / admin / what-config_menu.php
index e8f1c7b3b8903d26e4d32e48978c3dbbd18b72f4..406d4325f8b553eb6eecf0141603545a60b6b323 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /************************************************************************
  * Mailer v0.2.1-FINAL                                Start: 10/21/2009 *
- * ================                             Last change: 10/21/2009 *
+ * ===================                          Last change: 10/21/2009 *
  *                                                                      *
  * -------------------------------------------------------------------- *
  * File              : what-config_menu.php                             *
  * $Date::                                                            $ *
  * $Tag:: 0.2.1-FINAL                                                 $ *
  * $Author::                                                          $ *
- * Needs to be in all Files and every File needs "svn propset           *
- * svn:keywords Date Revision" (autoprobset!) at least!!!!!!            *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * For more information visit: http://www.mxchange.org                  *
+ * Copyright (c) 2009 - 2011 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 *
@@ -42,21 +41,14 @@ if ((!defined('__SECURITY')) || (!isAdmin())) {
 } // END - if
 
 // Add description as navigation point
-addMenuDescription('admin', __FILE__);
+addYouAreHereLink('admin', __FILE__);
 
 if (isFormSent()) {
        // Save settings
        adminSaveSettingsFromPostData();
 } else {
-       // Set all entries
-       foreach (array('guest_menu_advert_enabled','member_menu_advert_enabled') as $entry) {
-               $content[$entry . '_y'] = '';
-               $content[$entry . '_n'] = '';
-               $content[$entry . '_' . strtolower(getConfig($entry))] = ' checked="checked"';
-       } // END - if
-
        // Load form template
-       loadTemplate('admin_config_menu', false, $content);
+       loadTemplate('admin_config_menu');
 }
 
 // [EOF]