Commit graph

25 commits

Author SHA1 Message Date
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