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:
committed by
WineHQ
parent
9d35df1b54
commit
c5e1b08b5d
@@ -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 -->
|
||||
|
||||
Reference in New Issue
Block a user