function display_access_denied

7.x theme.inc display_access_denied()
6.x theme.inc display_access_denied()
4.x theme.inc display_access_denied()
5.x theme.inc display_access_denied()
1 call to display_access_denied()
index.php in ./index.php
The primary entry point for FlightPath.

File

includes/theme.inc, line 2080

Code

function display_access_denied() {

  header('HTTP/1.1 403 Forbidden', TRUE, 403);

  $page = array(
    "title" => t("Access Denied"),
    "content" => "<h2>" . t("Access Denied") . "</h2>" . t("Sorry, but you do not have access to the requested page or function."),
  );

  $location = @$_SERVER ["REQUEST_URI"];

  watchdog("access_denied", "403 - Access denied (" . strip_tags($location) . ")", array(), WATCHDOG_DEBUG);

  fp_display_page($page);
  die;
}