X-Git-Url: https://git.cweiske.de/phorkie.git/blobdiff_plain/f9ade082ba49cf487af31339afa7aeeb0653af57..b8b5759174c0734d6682502b4e1830334dd0df13:/www/secure.php diff --git a/www/secure.php b/www/secure.php index 4b81d59..e614087 100644 --- a/www/secure.php +++ b/www/secure.php @@ -12,8 +12,14 @@ if (!isset($_SESSION['identity'])) { if ($GLOBALS['phorkie']['auth']['secure'] > 0 && $GLOBALS['phorkie']['auth']['userlist']) { if (!in_array($_SESSION['identity'], $GLOBALS['phorkie']['users'])) { - $redirect = 'http://' . $_SERVER['HTTP_HOST'] . "/forbidden"; - header('Location: ' . filter_var($redirect, FILTER_SANITIZE_URL)); + header('HTTP/1.1 403 Forbidden'); + $db = new Database(); + render( + 'forbidden', + array( + 'recents' => $db->getSearch()->listAll(0, 5, 'crdate', 'desc'), + ) + ); exit; } }