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