summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2004-04-21 13:56:38 +0000
committerDries Buytaert <dries@buytaert.net>2004-04-21 13:56:38 +0000
commit7231c88a326f92bdc2b1579ac6afb8f7f568170b (patch)
treeb7586493410910be188d97440dbdf1d44b084b91 /index.php
parent7976678719f6e04ecda315a6088ee0eb3cfb0318 (diff)
downloadbrdo-7231c88a326f92bdc2b1579ac6afb8f7f568170b.tar.gz
brdo-7231c88a326f92bdc2b1579ac6afb8f7f568170b.tar.bz2
- Added support for 403 handling. Patch by JonBob. As a side benefit,
administrators will be able to define a custom 403 page, just as they can define 404 pages now. This needs to be documented in the "Changes since / migrating to ..." pages.
Diffstat (limited to 'index.php')
-rw-r--r--index.php14
1 files changed, 9 insertions, 5 deletions
diff --git a/index.php b/index.php
index 24b787cd5..9ab6e6638 100644
--- a/index.php
+++ b/index.php
@@ -7,11 +7,15 @@ include_once "includes/common.inc";
fix_gpc_magic();
-if (menu_active_handler_exists()) {
- menu_execute_active_handler();
-}
-else {
- drupal_not_found();
+$status = menu_execute_active_handler();
+switch ($status) {
+ case MENU_FOUND:
+ break;
+ case MENU_DENIED:
+ drupal_access_denied();
+ break;
+ default:
+ drupal_not_found();
}
drupal_page_footer();