blob: d96f5c25eb67c4142c766aa767e8ce733b8ffbb4 (
plain)
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
|
<?php
/*
Displays the error pages. Implemented error provided via $_GET["e"] are:
401
403
500
502
504
404 is displayed if $_GET["e"] is not set.
The element that wasn't found is provided in $wrong_folder.
$working_path contains the parent of the requested element.
==================================================================================================================================================
*/
?>
<?php include("static/header.html");?>
<link rel="stylesheet" type="text/css" href="/static/httperror.css">
<div id="Error-Page-content">
<?php if(!isset($_GET['e'])){
echo '<h1 id="Error-Page-head" >404</h1>';
echo '<h2 id="Error-Page-description" >Wow! I didn't see that coming...Well, I'm sorry...</h2></br></br>';
echo '<h3 id="Error-Page-detail">"'.$wrong_folder.'" wasn't found in "'. implode("/", $working_path)."/". '"</h3>';
}elseif($_GET['e']==401){
echo '<h1 id="Error-Page-head" >'.$_GET['e'].'</h1>';
echo '<h2 id="Error-Page-description" >Restricted Area | Authorized Personnel only</h2>';
}elseif($_GET['e']==403){
echo '<h1 id="Error-Page-head" >'.$_GET['e'].'</h1>';
echo '<h2 id="Error-Page-description" >I could do that. I choose not to...</h2>';
}elseif($_GET['e']==500){
echo '<h1 id="Error-Page-head" >'.$_GET['e'].'</h1>';
echo '<h2 id="Error-Page-description" >Oops! No that didn't just happen. NO....</br> Fine, it's my fault and i feel bad. </h2>';
}elseif($_GET['e']==502){
echo '<h1 id="Error-Page-head" >'.$_GET['e'].'</h1>';
echo '<h2 id="Error-Page-description" >A server i'm trying to contact is acting stupid. </br>It's not my fault. I swear.</h2>';
}elseif($_GET['e']==504){
echo '<h1 id="Error-Page-head" >'.$_GET['e'].'</h1>';
echo '<h2 id="Error-Page-description" >A server i'm trying to contact is insanely slow. </br>I can't wait forever. I'm sorry!</h2>';
}?>
</div>
<?php include("static/footer.html");?>
|