uawdijnntqw1x1x1
IP : 3.145.165.235
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
/
yar.axolotls.ru
/
1c9cb
/
..
/
bitrix
/
modules
/
mobile
/
lib
/
action.php
/
/
<?php namespace Bitrix\Mobile; class Action { protected $actions; function __construct() { $this->actions = include(\Bitrix\Main\Application::getDocumentRoot() . "/bitrix/modules/mobile/ajax_action.php"); } public function getAction($name) { if (array_key_exists($name, $this->actions)) { return $this->actions[$name]; } return false; } /** * @param string $name * @param array $params */ public function executeAction($name, $params = []) { global $USER; $actionDesc = $this->getAction($name); if ($actionDesc) { $isSessidValid = true; if ($actionDesc["needBitrixSessid"] == true || (array_key_exists("sessid", $_REQUEST) && strlen($_REQUEST["sessid"]) > 0)) { $isSessidValid = check_bitrix_sessid(); } if (!isset($actionDesc["fireInitMobileEvent"]) || $actionDesc["fireInitMobileEvent"] != true) { if (!defined("MOBILE_INIT_EVENT_SKIP")) { define("MOBILE_INIT_EVENT_SKIP", true); } } if ($actionDesc["no_check_auth"] !== true && (!$USER->IsAuthorized() || !$isSessidValid)) { Auth::setNotAuthorizedHeaders(); echo json_encode(Auth::getNotAuthorizedResponse()); } elseif ($actionDesc["file"]) { header("BX-Mobile-Action: " . $name); if ($actionDesc["json"] === true) { header("Content-Type: application/x-javascript"); $data = include($actionDesc["file"]); if ($data) { if ($actionDesc["removeNulls"]) { echo json_encode(self::removeNulls($data)); } else { echo json_encode($data); } } } else { include($actionDesc["file"]); } } } else { if (!defined("MOBILE_INIT_EVENT_SKIP")) { define("MOBILE_INIT_EVENT_SKIP", true); } header("Content-Type: application/x-javascript"); echo json_encode(["error" => "unknown action for data request"]); } } /** * @param array $array * @param null $replace * @return array */ public static function removeNulls($array = [], $replace = null) { foreach ($array as $key => $value) { if (is_array($value)) { $array[$key] = self::removeNulls($array[$key]); } if ($array[$key] === null) { if ($replace != null) { $array[$key] = $replace; } else { unset($array[$key]); } } } return $array; } }
/var/www/axolotl/data/www/yar.axolotls.ru/1c9cb/../bitrix/modules/mobile/lib/action.php