uawdijnntqw1x1x1
IP : 18.116.36.23
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
/
modules
/
imbot
/
lib
/
controller.php
/
/
<?php namespace Bitrix\ImBot; class Controller { public static function sendToBot($botName, $command, $params) { $result = null; $botName = trim(preg_replace("/[^a-z]/","", strtolower($botName))); if (!$botName) return $result; foreach ($params as $key => $value) { if ($value == '#ZERO#') $value = '0'; else if ($value == '#EMPTY#') $value = ''; $params[$key] = $value; } if ($params['BOT_ID']) { $bot = \Bitrix\Im\Bot::getCache($params['BOT_ID']); if ($bot && class_exists($bot['CLASS']) && method_exists($bot['CLASS'], 'onAnswerAdd')) { return call_user_func_array(array($bot['CLASS'], 'onAnswerAdd'), Array($command, $params)); } } if ( class_exists('\\Bitrix\\ImBot\\Bot\\'.ucfirst($botName)) && method_exists('\\Bitrix\\ImBot\\Bot\\'.ucfirst($botName), 'onAnswerAdd') ) { return call_user_func_array(array('\\Bitrix\\ImBot\\Bot\\'.ucfirst($botName), 'onAnswerAdd'), Array($command, $params)); } return $result; } public static function sendToService($serviceName, $command, $params) { $result = null; $serviceName = trim(preg_replace("/[^a-z]/","", strtolower($serviceName))); if (!$serviceName) return $result; foreach ($params as $key => $value) { if ($value == '#ZERO#') $value = '0'; else if ($value == '#EMPTY#') $value = ''; $params[$key] = $value; } if (class_exists('\\Bitrix\\ImBot\\Service\\'.ucfirst($serviceName)) && method_exists('\\Bitrix\\ImBot\\Service\\'.ucfirst($serviceName), 'onReceiveCommand')) { return call_user_func_array(array('\\Bitrix\\ImBot\\Service\\'.ucfirst($serviceName), 'onReceiveCommand'), Array($command, $params)); } return $result; } }
/var/www/axolotl/data/www/kirov.axolotls.ru/bitrix/modules/imbot/lib/controller.php