diff --git a/index.php b/index.php index 354cb19b03145025414be1c85a2f17b62f659334..4751dc3341cc86f3a05055d43abb4d173eaa9fa6 100755 --- a/index.php +++ b/index.php @@ -190,10 +190,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";