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

@@ -6,7 +6,10 @@ require_once(BASE."include/util.php");
/**************/
echo "<div class='default_container'>\n";
echo '<form method="post" name="sFlogin" action="account.php">',"\n";
echo html_frame_start("Login to Application DB","400","",0)
echo html_frame_start("Login to Application DB","400","",0);
/* Pass on the URL we should return to after log-in */
global $aClean;
echo '<input type="hidden" name="sReturnTo" value="'.$aClean['sReturnTo'].'" />';
?>
<!-- start of login form -->