diff options
author | deva <deva> | 2010-01-28 14:11:14 +0000 |
---|---|---|
committer | deva <deva> | 2010-01-28 14:11:14 +0000 |
commit | 10267210927846619e39e76ac173d9295851b948 (patch) | |
tree | bf85343aa358b25b68ce953492689cbcebb37259 /utils/admin.php | |
parent | 55b8d42b6422f24196078c8adb6a2a59861d0ef4 (diff) |
Fix broken module loading in admin. New module parameter system.
Diffstat (limited to 'utils/admin.php')
-rw-r--r-- | utils/admin.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/utils/admin.php b/utils/admin.php index 03f56bc..d0303c9 100644 --- a/utils/admin.php +++ b/utils/admin.php @@ -1,9 +1,12 @@ <div class="admin"> <div class="header">Admin</div> <?php +global $loggedin; + if($loggedin == true) { ?> -<?php +<?php +global $DATA_DIR; $users = new Users($DATA_DIR . "/users.xml"); if($userid) $UID = $userid; else $UID = $HTTP_COOKIE_VARS["UserID"]; @@ -15,6 +18,8 @@ if($loggedin == true) { <?php include_once($UTIL_DIR . "/modules.php"); +loadAllModules(); + foreach($modules as $modulename => $module) { if($m == $modulename) $admin_module = $module; echo "<a class=\"entry\" href=\"?page=admin&m=$modulename\">$module->admin_title</a>\n"; |