/[webwml]/newmaint/gpgpasswd.wml
ViewVC logotype

Contents of /newmaint/gpgpasswd.wml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (show annotations) (download)
Fri Aug 2 21:46:42 2002 UTC (10 years, 9 months ago) by tbm
Branch: MAIN
Changes since 1.9: +2 -1 lines
Tell people who have forgotten their password to mail
gpg-coord@nm.debian.org.
1 <?
2 include("gpgconfig.inc");
3 include("common.inc");
4 ?>
5 #use wml::gpgpage title="GPG Signing Coordination - Get Password"
6
7 Currently out of order. If you have forgotten your password, mail
8 gpg-coord@nm.debian.org to get a new one.
9
10 <?
11
12 if (0) {
13 if ($email) {
14 if (($db = open_db())) {
15 $sql = "SELECT passwd FROM people WHERE email = '$email'";
16
17 if (! ($result = pg_exec($db, $sql))) {
18 echo "Problem with query", pg_ErrorMessage($db), "<BR>";
19 return FALSE;
20 }
21
22 if (pg_NumRows($result) == 1) {
23 $row = pg_Fetch_Array($result, 0);
24
25 $body = "Hi, your password for the GPG Coordination Page is ";
26 $body .= $row["passwd"];
27 $body .= "\n\nhttp://nm.debian.org/gpg.php\n";
28
29 $headers = "From: gpg-coord@nm.debian.org";
30
31 $return = mail($email, "[GPG-Coord] Your password", $body, $headers);
32 if (! $return) {
33 echo "<P>Error while sending email to $email.</P>";
34 } else {
35 echo "<P>Password was mailed to you at $email.</P>";
36 }
37
38 } else {
39 echo "Cannot find that e-mail in the database.";
40 }
41 }
42 } else {
43 echo "No e-mail given.";
44 }
45 }
46
47 ?>
48

  ViewVC Help
Powered by ViewVC 1.1.5