Use http_status() instead of homegrowing it. Adapt http_status to handle replies with data.

This commit is contained in:
ken restivo
2015-11-20 18:56:41 -08:00
parent d11e80e1b3
commit fabf7081d3
2 changed files with 28 additions and 9 deletions

View File

@@ -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>