-
Notifications
You must be signed in to change notification settings - Fork 1
/
error.php
22 lines (21 loc) · 847 Bytes
/
error.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<body>
<?php
if(isset($_GET['error'])) {
$errorId = $_GET['error'];
if($errorId == "userid" || $errorId == "invalidid") {
echo '<div class="alert alert-warning">
Sorry about that, but we couldn\'t find any profiles linked to that ID.
</div>';
}
elseif($errorId == "loginrequired") {
echo '<div class="alert alert-warning">You need to be logged in to access that page!</div>';
}
elseif($errorId == "nopermission") {
echo '<div class="alert alert-danger">You do not have the required permissions to view that page!</div>';
}
elseif($errorId == "waitwhat") { // from adminsearchfetch.php
echo '<div class="alert alert-danger">How did you end up here?! Anyways, that resource you tried to access is off limits!</div>';
}
}
?>
</body>