Skip to content
Snippets Groups Projects
  • Dries Buytaert's avatar
    336b713a
    · 336b713a
    Dries Buytaert authored
    - A large batch of updates, amongst them a rewritten node system.  More
      information available on the mailing list.
    336b713a
    History
    Dries Buytaert authored
    - A large batch of updates, amongst them a rewritten node system.  More
      information available on the mailing list.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
error.php 446 B
<?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");
}

?>