diff options
| -rw-r--r-- | 404.php | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -6,10 +6,15 @@ include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/accounts.php"; authorize_user(); -$status = intval($_GET["error_status"] ?? "404"); +$alert = $_SESSION['alert'] ?? [ + 'code' => '404', + 'reason' => 'Not found' +]; + +$status = intval($alert['code']); http_response_code($status); -$reason = str_safe($_GET["error_reason"] ?? "Not found", 200); +$reason = str_safe($alert['reason'], 200); ?> <html> |
