login($frm['username'], $frm['password'])) { App::raiseMsg(_("You are now logged in."), MSG_SUCCESS, __FILE__, __LINE__); App::dieBoomerangURL(); App::logMsg(sprintf('%s %s successfully logged-in.', $auth->getVal('auth_name'), $frm['username']), LOG_INFO, __FILE__, __LINE__); } else { App::raiseMsg(_("Login failed, please try again."), MSG_NOTICE, __FILE__, __LINE__); App::logMsg(sprintf('%s %s failed login using (MD5ed) password: %s', $auth->getVal('auth_name'), $frm['username'], md5($frm['password'])), LOG_NOTICE, __FILE__, __LINE__); } } // Titles and navigation header. $nav->addPage(_("Login")); // Templates. include 'header.ihtml'; include 'codebase/services/templates/login_form.ihtml'; include 'footer.ihtml'; ?>