30 Sep
2005
30 Sep
'05
12:33 a.m.
Dries http://drupal.org/node/32622 I was working on something similar for this, but a bit more elaborate, allowing a customized message on the front page, as well as an on/off setting. Only drawback is as mentioned: you can lock yourself out.
On 9/29/05, Dries Buytaert <dries@buytaert.net> wrote:
To give you a quick idea, here is how my modified index.php looks like:
$maintenance = FALSE;
require_once './includes/bootstrap.inc'; drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
if ($maintenance && $user->uid != 1) { drupal_set_title("We'll be right back"); print theme('maintenance_page', 'Drupal.org is being upgraded. We should be back in a jiffy.');