|
|
GNOME Foundation Membership Application$bad_elements = array(); $errors = array(); if ($submit) { if (!$name || trim($name) == "") { $bad_elements[] = "name"; $errors[] = "Please enter your name."; } if (!$email || !ereg("^[a-zA-Z0-9_.-]+@[a-zA-Z0-9_.-]+\.[a-zA-Z]+$", trim($email))) { $bad_elements[] = "email"; $errors[] = "Please enter an email address we can use to contact you."; } if (!$summary || trim($summary) == "") { $bad_elements[] = "summary"; $errors[] = "Please enter a list of areas of GNOME to which you have made a non-trivial contribution."; } else if (!$details || trim($details) == "") { $bad_elements[] = "details"; $errors[] = "Please enter a more detailed description of your contributions."; } if (!$contacts || trim($contacts) == "") { $bad_elements[] = "contacts"; $errors[] = "Please enter a list of individuals who can confirm your contributions or indicate us how the membership committee can verify your contributions."; } if (count($bad_elements) == 0) { // make the mail $formmail = "Contact Information:\n--------------------\n"; $formmail .= "Name: " . $name . "\n"; $formmail .= "E-mail: " . $email . "\n"; $formmail .= "irc.gnome.org nickname (if any): " . $ircnick . "\n"; $formmail .= "cvs.gnome.org username (if any): " . $cvsuser . "\n"; $formmail .= "\n"; $formmail .= "Previous GNOME Foundation member: "; if ($previousmember) { $formmail .= "yes\n"; } else { $formmail .= "no\n"; } $formmail .= "\n"; $formmail .= "GNOME contributions:\n--------------------\n"; $formmail .= "\n"; $formmail .= "Summary:\n" . $summary . "\n"; $formmail .= "\n"; $formmail .= "Detailed description:\n" . $details . "\n"; $formmail .= "\n"; $formmail .= "Contacts:\n" . $contacts . "\n"; $formmail .= "\n"; $formmail .= "Other comments:\n---------------\n"; $formmail .= $comments . "\n"; $formmail .= "\n"; $formmail .= "[Application received at " . date("D M j G:i:s Y") . " (Eastern time)]"; $headers = "From: GNOME Foundation Membership Committee ScriptThank you for your submission. It has been forwarded to the membership committee, which will inform you when it has been processed. If you have any questions, please e-mail membership@gnome.org. To apply for membership in the GNOME Foundation, please complete the following form as completely as possible. Your application will then be reviewed by the Foundation's Membership and Elections Committee, which will notify you when your application has been accepted or rejected; the committee may also ask you for additional information. For details on the standards used in evaluating applications, see the GNOME Foundation Membership Policy, adopted by the Board of Directors. If you have any questions regarding the application process, please feel free to e-mail the committee at membership@gnome.org. if (count($bad_elements) != 0) { print(""); foreach ($errors as $error) { print(" |
|