summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2002-04-25 18:44:22 +0000
committerDries Buytaert <dries@buytaert.net>2002-04-25 18:44:22 +0000
commitea6682bb2334d4e0d0cf3702d697a0d78e075a14 (patch)
tree9cf4bee37dc6abdaa809354048eb1a5d06a89dd0
parentdbf9469d52657194d1d38590c41ccd99d13d470e (diff)
downloadbrdo-ea6682bb2334d4e0d0cf3702d697a0d78e075a14.tar.gz
brdo-ea6682bb2334d4e0d0cf3702d697a0d78e075a14.tar.bz2
- Wrapped admin_page() in page_header() and page_footer() calls, and made
it display an "access denied" message when access without the proper access rights. Patch by Moshe.
-rw-r--r--admin.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/admin.php b/admin.php
index 8f8e82cb0..ea7915434 100644
--- a/admin.php
+++ b/admin.php
@@ -16,7 +16,7 @@ function admin_page($mod) {
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
<html>
<head>
- <title><?php echo variable_get(site_name, "drupal"); ?> administration pages</title>
+ <title><?php echo variable_get("site_name", "drupal"); ?> administration pages</title>
</head>
<style>
body { font-family: helvetica, arial; font-size: 12pt; }
@@ -49,6 +49,12 @@ function admin_page($mod) {
}
if (user_access("access administration pages")) {
+ page_header();
admin_page($mod);
+ page_footer();
}
-?> \ No newline at end of file
+else {
+ print message_access();
+}
+
+?>