forked from riegerc/vemapproject01
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patherror.php
51 lines (47 loc) · 1.53 KB
/
error.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<title>Error <?php $_GET["e"] ?></title>
<link href="vendor/fontawesome-free/css/all.min.css" rel="stylesheet" type="text/css">
<link href="https://fonts.googleapis.com/css?family=Nunito:200,200i,300,300i,400,400i,600,600i,700,700i,800,800i,900,900i"
rel="stylesheet">
<link href="css/sb-admin-2.css" rel="stylesheet">
<style>
.text-center {
display: flex;
justify-content: center;
flex-direction: row;
align-content: center;
}
</style>
<?php
$errorCodes = [
"400" => "Bad request",
"401" => "Du hast keine Berechtigung um diese Seite zu besuchen",
"403" => "Du hast keine Berechtigung um diese Seite zu besuchen",
"404" => "Seite nicht gefunden",
]
?>
</head>
<body id="page-top">
<div class="container-fluid">
<br>
<br>
<br>
<br>
<!-- 404 Error Text -->
<div class="text-center">
<div>
<?php echo "<div class='error mx-auto' data-text='$_GET[e]'>$_GET[e]</div>" ?>
<p class="lead text-gray-800 mb-5"><?php echo $errorCodes[$_GET["e"]] ?></p>
<a href="index.php">← Zurück zur Hauptseite</a>
</div>
</div>
</div>
</body>
</html>