diff options
| author | Max Kremmel <xing@synapse.plus.com> | 2005-08-07 17:46:44 +0000 |
|---|---|---|
| committer | Max Kremmel <xing@synapse.plus.com> | 2005-08-07 17:46:44 +0000 |
| commit | 9b38210fb4c8b5c75e2c1359d67150ae0f09d652 (patch) | |
| tree | 653a2ee5c8ea302c90b56519d1e4c87f53c2deef /users.php | |
| parent | a7d09f5dee475af4717cb69fcc29206d940d23ee (diff) | |
| download | stats-9b38210fb4c8b5c75e2c1359d67150ae0f09d652.tar.gz stats-9b38210fb4c8b5c75e2c1359d67150ae0f09d652.tar.bz2 stats-9b38210fb4c8b5c75e2c1359d67150ae0f09d652.zip | |
merge recent changes from R1 to HEAD
Diffstat (limited to 'users.php')
| -rw-r--r-- | users.php | 94 |
1 files changed, 48 insertions, 46 deletions
@@ -1,47 +1,49 @@ -<?php
-/**
- * $Header: /cvsroot/bitweaver/_bit_stats/users.php,v 1.3 2005/08/01 18:41: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.3 2005/08/01 18:41:26 squareing Exp $
- * @package stats
- * @subpackage functions
- */
-
-require_once( '../bit_setup_inc.php' );
-
-include_once( STATS_PKG_PATH.'stats_lib.php' );
-global $statslib, $gBitSystem;
-
-$gBitSystem->verifyPackage( 'stats' );
-
-$gBitSystem->verifyPermission( 'bit_p_view_stats' );
-
-if (!isset($_REQUEST["period"])) {
- $_REQUEST["period"] = 86400;
-}
-
-switch( $_REQUEST["period"] ) {
- case 2592000:
- $periodName = '30 Days';
- break;
- case 604800:
- $periodName = 'Weekly';
- break;
- case 86400:
- $periodName = 'Daily';
- break;
-}
-$gBitSmarty->assign( 'periodName', $periodName );
-
-$stats = $statslib->registrationStats( $_REQUEST["period"] );
-
-$gBitSmarty->assign_by_ref( 'userStats', $stats );
-
-// Display the template
-$gBitSystem->display( 'bitpackage:stats/user_stats.tpl');
-
+<?php +/** + * $Header: /cvsroot/bitweaver/_bit_stats/users.php,v 1.4 2005/08/07 17:46:43 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.4 2005/08/07 17:46:43 squareing Exp $ + * @package stats + * @subpackage functions + */ +/** + * Required files + */ +require_once( '../bit_setup_inc.php' ); +include_once( STATS_PKG_PATH.'stats_lib.php' ); + +global $statslib, $gBitSystem; + +$gBitSystem->verifyPackage( 'stats' ); + +$gBitSystem->verifyPermission( 'bit_p_view_stats' ); + +if (!isset($_REQUEST["period"])) { + $_REQUEST["period"] = 86400; +} + +switch( $_REQUEST["period"] ) { + case 2592000: + $periodName = '30 Days'; + break; + case 604800: + $periodName = 'Weekly'; + break; + case 86400: + $periodName = 'Daily'; + break; +} +$gBitSmarty->assign( 'periodName', $periodName ); + +$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 |
