/[locfinder]/locfinder/pages/login.php
ViewVC logotype

Diff of /locfinder/pages/login.php

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

revision 1.1 by yob, Wed Jan 15 11:23:53 2003 UTC revision 1.2 by yob, Wed Jan 15 12:20:37 2003 UTC
# Line 44  if ($HTTP_POST_VARS["pass_password"] != Line 44  if ($HTTP_POST_VARS["pass_password"] !=
44    
45          } else {          } else {
46    
47              header("location:http://" . $opt_server . $opt_loc_path . "edit.php?id=" . $id);              header("location:http://" . $opt_server . $opt_loc_path . "index.php?page=edit&id=" . $id);
48    
49          }          }
50    
# Line 54  if ($HTTP_POST_VARS["pass_password"] != Line 54  if ($HTTP_POST_VARS["pass_password"] !=
54    
55      }      }
56    
 } elseif (isset($btn_password)) {  
   
     $sent_mail = email_password($id);  
   
57  }  }
58    
     // if an attempt to send email was made  
     if (isset($sent_mail)) {  
   
         // if the attempt was successful  
         if($sent_mail) {  
   
             echo "<b>Succesfull!</b><br>";  
             echo "Your password was emailed to the address in our database";  
             echo "<BR><BR>";  
   
         } else {  
   
             echo "<b>Error...</b><br>";  
             echo "We encountered a problem trying to email you your password";  
             echo "<BR><BR>";  
   
         }  
   
     }  
   
   
59      ?>      ?>
60      <FORM action="index.php" method="post">      <FORM action="index.php" method="post">
61    
# Line 91  if ($HTTP_POST_VARS["pass_password"] != Line 66  if ($HTTP_POST_VARS["pass_password"] !=
66        <TBODY>        <TBODY>
67        <TR>        <TR>
68          <TD><B>Username:</B></TD>          <TD><B>Username:</B></TD>
69          <TD><INPUT type="text" name="username" size=20></TD>          <TD><INPUT type="text" name="username" size=10></TD>
70        </TR>        </TR>
71    
72        <TR>        <TR>
# Line 100  if ($HTTP_POST_VARS["pass_password"] != Line 75  if ($HTTP_POST_VARS["pass_password"] !=
75        </TR>        </TR>
76    
77        <TR>        <TR>
78          <TD colspan=2 align=right><INPUT type="submit" name="btn_password" value="email password" class="button">&nbsp;&nbsp;<INPUT type="submit" name="submit" value="login >>" class="button" default=true></TD>          <TD colspan=2 align=right><INPUT type="submit" name="submit" value="login >>" class="button" default=true></TD>
79        </TR>        </TR>
80    
81        </TBODY>        </TBODY>

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26