Preserve current url when logging in. Pass the current url as part of the url to the login form

so we can return the user to the starting url after login.
This commit is contained in:
Alexander Nicolaysen Sørnes
2007-06-15 23:40:21 +00:00
committed by WineHQ
parent 9d35df1b54
commit c5e1b08b5d
5 changed files with 26 additions and 4 deletions

View File

@@ -39,7 +39,7 @@ if(!$_SESSION['current']->isLoggedIn())
$str_benefits
<p>So what are you waiting for, [<a href=\"account.php?sCmd=login\">log in</a>]
<p>So what are you waiting for, [<a href=\"".login_url()."\">log in</a>]
or [<a href=\"account.php?sCmd=new\">register</a>] now! Your help in
stomping out Wine issues will be greatly appreciated.</p>";
} else