summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2003-07-01 17:54:22 +0000
committerDries Buytaert <dries@buytaert.net>2003-07-01 17:54:22 +0000
commitdc15ba06e05df99885d0024b2fc9173291e79038 (patch)
treead14e1874ef5bb0bd109e1e9376d1da2107b0722 /index.php
parent3bb6ddee4b2b3fa1b48dc557b3be7af2ea521ecb (diff)
downloadbrdo-dc15ba06e05df99885d0024b2fc9173291e79038.tar.gz
brdo-dc15ba06e05df99885d0024b2fc9173291e79038.tar.bz2
- Improvement: don't perform XSS checks for trusted users. Trusted users
are those that have the "bypass input data check" permission set. Should address bug #2147. - Improvement: simplified index.php and modules/admin.module. - Bugfix: fixed broken links in bloggerapi documentation. Patch by Chris Johnson. Fixes bug #2030. - Bugfix: fixed the date shown on a book module preview. Reported as part of bug #2097. - Bugfix: fixed broken URL in the book module documentation.
Diffstat (limited to 'index.php')
-rw-r--r--index.php10
1 files changed, 2 insertions, 8 deletions
diff --git a/index.php b/index.php
index 692279b98..3d149eab2 100644
--- a/index.php
+++ b/index.php
@@ -12,17 +12,12 @@ else {
}
if (isset($mod) && module_hook($mod, "page")) {
- if ($mod != "admin") {
- drupal_page_header();
- }
+ drupal_page_header();
module_invoke($mod, "page");
- if ($mod != "admin") {
- drupal_page_footer();
- }
+ drupal_page_footer();
}
else {
drupal_page_header();
-
check_php_setting("magic_quotes_gpc", 0);
if (module_hook(variable_get("site_frontpage", "node"), "page")) {
@@ -32,7 +27,6 @@ else {
theme("header");
theme("footer");
}
-
drupal_page_footer();
}