1e32ade1c18048661cdb3772890baf367e18b316
3 # This class is used to get a list of user. The ones with specials
4 # rights (sysop, bureaucrat, developer) will have them displayed
7 require_once("QueryPage.php");
9 class ListUsersPage
extends QueryPage
{
16 $dbr =& wfGetDB( DB_SLAVE
);
17 $user = $dbr->tableName( 'user' );
18 $user_rights = $dbr->tableName( 'user_rights' );
19 $userspace = Namespace::getUser();
20 return "SELECT r.user_rights as type, $userspace as namespace, u.user_name as title, " .
21 "u.user_name as value FROM $user u LEFT JOIN $user_rights r ON u.user_id = r.user_id";
24 function sortDescending() {
28 function formatResult( $skin, $result ) {
30 $name = $skin->makeLink( $wgLang->getNsText($result->namespace) . ':' . $result->title
, $result->title
);
31 if( '' != $result->type
) {
33 $skin->makeLink( wfMsg( "administrators" ), $result->type
) .
40 function wfSpecialListusers() {
41 global $wgUser, $wgOut, $wgLang;
43 list( $limit, $offset ) = wfCheckLimits();
45 $slu = new ListUsersPage();
47 return $slu->doQuery( $offset, $limit );