diff options
| author | Max Kremmel <xing@synapse.plus.com> | 2008-10-16 09:57:58 +0000 |
|---|---|---|
| committer | Max Kremmel <xing@synapse.plus.com> | 2008-10-16 09:57:58 +0000 |
| commit | 4d8106a25bf035b8ddda2933568ac3ed866eddf4 (patch) | |
| tree | 7ad83f6babb6aba97add5f9d4cbded31706aea9d /modules | |
| parent | 448834da5e2dd2163f1eaa85ce7e6ae748c0ee0c (diff) | |
| download | users-4d8106a25bf035b8ddda2933568ac3ed866eddf4.tar.gz users-4d8106a25bf035b8ddda2933568ac3ed866eddf4.tar.bz2 users-4d8106a25bf035b8ddda2933568ac3ed866eddf4.zip | |
massive code cleanup, added docs, renamed methods to have consistent camelCaps naming, moved unused methods to bottom of file with deprecated message.
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/mod_who_is_there.php | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/modules/mod_who_is_there.php b/modules/mod_who_is_there.php index 0ccb4db..c8414e1 100644 --- a/modules/mod_who_is_there.php +++ b/modules/mod_who_is_there.php @@ -1,6 +1,6 @@ <?php /** - * $Header: /cvsroot/bitweaver/_bit_users/modules/mod_who_is_there.php,v 1.6 2007/10/26 13:26:51 nickpalmer Exp $ + * $Header: /cvsroot/bitweaver/_bit_users/modules/mod_who_is_there.php,v 1.7 2008/10/16 09:57:58 squareing Exp $ * * Copyright (c) 2004 bitweaver.org * Copyright (c) 2003 tikwiki.org @@ -8,13 +8,11 @@ * 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: mod_who_is_there.php,v 1.6 2007/10/26 13:26:51 nickpalmer Exp $ + * $Id: mod_who_is_there.php,v 1.7 2008/10/16 09:57:58 squareing Exp $ * @package users * @subpackage modules */ -$logged_users = $gBitUser->count_sessions(true); -$listHash['online'] = true; -$online_users = $gBitUser->getUserActivity($listHash); -$gBitSmarty->assign('online_users', $online_users); -$gBitSmarty->assign('logged_users', $logged_users); +$listHash['online'] = TRUE; +$gBitSmarty->assign( 'online_users', $gBitUser->getUserActivity( $listHash )); +$gBitSmarty->assign( 'logged_users', $gBitUser->countSessions( TRUE )); ?> |
