diff --git a/app/lib/App/Core/AccessControl.php b/app/lib/App/Core/AccessControl.php index 3c608c9..39c667e 100644 --- a/app/lib/App/Core/AccessControl.php +++ b/app/lib/App/Core/AccessControl.php @@ -81,11 +81,11 @@ class AccessControl { if ($this->app->user->loggedIn && $this->app->user->powerLevel >= $powerLevel) { - echo "Authorized!"; + # code... } else { http_response_code(401); $this->app->view("template/header", ["title" => "Ingen tilgang!"]); - $this->app->view("Core/AccessControl/unauthorized"); + $this->app->view("App/Core/AccessControl/unauthorized"); $this->app->view("template/footer"); die(); } diff --git a/app/view/Core/AccessControl/unauthorized.php b/app/view/App/Core/AccessControl/unauthorized.php similarity index 100% rename from app/view/Core/AccessControl/unauthorized.php rename to app/view/App/Core/AccessControl/unauthorized.php diff --git a/app/view/pages/teamtable/index.php b/app/view/pages/teamtable/index.php deleted file mode 100644 index e2f6dbb..0000000 --- a/app/view/pages/teamtable/index.php +++ /dev/null @@ -1,32 +0,0 @@ -
# | -Navn | -Bedrift | -Kortnummer | -Leder | -Telefon | -Deltagere | -Runder | -Bestetid | -" . $i . " | "; - echo "" . htmlspecialchars($team->name) . " | "; - echo "" . htmlspecialchars($team->company) . " | "; - echo "" . htmlspecialchars($team->cardnumber) . " | "; - echo "" . htmlspecialchars($team->leader) . " | "; - echo "" . htmlspecialchars($team->phone) . " | "; - echo "" . htmlspecialchars($team->participants) . " | "; - echo "" . htmlspecialchars($team->rounds) . " | "; - echo "" . "Ukjent" . " | "; - echo ''; - } - ?> -
---|