|
|
@@ -166,19 +166,19 @@ class EditSettingDataProvider extends BaseDataProvider
|
|
|
|
|
|
$maildomain = $this->actionElementId;
|
|
|
$domain = $this->getWhmcsParamByKey('domain');
|
|
|
- if ($maildomain == $domain) {
|
|
|
- $this->formData['dkimsigenabled'] == 'on' ? $attr['isDkimEnabled'] = true : $attr['isDkimEnabled'] = false;
|
|
|
- $this->formData['tfaenabled'] == 'on' ? $attr['twoFAEnabled'] = true : $attr['twoFAEnabled'] = false;
|
|
|
- $this->formData['chatenabled'] == 'on' ? $attr['isInstantMessagingEnabled'] = true : $attr['isInstantMessagingEnabled'] = false;
|
|
|
|
|
|
logModuleCall(
|
|
|
'kerioEmail',
|
|
|
__FUNCTION__,
|
|
|
- $this->formData['domainid'],
|
|
|
+ $maildomain,
|
|
|
'Debug API',
|
|
|
- $attr
|
|
|
+ $domain
|
|
|
);
|
|
|
|
|
|
+ if ($maildomain == $domain) {
|
|
|
+ $this->formData['dkimsigenabled'] == 'on' ? $attr['isDkimEnabled'] = true : $attr['isDkimEnabled'] = false;
|
|
|
+ $this->formData['tfaenabled'] == 'on' ? $attr['twoFAEnabled'] = true : $attr['twoFAEnabled'] = false;
|
|
|
+ $this->formData['chatenabled'] == 'on' ? $attr['isInstantMessagingEnabled'] = true : $attr['isInstantMessagingEnabled'] = false;
|
|
|
$api = new KerioWhmcs('whmcsKerioEmail', 'Thurdata', '1.0');
|
|
|
try {
|
|
|
$api->login($this->getWhmcsParamByKey('serverhostname'), $this->getWhmcsParamByKey('serverusername'), $this->getWhmcsParamByKey('serverpassword'));
|