// De- or activate maintenance mode
switch (getConfig('maintenance'))
{
- case 'Y':
- $target_mode = 'N';
- $out = getMessage('ADMIN_MAINTENANCE_DEACTIVATED');
- break;
+ case 'Y':
+ $target_mode = 'N';
+ $out = getMessage('ADMIN_MAINTENANCE_DEACTIVATED');
+ break;
- case 'N':
- $target_mode = 'Y';
- $out = getMessage('ADMIN_MAINTENANCE_ACTIVATED');
- break;
+ case 'N':
+ $target_mode = 'Y';
+ $out = getMessage('ADMIN_MAINTENANCE_ACTIVATED');
+ break;
}
// Update config
} else {
switch (getConfig('maintenance'))
{
- case 'Y': // Maintenance mode is active
- define('ADMIN_MAINTENANCE_MODE', getMessage('ADMIN_MAINTENANCE_MODE_IS_ACTIVE'));
- break;
+ case 'Y': // Maintenance mode is active
+ define('ADMIN_MAINTENANCE_MODE', getMessage('ADMIN_MAINTENANCE_MODE_IS_ACTIVE'));
+ break;
- case 'N': // Maintenance mode is inactive
- define('ADMIN_MAINTENANCE_MODE', getMessage('ADMIN_MAINTENANCE_MODE_IS_INACTIVE'));
- break;
+ case 'N': // Maintenance mode is inactive
+ define('ADMIN_MAINTENANCE_MODE', getMessage('ADMIN_MAINTENANCE_MODE_IS_INACTIVE'));
+ break;
}
// Display form
LOAD_TEMPLATE("admin_maintenance_form");