mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-29 16:43:50 +00:00
Use the settings class
This commit is contained in:
@@ -26,14 +26,9 @@
|
||||
|
||||
//includes files
|
||||
require_once __DIR__ . "/resources/require.php";
|
||||
|
||||
|
||||
//use custom logout destination if set otherwise redirect to the index page
|
||||
if (isset($_SESSION["login"]["logout_destination"]["text"])){
|
||||
$logout_destination = $_SESSION["login"]["logout_destination"]["text"];
|
||||
}
|
||||
else {
|
||||
$logout_destination = PROJECT_PATH."/";
|
||||
}
|
||||
$logout_destination = $settings->get('login', 'logout_destination', PROJECT_PATH.'/');
|
||||
|
||||
//destroy session
|
||||
session_unset();
|
||||
|
||||
Reference in New Issue
Block a user