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