summaryrefslogtreecommitdiff
path: root/utils/admin.php
diff options
context:
space:
mode:
Diffstat (limited to 'utils/admin.php')
-rw-r--r--utils/admin.php7
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&amp;m=$modulename\">$module->admin_title</a>\n";