MediaWiki REL1_33
SpecialCaptcha.php
Go to the documentation of this file.
1<?php
2
4 public function __construct() {
5 parent::__construct( 'Captcha' );
6 }
7
8 public function execute( $par ) {
9 $this->setHeaders();
10
12
13 switch ( $par ) {
14 case "image":
15 if ( method_exists( $instance, 'showImage' ) ) {
16 // @todo: Do this in a more OOP way
17 return $instance->showImage();
18 }
19 case "help":
20 default:
21 return $instance->showHelp();
22 }
23 }
24}
and that you know you can do these things To protect your we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights These restrictions translate to certain responsibilities for you if you distribute copies of the or if you modify it For if you distribute copies of such a whether gratis or for a you must give the recipients all the rights that you have You must make sure that receive or can get the source code And you must show them these terms so they know their rights We protect your rights with two and(2) offer you this license which gives you legal permission to copy
static getInstance()
Get the global Captcha instance.
execute( $par)
Default execute method Checks user permissions.
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.