aboutsummaryrefslogtreecommitdiff
path: root/admin/statistics.php
diff options
context:
space:
mode:
Diffstat (limited to 'admin/statistics.php')
-rw-r--r--admin/statistics.php38
1 files changed, 18 insertions, 20 deletions
diff --git a/admin/statistics.php b/admin/statistics.php
index 19c6a2731..b71f64ef7 100644
--- a/admin/statistics.php
+++ b/admin/statistics.php
@@ -1,25 +1,23 @@
<?php
+/**
+ * Elgg administration statistics index
+ * This is a special page that displays a number of statistics
+ *
+ * @package Elgg
+ * @subpackage Core
+ * @author Curverider Ltd
+ * @link http://elgg.org/
+ */
- /**
- * Elgg administration statistics index
- * This is a special page that displays a number of statistics
- *
- * @package Elgg
- * @subpackage Core
- * @author Curverider Ltd
- * @link http://elgg.org/
- */
+// Get the Elgg framework
+require_once(dirname(dirname(__FILE__)) . "/engine/start.php");
- // Get the Elgg framework
- require_once(dirname(dirname(__FILE__)) . "/engine/start.php");
+// Make sure only valid admin users can see this
+admin_gatekeeper();
- // Make sure only valid admin users can see this
- admin_gatekeeper();
-
- // Set admin user for user block
- //set_page_owner($_SESSION['guid']);
+// Display main admin menu
+$title = elgg_view_title(elgg_echo('admin:statistics'));
+$main_box = elgg_view("admin/statistics");
+$content = elgg_view_layout("two_column_left_sidebar", '', $title . $main_box);
- // Display main admin menu
- page_draw(elgg_echo("admin:statistics"),elgg_view_layout("two_column_left_sidebar",'',elgg_view_title(elgg_echo('admin:statistics')) . elgg_view("admin/statistics")));
-
-?>
+page_draw(elgg_echo("admin:statistics"), $content); \ No newline at end of file