login($posteduser, POST_PASSWORD, $keeppass); if ($login) { if (POST_QUERY) { header('Location: '. createURL('bookmarks', $posteduser .'?'. POST_QUERY)); } else { header('Location: '. createURL('bookmarks', $posteduser)); } } else { $tplVars['error'] = T_('The details you have entered are incorrect. Please try again.'); } } if (!$login) { if ($userservice->isLoggedOn()) { $cUser = $userservice->getCurrentObjectUser(); header('Location: '. createURL('bookmarks', strtolower($cUser->getUsername()))); } $tplVars['subtitle'] = T_('Log In'); $tplVars['formaction'] = createURL('login'); $tplVars['querystring'] = filter($_SERVER['QUERY_STRING']); $templateservice->loadTemplate('login.tpl', $tplVars); } ?>