mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 15:14:58 +00:00
jump to right folder after login
if no default page after login is set, then a redirection to out.ViewFolder.php takes place. The folderid was always set to 1, which may not be right. Now it uses the root folder id from the ѕettings.
This commit is contained in:
parent
6830d9d2d9
commit
b5a1050c05
|
@ -299,7 +299,7 @@ if (isset($referuri) && strlen($referuri)>0) {
|
|||
header("Location: http".((isset($_SERVER['HTTPS']) && (strcmp($_SERVER['HTTPS'],'off')!=0)) ? "s" : "")."://".$_SERVER['HTTP_HOST'] . $referuri);
|
||||
}
|
||||
else {
|
||||
header("Location: ../".(isset($settings->_siteDefaultPage) && strlen($settings->_siteDefaultPage)>0 ? $settings->_siteDefaultPage : "out/out.ViewFolder.php?folderid=1"));
|
||||
header("Location: ../".(isset($settings->_siteDefaultPage) && strlen($settings->_siteDefaultPage)>0 ? $settings->_siteDefaultPage : "out/out.ViewFolder.php?folderid=".$settings->_rootFolderID));
|
||||
}
|
||||
|
||||
//_printMessage(getMLText("login_ok"),
|
||||
|
|
Loading…
Reference in New Issue
Block a user