diff options
Diffstat (limited to 'admin')
-rw-r--r-- | admin/index.php | 17 | ||||
-rw-r--r-- | admin/plugins/index.php | 3 | ||||
-rw-r--r-- | admin/settings/index.php | 3 | ||||
-rw-r--r-- | admin/users/index.php | 3 |
4 files changed, 13 insertions, 13 deletions
diff --git a/admin/index.php b/admin/index.php index 9011e7e8b..8a59e8f85 100644 --- a/admin/index.php +++ b/admin/index.php @@ -14,11 +14,20 @@ // Get the Elgg framework
require_once(dirname(dirname(__FILE__)) . "/engine/start.php");
- // Make sure only valid users can see this
- gatekeeper();
- if (!$_SESSION['user']->admin && !$_SESSION['user']->siteadmin) forward();
+ // Make sure only valid admin users can see this
+ admin_gatekeeper();
+
- $menuoptions = get_register("admin");
+ + + + + // Get menu list + + // render + + + // Display main admin menu
page_draw(elgg_echo("admin"),elgg_view("admin/main"));
diff --git a/admin/plugins/index.php b/admin/plugins/index.php deleted file mode 100644 index 0165eb215..000000000 --- a/admin/plugins/index.php +++ /dev/null @@ -1,3 +0,0 @@ -<?php
-
-?>
\ No newline at end of file diff --git a/admin/settings/index.php b/admin/settings/index.php deleted file mode 100644 index 0165eb215..000000000 --- a/admin/settings/index.php +++ /dev/null @@ -1,3 +0,0 @@ -<?php
-
-?>
\ No newline at end of file diff --git a/admin/users/index.php b/admin/users/index.php deleted file mode 100644 index 0165eb215..000000000 --- a/admin/users/index.php +++ /dev/null @@ -1,3 +0,0 @@ -<?php
-
-?>
\ No newline at end of file |