getText('account_lostpw','invalid_user'),$Language->getText('account_lostpw','user_dont_exist')); } // First, we need to create new confirm hash $confirm_hash = md5($session_hash . strval(time()) . strval(rand())); $u->setNewEmailAndHash($u->getEmail(), $confirm_hash); if ($u->isError()) { exit_error('Error',$u->getErrorMessage()); } else { $message = stripcslashes($Language->getText('account_lostpw', 'message', array(getStringFromServer('HTTP_HOST'), $confirm_hash, $GLOBALS['sys_name']))); util_send_message($u->getEmail(),$Language->getText('account_lostpw', 'subject', $GLOBALS['sys_name']),$message); $HTML->header(array('title'=>"Lost Password Confirmation",'pagename'=>'account_lostpw')); echo $Language->getText('account_lostpw','notify'); $HTML->footer(array()); exit(); } } $HTML->header(array('title'=>"Lost Account Password",'pagename'=>'account_lostpw')); echo $Language->getText('account_lostpw','warn'); ?>
footer(array()); ?>