loadByHostingId($this->request->get('id')); if ($this->getWhmcsParamByKey('status') === 'Active') { $dnshelper = new DnsHelper; $response = $dnshelper->KerioEmailsetDNS(); logModuleCall( 'kerioEmail', __FUNCTION__, $response, 'Debug', $this->params ); return Helper\redirectByUrl(BuildUrlExtended::getProvisioningUrl('',false,false)); } else { return 'error'; } } }