mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ConfirmEdit
synced 2024-11-15 20:09:25 +00:00
3ef1ab740a
* Replace dirname( __FILE__ ) by __DIR__. * Replace deprecated method calls. Now requires MediaWiki 1.19 or later. * Fix some documentation. * Remove commented out code. * Remove superfluous newlines. Change-Id: Ib73e1619aa331c83e375224b6adae4c1e5db3bb9
43 lines
1.1 KiB
PHP
43 lines
1.1 KiB
PHP
<?php
|
|
/**
|
|
* Asirra CAPTCHA module for the ConfirmEdit MediaWiki extension.
|
|
* @author Bachsau
|
|
* @author Niklas Laxström
|
|
*
|
|
* Makes use of the Asirra (Animal Species Image Recognition for
|
|
* Restricting Access) CAPTCHA service, developed by John Douceur, Jeremy
|
|
* Elson and Jon Howell at Microsoft Research.
|
|
*
|
|
* Asirra uses a large set of images from http://petfinder.com.
|
|
*
|
|
* For more information about Asirra, see:
|
|
* http://research.microsoft.com/en-us/um/redmond/projects/asirra/
|
|
*
|
|
* This MediaWiki code is released into the public domain, without any
|
|
* warranty. YOU CAN DO WITH IT WHATEVER YOU LIKE!
|
|
*
|
|
* @file
|
|
* @ingroup Extensions
|
|
*/
|
|
|
|
if ( !defined( 'MEDIAWIKI' ) ) {
|
|
exit;
|
|
}
|
|
|
|
$dir = __DIR__ . '/';
|
|
require_once( "$dir/ConfirmEdit.php" );
|
|
|
|
$wgCaptchaClass = 'Asirra';
|
|
$wgExtensionMessagesFiles['Asirra'] = "$dir/Asirra.i18n.php";
|
|
$wgAutoloadClasses['Asirra'] = "$dir/Asirra.class.php";
|
|
|
|
$wgResourceModules['ext.confirmedit.asirra'] = array(
|
|
'localBasePath' => $dir,
|
|
'remoteExtPath' => 'ConfirmEdit',
|
|
'scripts' => 'ext.confirmedit.asirra.js',
|
|
'messages' => array(
|
|
'asirra-failed',
|
|
),
|
|
);
|
|
|