Commit 845c3e7b authored by tbrehm's avatar tbrehm
Browse files

Custom logout URL configurable in config.inc.php file.

parent 777da79c
......@@ -40,6 +40,7 @@ if( !empty($_SERVER['DOCUMENT_ROOT']) ) {
$conf["app_title"] = "ISPConfig";
$conf["app_version"] = "3.0.0";
$conf["modules_available"] = "admin,mail,sites,monitor,client,dns";
$conf["interface_logout_url"] = "";
//** Key paramaters
define('ISPC_APP_TITLE', 'ISPConfig');
......@@ -129,6 +130,12 @@ $conf["logo"] = 'themes/default/images/mydnsconfig_logo.gif';
$conf["language"] = 'en';
/*
Misc.
*/
$conf["interface_logout_url"] = ""; // example: http://www.domain.tld/
/*
Auto Load Modules
......
......@@ -124,6 +124,12 @@ $conf['language'] = 'en';
$conf['start_db'] = true;
$conf['start_session'] = true;
/*
Misc.
*/
$conf["interface_logout_url"] = ""; // example: http://www.domain.tld/
//** DNS Settings
......
......@@ -39,7 +39,11 @@ $_SESSION["s"]["module"] = null;
if($_SESSION["s"]["site"]["logout"] != '') {
header("Location: ".$_SESSION["s"]["site"]["logout"]);
} else {
header("Location: ../index.php");
if($conf["interface_logout_url"] != '') {
header("Location: ".$conf["interface_logout_url"]);
} else {
header("Location: ../index.php");
}
}
exit;
?>
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment