loadByHostingId($this->request->get('id')); if ($this->getWhmcsParamByKey('status') === 'Active') { $dnshelper = new DnsHelper; $response = $dnshelper->KerioEmailsetDNS(); logModuleCall( 'kerioEmail', __FUNCTION__, $this->params, 'DEbug', $response ); return $response; } else { return 'error'; } } }