add_block(new Block("Downtime", "DOWNTIME MODE IS ON!", "left", 0)); } /** * Display $message and exit */ public function display_message($message) { global $config; $theme_name = $config->get_string('theme'); $data_href = get_base_href(); $login_link = make_link("user_admin/login"); header("HTTP/1.0 503 Service Temporarily Unavailable"); print << Downtime

Down for Maintenance

$message

Admin Login

EOD; } } ?>