diff options
author | Dries Buytaert <dries@buytaert.net> | 2002-04-25 18:44:22 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2002-04-25 18:44:22 +0000 |
commit | ea6682bb2334d4e0d0cf3702d697a0d78e075a14 (patch) | |
tree | 9cf4bee37dc6abdaa809354048eb1a5d06a89dd0 | |
parent | dbf9469d52657194d1d38590c41ccd99d13d470e (diff) | |
download | brdo-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.php | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -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(); +} + +?> |