summaryrefslogtreecommitdiff
path: root/users.php
diff options
context:
space:
mode:
authorMax Kremmel <xing@synapse.plus.com>2005-07-17 17:36:17 +0000
committerMax Kremmel <xing@synapse.plus.com>2005-07-17 17:36:17 +0000
commitf610cc437df9fb31cd0963700212022e952ba6ed (patch)
tree1be3af1b63f16963324078976799236848410364 /users.php
parent82da5ffb461ffc9556b7432f099a36f7603240b7 (diff)
downloadstats-f610cc437df9fb31cd0963700212022e952ba6ed.tar.gz
stats-f610cc437df9fb31cd0963700212022e952ba6ed.tar.bz2
stats-f610cc437df9fb31cd0963700212022e952ba6ed.zip
Merge recent changes from R1 to HEAD - never doing this again.
Diffstat (limited to 'users.php')
-rw-r--r--users.php47
1 files changed, 47 insertions, 0 deletions
diff --git a/users.php b/users.php
new file mode 100644
index 0000000..7c9c587
--- /dev/null
+++ b/users.php
@@ -0,0 +1,47 @@
+<?php
+/**
+ * $Header: /cvsroot/bitweaver/_bit_stats/users.php,v 1.2 2005/07/17 17:36:17 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.2 2005/07/17 17:36:17 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;
+}
+$smarty->assign( 'periodName', $periodName );
+
+$stats = $statslib->registrationStats( $_REQUEST["period"] );
+
+$smarty->assign_by_ref( 'userStats', $stats );
+
+// Display the template
+$gBitSystem->display( 'bitpackage:stats/user_stats.tpl');
+
+?> \ No newline at end of file