uawdijnntqw1x1x1
IP : 3.148.179.141
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
/
kirov.axolotls.ru
/
bitrix
/
components
/
bitrix
/
main.mail.confirm
/
class.php
/
/
<?php use Bitrix\Main; use Bitrix\Main\Localization\Loc; if (!defined('B_PROLOG_INCLUDED') || B_PROLOG_INCLUDED !== true) die(); Loc::loadMessages(__FILE__); class MainMailConfirmComponent extends CBitrixComponent { public function executeComponent() { global $USER; if (!is_object($USER) || !$USER->isAuthorized()) return array(); if (!empty($this->arParams['CONFIRM_CODE'])) { $this->includeComponentTemplate('confirm_code'); return; } $this->arParams['USER_FULL_NAME'] = static::getUserNameFormated(); $this->arParams['MAILBOXES'] = static::prepareMailboxes(); $this->arParams['IS_SMTP_AVAILABLE'] = Main\ModuleManager::isModuleInstalled('bitrix24'); $this->arParams['IS_ADMIN'] = Main\Loader::includeModule('bitrix24') ? \CBitrix24::isPortalAdmin($USER->getId()) : $USER->isAdmin(); $this->includeComponentTemplate(); return $this->arParams['MAILBOXES']; } public static function prepareMailboxes() { return Main\Mail\Sender::prepareUserMailboxes(); } public static function prepareMailboxesFormated() { static $mailboxesFormated; if (!is_null($mailboxesFormated)) return $mailboxesFormated; $mailboxesFormated = array(); foreach (static::prepareMailboxes() as $item) $mailboxesFormated[] = $item['formated']; return $mailboxesFormated; } protected static function getUserNameFormated() { global $USER; static $userNameFormated; if (!is_null($userNameFormated)) return $userNameFormated; $userNameFormated = ''; if (!is_object($USER) || !$USER->isAuthorized()) return $userNameFormated; $userNameFormated = \CUser::formatName( \CSite::getNameFormat(), \Bitrix\Main\UserTable::getList(array( 'select' => array('ID', 'NAME', 'LAST_NAME', 'SECOND_NAME', 'LOGIN', 'PERSONAL_PHOTO'), 'filter' => array('=ID' => $USER->getId()), ))->fetch(), true, false ); return $userNameFormated; } protected static function extractEmail($email) { $email = trim($email); if (preg_match('/.*?[<\[\(](.+?)[>\]\)].*/i', $email, $matches)) $email = $matches[1]; return $email; } }
/var/www/axolotl/data/www/kirov.axolotls.ru/bitrix/components/bitrix/main.mail.confirm/class.php