summaryrefslogtreecommitdiff
path: root/extensions/ConfirmEdit/Asirra.php
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2012-04-26 18:23:31 +0200
committerPierre Schmitz <pierre@archlinux.de>2012-04-26 18:23:31 +0200
commitc4372dd38a4d109b4f3881ea63b667e33adbe503 (patch)
treee8e6dae1229a68c26b7a348c73dc0c8c77da97e5 /extensions/ConfirmEdit/Asirra.php
parentcf566324cfb218f0c7323d97d2a103bbb8d60ba4 (diff)
Update to MediaWiki 1.18.3
Diffstat (limited to 'extensions/ConfirmEdit/Asirra.php')
-rw-r--r--extensions/ConfirmEdit/Asirra.php43
1 files changed, 43 insertions, 0 deletions
diff --git a/extensions/ConfirmEdit/Asirra.php b/extensions/ConfirmEdit/Asirra.php
new file mode 100644
index 00000000..21dd37a4
--- /dev/null
+++ b/extensions/ConfirmEdit/Asirra.php
@@ -0,0 +1,43 @@
+<?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 = dirname( __FILE__ ) . '/';
+require_once( "$dir/ConfirmEdit.php" );
+$dir = dirname( __FILE__ ) . '/';
+
+$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',
+ ),
+);
+