|
|
@@ -6,6 +6,7 @@ use ThurData\Servers\KerioEmail\App\Traits\FormExtendedTrait;
|
|
|
use ThurData\Servers\KerioEmail\App\UI\Admin\Custom\Sections\FreeFieldsSection;
|
|
|
use ThurData\Servers\KerioEmail\Core\UI\Widget\Forms\Fields\Switcher;
|
|
|
use ThurData\Servers\KerioEmail\Core\UI\Widget\Forms\Fields\Text;
|
|
|
+use ThurData\Servers\KerioEmail\Core\UI\Widget\Forms\Fields\Info;
|
|
|
|
|
|
/**
|
|
|
*
|
|
|
@@ -24,6 +25,15 @@ class AdditionalSection extends FreeFieldsSection
|
|
|
|
|
|
public function initContent()
|
|
|
{
|
|
|
+ $domain = $this->getWhmcsParamByKey('domain');
|
|
|
+ $maildomain = $this->getRequestValue('actionElementId');
|
|
|
+ if($domain != $maildomain) {
|
|
|
+ $infoalias = new Info('infoalias');
|
|
|
+ $infoalias->setId('infoalias');
|
|
|
+ $infoalias->setName('infoalias');
|
|
|
+ $infoalias->setDescription('infoaliasmessage');
|
|
|
+ $this->addField($infodns);
|
|
|
+ }
|
|
|
$dkimsigenabled = new Switcher('dkimsigenabled');
|
|
|
$dkimsigenabled->addHtmlAttribute('disabled', true);
|
|
|
$this->generateDoubleSection([$dkimsigenabled]);
|