add more detailed info in case of only suggestions on installation; correct display of required dns entries for admins
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
@@ -437,17 +437,17 @@ return [
|
||||
'section_d' => [
|
||||
'title' => lng('admin.nameserversettings'),
|
||||
'image' => 'icons/domain_edit.png',
|
||||
'visible' => $userinfo['change_serversettings'] == '1',
|
||||
'visible' => ($userinfo['change_serversettings'] == '1' || ($userinfo['change_serversettings'] == '0' && $result['isbinddomain'] == '0')) && (Settings::Get('system.bind_enable') == '1' || $result['isemaildomain'] == '1'),
|
||||
'fields' => [
|
||||
'isbinddomain' => [
|
||||
'visible' => Settings::Get('system.bind_enable') == '1',
|
||||
'visible' => $userinfo['change_serversettings'] == '1' && Settings::Get('system.bind_enable') == '1',
|
||||
'label' => lng('admin.createzonefile'),
|
||||
'type' => 'checkbox',
|
||||
'value' => '1',
|
||||
'checked' => $result['isbinddomain']
|
||||
],
|
||||
'zonefile' => [
|
||||
'visible' => Settings::Get('system.bind_enable') == '1',
|
||||
'visible' => $userinfo['change_serversettings'] == '1' && Settings::Get('system.bind_enable') == '1',
|
||||
'label' => lng('admin.custombindzone'),
|
||||
'desc' => lng('admin.bindzonewarning'),
|
||||
'type' => 'text',
|
||||
@@ -466,7 +466,7 @@ return [
|
||||
'value' => (string)(new \Froxlor\Dns\DnsEntry('_dmarc', 'TXT', \Froxlor\Dns\Dns::encloseTXTContent(Settings::Get('dmarc.dmarc_entry'))))
|
||||
],
|
||||
'dkim_entry' => [
|
||||
'visible' => ($result['isbinddomain'] == '0' && Settings::Get('antispam.activated') == '1' && $result['dkim'] == '1' && $result['dkim_pubkey'] != ''),
|
||||
'visible' => ($result['isbinddomain'] == '0' && Settings::Get('antispam.activated') == '1' && $result['dkim'] == '1' && $result['dkim_pubkey'] != '' && $result['isemaildomain'] == '1'),
|
||||
'label' => lng('antispam.required_dkim_dns'),
|
||||
'type' => 'longtext',
|
||||
'value' => (string)(new \Froxlor\Dns\DnsEntry('dkim' . $result['dkim_id'] . '._domainkey', 'TXT', \Froxlor\Dns\Dns::encloseTXTContent('v=DKIM1; k=rsa; p='.trim($result['dkim_pubkey']))))
|
||||
|
||||
Reference in New Issue
Block a user