uawdijnntqw1x1x1
IP : 3.144.97.63
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
/
perm.axolotls.ru
/
bitrix
/
modules
/
imbot
/
lib
/
event.php
/
/
<?php namespace Bitrix\ImBot; class Event { public static function onUserRead($params) { $botData = \Bitrix\Im\Bot::getCache($params['DIALOG_ID']); if (!$botData) { return true; } if (class_exists($botData['CLASS']) && method_exists($botData['CLASS'], 'onUserRead')) { return call_user_func_array(array($botData['CLASS'], 'onUserRead'), Array($params)); } return true; } public static function onMessageLike($params) { if ($params['CHAT']['TYPE'] == IM_MESSAGE_PRIVATE) { $botId = $params['DIALOG_ID']; } else { $botId = $params['MESSAGE']['AUTHOR_ID']; } $botData = \Bitrix\Im\Bot::getCache($botId); if (!$botData) { return true; } Log::write($params, 'MESSAGE LIKE'); if (class_exists($botData['CLASS']) && method_exists($botData['CLASS'], 'onMessageLike')) { return call_user_func_array(array($botData['CLASS'], 'onMessageLike'), Array($params)); } return true; } public static function onStartWriting($params) { if (empty($params['CHAT'])) { $botId = $params['DIALOG_ID']; } else { return true; } $botData = \Bitrix\Im\Bot::getCache($botId); if (!$botData) { return true; } $params['BOT_ID'] = $botId; Log::write($params, 'START WRITING'); if (class_exists($botData['CLASS']) && method_exists($botData['CLASS'], 'onStartWriting')) { return call_user_func_array(array($botData['CLASS'], 'onStartWriting'), Array($params)); } return true; } public static function onSessionVote($params) { if (empty($params['CHAT'])) { $botId = $params['DIALOG_ID']; } else { return true; } $botData = \Bitrix\Im\Bot::getCache($botId); if (!$botData) { return true; } $params['BOT_ID'] = $botId; Log::write($params, 'SESSION VOTE'); if (class_exists($botData['CLASS']) && method_exists($botData['CLASS'], 'onSessionVote')) { return call_user_func_array(array($botData['CLASS'], 'onSessionVote'), Array($params)); } return true; } }
/var/www/axolotl/data/www/perm.axolotls.ru/bitrix/modules/imbot/lib/event.php