Commit graph

30 commits

Author SHA1 Message Date
Florian cad5bc9200 Move FancyCaptcha to its own location
3. step in preparation of ExtensionRegistration.

Bug: T88047
Change-Id: I31d8e0c01b16aafb39b4ead7acc88f2e91d33e6a
2015-05-21 16:19:38 +00: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
Gilles Dubuc 74a84b8acf Explicitly define module position
Style modules currently added through addModuleStyles default
to being in the head ("top" position). This is an unhealthy default,
since only critical styles that are needed at pageload should be
in the head. In order to be able to switch the default to "bottom",
existing module positions have to be defined explicitly.

Bug: T97410
Change-Id: I1604dbb0108b790d54cab9665fa160a000797b40
2015-04-28 15:42:03 +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
tholam 3cb0f3bb62 Add refresh functionality on fancycaptcha for mobile
Created a new module for use in mobilefrontend extension

Dependency: I4c92422428de60d2e11ba891fe44dbf43ad99c43
Bug: 51482
Change-Id: Ieecf289ec5fb7307369ba8b3f1ebbe682b900383
2013-11-27 17:19:36 -08:00
lalei 12361c5f31 Add a button to request a new fancy captcha
This adds HTML, CSS, and JS to FancyCaptcha output to refresh the image,
which requests it via a new fancycaptchareload API.
It also cleans up the Asirra class a little.

Bug: 14230
Change-Id: I4e476f32de199534c9798fc78e8490b3ef91dd45
2013-04-17 20:10:33 -04:00
Aaron Schulz 13d62bf9c7 File backend support for Captchas.
* Added $wgCaptchaFileBackend configuration setting.
  This causes captchas to be stored in the registered backend.
* Added $wgMemc usage to reduce directory operation I/O.
* Improved $wgCaptchaDeleteOnSolve in terms of race conditions.
* Added maintenance script to create and store new captchas based
  on the total amount desired and the current number remaining.

Change-Id: Iac490503fb94a8f003e3b7e1474a949b037af5df
2012-09-25 23:22:04 -07: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
Sven Heinemann 39bf5608e2 Easier installation: is now automaticaly set for every additional plugin. 2011-10-14 23:09:19 +00:00
Platonides a8b20e2906 (Bug 24730) - add a "delete on success" option.
Patch by infinity0x@gmail.com

I just added some spaces and added the FancyCaptcha.php definition.
2010-08-29 13:31:31 +00:00
Sam Reed 0324318073 Correct the address of the FSF in extension GPL headers
59 Temple Place -> 51 Franklin Street
2010-06-21 13:45:17 +00:00
Alexandre Emsenhuber f6b61b4dd6 Big changes to extensions' documentation:
* changed all @addtogroup to @ingroup
* added some @file where needed
* changed some @package/@subpackage to @ingroup
2010-06-06 15:12:22 +00:00
Siebrand Mazeland 4a6c4e2bcf * Update messages for QuestyCaptcha
* stylize.php and trailing whitespace removed for ConfirmEdit
* add support for QuestyCaptcha to Translate
* svn execute bits removed
2009-07-19 15:13:01 +00:00
Andrew Garrett 55acc4e981 Revert "Follow up on r43982. Reduce dirname(__FILE__) calls in core and extensions."
Uses $dir in extension files, and assumes that it remains unchanged in require_once( 'maintenance/commandLine.inc' ).
In fact, it is likely that '$dir' will be set when setting up command-line, as some extensions will use the same var.

Recommended fix: Use $CentralAuth_dir, $EmailPage_dir, etc.
2008-11-30 03:15:22 +00:00
Siebrand Mazeland 10f78a6edd Follow up on r43982. Reduce dirname(__FILE__) calls in core and extensions. 2008-11-26 23:17:15 +00:00
Tim Starling 152f5e39e0 * Optimised startup
* Use the new EditFilterMerged hook if available, for faster link finding
2007-11-12 07:42:25 +00:00
Aryeh Gregor def5670e9b Extensions too! 2007-06-29 01:36:09 +00:00
Tim Starling e497ea8792 Fixed bug in image count 2007-03-29 18:38:46 +00:00
Brion Vibber c89580f8f4 use wfStreamFile() to output the captcha image; it takes care of removing the extra gzip compression and crap 2007-02-20 08:30:14 +00:00
Brion Vibber 74e3c3bb9f Add options to break up the captcha image storage with hash-digit subdirectories to avoid trawling through a giant directory on every hit 2007-02-19 20:09:03 +00:00
Antoine Musso 3578c26504 Use Doxygen @addtogroup instead of phpdoc @package && @subpackage
This is like r19502 but for extensions.
2007-01-20 15:10:35 +00:00
Antoine Musso 8ba7c9ab6b kill whitespaces 2007-01-14 00:51:11 +00:00
Rob Church ac3040e470 (bug 8484) Provide a getMessage() method that individual captcha plugins can use to override the messages for each appearance, refer to a sum in SimpleCaptcha and an image in FancyCaptcha, tweak inefficient message-loading code, possibly something else I forgot 2007-01-04 16:48:53 +00:00
Brion Vibber cfd970a513 Rearrange to work with the user account creation form as well as edits.
Requires new hooks just added on HEAD
2006-01-29 07:37:33 +00:00
Brion Vibber a2a6e0afe1 Forgot to clear used captcha info from the session after answering. 2006-01-29 02:25:04 +00:00
Brion Vibber 672d37ea0e tyop 2006-01-29 00:46:29 +00:00
Brion Vibber 81e2bc3a9c * save each captcha's session data separately, so multiple tabs/windows work 2006-01-27 08:00:32 +00:00
Brion Vibber 8258853051 committing progress so i don't forget to save changes this month
* add some semi-useful help text
* fix tab order when the captcha form comes up
* work with more than 16 image files *cough*
2006-01-27 01:53:10 +00:00
Brion Vibber da07c3eb19 Further testing, integrating images generated from Neil's python goody.
Still experimental and incomplete, not ready for use.
2005-10-14 05:07:24 +00:00