[Commits] [svn:einsteintoolkit] www/about/members/ (Rev. 607)

knarf at cct.lsu.edu knarf at cct.lsu.edu
Wed Aug 31 16:15:57 CDT 2011


User: knarf
Date: 2011/08/31 04:15 PM

Modified:
 /about/members/
  send-registration.php

Log:
 try to stop spam

File Changes:

Directory: /about/members/
==========================

File [modified]: send-registration.php
Delta lines: +5 -3
===================================================================
--- about/members/send-registration.php	2011-08-31 20:26:31 UTC (rev 606)
+++ about/members/send-registration.php	2011-08-31 21:15:57 UTC (rev 607)
@@ -10,8 +10,10 @@
 $institution = $_POST['institution'];
 $list = $_POST['list'];
 
-if (! empty($institution)){
-$institution = ' from '.$institution;
+if (empty($institution)){
+  $frominstitution = '';
+else {
+  $frominstitution = 'from '.$institution;
 }
 
 if ($list=='yes') {
@@ -23,7 +25,7 @@
 $addtolist = "This person's email address is ".$email."; however, this person does not wish to be added to the ET users mailing list.";
 }
 
-$message = "Einstein Toolkit maintainers: \n\n".$name.$institution." has submitted a request to register with the Einstein Toolkit. ".$addtolist."\n\n Thanks,\n Einstein Toolkit Registration Bot\n";
+$message = "Einstein Toolkit maintainers: \n\n".$name.$frominstitution." has submitted a request to register with the Einstein Toolkit. ".$addtolist."\n\n Thanks,\n Einstein Toolkit Registration Bot\n";
 
 /* PHP form validation: the script checks that the Email field contains a valid email address and the Subject field isn't empty. preg_match performs a regular expression match. It's a very powerful PHP function to validate form fields and other strings - see PHP manual for details. */
 if (empty($name)) {



More information about the Commits mailing list