[Commits] [svn:einsteintoolkit] www/about/members/ (Rev. 606)
knarf at cct.lsu.edu
knarf at cct.lsu.edu
Wed Aug 31 15:26:32 CDT 2011
User: knarf
Date: 2011/08/31 03:26 PM
Modified:
/about/members/
send-registration.php
Log:
try to stop spam
File Changes:
Directory: /about/members/
==========================
File [modified]: send-registration.php
Delta lines: +4 -1
===================================================================
--- about/members/send-registration.php 2011-08-23 14:49:36 UTC (rev 605)
+++ about/members/send-registration.php 2011-08-31 20:26:31 UTC (rev 606)
@@ -29,10 +29,13 @@
if (empty($name)) {
echo '<h4>Please fill in your name.</h4>';
echo '<br /><a href="javascript:history.back(1);">Try again</a>';
- }
+}
elseif (!preg_match("/\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/", $email)) {
echo '<h4>Please provide a valid email address.</h4>';
echo '<br />Please <a href="javascript:history.back(1);">try again</a>';
+} 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>';
}
/* Sends the mail and outputs the "Thank you" string if the mail is successfully sent, or the error string otherwise. */
More information about the Commits
mailing list