diff options
Diffstat (limited to 'linkshorter/error.php')
| -rw-r--r-- | linkshorter/error.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/linkshorter/error.php b/linkshorter/error.php new file mode 100644 index 0000000..92ba713 --- /dev/null +++ b/linkshorter/error.php @@ -0,0 +1,13 @@ +<?php + +require 'functions.php'; +ob_start("sanitize_output"); + +switch($_GET["e"]){ + case("404"): + do_output("<p><strong>The requested url ( ".htmlentities($_SERVER['REQUEST_URI'])." ) wasn't found on this server.</strong></p>", "404 Not Found", false, "<h1>400 - Not Found</h1>"); + break; + + default: + do_output("<p>There was a failure and your request can't be proceeded.</p>", "500 Error", false, "<h1>Error!</h1>"); +} |
