Index: trunk/extensions/CentralAuth/SpecialCentralAuth.php |
— | — | @@ -71,7 +71,7 @@ |
72 | 72 | if( $this->mPosted ) { |
73 | 73 | if ( !$wgUser->matchEditToken( $wgRequest->getVal( 'wpEditToken' ) ) ) { |
74 | 74 | $this->showError( 'centralauth-token-mismatch' ); |
75 | | - } elseif( $this->mMethod == 'unmerge' ) { |
| 75 | + /* } elseif( $this->mMethod == 'unmerge' ) { |
76 | 76 | $status = $globalUser->adminUnattach( $this->mWikis ); |
77 | 77 | if ( !$status->isGood() ) { |
78 | 78 | $this->showStatusError( $status->getWikiText() ); |
— | — | @@ -79,7 +79,7 @@ |
80 | 80 | global $wgLang; |
81 | 81 | $this->showSuccess( 'centralauth-admin-unmerge-success', |
82 | 82 | $wgLang->formatNum( $status->successCount ), |
83 | | - /* deprecated */ $status->successCount ); |
| 83 | + */ /* deprecated */ /* $status->successCount ); |
84 | 84 | } |
85 | 85 | } elseif ( $this->mMethod == 'delete' ) { |
86 | 86 | $status = $globalUser->adminDelete(); |
— | — | @@ -90,7 +90,7 @@ |
91 | 91 | $this->showSuccess( 'centralauth-admin-delete-success', $this->mUserName ); |
92 | 92 | $deleted = true; |
93 | 93 | $this->logAction( 'delete', $this->mUserName, $wgRequest->getVal( 'reason' ) ); |
94 | | - } |
| 94 | + } */ |
95 | 95 | } elseif( $this->mMethod == 'lock' ) { |
96 | 96 | $status = $globalUser->adminLock(); |
97 | 97 | if ( !$status->isGood() ) { |
— | — | @@ -140,7 +140,7 @@ |
141 | 141 | $this->showUsernameForm(); |
142 | 142 | if ( !$deleted ) { |
143 | 143 | $this->showInfo(); |
144 | | - $this->showActionForm( 'delete' ); |
| 144 | + //$this->showActionForm( 'delete' ); |
145 | 145 | if( !$globalUser->isLocked() && !$locked ) |
146 | 146 | $this->showActionForm( 'lock' ); |
147 | 147 | if( $globalUser->isLocked() && !$unlocked ) |
— | — | @@ -267,12 +267,12 @@ |
268 | 268 | global $wgUser; |
269 | 269 | ksort( $list ); |
270 | 270 | return |
271 | | - Xml::openElement( 'form', |
| 271 | + /*Xml::openElement( 'form', |
272 | 272 | array( |
273 | 273 | 'method' => 'post', |
274 | 274 | 'action' => $this->getTitle( $this->mUserName )->getLocalUrl( 'action=submit' ) ) ) . |
275 | 275 | Xml::hidden( 'wpMethod', $action ) . |
276 | | - Xml::hidden( 'wpEditToken', $wgUser->editToken() ) . |
| 276 | + Xml::hidden( 'wpEditToken', $wgUser->editToken() ) .*/ |
277 | 277 | '<table>' . |
278 | 278 | '<thead>' . |
279 | 279 | $this->tableRow( 'th', |
— | — | @@ -282,15 +282,15 @@ |
283 | 283 | implode( "\n", |
284 | 284 | array_map( array( $this, $listMethod ), |
285 | 285 | $list ) ) . |
286 | | - '<tr>' . |
| 286 | + /*'<tr>' . |
287 | 287 | '<td></td>' . |
288 | 288 | '<td>' . |
289 | 289 | Xml::submitButton( $buttonText ) . |
290 | 290 | '</td>' . |
291 | | - '</tr>' . |
| 291 | + '</tr>' .*/ |
292 | 292 | '</tbody>' . |
293 | | - '</table>' . |
294 | | - Xml::closeElement( 'form' ); |
| 293 | + '</table>' /*. |
| 294 | + Xml::closeElement( 'form' )*/; |
295 | 295 | } |
296 | 296 | |
297 | 297 | function listMergedWikiItem( $row ) { |
— | — | @@ -332,7 +332,7 @@ |
333 | 333 | |
334 | 334 | function adminCheck( $wikiID ) { |
335 | 335 | return |
336 | | - Xml::check( 'wpWikis[]', false, array( 'value' => $wikiID ) ); |
| 336 | + '';//Xml::check( 'wpWikis[]', false, array( 'value' => $wikiID ) ); |
337 | 337 | } |
338 | 338 | |
339 | 339 | function showActionForm( $action ) { |