summaryrefslogtreecommitdiff
path: root/linkshorter/error.php
diff options
context:
space:
mode:
authorHorus32014-11-16 21:20:41 +0100
committerHorus32014-11-16 21:20:41 +0100
commit4168f7aff52f6e7cf7320e42252227dac5169c4a (patch)
treef73e5e93e8bc8d9b5ad8ef415b59ede323663f76 /linkshorter/error.php
downloadtools.iamfabulous.de-4168f7aff52f6e7cf7320e42252227dac5169c4a.tar.gz
Initial commit.
Diffstat (limited to 'linkshorter/error.php')
-rw-r--r--linkshorter/error.php13
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>");
+}