1. Following variables will be added to top portion of DEBUG.PHP (after DBG_MAX_SQL_TIME):
define('MAINTENANCE_MODE_FRONT', 0); // Set to 1 for SOFT Maintenance mode, set to 2 for HARD Maintenance mode (no DB load)
define('MAINTENANCE_MODE_ADMIN', 0); // Set to 1 for SOFT Maintenance mode, set to 2 for HARD Maintenance mode (no DB load)
define('MAINTENANCE_MODE_IPS', ''); // Define IP addresses/hosts, which will be able to continue accessing website
There will be 2 separate settings - 1 for Front and 1 for Admin with single List of IPs to exclude from Maintenance. User can specify if he wants SOFT or HARD Maintenance mode enabled.
Soft Front - all users (except excluded IPs/hosts) are logged out and auto-redirected (301 code) to the specified Front-end template (setting below)
Soft Admin - all users (except excluded IPs/hosts) are logged out and auto-redirected (301 code) to the Admin Login page which will display the message (setting below) instead of the usual Login Form.
NOTES:
b. Auto-redirect to 404 page if Soft Maint. template is missing or not specified, but Soft Mode has been enabled.
2. Add 4 new Configuration variables under "Website Settings" (after Perform Exact Search):
MaintenanceMessageFront (Maintenance Message for Front End) - textarea
hint: This message will be shown on Front End when either Soft or Hard Maintenance modes are enabled via debug.php file or there no Database connection.
default: Website is currently undergoing the upgrades. Please come back shortly! <br/><br/>Thank you for your patience.
MaintenanceMessageAdmin (Maintenance Message for Admin) - textarea
hint: This message will be shown on Admin instead of Login form either when Soft or Hard Maintenance modes are enabled via debug.php file or there no Database connection.
default: Website is currently undergoing the upgrades. Please come back shortly! <br/><br/>Thank you for your patience.
SoftMaintenanceTemplate (Template for Soft Maintenance) - input field
hint: This template will be shown to the Front End users when Soft Maintenance mode is active.
default: maintenance
HardMaintenanceTemplate (Template for Hard Maintenance) - input field
hint: This template will be used to static HTML file under /system folder to be shown on Front-end or Admin when Hard Maintenance mode is active. Static page should be generated from specified here template by clicking "Generate" button.
default: maintenance
button: add "Generate Page" button next to the Input field with option to generate/regenerate the template. Don't perform generation if "HardMaintenanceTemplate" is empty or does NOT exists.
3. Add maintenance.tpl Template to Advanced and Default themes
Using default CMS design and using Front End MaintenanceMessageFront setting. It would be great if we can add nofollow="1" Meta settings for this template in the Head portion of the page