6 $page->title
= _('Board List');
7 unset($page->nav
[_('Board List')]);
11 switch ( $user->u_blist_view
) {
13 new boardlist_default
; break;
15 new boardlist_so1
; break;
17 new boardlist_so2
; break;
20 $list = $DB->query('SELECT `userid`, `u_name` FROM `users` WHERE `u_lastactive` > UNIX_TIMESTAMP() - 600 ORDER BY `u_name` ASC');
21 $count = $list->num_rows
;
22 $html = ( $user instanceof authuser ?
array('<a href="userlist?show=online">', '</a>') : array('', '') );
23 $onlinestring = ngettext('There is %s%d user online%s', 'There are %s%d users online%s', $count);
26 '<div class="info">',_('Statistics'),' <a href="stuff"><small>',_('(more)'),'</small></a></div>
27 <div id="bl-onlinecount" class="content">',sprintf($onlinestring, $html[0], $count, $html[1]);
29 if ( $count < 30 && $count > 0 ) {
30 $firstuser = $list->fetch_row();
31 echo ': ',$user->namelink($firstuser[0], $firstuser[1]);
32 while ( $nextuser = $list->fetch_row() )
33 echo ', ',$user->namelink($nextuser[0], $nextuser[1]);
38 '<div class="content">',_('Current Time: '),$user->fdate(time()),'</div>';