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

Diff of /locfinder/action/login.php

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

revision 1.1 by yob, Thu Jan 16 03:33:47 2003 UTC revision 1.2 by yob, Thu Jan 16 05:13:29 2003 UTC
# Line 26  Line 26 
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["password"] != "") {  
29    
30      $login_success = login($HTTP_POST_VARS["username"], md5($HTTP_POST_VARS["password"]));  echo "balh";
31    
32        $login_success = login($_POST["username"], md5($_POST["password"]));
33    
34      if ($login_success ) {      if ($login_success ) {
35    
36          session_start();          session_start();
37          $_SESSION["logged_in"] = $HTTP_POST_VARS["username"];          $_SESSION["logged_in"] = $_POST["username"];
38    
39          header("location:http://" . $opt_server . $opt_loc_path . "index.php");          header("location:http://" . $opt_server . $opt_loc_path . "index.php");
40    
# Line 43  if ($HTTP_POST_VARS["password"] != "") { Line 44  if ($HTTP_POST_VARS["password"] != "") {
44    
45      }      }
46    
 }  
47  ?>  ?>

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