uawdijnntqw1x1x1
IP : 18.221.100.57
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
/
b24.axolotl.ru
/
.
/
public_html
/
bitrix
/
modules
/
seo
/
lib
/
engine
/
yandexjson.php
/
/
<?php namespace Bitrix\Seo\Engine; use Bitrix\Main\Web\Json; class YandexJson extends Json { public static function encode($data, $options = null) { // php 5.4.0+ if(defined('JSON_UNESCAPED_UNICODE')) { return parent::encode($data, JSON_UNESCAPED_UNICODE); } else { return static::_encode(static::convertData($data)); } } protected static function _encode($data) { $str = ''; if(is_array($data)) { $assoc = array_diff_key($data,array_keys(array_keys($data))); $str .= $assoc ? '{' : '['; $first = true; foreach($data as $key => $value) { $str .= $first ? '' : ','; $str .= $assoc ? static::_quote($key).':' : ''; $str .= static::_encode($value); $first = false; } $str .= $assoc ? '}' : ']'; } elseif(is_int($data)) { $str = $data; } elseif($data === null) { $str = "null"; } else { $str = static::_quote($data); } return $str; } protected static function _quote($s) { return '"'.str_replace(array('\\', '"'), array('\\\\', '\"'), $s).'"'; } }
/var/www/axolotl/data/www/b24.axolotl.ru/./public_html/bitrix/modules/seo/lib/engine/yandexjson.php