mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Use the settings class
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user