diff options
author | floam <floam@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2005-11-02 06:05:40 +0000 |
---|---|---|
committer | floam <floam@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2005-11-02 06:05:40 +0000 |
commit | 44d08ff2ddedc0ac2100ce92dce113d31dee7c14 (patch) | |
tree | 4c375bfd4fd8d84eb166157f9dabcf5888f0c559 /web/include/errors.php | |
parent | fbd2525b03247e019854c8b52b71030f0014fb81 (diff) | |
download | ioquake3-aero-44d08ff2ddedc0ac2100ce92dce113d31dee7c14.tar.gz ioquake3-aero-44d08ff2ddedc0ac2100ce92dce113d31dee7c14.zip |
* Starting new version in PHP with multiple sections and rewritten words
[eventually]. Right now it's totally untested and is the base I'm starting from.
This shouldn't bother anyone viewing the real site.
git-svn-id: svn://svn.icculus.org/quake3/trunk@223 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'web/include/errors.php')
-rw-r--r-- | web/include/errors.php | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/web/include/errors.php b/web/include/errors.php new file mode 100644 index 0000000..1c4656b --- /dev/null +++ b/web/include/errors.php @@ -0,0 +1,17 @@ +<?php +if (!$code) { $code = $_GET['code']; } + +switch($code) { + case 403: + $error['name'] = "Forbidden"; + $error['description'] = "You don't have permission to be here. Go away!"; + break; + case 404: + $error['name'] = "Not Found"; + $error['description'] = "The file was not found. We probably screwed up."; + break; +} +header("HTTP/1.0 $code" . $error['name']); +echo "<h2>$error[name]</h2> +<p>$error[description]</p>"; +?> |