aboutsummaryrefslogtreecommitdiff
path: root/views/default/admin/overview/online.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/admin/overview/online.php')
-rw-r--r--views/default/admin/overview/online.php24
1 files changed, 24 insertions, 0 deletions
diff --git a/views/default/admin/overview/online.php b/views/default/admin/overview/online.php
new file mode 100644
index 000000000..0045f8299
--- /dev/null
+++ b/views/default/admin/overview/online.php
@@ -0,0 +1,24 @@
+<?php
+/**
+ * Elgg statistics screen
+ *
+ * @package Elgg
+ * @subpackage Core
+ * @author Curverider Ltd
+ * @link http://elgg.org/
+ */
+
+// users online
+if( (is_plugin_enabled('search')) && (is_plugin_enabled('profile')) ) {
+ get_context('search');
+ $users_online = get_online_users();
+ get_context('admin');
+ ?>
+
+ <div class="admin_settings members_list users_online">
+ <h3><?php echo elgg_echo('admin:statistics:label:onlineusers'); ?></h3>
+ <?php echo $users_online; ?>
+ </div>
+<?php
+}
+?> \ No newline at end of file