function display_access_denied
Search API
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() |
File
- includes/
theme.inc, line 2079
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;
}