summaryrefslogtreecommitdiff
path: root/inc/template.php
diff options
context:
space:
mode:
authorchris <chris@teacherscpd.co.uk>2005-08-25 00:47:18 +0200
committerchris <chris@teacherscpd.co.uk>2005-08-25 00:47:18 +0200
commit11e2ce226d64ac98b82ddc93a81eea66160bcc21 (patch)
treef19de21e96f8952161903dd34e01821b2e0ccb45 /inc/template.php
parentf00151b4e3d17bcf50767f821c0e3834d36e7b4f (diff)
downloadrpg-11e2ce226d64ac98b82ddc93a81eea66160bcc21.tar.gz
rpg-11e2ce226d64ac98b82ddc93a81eea66160bcc21.tar.bz2
admin plugin i/face + acl plugin
darcs-hash:20050824224718-50fdc-6d27ff70e60e6fe547aff6c2b305507c4ab3f669.gz
Diffstat (limited to 'inc/template.php')
-rw-r--r--inc/template.php32
1 files changed, 27 insertions, 5 deletions
diff --git a/inc/template.php b/inc/template.php
index 518087e50..b033a82e0 100644
--- a/inc/template.php
+++ b/inc/template.php
@@ -129,13 +129,35 @@ function tpl_content(){
* @author Andreas Gohr <andi@splitbrain.org>
*/
function tpl_admin(){
+
+ $plugin = NULL;
+ if ($_REQUEST['page']) {
+ $pluginlist = plugin_list('admin');
+
+ if (in_array($_REQUEST['page'], $pluginlist)) {
+
+ // attempt to load the plugin
+ $plugin =& plugin_load('admin',$_REQUEST['page']);
+ }
+ }
+
+ if ($plugin !== NULL)
+ $plugin->html();
+ else
+ html_admin();
+/*
switch($_REQUEST['page']){
- case 'acl':
- admin_acl_html();
- break;
+ case 'acl':
+ admin_acl_html();
+ break;
+ case 'plugin':
+ require_once(DOKU_INC.'inc/admin_plugin.php');
+ admin_plugin_html();
+ break;
default:
- html_admin();
- }
+ html_admin();
+ }
+*/
}
/**