//ini_set("include_path", $_SERVER['DOCUMENT_ROOT'] . ""); include "include/session.php"; $page_info = "Get your password"; include "common/common_header.php"; /** * ForgotPass.php * * This page is for those users who have forgotten their * password and want to have a new password generated for * them and sent to the email address attached to their * account in the database. The new password is not * displayed on the website for security purposes. * * Note: If your server is not properly setup to send * mail, then this page is essentially useless and it * would be better to not even link to this page from * your website. */ ?> /** * Forgot Password form has been submitted and no errors * were found with the form (the username is in the database) */ if(isset($_SESSION['forgotpass'])){ /** * New password was generated for user and sent to user's * email address. */ if($_SESSION['forgotpass']){ echo "
Your new password has been generated "
."and sent to the email
associated with your account.
There was an error sending you the "
."email with the new password,
so your password has not been changed. "
."Main.