try to add an antispam entry
2006-04-19 Vincent Untz <vuntz@gnome.org> * foundation.gnome.org/membership/application.wml: try to add an antispam entry
This commit is contained in:
		
							parent
							
								
									d962095cde
								
							
						
					
					
						commit
						45405d9b6b
					
				
					 2 changed files with 20 additions and 0 deletions
				
			
		|  | @ -1,3 +1,8 @@ | ||||||
|  | 2006-04-19  Vincent Untz  <vuntz@gnome.org> | ||||||
|  | 
 | ||||||
|  | 	* foundation.gnome.org/membership/application.wml: try to add an | ||||||
|  | 	antispam entry | ||||||
|  | 
 | ||||||
| 2006-04-01  Vincent Untz  <vuntz@gnome.org> | 2006-04-01  Vincent Untz  <vuntz@gnome.org> | ||||||
| 
 | 
 | ||||||
| 	* foundation.gnome.org/membership/application.wml: accept + in email | 	* foundation.gnome.org/membership/application.wml: accept + in email | ||||||
|  |  | ||||||
|  | @ -24,6 +24,7 @@ | ||||||
|   $ircnick = $_POST['ircnick']; |   $ircnick = $_POST['ircnick']; | ||||||
|   $cvsuser = $_POST['cvsuser']; |   $cvsuser = $_POST['cvsuser']; | ||||||
|   $previousmember = $_POST['previousmember']; |   $previousmember = $_POST['previousmember']; | ||||||
|  |   $spam = $_POST['spam']; | ||||||
| 
 | 
 | ||||||
|   if ($submit) { |   if ($submit) { | ||||||
|       /* remove the slashes */ |       /* remove the slashes */ | ||||||
|  | @ -58,6 +59,11 @@ | ||||||
|         } |         } | ||||||
|       } |       } | ||||||
| 
 | 
 | ||||||
|  |       if ($spam != "not spam") { | ||||||
|  |         $bad_elements[] = "spam"; | ||||||
|  |         $errors[] = "Please fill the \"not spam\" field."; | ||||||
|  |       } | ||||||
|  | 
 | ||||||
|       if (count($bad_elements) == 0) { |       if (count($bad_elements) == 0) { | ||||||
|         // make the mail |         // make the mail | ||||||
| 
 | 
 | ||||||
|  | @ -267,6 +273,15 @@ | ||||||
|       <p> |       <p> | ||||||
|       <textarea name="comments" rows="10" cols="50"><?php if ($comments) { echo $comments; } ?></textarea> |       <textarea name="comments" rows="10" cols="50"><?php if ($comments) { echo $comments; } ?></textarea> | ||||||
|       </p> |       </p> | ||||||
|  | 
 | ||||||
|  |       <table summary="Antispam form"> | ||||||
|  |         <tr> | ||||||
|  |           <td>Please type "not spam" here:</td> | ||||||
|  |           <td> | ||||||
|  |             <input type="text" name="spam" size="20" value="" /> | ||||||
|  |           </td> | ||||||
|  |         </tr> | ||||||
|  |       </table> | ||||||
|        |        | ||||||
|       <p> |       <p> | ||||||
|         <div class="center"> |         <div class="center"> | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Vincent Untz
						Vincent Untz