uawdijnntqw1x1x1
IP : 18.116.27.229
Hostname : axolotl
Kernel : Linux axolotl 4.9.0-13-amd64 #1 SMP Debian 4.9.228-1 (2020-07-05) x86_64
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
OS : Linux
PATH:
/
var
/
www
/
axolotl
/
data
/
www
/
arhangelsk.axolotls.ru
/
a537b
/
internals.tar
/
/
entity/usersignature.php000064400000000216147741302100011467 0ustar00<?php namespace Bitrix\Mail\Internals\Entity; use Bitrix\Mail\Internals\EO_UserSignature; class UserSignature extends EO_UserSignature { }entity/blacklistemail.php000066400000001647147741302100011562 0ustar00<?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(); } }mailmessageattachment.php000064400000001676147741302100011626 0ustar00<?php namespace Bitrix\Mail\Internals; use Bitrix\Main\Entity; class MailMessageAttachmentTable extends Entity\DataManager { public static function getFilePath() { return __FILE__; } public static function getTableName() { return 'b_mail_msg_attachment'; } public static function getMap() { return array( 'ID' => array( 'data_type' => 'integer', 'primary' => true, 'autocomplete' => true, ), 'MESSAGE_ID' => array( 'data_type' => 'integer', 'required' => true, ), 'FILE_ID' => array( 'data_type' => 'integer', ), 'FILE_NAME' => array( 'data_type' => 'string', ), 'FILE_SIZE' => array( 'data_type' => 'integer', ), 'FILE_DATA' => array( 'data_type' => 'string', ), 'CONTENT_TYPE' => array( 'data_type' => 'string', ), 'IMAGE_WIDTH' => array( 'data_type' => 'integer', ), 'IMAGE_HEIGHT' => array( 'data_type' => 'integer', ), ); } } messageaccess.php000066400000002575147741302100010075 0ustar00<?php namespace Bitrix\Mail\Internals; use Bitrix\Main\Entity; class MessageAccessTable extends Entity\DataManager { const ENTITY_TYPE_NO_BIND = 'NO_BIND'; const ENTITY_TYPE_TASKS_TASK = 'TASKS_TASK'; const ENTITY_TYPE_CRM_ACTIVITY = 'CRM_ACTIVITY'; const ENTITY_TYPE_BLOG_POST = 'BLOG_POST'; public static function getFilePath() { return __FILE__; } public static function getTableName() { return 'b_mail_message_access'; } public static function getMap() { return array( 'TOKEN' => array( 'data_type' => 'string', 'primary' => true, ), 'MAILBOX_ID' => array( 'data_type' => 'integer', 'required' => true, ), 'MESSAGE_ID' => array( 'data_type' => 'integer', 'required' => true, ), 'ENTITY_UF_ID' => array( 'data_type' => 'integer', 'required' => true, ), 'ENTITY_TYPE' => array( 'data_type' => 'string', 'required' => true, ), 'ENTITY_ID' => array( 'data_type' => 'integer', 'required' => true, ), 'SECRET' => array( 'data_type' => 'string', 'required' => true, ), 'OPTIONS' => array( 'data_type' => 'text', 'serialized' => true, ), new Entity\ReferenceField( 'CRM_ACTIVITY', '\Bitrix\Crm\ActivityTable', array( '=this.ENTITY_TYPE' => array('?s', self::ENTITY_TYPE_CRM_ACTIVITY), '=this.ENTITY_ID' => 'ref.ID', ) ), ); } } domainemail.php000064400000000747147741302100007543 0ustar00<?php namespace Bitrix\Mail\Internals; use Bitrix\Main\Entity; class DomainEmailTable extends Entity\DataManager { public static function getFilePath() { return __FILE__; } public static function getTableName() { return 'b_mail_domain_email'; } public static function getMap() { return array( 'DOMAIN' => array( 'data_type' => 'string', 'primary' => true, ), 'LOGIN' => array( 'data_type' => 'string', 'primary' => true, ), ); } } usersignature.php000064400000001514147741302100010155 0ustar00<?php namespace Bitrix\Mail\Internals; use Bitrix\Mail\Internals\Entity\UserSignature; use Bitrix\Main\ORM\Data\DataManager; use Bitrix\Main\Entity; class UserSignatureTable extends DataManager { const TYPE_ADDRESS = 'address'; const TYPE_SENDER = 'sender'; /** * @return string */ public static function getTableName() { return 'b_mail_user_signature'; } /** * @return array */ public static function getMap() { return [ new Entity\IntegerField('ID', [ 'primary' => true, 'autocomplete' => true, ]), new Entity\IntegerField('USER_ID', [ 'required' => true, ]), new Entity\TextField('SIGNATURE'), new Entity\StringField('SENDER'), ]; } /** * @return \Bitrix\Main\ORM\Objectify\EntityObject|string */ public static function getObjectClass() { return UserSignature::class; } }messageuploadqueue.php000066400000001313147741302100011152 0ustar00<?php namespace Bitrix\Mail\Internals; use Bitrix\Main\Entity; class MessageUploadQueueTable extends Entity\DataManager { const SYNC_STAGE_NEW = 0; public static function getFilePath() { return __FILE__; } public static function getTableName() { return 'b_mail_message_upload_queue'; } public static function getMap() { return array( 'ID' => array( 'data_type' => 'string', 'primary' => true, ), 'MAILBOX_ID' => array( 'data_type' => 'integer', 'primary' => true, ), 'SYNC_STAGE' => array( 'data_type' => 'integer', ), 'SYNC_LOCK' => array( 'data_type' => 'integer', ), 'ATTEMPTS' => array( 'data_type' => 'integer', ), ); } } messagedeletequeue.php000066400000001722147741302100011134 0ustar00<?php namespace Bitrix\Mail\Internals; use Bitrix\Main; use Bitrix\Main\ORM; use Bitrix\Mail; class MessageDeleteQueueTable extends ORM\Data\DataManager { public static function getFilePath() { return __FILE__; } public static function getTableName() { return 'b_mail_message_delete_queue'; } public static function deleteList(array $filter) { $entity = static::getEntity(); $connection = $entity->getConnection(); return $connection->query(sprintf( 'DELETE FROM %s WHERE %s', $connection->getSqlHelper()->quote($entity->getDbTableName()), ORM\Query\Query::buildFilterSql($entity, $filter) )); } public static function getMap() { return array( 'ID' => array( 'data_type' => 'integer', 'primary' => true, 'autocomplete' => true, ), 'MAILBOX_ID' => array( 'data_type' => 'integer', 'required' => true, ), 'MESSAGE_ID' => array( 'data_type' => 'integer', 'required' => true, ), ); } } mailcontact.php000066400000005230147741302100007554 0ustar00<?php namespace Bitrix\Mail\Internals; use Bitrix\Main\Application; use Bitrix\Main\Entity; use Bitrix\Main\Localization; Localization\Loc::loadMessages(__FILE__); /** * Class MailContactTable * @package Bitrix\Mail */ class MailContactTable extends Entity\DataManager { const ADDED_TYPE_FROM = 'FROM'; const ADDED_TYPE_CC = 'CC'; const ADDED_TYPE_BCC = 'BCC'; const ADDED_TYPE_TO = 'TO'; const ADDED_TYPE_REPLY_TO = 'REPLY_TO'; public static function getFilePath() { return __FILE__; } public static function getTableName() { return 'b_mail_contact'; } public static function getMap() { return [ 'ID' => [ 'data_type' => 'integer', 'primary' => true, 'autocomplete' => true, ], 'EMAIL' => [ 'data_type' => 'string', ], 'NAME' => [ 'data_type' => 'string', ], 'ICON' => [ 'data_type' => 'string', 'serialized' => true, ], 'FILE_ID' => [ 'data_type' => 'integer', ], 'USER_ID' => [ 'data_type' => 'integer', 'required' => true, ], 'ADDED_FROM' => [ 'data_type' => 'string', ], ]; } /** * @param $contactsData * @throws \Bitrix\Main\Db\SqlQueryException */ public static function addContactsBatch($contactsData) { if (empty($contactsData)) { return; } $contactsToCheck = []; foreach ($contactsData as $index => $item) { $item['EMAIL'] = trim($item['EMAIL']); $contactsToCheck[$item['USER_ID']][] = $item; } foreach ($contactsToCheck as $userId => $items) { $alreadyAdded = static::query() ->addSelect('EMAIL', 'EMAIL') ->where('USER_ID', $userId) ->whereIn('EMAIL', array_column($items, 'EMAIL')) ->exec() ->fetchAll(); $alreadyAdded = array_column($alreadyAdded, 'EMAIL'); foreach ($items as $item) { if (!in_array($item['EMAIL'], $alreadyAdded, true)) { $contactsToAdd[$item['EMAIL']] = $item; } } } if (empty($contactsToAdd)) { return; } $sqlHelper = Application::getConnection()->getSqlHelper(); $values = []; foreach ($contactsToAdd as $item) { $item = [ 'USER_ID' => intval($item['USER_ID']), 'NAME' => "'" . $sqlHelper->forSql(trim($item['NAME'])) . "'", 'ICON' => "'" . $sqlHelper->forSql(serialize($item['ICON'])) . "'", 'EMAIL' => "'" . $sqlHelper->forSql(trim($item['EMAIL'])) . "'", 'ADDED_FROM' => "'" . $sqlHelper->forSql($item['ADDED_FROM']) . "'", ]; $values[] = implode(", ", $item); } $keys = implode(', ', array_keys(reset($contactsToAdd))); $values = implode('), (', $values); $tableName = static::getTableName(); $sql = "INSERT IGNORE $tableName($keys) VALUES($values)"; Application::getConnection()->query($sql); } }oauth.php000066400000001455147741302100006403 0ustar00<?php namespace Bitrix\Mail\Internals; use Bitrix\Main\Entity; class OAuthTable extends Entity\DataManager { public static function getFilePath() { return __FILE__; } public static function getTableName() { return 'b_mail_oauth'; } public static function getMap() { return array( 'ID' => array( 'data_type' => 'integer', 'primary' => true, 'autocomplete' => true, ), 'UID' => array( 'data_type' => 'string', ), 'TOKEN' => array( 'data_type' => (static::cryptoEnabled('TOKENS') ? 'crypto' : 'text'), ), 'REFRESH_TOKEN' => array( 'data_type' => (static::cryptoEnabled('TOKENS') ? 'crypto' : 'text'), ), 'TOKEN_EXPIRES' => array( 'data_type' => 'integer', ), 'SECRET' => array( 'data_type' => 'string', ), ); } } messageclosure.php000066400000000767147741302100010311 0ustar00<?php namespace Bitrix\Mail\Internals; use Bitrix\Main\Entity; class MessageClosureTable extends Entity\DataManager { public static function getFilePath() { return __FILE__; } public static function getTableName() { return 'b_mail_message_closure'; } public static function getMap() { return array( 'MESSAGE_ID' => array( 'data_type' => 'integer', 'primary' => true, ), 'PARENT_ID' => array( 'data_type' => 'integer', 'primary' => true, ), ); } } mailboxaccess.php000064400000001242147741302100010070 0ustar00<?php namespace Bitrix\Mail\Internals; use Bitrix\Main\Entity; class MailboxAccessTable extends Entity\DataManager { public static function getFilePath() { return __FILE__; } public static function getTableName() { return 'b_mail_mailbox_access'; } public static function getMap() { return array( 'ID' => array( 'data_type' => 'integer', 'primary' => true, 'autocomplete' => true, ), 'MAILBOX_ID' => array( 'data_type' => 'integer', 'required' => true, ), 'TASK_ID' => array( 'data_type' => 'integer', ), 'ACCESS_CODE' => array( 'data_type' => 'string', 'required' => true, ), ); } }
/var/www/axolotl/data/www/arhangelsk.axolotls.ru/a537b/internals.tar