mirror of https://github.com/byecorps/id.git
Merge branch 'main' of github.com:byecorps/id
This commit is contained in:
commit
c147c2e33b
|
@ -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";
|
||||
|
|
Loading…
Reference in New Issue