s9y/additional_plugins — pull request #16 by Manko10 (2012-08-12 18:16:18+00:00)
Title: Extended SpamBee plugin

I have written some major extension to the SpamBee plugin. It is now possible to

* also specify custom questions instead of just arithmetic problems (for which some bots seem to have heuristics)
* optionally use regular expressions to match the answers for custom questions
* choose how the correct Captcha answer is retrieved (i.e. hard coding in the HTML/JS output, via Ajax request as before or via a Smarty variable for use in the template)

Besides that I have incorporated several bug fixes and overall improvements.
One more thing I'd like to do, though, is to port it to a more modern PHP5 code base. But for now I kept the PHP4 compatibility (although I didn't do any testing here).

The JavaScript, however, is thoroughly tested and works in all modern browsers as well as IE at least back to version 6 (maybe even older).

Side note: there are some stray methods in the class which don't seem to do anything. These are generate_content() and hashString(). They should be removed, but I left them in the code for now.

Cheers
Janek