diff --git a/index.php b/index.php index 90a06e14bf0887e6e14aa400381bd29c7f5fc75e..9f068c512b1b629da51b0c3fe4b1e6be6cced9e1 100755 --- a/index.php +++ b/index.php @@ -191,10 +191,10 @@ if ($migrated) { echo "<h2 class=\"subheading\">Admin</h2>"; } -// if ($uri[0] == "admin" && !$user['is_admin']) { -// http_response_code(401); -// die("<img src='https://http.cat/401.jpg' alt='A cat standing in front of a door with a No Cats Allowed sign on it.' />"); -// } + if ($uri[0] == "admin" && !$user['is_admin']) { + http_response_code(401); + die("<img src='https://http.cat/401.jpg' alt='A cat standing in front of a door with a No Cats Allowed sign on it.' />"); + } if ($uri[0] == "docs") { $include = "docs.php";