Deleted the ricer gettext crap in post.php
[specialops2.git] / index.php
blob99aac8518cdfca1bdb16c762bf8a7b4fa0476a6a
1 <?php
2 // $Id$
4 require 'con.php';
6 $page->title = _('Board List');
7 unset($page->nav[_('Board List')]);
9 $user->userheader();
11 switch ( $user->u_blist_view ) {
12 case 0:
13 new boardlist_default; break;
14 case 1:
15 new boardlist_so1; break;
16 case 2:
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);
25 echo
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]);
35 else echo '.';
37 echo "</div>\n",
38 '<div class="content">',_('Current Time: '),$user->fdate(time()),'</div>';
40 $page->pagefooter();