X-Git-Url: http://git.shiar.nl/minimedit.git/blobdiff_plain/73246f5bb2c7560d91275f48d9bcc24729f7b9f1..b06e0695bbf6a9710ed53eefb941134812a3ff27:/page.php diff --git a/page.php b/page.php index 1f86e5b..76a99b5 100644 --- a/page.php +++ b/page.php @@ -2,6 +2,12 @@ error_reporting(E_ALL); ini_set('display_errors', TRUE); +function abort($body, $status = NULL) { + if ($status) header("HTTP/1.1 $status"); + print "$body\n"; + exit; +} + function getoutput($blocks = []) { $rep = [];