send($recipients, $headers, $msg); if (PEAR::isError($send)) { $error = "There was a problem"; } else { $emailsent = "Y"; } } else { $error = "There was a problem, please try again"; } } else { $error = "Email address not found"; } } } } $isPopup = (isset($_GET['p']) && $_GET['p'] == "Y") || (isset($_POST['p']) && $_POST['p'] == "Y"); $headAppend = $isPopup ? " class=\"popup\"" : ""; ?> Recover Home Retriever Password >
Reset Password\n"; if ($emailsent == "Y") { echo "

Your password has been emailed to you. Return to login page.

"; } else { if ($error) { echo "
"; echo $error; echo "
"; } else { echo "

Enter your email address below and a new password will be sent to you.

"; } $email = isset($_GET['email']) ? $_GET['email'] : ""; ?>
= 1) { $consonants .= 'BDGHJLMNPQRSTVWXZ'; } if ($strength && $strength >= 2) { $vowels .= "AEUY"; } if ($strength && $strength >= 4) { $consonants .= '23456789'; } if ($strength && $strength >= 8) { $consonants .= '@#$%'; } $password = ''; $alt = time() % 2; for ($i = 0; $i < $length; $i++) { if ($alt == 1) { $password .= $consonants[(rand() % strlen($consonants))]; $alt = 0; } else { $password .= $vowels[(rand() % strlen($vowels))]; $alt = 1; } } return $password; } ?>