From 1b35cf3f1124b161ebde5e9e3a2c74c8ea2821d0 Mon Sep 17 00:00:00 2001 From: Connor Thomson Date: Sun, 20 Sep 2026 21:01:48 -0700 Subject: Add status and more --- admin/index.php | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100755 admin/index.php (limited to 'admin/index.php') diff --git a/admin/index.php b/admin/index.php new file mode 100755 index 0000000..29c8873 --- /dev/null +++ b/admin/index.php @@ -0,0 +1,34 @@ +. + */ + +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; +} + +render_content(ROOT . '/html/admin.html'); + +?> -- cgit v1.2.3