error.php 386 Bytes
Newer Older
1
<?php
2
// $Id$
3

4
include_once "includes/common.inc";
Dries's avatar
Dries committed
5

6
$errors = array(500 => "500 error: internal server error", 404 => "404 error: '".`$_SERVER["REDIRECT_URL"] ."' not found", 403 => "403 error: access denied - forbidden", 401 => "401 error: authorization required", 400 => "400 error: bad request");
Dries's avatar
Dries committed
7

8
watchdog("httpd", $errors[$_SERVER["REDIRECT_STATUS"]);
Dries's avatar
Dries committed
9

10
drupal_goto($base_url);
11

12
?>