]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-maintenance.php
Wernis extension more secured
[mailer.git] / inc / modules / admin / what-maintenance.php
index 734640b9110244593eb71a2aaa5bddfbbc720504..9d272d8a9e833d011f9ef1ca5c36811d7846758a 100644 (file)
@@ -43,21 +43,21 @@ ADD_DESCR("admin", basename(__FILE__));
 if (isset($_POST['ok']))
 {
        // De- or activate maintenance mode
-       switch ($CONFIG['maintenance'])
+       switch ($_CONFIG['maintenance'])
        {
-       case "Y":
-               $target_mode = "N";
+       case 'Y':
+               $target_mode = 'N';
                $out = ADMIN_MAINTENANCE_DEACTIVATED;
                break;
 
-       case "N":
-               $target_mode = "Y";
+       case 'N':
+               $target_mode = 'Y';
                $out = ADMIN_MAINTENANCE_ACTIVATED;
                break;
        }
 
        // Update config
-       $result = SQL_QUERY_ESC("UPDATE "._MYSQL_PREFIX."_config SET maintenance='%s' WHERE config='0' LIMIT 1",
+       $result = SQL_QUERY_ESC("UPDATE "._MYSQL_PREFIX."_config SET maintenance='%s' WHERE config=0 LIMIT 1",
         array($target_mode), __FILE__, __LINE__);
 
        // Load template
@@ -65,13 +65,13 @@ if (isset($_POST['ok']))
 }
  else
 {
-       switch ($CONFIG['maintenance'])
+       switch ($_CONFIG['maintenance'])
        {
-       case "Y": // Maintenance mode is active
+       case 'Y': // Maintenance mode is active
                define('ADMIN_MAINTENANCE_MODE', ADMIN_MAINTENANCE_MODE_IS_ACTIVE);
                break;
 
-       case "N": // Maintenance mode is inactive
+       case 'N': // Maintenance mode is inactive
                define('ADMIN_MAINTENANCE_MODE', ADMIN_MAINTENANCE_MODE_IS_INACTIVE);
                break;
        }