diff options
| author | Horus3 | 2014-11-16 21:20:41 +0100 |
|---|---|---|
| committer | Horus3 | 2014-11-16 21:20:41 +0100 |
| commit | 4168f7aff52f6e7cf7320e42252227dac5169c4a (patch) | |
| tree | f73e5e93e8bc8d9b5ad8ef415b59ede323663f76 /linkshorter/error.php | |
| download | tools.iamfabulous.de-4168f7aff52f6e7cf7320e42252227dac5169c4a.tar.gz | |
Initial commit.
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>"); +} |
