diff options
| author | Paul S. Owen <psotfx@users.sourceforge.net> | 2002-10-04 13:09:10 +0000 |
|---|---|---|
| committer | Paul S. Owen <psotfx@users.sourceforge.net> | 2002-10-04 13:09:10 +0000 |
| commit | 30aeac65dccceab18e19318e5981118f150c0647 (patch) | |
| tree | 409e1a742796ff1c988593c43f19a9533c258742 /phpBB/viewonline.php | |
| parent | b5bbc005a51658c7496abdcad9b23e978fb7db68 (diff) | |
| download | forums-30aeac65dccceab18e19318e5981118f150c0647.tar forums-30aeac65dccceab18e19318e5981118f150c0647.tar.gz forums-30aeac65dccceab18e19318e5981118f150c0647.tar.bz2 forums-30aeac65dccceab18e19318e5981118f150c0647.tar.xz forums-30aeac65dccceab18e19318e5981118f150c0647.zip | |
Well, here are all my changes ... don't blame me if things break :D
git-svn-id: file:///svn/phpbb/trunk@2923 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/viewonline.php')
| -rw-r--r-- | phpBB/viewonline.php | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/phpBB/viewonline.php b/phpBB/viewonline.php index 5df863843c..89ae2fe2f6 100644 --- a/phpBB/viewonline.php +++ b/phpBB/viewonline.php @@ -24,19 +24,11 @@ $phpbb_root_path = './'; include($phpbb_root_path . 'extension.inc'); include($phpbb_root_path . 'common.'.$phpEx); -// // Start session management -// $userdata = $session->start(); -$acl = new acl($userdata); -// +$auth->acl($userdata); +$user = new user($userdata); // End session management -// - -// -// Configure style, language, etc. -// -$session->configure($userdata); // // Forum info @@ -88,7 +80,7 @@ while ( $row = $db->sql_fetchrow($result) ) if ( !$row['user_allow_viewonline'] ) { - $view_online = ( $acl->get_acl_admin() ) ? true : false; + $view_online = ( $auth->get_acl_admin() ) ? true : false; $hidden_users++; $username = '<i>' . $username . '</i>'; @@ -136,7 +128,7 @@ while ( $row = $db->sql_fetchrow($result) ) preg_match('/f=([0-9]+)/', $row['session_page'], $forum_id); $forum_id = $forum_id[1]; - if ( $acl->get_acl($forum_id, 'forum' , 'list') ) + if ( $auth->get_acl($forum_id, 'forum' , 'list') ) { $location = ''; switch ( $on_page[1] ) @@ -193,7 +185,7 @@ while ( $row = $db->sql_fetchrow($result) ) $template->assign_block_vars("$which_row", array( 'USERNAME' => $username, - 'LASTUPDATE' => create_date($board_config['default_dateformat'], $row['session_time'], $board_config['board_timezone']), + 'LASTUPDATE' => $user->format_date($row['session_time']), 'FORUM_LOCATION' => $location, 'S_ROW_COUNT' => $$which_counter, |
