77 |
} elseif ($loc_db->f("password") == $password) { |
} elseif ($loc_db->f("password") == $password) { |
78 |
|
|
79 |
$_SESSION["logged_in"] = $loc_db->f("username"); |
$_SESSION["logged_in"] = $loc_db->f("username"); |
80 |
$_SESSION["admin"] = $loc_db->("admin"); |
$_SESSION["admin"] = $loc_db->f("admin"); |
81 |
|
|
82 |
// user is authenticated |
// user is authenticated |
83 |
return true; |
return true; |
344 |
// let the user know they need to confirm their registration |
// let the user know they need to confirm their registration |
345 |
email_user_confirm($username); |
email_user_confirm($username); |
346 |
|
|
347 |
|
write_log(1, "SYSTEM", "Register User", $username); |
348 |
|
|
349 |
$_SESSION["msg"] = "User successfully registered - instructions on how to confirm this registration have been emaield to you"; |
$_SESSION["msg"] = "User successfully registered - instructions on how to confirm this registration have been emaield to you"; |
350 |
$_SESSION["msg_type"] = 1; |
$_SESSION["msg_type"] = 1; |
351 |
|
|