Commit graph

21 commits

Author SHA1 Message Date
Florian dc727507ea Move ReCaptcha to it's own place
Bug: T88047
Change-Id: I6cdb9ac1d21c84fc9b01cd90b9cba4aa3db1eccc
2015-05-21 19:08:12 +02:00
Florian bd5c5d494e Move i18n to Captcha modules own directory
1. change in preparation for ExtensionRegistration.

Bug: T88047
Change-Id: Ia3b84d3cb71832749ae73774dadb292dc4b9157b
2015-05-21 17:32:51 +02:00
Siebrand Mazeland aca764a8c2 Migrate to JSON i18n
Procedure per https://www.mediawiki.org/wiki/Manual:GenerateJsonI18n.php
with shim.

Change-Id: I71327ba3a0db3f9a94afcac033f1d2fde0ca4173
2014-03-26 12:58:25 +01:00
Siebrand Mazeland 3ef1ab740a More maintenance for ConfirmEdit extension.
* 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
2012-09-02 14:26:45 +02:00
Siebrand Mazeland f6d4ab758c stylize.php, some indentation fixes and some brackets added. 2012-01-12 08:58:40 +00:00
Siebrand Mazeland d92dcf2db5 Fix fatal in r108694. 2012-01-12 08:56:10 +00:00
Sam Reed e838dbca50 Load the Recaptcha class in a way that has some chance of even working 2012-01-11 23:24:21 +00:00
Jeroen De Dauw c068e3324b follow up to r106097 - somehow managed to remove a line o_O also did some stylizing 2011-12-13 22:29:13 +00:00
Jeroen De Dauw 485ae0e303 kill wfGetIP 2011-12-13 21:24:03 +00:00
Mark A. Hershberger 07711cb2a9 Initial, pre-test, commit of modified patch for Bug 31608 - API edit support for reCAPTCHA
From the comment:

    This patch implements addCaptchaAPI and removes ConfirmEdit, since
    it's unnecessary - it seems it was reimplemented in ReCaptcha to
    detect when the captcha had to be shown for the first time and not
    show an error message, but a minor change to passCaptcha ( if (
    $response === null ) { return false; } ) accomplishes that.

    Because the api edit module sets wpCaptchaId and wpCaptchaWord,
    those are passed to recaptcha as recaptcha_challenge_field and
    recaptcha_response_field if the latter two are not set. The api
    returns only the public key and the error message - the client can
    use this to ask the recaptcha server for a captcha, it works in
    javascript at least.

Will test and comment further.
2011-12-01 16:59:49 +00:00
Mark A. Hershberger d0f09207fe moar w/s fixups 2011-12-01 16:51:18 +00:00
Mark A. Hershberger 26408799a5 w/s fixups before real changes. 2011-12-01 16:42:11 +00:00
Sam Reed 64b6239348 * (bug 32609) API: Move captchaid/captchaword of action=edit from core to Captcha extension(s)
Left setting of wpCaptchaId and wpCaptchaWord in core. Can't think of a sane way to check and set them via an extension (subclass and override, or a hook). Annoyingly APIEditBeforeSave doesn't pass the params array
2011-11-23 19:09:57 +00:00
John Du Hart e4253ff56d Followup 100813, use Xml::encodeJsVar and Html::inlineScript 2011-10-27 11:34:34 +00:00
John Du Hart c9f3c87280 Bug 31609 - Option to change reCAPTCHA theme
Patch by Nx.devnull
2011-10-26 14:51:34 +00:00
Sven Heinemann 39bf5608e2 Easier installation: is now automaticaly set for every additional plugin. 2011-10-14 23:09:19 +00:00
Brion Vibber 791861ade7 * (bug 31252) ReCaptcha HTTPS support, avoids mixed-content security warnings
Patch from Alex Legler with a slight tweak for easier 1.17 compat (use $_SERVER['HTTPS'] directly as WebRequest::detectPort() isn't there yet)

Updates recaptchalib.php to current: version 1.11 from http://code.google.com/p/recaptcha/downloads/detail?name=recaptcha-php-1.11.zip&can=2&q=
2011-09-29 21:31:11 +00:00
Sam Reed a4e11ba3f0 * (bug 28783) Declaration of ReCaptcha::confirmEdit() incompatible with that of SimpleCaptcha::confirmEdit()
Fix whitespace also
2011-05-02 21:26:04 +00:00
Sam Reed 1cccda834f Followup r81231, r81229
svn:eol-style native

Fix credits

Fix ?>
2011-01-31 09:50:27 +00:00
Yaron Koren e83a2d1e97 Fixed errors 2011-01-31 06:00:46 +00:00
Yaron Koren 98c3f7ce56 Adding files from the ReCAPTCHA extension, with minor modifications 2011-01-31 05:40:06 +00:00