uawdijnntqw1x1x1
IP : 216.73.216.11
Hostname : xhost1.intravision.ru
Kernel : Linux xhost1.intravision.ru 3.16.0-7-amd64 #1 SMP Debian 3.16.59-1 (2018-10-03) 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
/
.
/
files
/
need-2-delete
/
mini-borishof.ru1
/
bitrix
/
modules
/
.
/
security
/
lib
/
filter
/
auditor
/
base.php
/
/
<?php /** * Bitrix Security Module * @package Bitrix * @subpackage Security * @copyright 2001-2013 Bitrix * @since File available since 14.0.0 */ namespace Bitrix\Security\Filter\Auditor; /** * Abstract class of all security auditors * * @package Bitrix\Security\Filter\Auditor * @since 14.0.0 */ abstract class Base { private $splittingChar = ' '; private $filteredValue = ''; protected $filters = array(); protected $name = ''; function __construct($splittingChar = '') { $this->setSplittingChar($splittingChar); } /** * Process and save filtered value * Return true if value triggered auditor filtration * For get filtered value use Base::getFilteredValue * * Simple example: * <code> * $ob = new Base(); * if ($ob->process($someValue)) * $someValue = $ob->getFilteredValue(); * </code> * @param string $value * @return bool */ public function process($value) { $this->initializeFilters(); $this->setFilteredValue(''); $found = false; $str2 = ''; $strX = $value; while ($str2 != $strX) { $str2 = $strX; $strX = preg_replace($this->filters['search'], $this->filters['replace'], $str2); } if ($str2 != $value) { $this->setFilteredValue($str2); $found = true; } return $found; } /** * Return filtered value after last value processing * * @see Base::process * @return string */ public function getFilteredValue() { return $this->filteredValue; } /** * Return auditor name * * @return string */ public function getName() { return $this->name; } /** * @param string $string */ protected function setFilteredValue($string) { $this->filteredValue = $string; } /** * @param string $char */ protected function setSplittingChar($char) { if (is_string($char) && $char != '') { $this->splittingChar = $char; } } /** * @param string $customChar * @return string */ protected function getSplittingChar($customChar = '') { if (is_string($customChar) && $customChar != '') { return $customChar; } elseif (is_string($this->splittingChar) && $this->splittingChar != '') { return $this->splittingChar; } else { return ' '; } } /** * make string like '\\1 * \\2 * \\3 * \\4' * @param int $splitItemsCount * @param string $customSplitChar * @return string */ protected function getSplittingString($splitItemsCount = 2, $customSplitChar = '') { $glue = self::getSplittingChar($customSplitChar).'\\'; $result = '\\'; $result .= join($glue, range(1, $splitItemsCount)); return $result; } protected function initializeFilters() { if (!$this->filters) { $this->filters = $this->getFilters(); } } /** * @return array */ abstract protected function getFilters(); }
/var/./files/need-2-delete/mini-borishof.ru1/bitrix/modules/./security/lib/filter/auditor/base.php