Use http_status() instead of homegrowing it. Adapt http_status to handle replies with data.
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
<?php /** @file */
|
||||
|
||||
require_once("include/network.php");
|
||||
|
||||
function system_down() {
|
||||
header('HTTP/1.0 503 Service Unavailable');
|
||||
http_status(503, 'Service Unavailable');
|
||||
echo <<< EOT
|
||||
<html>
|
||||
<head><title>System Unavailable</title></head>
|
||||
|
||||
Reference in New Issue
Block a user