Index: trunk/extensions/ConfirmEdit/ReCaptcha.php |
— | — | @@ -10,10 +10,13 @@ |
11 | 11 | * @licence MIT/X11 |
12 | 12 | */ |
13 | 13 | |
14 | | -if( !defined( 'MEDIAWIKI' ) ) { |
| 14 | +if ( !defined( 'MEDIAWIKI' ) ) { |
15 | 15 | exit; |
16 | 16 | } |
17 | 17 | |
| 18 | +require_once dirname( __FILE__ ) . '/ConfirmEdit.php'; |
| 19 | +$wgCaptchaClass = 'ReCaptcha'; |
| 20 | + |
18 | 21 | $wgExtensionMessagesFiles['ReCaptcha'] = dirname( __FILE__ ) . '/ReCaptcha.i18n.php'; |
19 | 22 | |
20 | 23 | require_once( 'recaptchalib.php' ); |
Index: trunk/extensions/ConfirmEdit/MathCaptcha.php |
— | — | @@ -12,8 +12,10 @@ |
13 | 13 | */ |
14 | 14 | |
15 | 15 | if ( !defined( 'MEDIAWIKI' ) ) { |
16 | | - echo( "This file is an extension to the MediaWiki software and cannot be used standalone.\n" ); |
17 | | - die( 1 ); |
| 16 | + exit; |
18 | 17 | } |
19 | 18 | |
| 19 | +require_once dirname( __FILE__ ) . '/ConfirmEdit.php'; |
| 20 | +$wgCaptchaClass = 'MathCaptcha'; |
| 21 | + |
20 | 22 | $wgAutoloadClasses['MathCaptcha'] = dirname( __FILE__ ) . '/MathCaptcha.class.php'; |
Index: trunk/extensions/ConfirmEdit/QuestyCaptcha.php |
— | — | @@ -28,6 +28,9 @@ |
29 | 29 | exit; |
30 | 30 | } |
31 | 31 | |
| 32 | +require_once dirname( __FILE__ ) . '/ConfirmEdit.php'; |
| 33 | +$wgCaptchaClass = 'QuestyCaptcha'; |
| 34 | + |
32 | 35 | global $wgCaptchaQuestions; |
33 | 36 | $wgCaptchaQuestions = array(); |
34 | 37 | |
Index: trunk/extensions/ConfirmEdit/FancyCaptcha.php |
— | — | @@ -29,6 +29,9 @@ |
30 | 30 | exit; |
31 | 31 | } |
32 | 32 | |
| 33 | +require_once dirname( __FILE__ ) . '/ConfirmEdit.php'; |
| 34 | +$wgCaptchaClass = 'FancyCaptcha'; |
| 35 | + |
33 | 36 | global $wgCaptchaDirectory; |
34 | 37 | $wgCaptchaDirectory = "$wgUploadDirectory/captcha"; // bad default :D |
35 | 38 | |