wiki.techinc.nl/includes/SpecialListadmins.php

38 lines
734 B
PHP
Raw Normal View History

<?php
2004-06-18 13:13:09 +00:00
#
# This class is used to get a list of users flagged with "sysop"
# right.
require_once("QueryPage.php");
class ListAdminsPage extends PageQueryPage {
function getName() {
return 'Listadmins';
}
2004-06-14 09:19:17 +00:00
function sortDescending() {
return false;
}
function getSQL() {
$dbr =& wfGetDB( DB_SLAVE );
$user = $dbr->tableName( 'user' );
$userspace = Namespace::getUser();
return 'SELECT user_rights as type,'.$userspace.' as namespace,'.
'user_name as title, user_name as value '.
"FROM $user ".
'WHERE user_rights LIKE "%sysop%"';
}
}
function wfSpecialListadmins() {
list( $limit, $offset ) = wfCheckLimits();
$sla = new ListAdminsPage();
return $sla->doQuery( $offset, $limit );
}
?>