| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- <?php
- namespace ThurData\Servers\KerioEmail\App\UI\Client\Setting\Sections;
- 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\Hidden;
- use ThurData\Servers\KerioEmail\Core\UI\Widget\Forms\Fields\Switcher;
- /**
- *
- * Created by PhpStorm.
- * User: ThurData
- * Date: 12.11.19
- * Time: 13:52
- * Class EditAdditionalSection
- */
- class EditAdditionalSection extends FreeFieldsSection
- {
- protected $id = 'editAdditionalSection';
- protected $name = 'editAdditionalSection';
- use FormExtendedTrait;
- public function initContent()
- {
- $domain = $this->getWhmcsParamByKey('domain');
- $maildomain = $this->getRequestValue('actionElementId');
- logModuleCall(
- 'kerioEmail',
- __FUNCTION__,
- $domain,
- 'Debug Error',
- $maildomain
- );
- $dkimsigenabled = new Switcher('dkimsigenabled');
- $this->addField($dkimsigenabled);
- $tfaenabled = new Switcher('tfaenabled');
- $this->addField($tfaenabled);
- $this->addField(new Hidden('domainid'));
- }
- }
|