2011-12-09 16:10:27 +00:00
|
|
|
<?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;
|
|
|
|
}
|
|
|
|
|
2013-01-17 02:00:09 +00:00
|
|
|
$dir = __DIR__;
|
|
|
|
require_once( $dir . '/ConfirmEdit.php' );
|
2011-12-09 16:10:27 +00:00
|
|
|
|
|
|
|
$wgCaptchaClass = 'Asirra';
|
2014-03-26 11:55:44 +00:00
|
|
|
$wgMessagesDirs['Asirra'] = __DIR__ . '/i18n/asirra';
|
2013-01-17 02:00:09 +00:00
|
|
|
$wgExtensionMessagesFiles['Asirra'] = $dir . '/Asirra.i18n.php';
|
|
|
|
$wgAutoloadClasses['Asirra'] = $dir . '/Asirra.class.php';
|
2011-12-09 16:10:27 +00:00
|
|
|
|
2013-01-17 02:00:09 +00:00
|
|
|
$wgResourceModules['ext.confirmEdit.asirra'] = array(
|
|
|
|
'localBasePath' => $dir . '/resources',
|
|
|
|
'remoteExtPath' => 'ConfirmEdit/resources',
|
|
|
|
'scripts' => 'ext.confirmEdit.asirra.js',
|
2011-12-09 16:10:27 +00:00
|
|
|
'messages' => array(
|
|
|
|
'asirra-failed',
|
|
|
|
),
|
|
|
|
);
|
|
|
|
|