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

Diff of /newmaint/gpgpasswd.wml

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.6 by tbm, Sun Jul 15 15:01:14 2001 UTC revision 1.7 by tbm, Sun Jul 15 15:06:57 2001 UTC
# Line 16  Line 16 
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"];
# Line 24  Line 23 
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.";

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

  ViewVC Help
Powered by ViewVC 1.1.5