| 16 |
|
|
| 17 |
if (pg_NumRows($result) == 1) { |
if (pg_NumRows($result) == 1) { |
| 18 |
$row = pg_Fetch_Array($result, 0); |
$row = pg_Fetch_Array($result, 0); |
|
echo "<P>Password was mailed to you at $email.</P>"; |
|
| 19 |
|
|
| 20 |
$body = "Hi, your password for the GPG Coordination Page is"; |
$body = "Hi, your password for the GPG Coordination Page is"; |
| 21 |
$body .= $row["passwd"]; |
$body .= $row["passwd"]; |
| 23 |
|
|
| 24 |
$headers = "From: gpg-coord@nm.debian.org"; |
$headers = "From: gpg-coord@nm.debian.org"; |
| 25 |
|
|
| 26 |
mail($email, "[GPG-Coord] Your password", $body, $headers); |
$return = mail($email, "[GPG-Coord] Your password", $body, $headers); |
| 27 |
|
if (! $return) { |
| 28 |
|
echo "<P>Error while sending email to $email.</P>"; |
| 29 |
|
} else { |
| 30 |
|
echo "<P>Password was mailed to you at $email.</P>"; |
| 31 |
|
} |
| 32 |
|
|
| 33 |
} else { |
} else { |
| 34 |
echo "Cannot find that e-mail in the database."; |
echo "Cannot find that e-mail in the database."; |