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