git-svn-id: file:///home/shish/svn/shimmie2/trunk@395 7f39781d-f577-437e-ae19-be835c7a54ca
		
			
				
	
	
		
			31 lines
		
	
	
		
			545 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
		
			545 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| 
 | |
| class DowntimeTheme Extends Themelet {
 | |
| 	/*
 | |
| 	 * Show the admin that downtime mode is enabled
 | |
| 	 */
 | |
| 	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));
 | |
| 	}
 | |
| 
 | |
| 	/*
 | |
| 	 * Display $message and exit
 | |
| 	 */
 | |
| 	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;
 | |
| 	}
 | |
| }
 | |
| ?>
 |