}
function execute( $par ) {
- global $wgRequest, $wgOut, $wgBlockOpenProxies, $wgProxyKey;
+ global $wgBlockOpenProxies, $wgProxyKey;
$this->setHeaders();
$this->outputHeader();
- $ip = $wgRequest->getIP();
- if( !$wgBlockOpenProxies || $wgRequest->getText( 'ip' ) != md5( $ip . $wgProxyKey ) ) {
- $wgOut->addWikiMsg( 'proxyblocker-disabled' );
+ $ip = $this->getRequest()->getIP();
+ if( !$wgBlockOpenProxies || $this->getRequest()->getText( 'ip' ) != md5( $ip . $wgProxyKey ) ) {
+ $this->getOutput()->addWikiMsg( 'proxyblocker-disabled' );
return;
}
$block->insert();
- $wgOut->addWikiMsg( 'proxyblocksuccess' );
+ $this->getOutput()->addWikiMsg( 'proxyblocksuccess' );
}
}