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' ) ) {
|
2006-06-12 19:56:17 +00:00
|
|
|
echo( "This file is an extension to the MediaWiki software and cannot be used standalone.\n" );
|
|
|
|
die( 1 );
|
|
|
|
}
|
|
|
|
|
2009-07-19 15:13:01 +00:00
|
|
|
$wgAutoloadClasses['MathCaptcha'] = dirname( __FILE__ ) . '/MathCaptcha.class.php';
|