diff options
| -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");?> |
