X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-maintenance.php;h=e0d4f530cfdee9179f13a0e9782d16e18ab46108;hb=c5173c4d66be7ec72fbf8051a2097cbb377e87a0;hp=eb01836297cd77d062786633494ec638de5555d4;hpb=fe8e4c180ec67e320be98e1e8dc1f9ea612c3636;p=mailer.git diff --git a/inc/modules/admin/what-maintenance.php b/inc/modules/admin/what-maintenance.php index eb01836297..e0d4f530cf 100644 --- a/inc/modules/admin/what-maintenance.php +++ b/inc/modules/admin/what-maintenance.php @@ -14,10 +14,9 @@ * $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 * * * * This program is free software; you can redistribute it and/or modify * @@ -39,40 +38,40 @@ // 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); + loadTemplate('admin_settings_saved', false, $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);