include("config.inc");
include("common.inc");
function email_user($db, $forename, $surname, $email,$adate) {
$body = "Hello $forename $surname,\n";
$body .= "Thank you for your interest in becoming a Debian\n";
$body .= "Developer. Your name and email address has been\n";
$body .= "entered into the new maintainer database (nm.debian.org)\n";
$body .= "\n";
$body .= "This email address was entered into the Debian New Maintainer\n";
$body .= "website from IP address ". getenv(REMOTE_ADDR) . ", if you did not\n";
$body .= "apply on that website, then email new-maintainer@debian.org\n";
$body .= "asking to be removed.\n";
$body .= "\n";
$body .= "Please ask your advocate to verify your application. When he has\n";
$body .= "done that, a Application Manager (AM) will be assigned to you.\n";
$body .= "It may take a while until your AM contacts you regarding your\n";
$body .= "application, as there are many applicants in the database.\n\n";
$body .= "In the meanwhile, please review the membership\n";
$body .= "information on http://www.debian.org/devel/join/ and\n";
$body .= "http://www.debian.org/devel/join/newmaint You do\n";
$body .= "not need to send any additional information at this\n";
$body .= "time.\n";
$body .= "\n";
$body .= "Please be patient, we are working the list of\n";
$body .= "applicants as quickly as we can.\n";
$headers = "From: new-maintainer@debian.org\nReply-To: new-maintainer@debian.org\nX-Mailer: PHP/" . phpversion();
mail($email, "New Debian Maintainer: $email", $body, $headers);
return TRUE;
}
function check_user($db, $myuser) {
$sql = "SELECT * FROM applicant WHERE email='$myuser'";
if (! ($query = pg_exec($db, $sql))) {
echo "Problem with interrogating database: ", pg_ErrorMessage($db), "
\n";
return FALSE;
}
if (pg_NumRows($query) == 1) {
echo "This email address already exists
\n";
return FALSE;
}
return TRUE;
}
function register_user($db, $forename, $surname, $email, $adate)
{
$sql = "INSERT INTO applicant (forename, surname, email, apply_date) VALUES ('$forename', '$surname', '$email', '$adate')";
if (! ($result = pg_exec($db, $sql))) {
echo "Problem with interrogating database: ", pg_ErrorMessage($db), "
\n";
return FALSE;
}
if (($tuples = pg_CmdTuples($result)) != 1) {
echo "Only one row should be effected but $tuples rows were
\n";
return FALSE;
}
return TRUE;
}
?>
#use wml::nmpage title="Debian New Maintainer Application"
You have not checked the box saying you have a Debian Developer advocate.\n";
echo "If an adovcate does not verify your application within two weeks, it will\n";
echo " be deleted.
\n";
}
if ($errors != "") {
echo "
There were problems with your application:
There is something wrong with the database, or this email address is already registered. Registration failed. } else { #user is ok if (!register_user($db, $forename, $surname, $email,$adate)) { ?>
Problem with registering you into the database for some reason, try again later. } else { #register ok echo "
Your registration was successful! Your application date is $adate. Please ask your advocate to visit "; echo "this web page and verify your application.\n"; email_user($db, $forename, $surname, $email,$adate); } #register ok } #user ok } # fields ok } # db open } else { #not called yet ?>
Thank you for your interest in Debian, if you would like to be put into the new maintainer list then enter in the information below. Before you apply, you should have a look at the Applicant's Checklist to see what the Application Manager is looking for. It is a great help if you can be ready with the information that the checklist asks for before you apply.
There is a large backlog of applicants which means it may take some time to get you through the system. To assist applicants coming behind you, please try to be prompt in replying to your application manager. If, at the moment, outside life is busy and you cannot reply in a timely fashion, then perhaps you should hold off applying until the workload abates.
Finally remember all Application Managers, Front Desk members and Developer Accounts Managers are all Debian volunteers with things outside of new maintainer processing to take up their time. We are trying to be quick, but it helps if you are patient.
-- Debian New Maintainer Committee