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

Diff of /locfinder/action/registration.php

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

revision 1.2 by yob, Thu Jan 16 13:16:38 2003 UTC revision 1.3 by yob, Sun Jan 19 14:15:16 2003 UTC
# Line 27  Line 27 
27   *   *
28   ***************************************************************************/   ***************************************************************************/
29    
30  if ($_POST["password"] == $_POST["confirm_password"]) {  if ($_POST["password"] != $_POST["confirm_password"]) {
31                
32      register_user($_POST["username"], $_POST["fullname"], $_POST["email"], $_POST["notify_updates"], $_POST["password"]);      $_SESSION["msg"] = "The supplied passwords don't match";
33        $_SESSION["msg_type"] = 0;
34        header("location:http://" . $opt_server . $opt_loc_path . "index.php?page=registration");
35    
36  } else {  } else {
37    
38      header("location:http://" . $opt_server . $opt_loc_path . "index.php?page=front");      $exec_code = register_user($_POST["username"], $_POST["fullname"], $_POST["email"], $_POST["notify_updates"], $_POST["password"]);
39        
40        if (!$exec_code) {
41        
42            header("location:http://" . $opt_server . $opt_loc_path . "index.php?page=registration");  
43        
44        } else {
45        
46            header("location:http://" . $opt_server . $opt_loc_path . "index.php?page=front");  
47        
48        }
49        
50  }  }
51      ?>      ?>
52    

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

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