]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-maintenance.php
Bad things are now 'classified' as bad (CSS class 'bad' is being used instead of...
[mailer.git] / inc / modules / admin / what-maintenance.php
index 2d257c32a49ad6ee28d778267a464c3d4c99fe1a..29fb38b59ce662d038e2c240099b6fcf3c301f68 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /************************************************************************
  * Mailer v0.2.1-FINAL                                Start: 05/06/2004 *
- * ================                             Last change: 05/06/2004 *
+ * ===================                          Last change: 05/06/2004 *
  *                                                                      *
  * -------------------------------------------------------------------- *
  * File              : what-maintenance.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 *
 // Some security stuff...
 if ((!defined('__SECURITY')) || (!isAdmin())) {
        die();
-}
+} // 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 = getMessage('ADMIN_MAINTENANCE_DEACTIVATED');
+                       $message = '{--ADMIN_MAINTENANCE_DEACTIVATED--}';
                        break;
 
                case 'N':
                        $target_mode = 'Y';
-                       $out = getMessage('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 = getMessage('ADMIN_MAINTENANCE_MODE_IS_ACTIVE');
+                       $message = '{--ADMIN_MAINTENANCE_MODE_IS_ACTIVE--}';
                        break;
 
                case 'N': // Maintenance mode is inactive
-                       $message = getMessage('ADMIN_MAINTENANCE_MODE_IS_INACTIVE');
+                       $message = '{--ADMIN_MAINTENANCE_MODE_IS_INACTIVE--}';
                        break;
-       }
+       } // END - switch
 
        // Display form
        loadTemplate('admin_maintenance_form', false, $message);