diff options
| author | bitweaver.org <bitweaver@users.sourceforge.net> | 2005-06-19 05:05:49 +0000 |
|---|---|---|
| committer | bitweaver.org <bitweaver@users.sourceforge.net> | 2005-06-19 05:05:49 +0000 |
| commit | 46f830dad39e14252870dac7955f2b5d106dee64 (patch) | |
| tree | c746a79a1c17365db74bd7ce1f46b90c3a7caa74 /pv_chart.php | |
| download | stats-46f830dad39e14252870dac7955f2b5d106dee64.tar.gz stats-46f830dad39e14252870dac7955f2b5d106dee64.tar.bz2 stats-46f830dad39e14252870dac7955f2b5d106dee64.zip | |
IMPORT TikiPro CLYDE FINAL
Diffstat (limited to 'pv_chart.php')
| -rw-r--r-- | pv_chart.php | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/pv_chart.php b/pv_chart.php new file mode 100644 index 0000000..6eafe46 --- /dev/null +++ b/pv_chart.php @@ -0,0 +1,38 @@ +<?php + +// $Header: /cvsroot/bitweaver/_bit_stats/pv_chart.php,v 1.1 2005/06/19 05:05:49 bitweaver Exp $ + +// Copyright (c) 2002-2003, Luis Argerich, Garland Foster, Eduardo Polidor, et. al. +// 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. + +require_once( '../bit_setup_inc.php' ); +//Include the code +include (UTIL_PKG_PATH."phplot.php"); +global $gBitSystem, $gBitSystem; + +if ($gBitSystem->mPrefs['feature_stats'] != 'y') { + die; +} + +if ($bit_p_view_stats != 'y') { + die; +} + +//Define the object +$graph = new PHPlot; + +//Set some data +if (!isset($_REQUEST["days"])) + $_REQUEST["days"] = 7; + +$example_data = $gBitSystem->get_pv_chart_data($_REQUEST["days"]); +$graph->SetDataValues($example_data); +//$graph->SetPlotType('bars'); +$graph->SetPlotType('lines'); +$graph->SetYLabel(tra('pageviews')); +$graph->SetXLabel(tra('day')); +//Draw it +$graph->DrawGraph(); + +?> |
