obfuscate a bit the e-mail address of the applicant.
2003-11-11 Vincent Untz <vincent@vuntz.net> * foundation.gnome.org/membership/application.wml: obfuscate a bit the e-mail address of the applicant.
This commit is contained in:
		
							parent
							
								
									0898cc5576
								
							
						
					
					
						commit
						a0f2656ee2
					
				
					 2 changed files with 35 additions and 24 deletions
				
			
		|  | @ -1,3 +1,8 @@ | ||||||
|  | 2003-11-11  Vincent Untz  <vincent@vuntz.net> | ||||||
|  | 
 | ||||||
|  | 	* foundation.gnome.org/membership/application.wml: obfuscate a bit the | ||||||
|  | 	e-mail address of the applicant. | ||||||
|  | 
 | ||||||
| 2003-11-11  Vincent Untz  <vincent@vuntz.net> | 2003-11-11  Vincent Untz  <vincent@vuntz.net> | ||||||
| 
 | 
 | ||||||
| 	* foundation.gnome.org/elections/2003/candidates.wml: add Leslie's | 	* foundation.gnome.org/elections/2003/candidates.wml: add Leslie's | ||||||
|  |  | ||||||
|  | @ -9,18 +9,22 @@ | ||||||
|   <body> |   <body> | ||||||
|     <h1>GNOME Foundation Membership Application</h1> |     <h1>GNOME Foundation Membership Application</h1> | ||||||
| 
 | 
 | ||||||
| <? | <?php | ||||||
|   $bad_elements = array(); |   $bad_elements = array(); | ||||||
|   $errors = array(); |   $errors = array(); | ||||||
| 
 | 
 | ||||||
|   if ($submit) { |   if ($_POST['submit']) { | ||||||
|       /* remove the slashes */ |       /* remove the slashes */ | ||||||
|       $name = stripslashes($name); |       $name = stripslashes($_POST['name']); | ||||||
|       $email = stripslashes($email); |       $email = stripslashes($_POST['email']); | ||||||
|       $summary = stripslashes($summary); |       $summary = stripslashes($_POST['summary']); | ||||||
|       $details = stripslashes($details); |       $details = stripslashes($_POST['details']); | ||||||
|       $contacts = stripslashes($contacts); |       $contacts = stripslashes($_POST['contacts']); | ||||||
|       $comments = stripslashes($comments); |       $comments = stripslashes($_POST['comments']); | ||||||
|  | 
 | ||||||
|  |       $ircnick = $_POST['ircnick']; | ||||||
|  |       $cvsuser = $_POST['cvsuser']; | ||||||
|  |       $previousmember = $_POST['previousmember']; | ||||||
| 
 | 
 | ||||||
|       if (!$name || trim($name) == "") { |       if (!$name || trim($name) == "") { | ||||||
|         $bad_elements[] = "name"; |         $bad_elements[] = "name"; | ||||||
|  | @ -30,6 +34,8 @@ | ||||||
|         $bad_elements[] = "email"; |         $bad_elements[] = "email"; | ||||||
|         $errors[] = "Please enter an email address we can use to contact you."; |         $errors[] = "Please enter an email address we can use to contact you."; | ||||||
|       } |       } | ||||||
|  |       $obfuscated_email = preg_replace("/@/", " AT ", $email); | ||||||
|  | 
 | ||||||
|       if (!$summary || trim($summary) == "") { |       if (!$summary || trim($summary) == "") { | ||||||
|         $bad_elements[] = "summary"; |         $bad_elements[] = "summary"; | ||||||
|         $errors[] = "Please enter a list of areas of GNOME to which you have made a non-trivial contribution."; |         $errors[] = "Please enter a list of areas of GNOME to which you have made a non-trivial contribution."; | ||||||
|  | @ -47,7 +53,7 @@ | ||||||
| 
 | 
 | ||||||
|         $formmail = "Contact Information:\n--------------------\n"; |         $formmail = "Contact Information:\n--------------------\n"; | ||||||
|         $formmail .= "Name: " . $name . "\n"; |         $formmail .= "Name: " . $name . "\n"; | ||||||
|         $formmail .= "E-mail: " . $email . "\n"; |         $formmail .= "E-mail: " . $obfuscated_email . "\n"; | ||||||
|         $formmail .= "irc.gnome.org nickname (if any): " . $ircnick . "\n"; |         $formmail .= "irc.gnome.org nickname (if any): " . $ircnick . "\n"; | ||||||
|         $formmail .= "cvs.gnome.org username (if any): " . $cvsuser . "\n"; |         $formmail .= "cvs.gnome.org username (if any): " . $cvsuser . "\n"; | ||||||
|         $formmail .= "\n"; |         $formmail .= "\n"; | ||||||
|  | @ -74,9 +80,9 @@ | ||||||
|         $headers = "From: GNOME Foundation Membership Committee Script <gnome-membership@gnome.org>\nCc: $email\n"; |         $headers = "From: GNOME Foundation Membership Committee Script <gnome-membership@gnome.org>\nCc: $email\n"; | ||||||
| 
 | 
 | ||||||
|         if ($previousmember) { |         if ($previousmember) { | ||||||
|           $subject = "[RENEWAL] Application received from $name ($email)"; |           $subject = "[RENEWAL] Application received from $name ($obfuscated_email)"; | ||||||
|         } else { |         } else { | ||||||
|           $subject = "Application received from $name ($email)"; |           $subject = "Application received from $name ($obfuscated_email)"; | ||||||
|         } |         } | ||||||
|         // send the mail |         // send the mail | ||||||
| 
 | 
 | ||||||
|  | @ -105,7 +111,7 @@ | ||||||
|       } |       } | ||||||
|   } |   } | ||||||
| 
 | 
 | ||||||
