Skip to content

Commit 845c3e7

Browse files
committed
Custom logout URL configurable in config.inc.php file.
1 parent 777da79 commit 845c3e7

File tree

3 files changed

+18
-1
lines changed

3 files changed

+18
-1
lines changed

install/tpl/config.inc.php.master

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ if( !empty($_SERVER['DOCUMENT_ROOT']) ) {
4040
$conf["app_title"] = "ISPConfig";
4141
$conf["app_version"] = "3.0.0";
4242
$conf["modules_available"] = "admin,mail,sites,monitor,client,dns";
43+
$conf["interface_logout_url"] = "";
4344

4445
//** Key paramaters
4546
define('ISPC_APP_TITLE', 'ISPConfig');
@@ -129,6 +130,12 @@ $conf["logo"] = 'themes/default/images/mydnsconfig_logo.gif';
129130

130131
$conf["language"] = 'en';
131132

133+
/*
134+
Misc.
135+
*/
136+
137+
$conf["interface_logout_url"] = ""; // example: http://www.domain.tld/
138+
132139

133140
/*
134141
Auto Load Modules

interface/lib/config.inc.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,12 @@
124124
$conf['start_db'] = true;
125125
$conf['start_session'] = true;
126126

127+
/*
128+
Misc.
129+
*/
130+
131+
$conf["interface_logout_url"] = ""; // example: http://www.domain.tld/
132+
127133

128134
//** DNS Settings
129135

interface/web/login/logout.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,11 @@
3939
if($_SESSION["s"]["site"]["logout"] != '') {
4040
header("Location: ".$_SESSION["s"]["site"]["logout"]);
4141
} else {
42-
header("Location: ../index.php");
42+
if($conf["interface_logout_url"] != '') {
43+
header("Location: ".$conf["interface_logout_url"]);
44+
} else {
45+
header("Location: ../index.php");
46+
}
4347
}
4448
exit;
4549
?>

0 commit comments

Comments
 (0)