diff options
| author | root | 2014-03-24 10:24:21 +0100 |
|---|---|---|
| committer | root | 2014-03-24 10:24:21 +0100 |
| commit | e5e8ee54e4b404d0cbdf69bebc3d9bdd9bd04855 (patch) | |
| tree | 3ab69711dbf83bc6cc19ac3065b0b6374b0fd337 /www/error.php | |
| parent | 293e2d3203d4f473f3239571b5d0237cea26a46b (diff) | |
| download | random-e5e8ee54e4b404d0cbdf69bebc3d9bdd9bd04855.tar.gz | |
changes
Diffstat (limited to 'www/error.php')
| -rw-r--r-- | www/error.php | 50 |
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> |