|   if (! $submit || count($bad_elements) != 0) {  ?> |   if (! $_POST['submit'] || count($bad_elements) != 0) {  ?> | ||||||
| 
 | 
 | ||||||
|     <p> |     <p> | ||||||
|       To apply for membership in the GNOME Foundation, please complete the |       To apply for membership in the GNOME Foundation, please complete the | ||||||
|  | @ -124,7 +130,7 @@ | ||||||
|       href="mailto:membership@gnome.org">membership@gnome.org</a>. |       href="mailto:membership@gnome.org">membership@gnome.org</a>. | ||||||
|     </p> |     </p> | ||||||
| 
 | 
 | ||||||
|       <?  if (count($bad_elements) != 0) { |       <?php  if (count($bad_elements) != 0) { | ||||||
|              print("<font color=\"red\">"); |              print("<font color=\"red\">"); | ||||||
|              foreach ($errors as $error) { |              foreach ($errors as $error) { | ||||||
|                print("<li>$error</li>"); |                print("<li>$error</li>"); | ||||||
|  | @ -133,7 +139,7 @@ | ||||||
|           } |           } | ||||||
|       ?> |       ?> | ||||||
| 
 | 
 | ||||||
|     <form action="<? echo $PHP_SELF; ?>" method="POST"> |     <form action="<?php echo $PHP_SELF; ?>" method="POST"> | ||||||
|       <h3>Contact Information</h3> |       <h3>Contact Information</h3> | ||||||
| 
 | 
 | ||||||
|       <table summary="Membership form"> |       <table summary="Membership form"> | ||||||
|  | @ -141,7 +147,7 @@ | ||||||
|           <td>Full Name:</td> |           <td>Full Name:</td> | ||||||
|           <td> |           <td> | ||||||
|             <input type="text" name="name" size="40" |             <input type="text" name="name" size="40" | ||||||
|                    value="<? if ($name) { echo $name; } ?>" /> |                    value="<?php if ($name) { echo $name; } ?>" /> | ||||||
|           </td> |           </td> | ||||||
|         </tr> |         </tr> | ||||||
| 
 | 
 | ||||||
|  | @ -149,7 +155,7 @@ | ||||||
|           <td>E-mail address:</td> |           <td>E-mail address:</td> | ||||||
|           <td> |           <td> | ||||||
|             <input type="text" name="email" size="40" |             <input type="text" name="email" size="40" | ||||||
|                    value="<? if ($email) { echo $email; } ?>" /> |                    value="<?php if ($email) { echo $email; } ?>" /> | ||||||
|           </td> |           </td> | ||||||
|         </tr> |         </tr> | ||||||
| 
 | 
 | ||||||
|  | @ -157,7 +163,7 @@ | ||||||
|           <td>irc.gnome.org nickname (if any):</td> |           <td>irc.gnome.org nickname (if any):</td> | ||||||
|           <td> |           <td> | ||||||
|             <input type="text" name="ircnick" size="20" |             <input type="text" name="ircnick" size="20" | ||||||
|                    value="<? if ($ircnick) { echo $ircnick; } ?>" /> |                    value="<?php if ($ircnick) { echo $ircnick; } ?>" /> | ||||||
|           </td> |           </td> | ||||||
|         </tr> |         </tr> | ||||||
| 
 | 
 | ||||||
|  | @ -165,7 +171,7 @@ | ||||||
|           <td>cvs.gnome.org username (if any):</td> |           <td>cvs.gnome.org username (if any):</td> | ||||||
|           <td> |           <td> | ||||||
|             <input type="text" name="cvsuser" size="20" |             <input type="text" name="cvsuser" size="20" | ||||||
|                    value="<? if ($cvsuser) { echo $cvsuser; } ?>" /> |                    value="<?php if ($cvsuser) { echo $cvsuser; } ?>" /> | ||||||
|           </td> |           </td> | ||||||
|         </tr> |         </tr> | ||||||
| 
 | 
 | ||||||
|  | @ -176,7 +182,7 @@ | ||||||
|         <tr> |         <tr> | ||||||
|           <td colspan="2"> |           <td colspan="2"> | ||||||
|           <input type="checkbox" name="previousmember" |           <input type="checkbox" name="previousmember" | ||||||
|                  <? if ($previousmember) { ?> checked <? } ?> /> |                  <?php if ($previousmember) { ?> checked <?php } ?> /> | ||||||
|             Previous GNOME Foundation member |             Previous GNOME Foundation member | ||||||
|           </td> |           </td> | ||||||
|         </tr> |         </tr> | ||||||
|  | @ -199,7 +205,7 @@ | ||||||
|       </p> |       </p> | ||||||
| 
 | 
 | ||||||
|       <textarea name="summary" rows="3" cols="50"> |       <textarea name="summary" rows="3" cols="50"> | ||||||
|         <? if (trim($summary)) { echo trim($summary); } ?> |         <?php if (trim($summary)) { echo trim($summary); } ?> | ||||||
|       </textarea> |       </textarea> | ||||||
| 
 | 
 | ||||||
|       <p> |       <p> | ||||||
|  | @ -213,7 +219,7 @@ | ||||||
|       </p> |       </p> | ||||||
| 
 | 
 | ||||||
|       <textarea name="details" rows="10" cols="50"> |       <textarea name="details" rows="10" cols="50"> | ||||||
|         <? if (trim($details)) { echo trim($details); } ?> |         <?php if (trim($details)) { echo trim($details); } ?> | ||||||
|       </textarea> |       </textarea> | ||||||
| 
 | 
 | ||||||
|       <p> |       <p> | ||||||
|  | @ -229,7 +235,7 @@ | ||||||
|       </p> |       </p> | ||||||
| 
 | 
 | ||||||
|       <textarea name="contacts" rows="5" cols="50"> |       <textarea name="contacts" rows="5" cols="50"> | ||||||
|         <? if (trim($contacts)) { echo trim($contacts); } ?> |         <?php if (trim($contacts)) { echo trim($contacts); } ?> | ||||||
|       </textarea> |       </textarea> | ||||||
| 
 | 
 | ||||||
|       <h3>Other Comments</h3> |       <h3>Other Comments</h3> | ||||||
|  | @ -240,7 +246,7 @@ | ||||||
|       </p> |       </p> | ||||||
| 
 | 
 | ||||||
|       <textarea name="comments" rows="10" cols="50"> |       <textarea name="comments" rows="10" cols="50"> | ||||||
|         <? if (trim($comments)) { echo trim($comments); } ?> |         <?php if (trim($comments)) { echo trim($comments); } ?> | ||||||
|       </textarea> |       </textarea> | ||||||
| 
 | 
 | ||||||
|       <p> |       <p> | ||||||
|  | @ -252,7 +258,7 @@ | ||||||
| 
 | 
 | ||||||
|     </form> |     </form> | ||||||
| 
 | 
 | ||||||
| <? } ?> | <?php } ?> | ||||||
| 
 | 
 | ||||||
|   </body> |   </body> | ||||||
| </html> | </html> | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Vincent Untz
						Vincent Untz