diff options
author | floam <floam@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2006-03-04 18:13:32 +0000 |
---|---|---|
committer | floam <floam@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2006-03-04 18:13:32 +0000 |
commit | 515144933c77134aeb116629e65372590501b001 (patch) | |
tree | 99fb51ed4e58a57637356d0cc5c7c6f2e7d573a2 /web/include/errors.php | |
parent | 9faab37c4c3dd92ce003cd4c177d1cd1fc3bf0e7 (diff) | |
download | ioquake3-aero-515144933c77134aeb116629e65372590501b001.tar.gz ioquake3-aero-515144933c77134aeb116629e65372590501b001.zip |
Preparing to use IcculusNews so we can announce stuff without bothering SVN.
git-svn-id: svn://svn.icculus.org/quake3/trunk@617 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'web/include/errors.php')
-rw-r--r-- | web/include/errors.php | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/web/include/errors.php b/web/include/errors.php index 1c4656b..7db28b4 100644 --- a/web/include/errors.php +++ b/web/include/errors.php @@ -1,7 +1,9 @@ <?php if (!$code) { $code = $_GET['code']; } +if (!$detail) { $error['detail'] = $_GET['detail']; } -switch($code) { +switch($code) +{ case 403: $error['name'] = "Forbidden"; $error['description'] = "You don't have permission to be here. Go away!"; @@ -10,8 +12,13 @@ switch($code) { $error['name'] = "Not Found"; $error['description'] = "The file was not found. We probably screwed up."; break; + case 500: + $error['name'] = "Internal Server Error"; + $error['description'] = "Oh, crap. Something is broke and it's almost definitely our fault!"; + break; } + header("HTTP/1.0 $code" . $error['name']); echo "<h2>$error[name]</h2> -<p>$error[description]</p>"; +<p>$error[description] $error[detail]</p>"; ?> |