Файловый менеджер - Редактировать - /var/www/axolotl/data/www/axolotls.ru/www/bitrix/modules/mail/lib/internals/entity/blacklistemail.php
Назад
<?php namespace Bitrix\Mail\Internals\Entity; use Bitrix\Mail\Blacklist\ItemType; use Bitrix\Mail\BlacklistTable; class BlacklistEmail extends \Bitrix\Mail\EO_Blacklist { public static function getDataClass() { return BlacklistTable::class; } public function convertDomainToPunycode() { $email = $this->getItemValue(); if (!$email) { return ''; } $convertingPart = $email; $firstPart = ''; if (count(explode('@', $email)) === 2) { $convertingPart = array_pop(explode('@', $email)); $firstPart = array_shift(explode('@', $email)) . '@'; } $encoder = new \CBXPunycode(); $encodedPart = $encoder->encode($convertingPart); if ($encodedPart !== false) { return $firstPart . $encodedPart; } return ''; } public function isDomainType() { return ItemType::DOMAIN === $this->getItemType(); } public function isEmailType() { return ItemType::EMAIL === $this->getItemType(); } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.8 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка