| 
									
										
										
										
											2001-07-12 16:28:09 +00:00
										 |  |  | #!/usr/bin/perl | 
					
						
							|  |  |  | # | 
					
						
							|  |  |  | # A *really* simple CGI handler for the GNOME Foundation membership | 
					
						
							|  |  |  | # form. | 
					
						
							|  |  |  | # | 
					
						
							|  |  |  | # Author: Russell Steinthal <rms39@columbia.edu> | 
					
						
							|  |  |  | # | 
					
						
							|  |  |  | # | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | my $MAIL_COMMAND = "/usr/lib/sendmail"; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | use CGI qw /-debug/; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | my $form = new CGI; | 
					
						
							|  |  |  | $form->import_names ("FORM"); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | print $form->header; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | my $date = localtime; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | open MAIL, "|$MAIL_COMMAND"; | 
					
						
							| 
									
										
										
										
											2002-08-06 10:16:10 +00:00
										 |  |  | print MAIL <<HEADER; | 
					
						
							| 
									
										
										
										
											2001-11-28 03:43:41 +00:00
										 |  |  | From: gnome-membership\@gnome.org (GNOME Membership Script) | 
					
						
							| 
									
										
										
										
											2001-07-12 16:28:09 +00:00
										 |  |  | To: membership\@gnome.org (GNOME Membership Committee) | 
					
						
							| 
									
										
										
										
											2002-08-06 10:16:10 +00:00
										 |  |  | HEADER | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | if ($FORM::previousmember == "on") { | 
					
						
							|  |  |  |   print MAIL "Subject: [RENEWAL] Application received from $FORM::name ($FORM::email)"; | 
					
						
							|  |  |  | } else { | 
					
						
							|  |  |  |   print MAIL "Subject: Application received from $FORM::name ($FORM::email)"; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | print MAIL <<END; | 
					
						
							| 
									
										
										
										
											2001-07-12 16:28:09 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | Contact Information: | 
					
						
							|  |  |  | -------------------- | 
					
						
							|  |  |  | Name: $FORM::name | 
					
						
							|  |  |  | E-mail: $FORM::email | 
					
						
							|  |  |  | irc.gnome.org nickname (if any): $FORM::ircnick | 
					
						
							|  |  |  | cvs.gnome.org username (if any): $FORM::cvsuser | 
					
						
							| 
									
										
										
										
											2002-08-06 10:16:10 +00:00
										 |  |  | Previous GNOME Foundation member:  $FORM::previousmember | 
					
						
							| 
									
										
										
										
											2001-07-12 16:28:09 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | GNOME contributions: | 
					
						
							|  |  |  | -------------------- | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | Summary: | 
					
						
							|  |  |  | $FORM::summary | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | Detailed description: | 
					
						
							|  |  |  | $FORM::details | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | Contacts: | 
					
						
							|  |  |  | $FORM::contacts | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | Other comments: | 
					
						
							|  |  |  | --------------- | 
					
						
							|  |  |  | $FORM::comments | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | [Application received at $date (Eastern time)] | 
					
						
							|  |  |  | END | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | close MAIL; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2001-07-12 18:43:21 +00:00
										 |  |  | print "<html>\n"; | 
					
						
							|  |  |  | print "<head><title>Application Received</title></head>\n"; | 
					
						
							|  |  |  | print "<body bgcolor=\"#FFFFFF\">"; | 
					
						
							| 
									
										
										
										
											2001-07-12 16:28:09 +00:00
										 |  |  | print "<h1>Thank you</h1>\n"; | 
					
						
							|  |  |  | print "<p>Thank you for your submission.  It has been forwarded to the membership committee, which will inform you when it has been processed.</p>\n"; | 
					
						
							|  |  |  | print "<p>If you have any questions, please e-mail <a href=\"mailto:membership\@gnome.org\">membership\@gnome.org.</p>\n"; | 
					
						
							| 
									
										
										
										
											2001-07-12 18:43:21 +00:00
										 |  |  | print "<br> <br>\n"; | 
					
						
							|  |  |  | print "<center><a href=\"http://foundation.gnome.org\">Return to the GNOME Foundation home page</a></center>\n"; | 
					
						
							|  |  |  | print "</body>\n"; | 
					
						
							|  |  |  | print "</html>\n"; | 
					
						
							| 
									
										
										
										
											2001-07-12 16:28:09 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 |