27 |
* |
* |
28 |
***************************************************************************/ |
***************************************************************************/ |
29 |
|
|
30 |
email_password($username); |
if (!isset($username)) { |
31 |
|
|
32 |
header("location:http://" . $opt_server . $opt_loc_path . "index.php?page=front"); |
$_SESSION["msg"] = "A required variable was missing"; |
33 |
|
$_SESSION["msg_type"] = 0; |
34 |
|
header("location:http://" . $opt_server . $opt_loc_path . "index.php?page=forgot"); |
35 |
|
|
36 |
?> |
} else { |
37 |
|
|
38 |
|
$exec_code = email_password_reset($username); |
39 |
|
|
40 |
|
if (!$exec_code) { |
41 |
|
|
42 |
|
header("location:http://" . $opt_server . $opt_loc_path . "index.php?page=forgot"); |
43 |
|
|
44 |
|
} else { |
45 |
|
|
46 |
|
header("location:http://" . $opt_server . $opt_loc_path . "index.php?page=front"); |
47 |
|
|
48 |
|
} |
49 |
|
|
50 |
|
} |
51 |
|
|
52 |
|
?> |
53 |
|
|