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

Diff of /locfinder/action/confirm.php

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

revision 1.2 by yob, Thu Jan 16 14:08:25 2003 UTC revision 1.3 by yob, Sun Jan 19 14:15:15 2003 UTC
# Line 6  Line 6 
6   *   begin                : Friday, Jan 17, 2003   *   begin                : Friday, Jan 17, 2003
7   *   email                : jimmy@deefa.com   *   email                : jimmy@deefa.com
8   *   notes                : newly registered users must confirm before they   *   notes                : newly registered users must confirm before they
9   *                              can login   *              can login
10   *   *
11   *    (c) Copyright 2003 James Healy   *    (c) Copyright 2003 James Healy
12   *   *
# Line 28  Line 28 
28   *   *
29   ***************************************************************************/   ***************************************************************************/
30    
31  if (isset($username) && isset($hash)) {  if (!isset($username) && !isset($hash)) {
32    
33      user_confirm($username, $hash);      $_SESSION["msg"] = "cannot complete that action - a required variable was missing";
34        $_SESSION["msg_type"] = 0;
35        header("location:http://" . $opt_server . $opt_loc_path . "index.php?page=front");
36    
37  } else {  } else {
38    
39      // error      $exec_code = user_confirm($username, $hash);
40    
41        if (!$exec_code) {
42        
43            header("location:http://" . $opt_server . $opt_loc_path . "index.php?page=front");
44        
45        } else {
46        
47            header("location:http://" . $opt_server . $opt_loc_path . "index.php?page=account");
48            
49        }
50  }  }
51    
 header("location:http://" . $opt_server . $opt_loc_path . "index.php?page=front");  
   
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