403Webshell
Server IP : 104.21.31.197  /  Your IP : 172.70.223.216
Web Server : nginx/1.20.2
System : Linux 172-104-110-161.ip.linodeusercontent.com 3.10.0-1160.36.2.el7.x86_64 #1 SMP Wed Jul 21 11:57:15 UTC 2021 x86_64
User : www ( 1000)
PHP Version : 8.1.9
Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,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,imap_open,apache_setenv
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /www/wwwroot/asus-driver-download.com/system/Test/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/wwwroot/asus-driver-download.com/system/Test/ControllerResponse.php
<?php

/**
 * This file is part of the CodeIgniter 4 framework.
 *
 * (c) CodeIgniter Foundation <[email protected]>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace CodeIgniter\Test;

use CodeIgniter\HTTP\ResponseInterface;
use Config\Services;

/**
 * Testable response from a controller
 *
 * @deprecated Use TestResponse directly
 *
 * @codeCoverageIgnore
 */
class ControllerResponse extends TestResponse
{
	/**
	 * The message payload.
	 *
	 * @var string
	 *
	 * @deprecated Use $response->getBody() instead
	 */
	protected $body;

	/**
	 * DOM for the body.
	 *
	 * @var DOMParser
	 *
	 * @deprecated Use $domParser instead
	 */
	protected $dom;

	/**
	 * Maintains the deprecated $dom property.
	 */
	public function __construct()
	{
		parent::__construct(Services::response());

		$this->dom = &$this->domParser;
	}

	/**
	 * Sets the response.
	 *
	 * @param ResponseInterface $response
	 *
	 * @return $this
	 *
	 * @deprecated Will revert to parent::setResponse() in a future release (no $body updates)
	 */
	public function setResponse(ResponseInterface $response)
	{
		parent::setResponse($response);

		$this->body = $response->getBody() ?? '';

		return $this;
	}

	/**
	 * Sets the body and updates the DOM.
	 *
	 * @param string $body
	 *
	 * @return $this
	 *
	 * @deprecated Use response()->setBody() instead
	 */
	public function setBody(string $body)
	{
		$this->body = $body;

		if ($body !== '')
		{
			$this->domParser->withString($body);
		}

		return $this;
	}

	/**
	 * Retrieve the body.
	 *
	 * @return string
	 *
	 * @deprecated Use response()->getBody() instead
	 */
	public function getBody()
	{
		return $this->body;
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit