drupal/error.php

17 lines
446 B
PHP
Raw Normal View History

<?php
// $Id$
include_once "includes/common.inc";
2001-01-26 13:38:46 +00:00
$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]);
2001-07-06 07:44:44 +00:00
if (strstr($REDIRECT_URL, "index.php")) {
drupal_goto("../index.php");
2001-07-06 07:44:44 +00:00
}
else {
drupal_goto("index.php");
2001-07-06 07:44:44 +00:00
}
?>