143 $dns = \Bitrix\Landing\Domain\Register::getDNSRecords();
144 $domainName = mb_strtolower(trim($domainName));
149 foreach ($this->
getTld() as $tld)
151 if ($domainNameTld == $tld)
166 'value' => isset($params[
'CNAME'])
167 ? $params[
'CNAME'] : $dns[
'CNAME']
171 'value' => $dns[
'INA']
174 $res = \CControllerClient::executeEvent(
175 'OnMailControllerRegDomain',
177 'DOMAIN' => $domainName,
178 'IP' => $_SERVER[
'REMOTE_ADDR'],
184 if (isset($res[
'result']) && $res[
'result'] ===
true)
191 $res = \CControllerClient::executeEvent(
192 'OnMailControllerGetMemberDomains',
193 [
'REGISTERED' =>
true]
195 if (isset($res[
'result']) && is_array($res[
'result']))
197 $puny = new \CBXPunycode;
198 $domainNameEncoded = $puny->encode($domainName);
200 in_array($domainName, $res[
'result']) ||
201 in_array($domainNameEncoded, $res[
'result'])