!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache. PHP/7.3.33 

uname -a: Linux acloudg.aryanict.com 4.18.0-513.9.1.lve.el8.x86_64 #1 SMP Mon Dec 4 15:01:22 UTC
2023 x86_64
 

uid=1095(katebhospital) gid=1098(katebhospital) groups=1098(katebhospital) 

Safe-mode: OFF (not secure)

/opt/alt/php55/usr/share/pear/Symfony/Component/BrowserKit/   drwxr-xr-x
Free 294.51 GB of 429.69 GB (68.54%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     Response.php (3.29 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <fabien@symfony.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Symfony\Component\BrowserKit;

/**
 * Response object.
 *
 * @author Fabien Potencier <fabien@symfony.com>
 *
 * @api
 */
class Response
{
    protected 
$content;
    protected 
$status;
    protected 
$headers;

    
/**
     * Constructor.
     *
     * The headers array is a set of key/value pairs. If a header is present multiple times
     * then the value is an array of all the values.
     *
     * @param string  $content The content of the response
     * @param integer $status  The response status code
     * @param array   $headers An array of headers
     *
     * @api
     */
    
public function __construct($content ''$status 200, array $headers = array())
    {
        
$this->content $content;
        
$this->status  $status;
        
$this->headers $headers;
    }

    
/**
     * Converts the response object to string containing all headers and the response content.
     *
     * @return string The response with headers and content
     */
    
public function __toString()
    {
        
$headers '';
        foreach (
$this->headers as $name => $value) {
            if (
is_string($value)) {
                
$headers .= $this->buildHeader($name$value);
            } else {
                foreach (
$value as $headerValue) {
                    
$headers .= $this->buildHeader($name$headerValue);
                }
            }
        }

        return 
$headers."\n".$this->content;
    }

    
/**
     * Returns the build header line.
     *
     * @param string $name  The header name
     * @param string $value The header value
     *
     * @return string The built header line
     */
    
protected function buildHeader($name$value)
    {
        return 
sprintf("%s: %s\n"$name$value);
    }

    
/**
     * Gets the response content.
     *
     * @return string The response content
     *
     * @api
     */
    
public function getContent()
    {
        return 
$this->content;
    }

    
/**
     * Gets the response status code.
     *
     * @return integer The response status code
     *
     * @api
     */
    
public function getStatus()
    {
        return 
$this->status;
    }

    
/**
     * Gets the response headers.
     *
     * @return array The response headers
     *
     * @api
     */
    
public function getHeaders()
    {
        return 
$this->headers;
    }

    
/**
     * Gets a response header.
     *
     * @param string  $header The header name
     * @param Boolean $first  Whether to return the first value or all header values
     *
     * @return string|array The first header value if $first is true, an array of values otherwise
     */
    
public function getHeader($header$first true)
    {
        foreach (
$this->headers as $key => $value) {
            if (
str_replace('-''_'strtolower($key)) == str_replace('-''_'strtolower($header))) {
                if (
$first) {
                    return 
is_array($value) ? (count($value) ? $value[0] : '') : $value;
                }

                return 
is_array($value) ? $value : array($value);
            }
        }

        return 
$first null : array();
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0912 ]--