diff options
| author | Connor Thomson <blumatrikz@gmail.com> | 2026-09-20 21:23:09 -0700 |
|---|---|---|
| committer | Connor Thomson <blumatrikz@gmail.com> | 2026-09-20 21:23:09 -0700 |
| commit | 070a27baa8f93c3bf191459b88d24d7430a78899 (patch) | |
| tree | 8c96b12d16e1d219ef410ad0e45b2d886368bc5e /admin/index.php | |
| parent | 83cd353b01660f34d6fd894d15a27fb1b3aeab4c (diff) | |
Some fixes and updates
Diffstat (limited to 'admin/index.php')
| -rwxr-xr-x | admin/index.php | 8 |
1 files changed, 1 insertions, 7 deletions
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'); |
