mirror of https://github.com/itflow-org/itflow
Update check_login.php If standard
This commit is contained in:
parent
bab66bf769
commit
17eb51bd54
|
|
@ -18,10 +18,11 @@ if (!isset($config_enable_setup) || $config_enable_setup == 1) {
|
|||
|
||||
// Check user is logged in with a valid session
|
||||
if (!isset($_SESSION['logged']) || !$_SESSION['logged']) {
|
||||
if($_SERVER["REQUEST_URI"] == "/")
|
||||
if ($_SERVER["REQUEST_URI"] == "/") {
|
||||
header("Location: login.php");
|
||||
else
|
||||
} else {
|
||||
header("Location: login.php?last_visited=" . base64_encode($_SERVER["REQUEST_URI"]) );
|
||||
}
|
||||
exit;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue