Changeset 1315
- Timestamp:
- 08/28/08 18:36:44 (3 months ago)
- Files:
-
- human-test/trunk/human-test.php (modified) (4 diffs)
- human-test/trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
human-test/trunk/human-test.php
r946 r1315 4 4 Plugin URI: http://bbpress.org/plugins/topic/77 5 5 Description: uses various methods to exclude bots from registering (and eventually posting) on bbPress 6 Version: 0.7. 16 Version: 0.7.2 7 7 Author: _ck_ 8 8 Author URI: http://bbshowcase.org … … 11 11 12 12 Donate: http://amazon.com/paypage/P2FBORKDEFQIVM 13 14 Instructions: install, activate, check registration page for new field and test a new registration.15 16 todo:17 "negative fields" that are hidden and supposed to remain blank but spam bots try to fill, therefore fail18 optionally write questions in captcha-like graphics (tricks spammers to enter graphic as code instead of answer)19 optionally notify admin of failed registration20 21 history:22 0.01 first public release - hard-coded and only can test for 2+2=4 (obviously improvements coming soon)23 0.05 now generates random numbers for addition between 3 and 10 (and uses sessions on registration page only)24 0.06 minor logic bug fix to prevent multiple attempts against same answer, additional text localization25 0.07 SESSION support improvement, fine-tuning to question placement26 13 */ 27 14 … … 49 36 echo '<noscript><i>'.__("registration requires JavaScript").'</i></noscript>'; // warn no-script users 50 37 echo '</th><td width="72%"><input name="human_test" type="text" id="human_test" size="30" maxlength="140" value="" />'; // answer field 51 echo '<input type="hidden" name = "'.session_name().'" value = "'.session_id().'" >'; // improved session support without cookies or urls38 echo '<input type="hidden" name = "'.session_name().'" value = "'.session_id().'" />'; // improved session support without cookies or urls 52 39 echo '</td></tr></table></fieldset>'; 53 40 … … 59 46 if (human_register_page()) : // only display on register.php and hide on profile page 60 47 // one way or another we're gonna need sessions for now 61 // @session_cache_limiter('nocache'); // "nocache" destroys form data with back button - "public" preserves form values when hitting back62 48 if (!isset($_SESSION)) { 49 // @session_cache_limiter('nocache'); // "nocache" destroys form data with back button - "public" preserves form values when hitting back 63 50 @ini_set('session.use_trans_sid', false); 64 51 @ini_set("url_rewriter.tags",""); 65 52 @session_start(); // sent with headers - errors masked with @ if sessions started previously - which it actually has to be for the following to 66 53 } 67 54 if ($_POST || isset($_POST['human_test'])) { 68 55 $human_test = stripslashes_deep($_POST['human_test']); human-test/trunk/readme.txt
r945 r1315 56 56 57 57 * more attempts to fix session support on different server configs 58 59 = Version 0.7.2 (2008-08-28) = 60 61 * don't start session if already started to behave with other plugins that use sessions 62 63 == To Do == 64 65 * "negative fields" that are hidden and supposed to remain blank but spam bots try to fill, therefore fail 66 67 * optionally write questions in captcha-like graphics (tricks spammers to enter graphic as code instead of answer) 68 69 * optionally notify admin of failed registration 70
