3 function wfSpecialListusers()
5 global $wgUser, $wgOut, $wgLang;
7 list( $limit, $offset ) = wfCheckLimits();
9 $top = wfShowingResults( $offset, $limit );
10 $wgOut->addHTML( "<p>{$top}\n" );
12 $sl = wfViewPrevNext( $offset, $limit,
13 $wgLang->specialPage( "Listusers" ) );
14 $wgOut->addHTML( "<br>{$sl}\n<ol start=" . ( $offset +
1 ) . ">" );
16 $sql = "SELECT user_name,user_rights FROM user ORDER BY " .
17 "user_name LIMIT {$offset}, {$limit}";
18 $res = wfQuery( $sql, "wfSpecialListusers" );
20 $sk = $wgUser->getSkin();
21 while ( $s = wfFetchObject( $res ) ) {
25 $l = $sk->makeLink( $wgLang->getNsText(
26 Namespace::getUser() ) . ":{$n}", $n );
29 $link = $sk->makeKnownLink( wfMsg( "administrators" ), $r );
32 $wgOut->addHTML( "<li>{$l}</li>\n" );
35 $wgOut->addHTML( "</ol><p>{$sl}\n" );