summaryrefslogtreecommitdiff
path: root/usage_chart.php
diff options
context:
space:
mode:
authorMax Kremmel <xing@synapse.plus.com>2007-06-22 12:35:26 +0000
committerMax Kremmel <xing@synapse.plus.com>2007-06-22 12:35:26 +0000
commit643c5ff5b94066529aa1dd1e6ddf41ab86b731d1 (patch)
treef8ee1333afb89794527ad87260131cc1e12a443a /usage_chart.php
parent7b3c4d681d6a88e4e4de5a7a28524f63da468ca5 (diff)
downloadstats-643c5ff5b94066529aa1dd1e6ddf41ab86b731d1.tar.gz
stats-643c5ff5b94066529aa1dd1e6ddf41ab86b731d1.tar.bz2
stats-643c5ff5b94066529aa1dd1e6ddf41ab86b731d1.zip
massive stats overhaul. remove all non-stats code and allow packages to insert their own stats using a ::getStats method. view BitPage::getStats for an example on how it works. not sure if this is the best way to do it, but this way we'll have a unified look.
Diffstat (limited to 'usage_chart.php')
-rw-r--r--usage_chart.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/usage_chart.php b/usage_chart.php
index ff2f955..15f21a2 100644
--- a/usage_chart.php
+++ b/usage_chart.php
@@ -1,6 +1,6 @@
<?php
/**
- * $Header: /cvsroot/bitweaver/_bit_stats/usage_chart.php,v 1.4 2006/04/11 13:09:28 squareing Exp $
+ * $Header: /cvsroot/bitweaver/_bit_stats/usage_chart.php,v 1.5 2007/06/22 12:35:26 squareing Exp $
*
* Copyright (c) 2004 bitweaver.org
* Copyright (c) 2003 tikwiki.org
@@ -8,7 +8,7 @@
* All Rights Reserved. See copyright.txt for details and a complete list of authors.
* Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details
*
- * $Id: usage_chart.php,v 1.4 2006/04/11 13:09:28 squareing Exp $
+ * $Id: usage_chart.php,v 1.5 2007/06/22 12:35:26 squareing Exp $
* @package stats
* @subpackage functions
*/
@@ -24,8 +24,9 @@ global $gBitSystem;
$gBitSystem->isPackageActive( 'stats' );
$gBitSystem->verifyPermission( 'p_stats_view' );
-// data to be displayed
-$data = $statslib->get_usage_chart_data();
+$stats = new Statistics();
+
+$data = $stats->getUsageChartData();
$chart_type = !empty( $_REQUEST['chart_type'] ) ? $_REQUEST['chart_type'] : 'bars';