2001-03-10 11:07:52 +00:00
|
|
|
<?php
|
2001-10-20 18:57:09 +00:00
|
|
|
// $Id$
|
2000-09-04 16:14:46 +00:00
|
|
|
|
2001-06-13 21:20:52 +00:00
|
|
|
include_once "includes/common.inc";
|
2001-01-26 13:38:46 +00:00
|
|
|
|
2001-10-16 20:13:22 +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");
|
2000-11-20 10:27:35 +00:00
|
|
|
|
2001-06-13 21:37:19 +00:00
|
|
|
watchdog("httpd", $errors[$REDIRECT_STATUS]);
|
2000-11-20 10:27:35 +00:00
|
|
|
|
2001-07-06 07:44:44 +00:00
|
|
|
if (strstr($REDIRECT_URL, "index.php")) {
|
2001-09-30 11:09:22 +00:00
|
|
|
drupal_goto("../index.php");
|
2001-07-06 07:44:44 +00:00
|
|
|
}
|
|
|
|
else {
|
2001-09-30 11:09:22 +00:00
|
|
|
drupal_goto("index.php");
|
2001-07-06 07:44:44 +00:00
|
|
|
}
|
2001-11-01 11:00:51 +00:00
|
|
|
|
2001-04-06 14:14:16 +00:00
|
|
|
?>
|