]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-maintenance.php
Filters for configurable userid exclusion added:
[mailer.git] / inc / modules / admin / what-maintenance.php
index 5f3154dcea12e19889f8bc62ad40c4abd03b41c7..83de3c02422873ac34c0de6948758dfcf6caa213 100644 (file)
  * $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                           *
- * 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 *
@@ -43,29 +41,29 @@ if ((!defined('__SECURITY')) || (!isAdmin())) {
 } // END - if
 
 // Add description as navigation point
-addMenuDescription('admin', __FILE__);
+addYouAreHereLink('admin', __FILE__);
 
 if (isFormSent()) {
        // De- or activate maintenance mode
-       switch (getConfig('maintenance')) {
+       switch (getMaintenance()) {
                case 'Y':
                        $target_mode = 'N';
-                       $out = '{--ADMIN_MAINTENANCE_DEACTIVATED--}';
+                       $message = '{--ADMIN_MAINTENANCE_DEACTIVATED--}';
                        break;
 
                case 'N':
                        $target_mode = 'Y';
-                       $out = '{--ADMIN_MAINTENANCE_ACTIVATED--}';
+                       $message = '{--ADMIN_MAINTENANCE_ACTIVATED--}';
                        break;
-       }
+       } // END - switch
 
        // Update config
        updateConfiguration('maintenance', $target_mode);
 
        // Load template
-       loadTemplate('admin_settings_saved', false, $out);
+       displayMessage($message);
 } else {
-       switch (getConfig('maintenance')) {
+       switch (getMaintenance()) {
                case 'Y': // Maintenance mode is active
                        $message = '{--ADMIN_MAINTENANCE_MODE_IS_ACTIVE--}';
                        break;
@@ -73,10 +71,10 @@ if (isFormSent()) {
                case 'N': // Maintenance mode is inactive
                        $message = '{--ADMIN_MAINTENANCE_MODE_IS_INACTIVE--}';
                        break;
-       }
+       } // END - switch
 
        // Display form
-       loadTemplate('admin_maintenance_form', false, $message);
+       loadTemplate('admin_maintenance_form', FALSE, $message);
 }
 
 // [EOF]