summaryrefslogtreecommitdiff
path: root/www/error.php
diff options
context:
space:
mode:
Diffstat (limited to 'www/error.php')
-rw-r--r--www/error.php50
1 files changed, 50 insertions, 0 deletions
diff --git a/www/error.php b/www/error.php
new file mode 100644
index 0000000..f930068
--- /dev/null
+++ b/www/error.php
@@ -0,0 +1,50 @@
+<?php
+
+switch($_GET["e"]){
+ case("401"):
+ $title="401";
+ $message="Restricted area. Access denied.";
+ break;
+ case("403"):
+ $title="403";
+ $message="I could do that. I choose not to...";
+ break;
+ case("404"):
+ $title="404";
+ $message="These aren't the droids you are looking for.";
+ break;
+ case("500"):
+ $title="500";
+ $message="Upps, there went something wrong. Don't worry, that's not your fault. Just refresh this site and it should work again.";
+ header("Refresh: 2;");
+ break;
+ case("502"):
+ $title="502";
+ $message="Bad Gateway. It's not my fault, really.'";
+ break;
+ case("504"):
+ $title="504";
+ $message="Sorry, I don't have the whole day time. Too impatient.";
+ break;
+}
+
+?>
+<!DOCTYPE html>
+<html>
+<head>
+ <title><?php echo $title; ?> error code></title>
+ <meta http-equiv='Content-type' content='text/html; charset=utf-8' />
+ <link rel='shortcut icon' href='/favicon.ico' type='image/x-icon' />
+ <link rel='stylesheet' type='text/css' href='style.css'/>
+</head>
+<body vlnk='#5b5b5b' vlink='#000000' link='#000000' alink='#9a9696'>
+<center>
+<?php
+include("header.php");
+include("piwik.php");
+
+echo "<h1>".$title." error!</h1>";
+echo "<p>".$message."</p>";
+?>
+<a href="">Try again<a>
+</body>