User: cjordan Date: 2010/06/03 06:17 PM
Modified: /about/members/ send-registration.php
Log: changed the registration script to make it easier to add users to the mailman lists
File Changes:
Directory: /about/members/ ==========================
File [modified]: send-registration.php Delta lines: +3 -3 =================================================================== --- about/members/send-registration.php 2010-06-03 23:02:26 UTC (rev 177) +++ about/members/send-registration.php 2010-06-03 23:17:27 UTC (rev 178) @@ -11,13 +11,13 @@ $list = $HTTP_POST_VARS['list'];
if ($list=='yes') { -$addtolist = 'Please add this person to the ET users mailing list.'; +$addtolist = 'Please add this person to the ET users mailing list.\n'.$name.' <'.$email.'>'; } else { -$addtolist = 'Do not add this person to the ET users mailing list.'; +$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 mainatiners: \n\n".$name." from ".$institution." has submitted a request to register with the Einstein Toolkit. His or her email address is ".$email.". ".$addtolist."\n\n Thanks,\n Einstein Toolkit Registration Bot\n"; +$message = "Einstein Toolkit mainatiners: \n\n".$name." from ".$institution." 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 ($name == '') {
commits@lists.einsteintoolkit.org