-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSpecialOneColumnAllUsers.php
More file actions
27 lines (25 loc) · 916 Bytes
/
SpecialOneColumnAllUsers.php
File metadata and controls
27 lines (25 loc) · 916 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php
if ( !defined( 'MEDIAWIKI' ) ) {
die( 'This file is a MediaWiki extension. It is not a valid entry point' );
}
class SpecialOneColumnAllUsers extends SpecialPage {
function __construct( ) {
parent::__construct( 'OneColumnAllUsers' );
}
function execute( $par ) {
$this->setHeaders();
$viewOutput = $this->getOutput();
$dbr = wfGetDB( DB_SLAVE );
global $wgSitename;
$output = "<big>'''" . wfMessage( 'onecolumnallusers-intro', $wgSitename )->plain()
. "'''</big><br>";
$namespaces = MWNamespace::getCanonicalNamespaces();
$res = $dbr->select( 'user', array ( 'user_name' ), '1=1',
__METHOD__, array( 'ORDER BY' => 'user_id ASC' ) );
foreach ( $res as $row ) {
$output .= "[[User:" . $row->user_name . "|" . $row->user_name . "]]<br>";
}
$viewOutput->addWikiText( $output );
return $output;
}
}