2002-08-07 18:56:55 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
require_once("util.inc");
|
|
|
|
require_once("db.inc");
|
|
|
|
|
|
|
|
db_init();
|
|
|
|
|
|
|
|
page_head("Password");
|
2002-12-06 21:37:30 +00:00
|
|
|
$email_addr = $HTTP_POST_VARS["email_addr"];
|
|
|
|
if (strlen($email_addr)) {
|
2002-08-07 18:56:55 +00:00
|
|
|
$query = sprintf(
|
|
|
|
"select * from user where email_addr = '%s'",
|
2002-12-06 21:37:30 +00:00
|
|
|
$email_addr
|
2002-08-07 18:56:55 +00:00
|
|
|
);
|
|
|
|
$result = mysql_query($query);
|
|
|
|
$user = mysql_fetch_object($result);
|
|
|
|
mysql_free_result($result);
|
2002-12-06 21:37:30 +00:00
|
|
|
send_auth_email($user->email_addr,$user->authenticator);
|
2002-08-07 18:56:55 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if (!$user) {
|
2002-12-06 23:25:16 +00:00
|
|
|
echo "There is no user with that email address. <br>
|
2002-12-06 21:37:30 +00:00
|
|
|
Try reentering your email address.<p>";
|
|
|
|
} else {
|
|
|
|
echo "Your account key has been emailed to ".$email_addr.".<p>";
|
2002-08-07 18:56:55 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
page_tail();
|
|
|
|
|
2002-12-06 21:37:30 +00:00
|
|
|
?>
|