FRED™ now has a built-in maintenance mode. By setting a maintenance date+time (e.g.
$fred->maintenanceTime = '2017-08-01 16:00:00') users will be automaticly presented with a
maintenance message + HTTP 503. All session data will be deleted, to prevent collisions with updated code. By setting one or
more maintenance messages (
$fred->maintenanceMessage = [...], users will get these (warning) messages (value) the number of seconds (key) before the maintenance mode kicks in.
A specific message type can be added to the key with a colon.
'maintenanceTime' => '2017-08-01 16:00:00', 'maintenanceMessage' => [ '300:error' => 'Site will be closed for maintenance in [delta|number()] minutes!', '3600:notice' => 'Site will be closed for maintenance at [time|dateTime()] ([delta|number()] minutes left)!' ]