summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
73246f5)
Move to allow reuse on other pages.
-function abort($body, $status = NULL) {
- if ($status) header("HTTP/1.1 $status");
- print "$body\n";
- exit;
-}
-
if (empty($User['admin']))
abort("geen beheersrechten", '401 unauthorised');
if (empty($User['admin']))
abort("geen beheersrechten", '401 unauthorised');
error_reporting(E_ALL);
ini_set('display_errors', TRUE);
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 = [];
function getoutput($blocks = [])
{
$rep = [];