ToastFreeware
/
toast
/
cookiecaptcha.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Don't check badlogin attempts in memcached if we are not configured to show captchas...
[toast/cookiecaptcha.git]
/
MathCaptcha.php
diff --git
a/MathCaptcha.php
b/MathCaptcha.php
index 772687a64de650907fdbc87cf70a55fc645bd0d0..8c815bf7986e835fea021002fdad62dd00661c4d 100644
(file)
--- a/
MathCaptcha.php
+++ b/
MathCaptcha.php
@@
-4,15
+4,18
@@
* Captcha class using simple sums and the math renderer
* Not brilliant, but enough to dissuade casual spam bots
*
* Captcha class using simple sums and the math renderer
* Not brilliant, but enough to dissuade casual spam bots
*
- * @addtogroup Extensions
+ * @file
+ * @ingroup Extensions
* @author Rob Church <robchur@gmail.com>
* @copyright © 2006 Rob Church
* @licence GNU General Public Licence 2.0
*/
* @author Rob Church <robchur@gmail.com>
* @copyright © 2006 Rob Church
* @licence GNU General Public Licence 2.0
*/
-if( !defined( 'MEDIAWIKI' ) ) {
- echo( "This file is an extension to the MediaWiki software and cannot be used standalone.\n" );
- die( 1 );
+if ( !defined( 'MEDIAWIKI' ) ) {
+ exit;
}
}
-$wgAutoloadClasses['MathCaptcha'] = dirname( __FILE__ ) . '/MathCaptcha.class.php';
+require_once dirname( __FILE__ ) . '/ConfirmEdit.php';
+$wgCaptchaClass = 'MathCaptcha';
+
+$wgAutoloadClasses['MathCaptcha'] = dirname( __FILE__ ) . '/MathCaptcha.class.php';