diff options
| author | Max Kremmel <xing@synapse.plus.com> | 2007-06-22 12:35:26 +0000 |
|---|---|---|
| committer | Max Kremmel <xing@synapse.plus.com> | 2007-06-22 12:35:26 +0000 |
| commit | 643c5ff5b94066529aa1dd1e6ddf41ab86b731d1 (patch) | |
| tree | f8ee1333afb89794527ad87260131cc1e12a443a /users.php | |
| parent | 7b3c4d681d6a88e4e4de5a7a28524f63da468ca5 (diff) | |
| download | stats-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 'users.php')
| -rw-r--r-- | users.php | 17 |
1 files changed, 6 insertions, 11 deletions
@@ -1,12 +1,12 @@ <?php /** - * $Header: /cvsroot/bitweaver/_bit_stats/users.php,v 1.6 2006/04/11 13:09:28 squareing Exp $ + * $Header: /cvsroot/bitweaver/_bit_stats/users.php,v 1.7 2007/06/22 12:35:26 squareing Exp $ * * Copyright (c) 2005 bitweaver.org * 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: users.php,v 1.6 2006/04/11 13:09:28 squareing Exp $ + * $Id: users.php,v 1.7 2007/06/22 12:35:26 squareing Exp $ * @package stats * @subpackage functions */ @@ -16,23 +16,18 @@ require_once( '../bit_setup_inc.php' ); include_once( STATS_PKG_PATH.'stats_lib.php' ); -global $statslib, $gBitSystem; +$stats = new Statistics(); $gBitSystem->verifyPackage( 'stats' ); - $gBitSystem->verifyPermission( 'p_stats_view' ); -if (!isset($_REQUEST["period"])) { +if( !isset( $_REQUEST["period"] )) { $_REQUEST["period"] = 'month'; } +$gBitSmarty->assign( 'userStats', $stats->registrationStats( $_REQUEST["period"] )); $gBitSmarty->assign( 'period', $_REQUEST["period"] ); -$stats = $statslib->registrationStats( $_REQUEST["period"] ); - -$gBitSmarty->assign_by_ref( 'userStats', $stats ); - // Display the template $gBitSystem->display( 'bitpackage:stats/user_stats.tpl'); - -?>
\ No newline at end of file +?> |
