summaryrefslogtreecommitdiff
path: root/www/httperror.php
blob: 58ac0cc5928f3bb6321e4a80976ddb95a3779726 (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
<?
/*
	GET Parameter, die von nginx übergeben werden:
	
	$_GET["e"] = 	404 Fehler
			403 Fehler
			401 Fehler
			500 Fehler
			502 Fehler
			504 Fehler

	Variablen, die der Funktion übergeben werden:

	$wrong_folder: 		enthält den ersten Ordner, der nicht in der Datenbank gespeichert ist, also zB. "Bildr"
*/
?>


<?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&#39;t see that coming...Well, I&#39;m sorry...</h2></br></br>';
		echo '<h3 id="Error-Page-detail">"'.$wrong_folder.'" wasn&#39;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&#39;t just happen. NO....</br> Fine, it&#39;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&#39;m trying to contact is acting stupid. </br>It&#39s 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&#39;m trying to contact is insanely slow. </br>I can&#39;t wait forever. I&#39;m sorry!</h2>';
	}?>
</div>
<?php include("static/footer.html");?>