This repository has been archived on 2024-09-05. You can view files and clone it, but cannot push or open issues or pull requests.
shimmie2/ext/downtime/theme.php
shish a625fcd787 the bulk of theme engine 2.0; it's still rough, but it works
git-svn-id: file:///home/shish/svn/shimmie2/trunk@201 7f39781d-f577-437e-ae19-be835c7a54ca
2007-06-30 01:19:11 +00:00

24 lines
448 B
PHP

<?php
class DowntimeTheme Extends Themelet {
public function display_notification($page) {
$page->add_block(new Block("Downtime",
"<span style='font-size: 1.5em'><b>DOWNTIME MODE IS ON!</b></span>", "left", 0));
}
public function display_message($message) {
header("HTTP/1.0 503 Service Temporarily Unavailable");
print <<<EOD
<html>
<head>
<title>Downtime</title>
</head>
<body>
$message
</body>
</html>
EOD;
exit;
}
}
?>