From 070a27baa8f93c3bf191459b88d24d7430a78899 Mon Sep 17 00:00:00 2001 From: Connor Thomson Date: Sun, 20 Sep 2026 21:23:09 -0700 Subject: Some fixes and updates --- admin/index.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'admin/index.php') diff --git a/admin/index.php b/admin/index.php index 29c8873..13f1659 100755 --- a/admin/index.php +++ b/admin/index.php @@ -19,15 +19,9 @@ define('ROOT', rtrim($_SERVER['DOCUMENT_ROOT'], '/') . '/'); -require_once ROOT . '/php/render.php'; require_once ROOT . '/php/user.php'; -if (!is_admin()) { - http_response_code(403); - - render_content(ROOT . '/html/forbidden.html'); - exit; -} +require_admin(); render_content(ROOT . '/html/admin.html'); -- cgit v1.2.3