Server IP : 85.193.89.191 / Your IP : 18.223.43.117 Web Server : Apache System : Linux 956367-cx40159.tmweb.ru 3.10.0-1160.105.1.el7.x86_64 #1 SMP Thu Dec 7 15:39:45 UTC 2023 x86_64 User : bitrix ( 600) PHP Version : 8.1.27 Disable Function : NONE MySQL : OFF | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/bitrix/www/bitrix/components/bitrix/socialnetwork.log.entry.stub/ |
Upload File : |
<?if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die(); use \Bitrix\Main\Localization\Loc; final class SocialnetworkLogEntryStub extends CBitrixComponent { /** * Execute component. */ public function executeComponent() { if (!isset($this->arParams['EVENT']) || !is_array($this->arParams['EVENT'])) { $this->arParams['EVENT'] = []; } $this->arResult['MESSAGE'] = ''; $this->arResult['FEATURE'] = ''; $this->arResult['EVENT_ID'] = (!empty($this->arParams['EVENT']['EVENT_ID']) ? $this->arParams['EVENT']['EVENT_ID'] : ''); if (!empty($this->arResult['EVENT_ID'])) { switch($this->arResult['EVENT_ID']) { case 'timeman_entry': $this->arResult['MESSAGE'] = Loc::getMessage('SLEB_MESSAGE_TIMEMAN_ENTRY'); $this->arResult['FEATURE'] = 'timeman'; break; case 'report': $this->arResult['MESSAGE'] = Loc::getMessage('SLEB_MESSAGE_REPORT'); $this->arResult['FEATURE'] = 'timeman'; break; default: } } if (\Bitrix\Main\Loader::includeModule("bitrix24")) { $this->includeComponentTemplate(); } } }