summaryrefslogtreecommitdiff
path: root/error.php
blob: 55f7aef80bd46b0d5d065799411a325f13a853d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?php
// $Id$

include_once "includes/common.inc";

$errors = array(500 => "500 error: internal server error", 404 => "404 error: `$REDIRECT_URL' not found", 403 => "403 error: access denied - forbidden", 401 => "401 error: authorization required", 400 => "400 error: bad request");

watchdog("httpd", $errors[$REDIRECT_STATUS]);

if (strstr($REDIRECT_URL, "index.php")) {
  drupal_goto("../index.php");
}
else {
  drupal_goto("index.php");
}

?>