From 17eb51bd54b3310de30557284bbacdb0de90d1d4 Mon Sep 17 00:00:00 2001 From: Hugo Sampaio Date: Sat, 4 May 2024 19:23:39 -0300 Subject: [PATCH] Update check_login.php If standard --- check_login.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/check_login.php b/check_login.php index eeb6d4d4..297208c2 100644 --- a/check_login.php +++ b/check_login.php @@ -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; }