Sorry, that ' . 'account does not exist.
Please try a ' . 'different username.
'; $GLOBALS['TEMPLATE']['content'] .= $form; } else { // generate new password $password = random_text(8); // send the new password to the email address on record $message = 'Your new password is: ' . $password; mail($user->emailAddr, 'New password', $message); $GLOBALS['TEMPLATE']['content'] = 'A new ' . 'password has been emailed to you.
'; // store the new password $user->password = $password; $user->save(); } } // there was invalid data else { $GLOBALS['TEMPLATE']['content'] .= 'You did not ' . 'provide a valid username.
Please try ' . 'again.
'; $GLOBALS['TEMPLATE']['content'] .= $form; } } // display the page include '../templates/template-page.php'; ?>