summaryrefslogtreecommitdiff
path: root/admin/index.php
diff options
context:
space:
mode:
authorConnor Thomson <blumatrikz@gmail.com>2026-09-20 21:23:09 -0700
committerConnor Thomson <blumatrikz@gmail.com>2026-09-20 21:23:09 -0700
commit070a27baa8f93c3bf191459b88d24d7430a78899 (patch)
tree8c96b12d16e1d219ef410ad0e45b2d886368bc5e /admin/index.php
parent83cd353b01660f34d6fd894d15a27fb1b3aeab4c (diff)
Some fixes and updates
Diffstat (limited to 'admin/index.php')
-rwxr-xr-xadmin/index.php8
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');