User: knarf Date: 2012/06/13 09:22 AM
Modified: /about/members/ join.php, send-registration.php
Log: poor man's captcha
File Changes:
Directory: /about/members/ ==========================
File [modified]: join.php Delta lines: +5 -0 =================================================================== --- about/members/join.php 2012-06-08 14:35:42 UTC (rev 868) +++ about/members/join.php 2012-06-13 14:22:57 UTC (rev 869) @@ -24,6 +24,11 @@ </td> </tr> <tr> + <td>Please enter 'Einstein' backwards here<br>(to fight spam)</td> + <td> + <td><input type="text" name="buechsenwursttest" /></td> +</tr> +<tr> <td></td> <td><input type="submit" value="Submit" /></td> </tr>
File [modified]: send-registration.php Delta lines: +3 -0 =================================================================== --- about/members/send-registration.php 2012-06-08 14:35:42 UTC (rev 868) +++ about/members/send-registration.php 2012-06-13 14:22:57 UTC (rev 869) @@ -37,6 +37,9 @@ } elseif (!empty($institution) && ($name == $institution)) { echo '<h4>You provided the same for name and institution. Go away, spam bot, or </h4>'; echo '<br /><a href="javascript:history.back(1);">try again</a>'; +} elseif (empty($buechsenwursttest) || ($buechsenwursttest != "nietsniE")) { + echo '<h4>You did not spell 'Einstein' backwards correctly. Go away, spam bot, or </h4>'; + echo '<br /><a href="javascript:history.back(1);">try again</a>'; }
/* Sends the mail and outputs the "Thank you" string if the mail is successfully sent, or the error string otherwise. */