_rootDir . "languages/" . $settings->_language . "/lang.inc"; function _printMessage($heading, $message) { UI::htmlStartPage($heading, "password"); UI::globalBanner(); UI::pageNavigation($heading); UI::contentContainer($message."
\n"); UI::htmlEndPage(); return; } if (isset($_POST["email"])) { $email = $_POST["email"]; } if (isset($_POST["login"])) { $login = $_POST["login"]; } if (empty($email) || empty($login)) { header('Location: ../out/out.PasswordForgotten.php'); exit; } $user = $dms->getUserByLogin($login, $email); if($user) { if($hash = $dms->createPasswordRequest($user)) { $emailobj = new SeedDMS_Email(); $subject = "###SITENAME###: ".getMLText("password_forgotten_email_subject"); $message = str_replace('###HASH###', $hash, getMLText("password_forgotten_email_body")); $emailobj->sendPassword('', $user, $subject, $message); } } header('Location: ../out/out.Login.php'); exit; ?>