/[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.4 by yob, Wed Jan 15 22:49:15 2003 UTC revision 1.5 by yob, Thu Jan 16 04:30:26 2003 UTC
# Line 22  Line 22 
22   *    GNU General Public License for more details.   *    GNU General Public License for more details.
23   *   *
24   *    You should have received a copy of the GNU General Public License   *    You should have received a copy of the GNU General Public License
25   *    along with Foobar; if not, write to the Free Software   *    along with locfinder; if not, write to the Free Software
26   *    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA   *    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
27   *   *
28   ***************************************************************************/   ***************************************************************************/
   
 if ($HTTP_POST_VARS["pass_password"] != "") {  
   
     $login_success = login($username, md5($HTTP_POST_VARS["pass_password"]));  
   
     if ($login_success ) {  
   
         session_start();  
         session_register("logged_in");  
         $logged_in = $username;  
   
         header("location:http://" . $opt_server . $opt_loc_path . "index.php");  
   
     } else {  
   
         header("location:http://" . $opt_server . $opt_loc_path . "index.php?page=login");  
   
     }  
   
 }  
   
29      ?>      ?>
30    
31      <FORM action="index.php" method="post">      <FORM action="index.php" method="post">
32    
33      <INPUT type="hidden" name="page" value="login">      <INPUT type="hidden" name="action" value="login">
34    
35      <TABLE border=0 cellpadding=0 cellspacing=3 class="tableline">      <TABLE border=0 cellpadding=0 cellspacing=3 class="tableline">
36        <TBODY>        <TBODY>
# Line 61  if ($HTTP_POST_VARS["pass_password"] != Line 41  if ($HTTP_POST_VARS["pass_password"] !=
41    
42        <TR>        <TR>
43          <TD><B>Password:</B></TD>          <TD><B>Password:</B></TD>
44          <TD><INPUT type="password" size=10 name="pass_password"></TD>          <TD><INPUT type="password" size=10 name="password"></TD>
45        </TR>        </TR>
46    
47        <TR>        <TR>
48          <TD colspan=2 align=right><INPUT type="submit" name="submit" value="login >>" class="button" default=true></TD>          <TD colspan=2 align=right><INPUT type="submit" value="login >>" class="button" default=true></TD>
49        </TR>        </TR>
50    
51        </TBODY>        </TBODY>

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

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