Show login form when login is required

This commit is contained in:
Alexander Nicolaysen Sørnes
2007-11-05 19:27:17 +01:00
committed by Chris Morgan
parent 70e4306e2b
commit 734a4f8a1f
4 changed files with 27 additions and 9 deletions

View File

@@ -12,8 +12,10 @@ $oUser = new User($_SESSION['current']->iUserId);
/* Restrict error to logged-in users */
if(!$oUser->isLoggedIn())
util_show_error_page_and_exit("You need to be <a href=\"".login_url().
"\">logged in</a>.");
{
login_form();
exit;
}
$oRecipient = new User($aClean['iRecipientId']);