diff options
Diffstat (limited to 'views/default/admin/statistics_opt')
| -rw-r--r-- | views/default/admin/statistics_opt/basic.php | 34 | ||||
| -rw-r--r-- | views/default/admin/statistics_opt/numentities.php | 50 | ||||
| -rw-r--r-- | views/default/admin/statistics_opt/online.php | 22 |
3 files changed, 0 insertions, 106 deletions
diff --git a/views/default/admin/statistics_opt/basic.php b/views/default/admin/statistics_opt/basic.php deleted file mode 100644 index 39e8440d8..000000000 --- a/views/default/admin/statistics_opt/basic.php +++ /dev/null @@ -1,34 +0,0 @@ -<?php - /** - * Elgg statistics screen - * - * @package Elgg - * @subpackage Core - * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2 - * @author Curverider Ltd - * @copyright Curverider Ltd 2008 - * @link http://elgg.org/ - */ - - // Work out number of users - $users_stats = get_number_users(); - - - global $CONFIG; - - include_once($CONFIG->path . "version.php"); -?> -<div class="admin_statistics"> - <h2><?php echo elgg_echo('admin:statistics:label:basic'); ?></h2> - <table> - <tr> - <td style="width: 250px"><b><?php echo elgg_echo('admin:statistics:label:version'); ?> :</b></td> - <td><?php echo elgg_echo('admin:statistics:label:version:release'); ?> - <?php echo $release; ?>, <?php echo elgg_echo('admin:statistics:label:version:version'); ?> - <?php echo $version; ?></td> - </tr> - <tr> - <td style="width: 250px"><b><?php echo elgg_echo('admin:statistics:label:numusers'); ?> :</b></td> - <td><?php echo $users_stats; ?></td> - </tr> - - </table> -</div>
\ No newline at end of file diff --git a/views/default/admin/statistics_opt/numentities.php b/views/default/admin/statistics_opt/numentities.php deleted file mode 100644 index 6c4d9ffdf..000000000 --- a/views/default/admin/statistics_opt/numentities.php +++ /dev/null @@ -1,50 +0,0 @@ -<?php - /** - * Elgg statistics screen - * - * @package Elgg - * @subpackage Core - * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2 - * @author Curverider Ltd - * @copyright Curverider Ltd 2008 - * @link http://elgg.org/ - */ - - - // Get entity statistics - $entity_stats = get_entity_statistics(); -?> -<div class="admin_statistics"> - <h2><?php echo elgg_echo('admin:statistics:label:numentities'); ?></h2> - <table> - <?php - foreach ($entity_stats as $k => $entry) - {
- arsort($entry); - foreach ($entry as $a => $b) - { - if ($a == "__base__") {
- $a = elgg_echo("item:{$k}");
- if (empty($a)) - $a = $k;
- } - else {
- if (empty($a))
- $a = elgg_echo("item:{$k}");
- else - $a = elgg_echo("item:{$k}:{$a}");
- if (empty($a)) {
- $a = "$k $a";
- }
- } - echo <<< END - <tr> - <td style="width: 250px">{$a}:</td> - <td>{$b}</td> - </tr> -END; - } - } - ?> - </table> -</div>
\ No newline at end of file diff --git a/views/default/admin/statistics_opt/online.php b/views/default/admin/statistics_opt/online.php deleted file mode 100644 index 1cc7aa1cf..000000000 --- a/views/default/admin/statistics_opt/online.php +++ /dev/null @@ -1,22 +0,0 @@ -<?php - /** - * Elgg statistics screen - * - * @package Elgg - * @subpackage Core - * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2 - * @author Curverider Ltd - * @copyright Curverider Ltd 2008 - * @link http://elgg.org/ - */ - - // users online
- get_context('search'); - $users_online = get_online_users();
- get_context('admin'); -?> - -<div> - <h2><?php echo elgg_echo('admin:statistics:label:onlineusers'); ?></h2> - <?php echo $users_online; ?> -</div> |
