summaryrefslogtreecommitdiff
path: root/pv_chart.php
diff options
context:
space:
mode:
authorMax Kremmel <xing@synapse.plus.com>2005-08-24 20:57:55 +0000
committerMax Kremmel <xing@synapse.plus.com>2005-08-24 20:57:55 +0000
commit23f86c491b34ab8cbfaf932137c385e1660f046d (patch)
tree380d655d12e00beaa5b321e736bba50e4002d03d /pv_chart.php
parent284eb65260d5687d30fc87fb0ecbe843a4915148 (diff)
downloadstats-23f86c491b34ab8cbfaf932137c385e1660f046d.tar.gz
stats-23f86c491b34ab8cbfaf932137c385e1660f046d.tar.bz2
stats-23f86c491b34ab8cbfaf932137c385e1660f046d.zip
synch recent changes from R1 to HEAD
Diffstat (limited to 'pv_chart.php')
-rw-r--r--pv_chart.php20
1 files changed, 8 insertions, 12 deletions
diff --git a/pv_chart.php b/pv_chart.php
index 29b8407..2de82af 100644
--- a/pv_chart.php
+++ b/pv_chart.php
@@ -1,6 +1,6 @@
<?php
/**
- * $Header: /cvsroot/bitweaver/_bit_stats/pv_chart.php,v 1.2 2005/06/28 07:45:58 spiderr Exp $
+ * $Header: /cvsroot/bitweaver/_bit_stats/pv_chart.php,v 1.3 2005/08/24 20:57:55 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: pv_chart.php,v 1.2 2005/06/28 07:45:58 spiderr Exp $
+ * $Id: pv_chart.php,v 1.3 2005/08/24 20:57:55 squareing Exp $
* @package stats
* @subpackage functions
*/
@@ -18,16 +18,12 @@
*/
require_once( '../bit_setup_inc.php' );
//Include the code
-include (UTIL_PKG_PATH."phplot.php");
-global $gBitSystem, $gBitSystem;
+include_once( STATS_PKG_PATH . "stats_lib.php" );
+include_once( UTIL_PKG_PATH . "phplot.php" );
+global $gBitSystem;
-if ($gBitSystem->mPrefs['feature_stats'] != 'y') {
- die;
-}
-
-if ($bit_p_view_stats != 'y') {
- die;
-}
+$gBitSystem->isPackageActive( 'stats' );
+$gBitSystem->verifyPermission( 'bit_p_view_stats' );
//Define the object
$graph = new PHPlot;
@@ -36,7 +32,7 @@ $graph = new PHPlot;
if (!isset($_REQUEST["days"]))
$_REQUEST["days"] = 7;
-$example_data = $gBitSystem->get_pv_chart_data($_REQUEST["days"]);
+$example_data = $statslib->get_pv_chart_data($_REQUEST["days"]);
$graph->SetDataValues($example_data);
//$graph->SetPlotType('bars');
$graph->SetPlotType('lines');