mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ConfirmEdit
synced 2024-11-24 00:04:15 +00:00
22 lines
487 B
PHP
22 lines
487 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;
|
||
|
}
|
||
|
|
||
|
require_once dirname( __DIR__ ) . '/ConfirmEdit.php';
|
||
|
$wgCaptchaClass = 'MathCaptcha';
|
||
|
|
||
|
$wgAutoloadClasses['MathCaptcha'] = __DIR__ . '/MathCaptcha.class.php';
|