Use the settings class

This commit is contained in:
FusionPBX
2025-08-26 08:17:41 -06:00
committed by GitHub
parent 01bd5a2860
commit 8ac3b8e8d0

View File

@@ -28,12 +28,7 @@
require_once __DIR__ . "/resources/require.php"; require_once __DIR__ . "/resources/require.php";
//use custom logout destination if set otherwise redirect to the index page //use custom logout destination if set otherwise redirect to the index page
if (isset($_SESSION["login"]["logout_destination"]["text"])){ $logout_destination = $settings->get('login', 'logout_destination', PROJECT_PATH.'/');
$logout_destination = $_SESSION["login"]["logout_destination"]["text"];
}
else {
$logout_destination = PROJECT_PATH."/";
}
//destroy session //destroy session
session_unset(); session_unset();