2006-06-12 19:56:17 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Captcha class using simple sums and the math renderer
|
|
|
|
* Not brilliant, but enough to dissuade casual spam bots
|
|
|
|
*
|
2010-06-06 15:12:22 +00:00
|
|
|
* @file
|
|
|
|
* @ingroup Extensions
|
2006-06-12 19:56:17 +00:00
|
|
|
* @author Rob Church <robchur@gmail.com>
|
|
|
|
* @copyright © 2006 Rob Church
|
|
|
|
* @licence GNU General Public Licence 2.0
|
|
|
|
*/
|
|
|
|
|
2009-07-19 15:13:01 +00:00
|
|
|
if ( !defined( 'MEDIAWIKI' ) ) {
|
2011-10-14 23:09:19 +00:00
|
|
|
exit;
|
2006-06-12 19:56:17 +00:00
|
|
|
}
|
|
|
|
|
2015-05-21 15:32:51 +00:00
|
|
|
require_once __DIR__ . '/ConfirmEdit.php';
|
2011-10-14 23:09:19 +00:00
|
|
|
$wgCaptchaClass = 'MathCaptcha';
|
|
|
|
|
2015-05-21 15:32:51 +00:00
|
|
|
$wgAutoloadClasses['MathCaptcha'] = __DIR__ . '/MathCaptcha.class.php';
|