mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 02:44:53 +00:00
Enable URL Recovery from logout
This commit is contained in:
@@ -18,7 +18,10 @@ if (!isset($config_enable_setup) || $config_enable_setup == 1) {
|
||||
|
||||
// Check user is logged in with a valid session
|
||||
if (!isset($_SESSION['logged']) || !$_SESSION['logged']) {
|
||||
header("Location: login.php");
|
||||
if($_SERVER["REQUEST_URI"] == "/")
|
||||
header("Location: login.php");
|
||||
else
|
||||
header("Location: login.php?url=".urlencode($_SERVER["REQUEST_SCHEME"] . "://" . $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"]) );
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user