mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ConfirmEdit
synced 2024-12-18 02:41:01 +00:00
3ef1ab740a
* Replace dirname( __FILE__ ) by __DIR__. * Replace deprecated method calls. Now requires MediaWiki 1.19 or later. * Fix some documentation. * Remove commented out code. * Remove superfluous newlines. Change-Id: Ib73e1619aa331c83e375224b6adae4c1e5db3bb9
23 lines
486 B
PHP
23 lines
486 B
PHP
<?php
|
|
|
|
/**
|
|
* Captcha class using simple sums and the math renderer
|
|
* Not brilliant, but enough to dissuade casual spam bots
|
|
*
|
|
* @file
|
|
* @ingroup Extensions
|
|
* @author Rob Church <robchur@gmail.com>
|
|
* @copyright © 2006 Rob Church
|
|
* @licence GNU General Public Licence 2.0
|
|
*/
|
|
|
|
if ( !defined( 'MEDIAWIKI' ) ) {
|
|
exit;
|
|
}
|
|
|
|
$dir = __DIR__;
|
|
require_once $dir . '/ConfirmEdit.php';
|
|
$wgCaptchaClass = 'MathCaptcha';
|
|
|
|
$wgAutoloadClasses['MathCaptcha'] = $dir . '/MathCaptcha.class.php';
|