diff options
| author | oweissbarth | 2014-03-12 19:32:21 +0100 |
|---|---|---|
| committer | oweissbarth | 2014-03-12 19:32:42 +0100 |
| commit | 246cd8a39c64c174171784fb891a6aca8e3c7dc4 (patch) | |
| tree | aa1f205cd359ccc4d29032f1b7842956108f2ef6 | |
| parent | 11f7f219b72c909cdbf74426e5095d9ee3ef8ec8 (diff) | |
| download | files.iamfabulous.de-246cd8a39c64c174171784fb891a6aca8e3c7dc4.tar.gz | |
Added all specified error messages
| -rw-r--r-- | www/httperror.php | 27 |
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't see that coming...Well, I'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'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");?> |
