loggedIn()) { coreFunctions::redirect(WEB_ROOT . '/account_home.' . SITE_CONFIG_PAGE_EXTENSION); } /* login user */ if ((int) $_REQUEST['submitme']) { // do login $loginUsername = trim($_REQUEST['loginUsername']); $loginPassword = trim($_REQUEST['loginPassword']); if (!strlen($loginUsername)) { notification::setError(t("please_enter_your_username", "Please enter your username")); } elseif (!strlen($loginPassword)) { notification::setError(t("please_enter_your_password", "Please enter your password")); } else { $rs = $Auth->login($loginUsername, $loginPassword, true); if ($rs) { // if we know the file if (isset($_REQUEST['loginShortUrl'])) { // download file $file = file::loadByShortUrl(trim($_REQUEST['loginShortUrl'])); if ($file) { coreFunctions::redirect($file->getFullShortUrl()); } } // successful login coreFunctions::redirect(coreFunctions::getCoreSitePath() . '/account_home.' . SITE_CONFIG_PAGE_EXTENSION); } else { // login failed notification::setError(t("username_and_password_is_invalid", "Your username and password are invalid")); } } } // include header require_once(SITE_TEMPLATES_PATH . '/partial/_header.inc.php'); ?>

  • " class="submitInput" />
  • ?  |