summaryrefslogtreecommitdiff
path: root/users.php
diff options
context:
space:
mode:
authorMax Kremmel <xing@synapse.plus.com>2005-08-07 17:46:44 +0000
committerMax Kremmel <xing@synapse.plus.com>2005-08-07 17:46:44 +0000
commit9b38210fb4c8b5c75e2c1359d67150ae0f09d652 (patch)
tree653a2ee5c8ea302c90b56519d1e4c87f53c2deef /users.php
parenta7d09f5dee475af4717cb69fcc29206d940d23ee (diff)
downloadstats-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.php94
1 files changed, 48 insertions, 46 deletions
diff --git a/users.php b/users.php
index aafbde9..8e59196 100644
--- a/users.php
+++ b/users.php
@@ -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