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
|
|
|
}
|
|
|
|
|
2011-10-14 23:09:19 +00:00
|
|
|
require_once dirname( __FILE__ ) . '/ConfirmEdit.php';
|
|
|
|
$wgCaptchaClass = 'MathCaptcha';
|
|
|
|
|
2009-07-19 15:13:01 +00:00
|
|
|
$wgAutoloadClasses['MathCaptcha'] = dirname( __FILE__ ) . '/MathCaptcha.class.php';
|