Skip to content

Commit 127f329

Browse files
author
Till Brehm
committed
Merge branch '6580-interface_base_url' into 'develop'
Allow overriding the interface_base_url for password reset mails, #6580 Closes #6580 See merge request ispconfig/ispconfig3!1807
2 parents eccdad3 + 6aff4fd commit 127f329

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

install/tpl/config.inc.php.master

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ $conf['timezone'] = '{timezone}';
158158

159159
//** Misc.
160160
$conf['interface_logout_url'] = ''; // example: http://www.domain.tld/
161+
$conf['interface_base_url'] = ''; // example: http://www.domain.tld (no trailing slash)
161162

162163

163164
//** Auto Load Modules

interface/web/login/password_reset.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,9 @@
8484
else $server_domain = 'https://' . $server_domain;
8585

8686
if(isset($_SERVER['SERVER_PORT']) && $_SERVER['SERVER_PORT'] != '443') $server_domain .= ':' . $_SERVER['SERVER_PORT'];
87+
if (!empty($conf['interface_base_url'])) {
88+
$server_domain = $conf['interface_base_url'];
89+
}
8790

8891
$app->uses('getconf,ispcmail');
8992
$server_config_array = $app->getconf->get_global_config();

0 commit comments

Comments
 (0)