Stripping CVS keywords
[project/drupal.git] / error.php
1 <?php
2
3 include_once "includes/common.inc";
4
5 $errors = array(
6 500 => "500 error: internal server error",
7 404 => "404 error: '". $_SERVER["REDIRECT_URL"] ."' not found",
8 403 => "403 error: access denied - forbidden",
9 401 => "401 error: authorization required",
10 400 => "400 error: bad request"
11 );
12
13 if ($errors[$_SERVER["REDIRECT_STATUS"]]) {
14 watchdog("httpd", $errors[$_SERVER["REDIRECT_STATUS"]]);
15 header("HTTP/1.0 ". $errors[$_SERVER["REDIRECT_STATUS"]]);
16 }
17
18 include_once("$base_url/index.php");
19 ?>