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 |
* |
* |
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 |
?> |
?> |