uawdijnntqw1x1x1
IP : 18.224.5.46
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
/
msk.axolotls.ru
/
bitrix
/
modules
/
rest
/
lib
/
handlerhelper.php
/
/
<?php /** * Created by PhpStorm. * User: sigurd * Date: 17.01.17 * Time: 10:43 */ namespace Bitrix\Rest; class HandlerHelper { const ERROR_UNSUPPORTED_PROTOCOL = 'ERROR_UNSUPPORTED_PROTOCOL'; const ERROR_WRONG_HANDLER_URL = 'ERROR_WRONG_HANDLER_URL'; const ERROR_HANDLER_URL_MATCH = 'ERROR_HANDLER_URL_MATCH'; protected static $applicationList = array(); /** * Checks callback URL validity. * * @param string $handlerUrl Callback URL. * @param array $appInfo Application info. * @param bool|true $checkInstallUrl Flag, whether to check URL_INSTALL field. * * @return bool * * @throws RestException */ public static function checkCallback($handlerUrl, $appInfo = array(), $checkInstallUrl = true) { $callbackData = parse_url($handlerUrl); if(is_array($callbackData) && strlen($callbackData['host']) > 0 && strpos($callbackData['host'], '.') > 0 ) { if($callbackData['scheme'] !== 'http' && $callbackData['scheme'] !== 'https') { throw new RestException('Unsupported handler protocol', static::ERROR_UNSUPPORTED_PROTOCOL); } } else { throw new RestException('Wrong handler URL', static::ERROR_WRONG_HANDLER_URL); } return true; } public static function storeApplicationList($PLACEMENT, $applicationList) { static::$applicationList[$PLACEMENT] = $applicationList; } public static function getApplicationList($PLACEMENT) { return is_array(static::$applicationList[$PLACEMENT]) ? static::$applicationList[$PLACEMENT] : array(); } }
/var/www/axolotl/data/www/msk.axolotls.ru/bitrix/modules/rest/lib/handlerhelper.php