summaryrefslogtreecommitdiff
path: root/www/httperror.php
diff options
context:
space:
mode:
authoroweissbarth2014-03-12 19:32:21 +0100
committeroweissbarth2014-03-12 19:32:42 +0100
commit246cd8a39c64c174171784fb891a6aca8e3c7dc4 (patch)
treeaa1f205cd359ccc4d29032f1b7842956108f2ef6 /www/httperror.php
parent11f7f219b72c909cdbf74426e5095d9ee3ef8ec8 (diff)
downloadfiles.iamfabulous.de-246cd8a39c64c174171784fb891a6aca8e3c7dc4.tar.gz
Added all specified error messages
Diffstat (limited to 'www/httperror.php')
-rw-r--r--www/httperror.php27
1 files changed, 25 insertions, 2 deletions
diff --git a/www/httperror.php b/www/httperror.php
index 5deff9f..58ac0cc 100644
--- a/www/httperror.php
+++ b/www/httperror.php
@@ -19,7 +19,30 @@
<?php include("static/header.html");?>
<link rel="stylesheet" type="text/css" href="/static/httperror.css">
<div id="Error-Page-content">
- <h1 id="Error-Page-head" >404</h1>
- <h2 id="Error-Page-description" >Wow! I didn&#39;t see that coming...Well, I&#39;m sorry...</h2>
+ <?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");?>