|
|
@@ -12,6 +12,7 @@ use ThurData\Servers\KerioEmail\Core\UI\Widget\Forms\Fields\Hidden;
|
|
|
use ThurData\Servers\KerioEmail\Core\UI\Widget\Forms\Fields\Textarea;
|
|
|
use ThurData\Servers\KerioEmail\Core\UI\Widget\Forms\Fields\Info;
|
|
|
use ThurData\Servers\KerioEmail\Core\Helper\DnsHelper;
|
|
|
+use ThurData\Servers\KerioEmail\Core\UI\Widget\Forms\Sections\RawSection;
|
|
|
|
|
|
/**
|
|
|
*
|
|
|
@@ -32,20 +33,22 @@ class GeneralSection extends FreeFieldsSection
|
|
|
{
|
|
|
$maildomain = $this->getRequestValue('actionElementId');
|
|
|
$dns = new DnsHelper();
|
|
|
-
|
|
|
+ $info = new RawSection();
|
|
|
if($dns->selfDns($maildomain)) {
|
|
|
$infodns = new Info('infodns');
|
|
|
$infodns->setId('infodns');
|
|
|
$infodns->setName('infodns');
|
|
|
$infodns->setDescription('infodnsmessage');
|
|
|
- $this->addField($infodns);
|
|
|
+ $info->addField($infodns);
|
|
|
} else {
|
|
|
$infoextdns = new Info('infoextdns');
|
|
|
$infoextdns->setId('infoextdns');
|
|
|
$infoextdns->setName('infoextdns');
|
|
|
$infoextdns->setDescription('infoextdnsmessage');
|
|
|
- $this->addField($infoextdns);
|
|
|
+ $info->addField($infoextdns);
|
|
|
}
|
|
|
+ $this->addSection($info);
|
|
|
+
|
|
|
$mxthurdata = new Text('mxthurdata');
|
|
|
$mxthurdata->addHtmlAttribute('readonly','true');
|
|
|
$mxthurdata->setDescription('description');
|