| <html> |
| <head> |
| <meta http-equiv=Content-Type content="text/html; charset=windows-1252"> |
| <title>New Project Validation Phase Provisioning Request</title> |
| <link rel="stylesheet" href="../default_style.css"> |
| </head> |
| |
| <body lang=EN-US link=blue vlink=purple> |
| |
| <table border=0 cellspacing=5 cellpadding=2 width="100%" > |
| <tr> |
| <td align=LEFT valign=TOP colspan="2" bgcolor="#0080C0"><strong><font color="#FFFFFF" face="Arial,Helvetica">Eclipse Foundation New Committer Request Form</font></strong></td |
| > |
| </tr> |
| <tr> |
| <td> |
| |
| <?php |
| |
| function test_mail($a,$b,$c){ |
| echo "<pre>$a\n$b\n$c</pre>"; |
| } |
| |
| function test_mail2($a,$b,$c,$d){ |
| echo "<pre>$a\n$b\n$c\n$d</pre>"; |
| } |
| |
| function mail_string($committer_number){ |
| $committer_name = "committerName" . $committer_number; |
| $committer_email = "committerEmail" . $committer_number; |
| $committer_website = "committerWebsite" . $committer_number; |
| $committer_packages = "committerPackages" . $committer_number; |
| |
| $tmp_str .= " |
| Name: " . $_POST[$committer_name] . " |
| Email: " . $_POST[$committer_email] . " |
| "; |
| if ($committer_number <= 3){ |
| $committer_lead = "committerLead" + $committer_number; |
| if ($_POST[$committer_lead] != ""){ |
| $tmp_str .= "Project Lead: " . $_POST[$committer_lead] . " |
| "; |
| } |
| } |
| if ($_POST[$committer_website] != ""){ |
| $tmp_str .= "Website: " . $_POST[$committer_website] . " |
| "; |
| } |
| if ($committer_number <= 2){ |
| $committer_download = "committerDownloadPrivileges" + $committer_number; |
| if ($_POST[$committer_download] != ""){ |
| $tmp_str .= "Download: " . $_POST[$committer_download] . " |
| "; |
| } |
| } |
| $tmp_str .= "Packages: " . $_POST[$committer_packages] . " |
| "; |
| |
| return $tmp_str; |
| } |
| |
| function mail_committers($committer_number){ |
| $committer_name = "committerName" . $committer_number; |
| $committer_email = "committerEmail" . $committer_number; |
| $committer_packages = "committerPackages" . $committer_number; |
| $committer_website = "committerWebsite" . $committer_number; |
| |
| $cmailstr = " |
| |
| Committer Request |
| |
| Name: " . $_POST['yourName'] . " |
| |
| Email: " . $_POST['yourEmail'] . " |
| |
| Committer Info: =================== |
| Has been elected: initial project creation: " . $_POST['yourProject'] . " |
| |
| Name: " . $_POST[$committer_name] . " |
| Project: " . $_POST['yourProject'] . " |
| |
| Email: " . $_POST[$committer_email] . " |
| |
| CVS package List: " . $_POST[$committer_packages] . " |
| Web Package List: " . $_POST[$committer_website] . " |
| |
| ------------------------------------------------- |
| Dear " . $_POST[$committer_name] . ", |
| If you do not already have a dev.eclipse.org unix account, |
| please follow the instructions in item 3 on this web page: |
| http://www.eclipse.org/legal/newcommitter.html |
| If you have not already done so, you need to fill out a web |
| form questionnaire and possibly one or two paper agreements. |
| Your committer account cannot be processed until these |
| forms are received. |
| |
| Thank you. |
| |
| "; |
| $CEMailDest = "emo@eclipse.org"; |
| if ($_POST[$committer_email] != ""){ |
| $CEMailDest .= "," . $_POST[$committer_email]; |
| } |
| $CEMailSubject = $_POST[$committer_name] . " - New Committer Request Form"; |
| test_mail($CEMailDest, $CEMailSubject, $cmailstr); |
| } |
| |
| function committers(){ |
| for($i=1;$i<=7;$i++){ |
| $committer_name = "committerName".$i; |
| if ($_POST[$committer_name] != ""){ |
| $tmp_str .= mail_string($i); |
| mail_committers($i); |
| }else |
| if (($_POST[$committer_name] == "") && ($i == 1)){ |
| $tmp_str .= "* ERROR: No committers listed * |
| "; |
| } |
| } |
| |
| return $tmp_str; |
| } |
| |
| function website(){ |
| for($i=1;$i<=7;$i++){ |
| $committer_website = "committerWebsite".$i; |
| $committer_name = "committerName".$i; |
| $committer_email = "committerEmail".$i; |
| |
| if ($_POST[$committer_website] != ""){ |
| $tmp_str .= " |
| Name: " . $_POST[$committer_name] . " |
| Email: " . $_POST[$committer_email] . " |
| "; |
| }else |
| if (($_POST[$committer_website] == "") && ($i == 1)){ |
| $tmp_str .= "* ERROR: No committers were given website access * |
| "; |
| } |
| } |
| |
| return $tmp_str; |
| } |
| |
| function download_privileges(){ |
| for($i=1;$i<=2;$i++){ |
| $committerDownloadPrivileges = "committerDownloadPrivileges".$i; |
| $committerName = "committerName".$i; |
| $committerEmail = "committerEmail".$i; |
| |
| if ($_POST[$committerDownloadPrivileges] != ""){ |
| $tmp_str .= " |
| Name: " . $_POST[$committerName] . " |
| Email: " . $_POST[$committerEmail] . " |
| "; |
| }else |
| if (($_POST[$committerDownloadPrivileges] == "") && ($i == 1)){ |
| $tmp_str .= "* ERROR: No committers were given download access * |
| "; |
| } |
| } |
| |
| return $tmp_str; |
| } |
| |
| function mailing_lists(){ |
| for($i=1;$i<=5;$i++){ |
| $mailing_list = "mailingList".$i; |
| $short_description = "shortDescription".$i; |
| $long_description = "longDescription".$i; |
| |
| if ($_POST[$mailing_list] != ""){ |
| $tmp_str .= " |
| Name: " . $_POST[$mailing_list] . " |
| Short Description: " . $_POST[$short_description] . " |
| Long Description: " . $_POST[$long_description] . " |
| "; |
| }else |
| if (($_POST[$mailing_list] == "") && ($i == 1)){ |
| $tmp_str .= "* ERROR: No mailing lists specified * |
| "; |
| } |
| } |
| |
| return $tmp_str; |
| } |
| |
| function components(){ |
| for($i=1;$i<=6;$i++){ |
| $component = "component".$i; |
| $component_description = "componentDescription".$i; |
| $component_owner = "componentOwner".$i; |
| |
| if ($_POST[$component] != ""){ |
| $tmp_str .= " |
| Name: " . $_POST[$component] . " |
| Description: " . $_POST[$component_description] . " |
| Owner: " . $_POST[$component_owner] . " |
| "; |
| }else |
| if (($_POST[$component] == "") && ($i == 1)){ |
| $tmp_str .= "* ERROR: No Bugzilla components specified * |
| "; |
| } |
| } |
| |
| return $tmp_str; |
| } |
| |
| ############# |
| # Main Code # |
| ############# |
| |
| $EMailDest = "webmaster@eclipse.org,bjorn.freeman-benson@eclipse.org"; |
| $EMailSubject = "New Project Validation Phase Provisioning Request Form"; |
| $EMailHeaders = "From: \"Eclipse WebMaster (Automated)\"<webmaster@eclipse.org>\n"; |
| $EMailHeaders .= "X-Mailer: Eclipse.org automailer process\n"; |
| |
| $_STATE = $_POST['state']; |
| |
| if ($_STATE == "submit"){ |
| echo "Thank you for submitting this form. You have submitted:"; |
| |
| $mailStr .= " |
| New Project Validation Phase Provisioning Request |
| |
| Name: " . $_POST['yourName'] . " |
| Email: " . $_POST['yourEmail'] . " |
| Phone: " . $_POST['yourPhone'] . " |
| Process: " . $_POST['yourDevelopmentProcess'] . " |
| |
| New Project: " . $_POST['yourProject'] . " |
| Host Project: " . $_POST['hostProject'] . " |
| |
| _____ Committers _____ |
| 1. Create UNIX accounts for these committers. |
| 2. Update the Foundation database to record that these people are |
| committers and/or leads on project " . $_POST['yourProject'] . " |
| "; |
| |
| $mailStr .= committers(); |
| |
| $mailStr .= " |
| _____ Intial CVS Components _____ |
| " . $_POST['initialComponents'] . " |
| "; |
| |
| #################### |
| # Project Websites # |
| #################### |
| |
| $mailStr .= " |
| _____ Project Newsgroup _____ |
| Change the newsgroup paragraph to: |
| " . $_POST['projectNewsgroupParagraph'] . " |
| |
| _____ Project Proposal ______ |
| 1. Move the proposal from the active section of the www.eclipse.org/proposals page to the archive section. |
| 2. Move the project from the proposal section of the Technology (or other) PMC to the sub-projects section. |
| |
| _____ Project Website ______ |
| 1. Create the /home/cvs/org.eclipse website CVS component. |
| 2. Create the initial \"intentionally blank\" default index.html and main.html files in that component. |
| 3. Create the www.eclipse.org/[shortname] directory |
| 4. Set up the auto-update mechanism from the CVS to the www.eclipse.org directory |
| 5. Grant CVS access for the website to: |
| "; |
| |
| |
| $mailStr .= website(); |
| |
| ############# |
| # Downloads # |
| ############# |
| |
| $mailStr .= " |
| _____ Downloads ______ |
| 1. Create the download1.eclipse.org downloads area. Provide passwords to: |
| "; |
| |
| $mailStr .= download_privileges(); |
| |
| ################# |
| # Mailing Lists # |
| ################# |
| |
| $mailStr .= " |
| _____ Mailing Lists _____"; |
| |
| $mailStr .= mailing_lists(); |
| |
| ####################### |
| # Bugzilla Components # |
| ####################### |
| |
| $mailStr .= " |
| _____ Bugzilla Components _____"; |
| |
| |
| $mailStr .= components(); |
| |
| $EMailSubject = $EMailSubject . " (" . $_POST['yourProject'] . ")"; |
| |
| if ($_POST['yourEmail'] != ""){ |
| $EMailDest .= "," . $_POST['yourEmail']; |
| } |
| |
| test_mail2($EMailDest, $EMailSubject, $mailStr, $EMailHeaders); |
| |
| echo "<pre> |
| " . $mailStr . " |
| </pre> |
| "; |
| |
| } |
| |
| ?> |
| |
| </td> |
| </tr> |
| </table> |
| |
| </body> |
| </html> |