MediaWiki REL1_31
SpecialCaptcha.php
Go to the documentation of this file.
1<?php
3 public function __construct() {
4 parent::__construct( 'Captcha' );
5 }
6
7 function execute( $par ) {
8 $this->setHeaders();
9
11
12 switch ( $par ) {
13 case "image":
14 if ( method_exists( $instance, 'showImage' ) ) {
15 return $instance->showImage();
16 }
17 case "help":
18 default:
19 return $instance->showHelp();
20 }
21 }
22}
execute( $par)
Default execute method Checks user permissions.
static getInstance()
Get the global Captcha instance.
setHeaders()
Sets headers - this should be called from the execute() method of all derived classes!
Shortcut to construct a special page which is unlisted by default.