uawdijnntqw1x1x1
IP : 216.73.216.163
Hostname : yjpwxulqtt
Kernel : Linux yjpwxulqtt 5.15.0-126-generic #136-Ubuntu SMP Wed Nov 6 10:38:22 UTC 2024 x86_64
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,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,exec,system,passthru,shell_exec,proc_open,popen
OS : Linux
PATH:
/
home
/
user
/
web
/
pansionat-v-yaroslavle.ru
/
public_html
/
bitrix
/
modules
/
main
/
lib
/
.
/
.
/
search
/
content.php
/
/
<?php namespace Bitrix\Main\Search; class Content { const TYPE_STRING = 1; const TYPE_INTEGER = 2; const TYPE_MIXED = 3; /** * Applies ROT13 transform to string search token, in order to bypass default mysql search blacklist. * @param string $token Search token. * @return string */ public static function prepareStringToken($token) { return str_rot13($token); } /** * Method adds zeros to integer search token, in order to bypass current mysql minimum of token size. * @param integer $token Search token. * @return string */ public static function prepareIntegerToken($token) { $token = intval($token); return str_pad($token, \CSQLWhere::GetMinTokenSize(), '0', STR_PAD_LEFT); } /** * Method checks whether token is a number. * @param integer $token Search token. * @return bool */ public static function isIntegerToken($token) { return preg_match('/^[0-9]{1,}$/i', $token); } /** * Method check whether you can use the full-text search. * @param integer|string $token Search token. * @param integer $type Type of content. * @return bool */ public static function canUseFulltextSearch($token, $type = self::TYPE_STRING) { if (intval($type) > 1) { $result = \Bitrix\Main\Search\Content::isIntegerToken($token) || strlen($token) >= \CSQLWhere::GetMinTokenSize(); } else { $result = strlen($token) >= \CSQLWhere::GetMinTokenSize(); } return $result; } }
/home/user/web/pansionat-v-yaroslavle.ru/public_html/bitrix/modules/main/lib/././search/content.php