Added 404 page

This commit is contained in:
corner 2020-03-15 19:58:08 +01:00
parent 09990041a7
commit 1a87717b31
3 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,5 @@
15 maart 2020: 404 pagina aangemaakt.
14 maart 2020: Help pagina gepersonaliseerd. Leerlingen krijgen alleen de hulp te zien voor leerlingen. Hetzelfde geldt voor docenten.
12 maart 2020: CSS Styling toegevoegd

View File

@ -27,6 +27,9 @@ if ($url === '/' && !isAuthorized()) {
include __DIR__ . '/../php/logout.php';
} elseif ($url === '/delete' && isAuthorized()) {
include __DIR__ . '/../php/delete.php';
} else {
http_response_code(404);
include __DIR__ . '/../templates/404.html.php';
}
$output = ob_get_clean();

2
templates/404.html.php Normal file
View File

@ -0,0 +1,2 @@
<h1>404!</h1>
<p>De pagina die u zoekt is niet gevonden. Als u gelooft dat dit een fout is, neem dan contact op met de beheerders.</p>