mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ConfirmEdit
synced 2024-11-15 03:35:15 +00:00
aca764a8c2
Procedure per https://www.mediawiki.org/wiki/Manual:GenerateJsonI18n.php with shim. Change-Id: I71327ba3a0db3f9a94afcac033f1d2fde0ca4173
44 lines
1.2 KiB
PHP
44 lines
1.2 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';
|
|
$wgMessagesDirs['Asirra'] = __DIR__ . '/i18n/asirra';
|
|
$wgExtensionMessagesFiles['Asirra'] = $dir . '/Asirra.i18n.php';
|
|
$wgAutoloadClasses['Asirra'] = $dir . '/Asirra.class.php';
|
|
|
|
$wgResourceModules['ext.confirmEdit.asirra'] = array(
|
|
'localBasePath' => $dir . '/resources',
|
|
'remoteExtPath' => 'ConfirmEdit/resources',
|
|
'scripts' => 'ext.confirmEdit.asirra.js',
|
|
'messages' => array(
|
|
'asirra-failed',
|
|
),
|
|
);
|
|
|