!C99Shell v. 2.1 [PHP 8 Update] [02.02.2022]!

Software: Apache/2.4.53 (Unix) OpenSSL/1.1.1o PHP/7.4.29 mod_perl/2.0.12 Perl/v5.34.1. PHP/7.4.29 

uname -a: Linux vps-2738122-x 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64 

uid=1(daemon) gid=1(daemon) grupos=1(daemon) 

Safe-mode: OFF (not secure)

/opt/apex_tdfonline/php/3ros/guzzle/guzzle/guzzle/src/Guzzle/Http/Exception/   drwxr-xr-x
Free 13.84 GB of 61.93 GB (22.34%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


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

namespace Guzzle\Http\Exception;

use 
Guzzle\Common\Exception\ExceptionCollection;
use 
Guzzle\Http\Message\RequestInterface;

/**
 * Exception encountered during a multi transfer
 */
class MultiTransferException extends ExceptionCollection
{
    protected 
$successfulRequests = array();
    protected 
$failedRequests = array();
    protected 
$exceptionForRequest = array();

    
/**
     * Get all of the requests in the transfer
     *
     * @return array
     */
    
public function getAllRequests()
    {
        return 
array_merge($this->successfulRequests$this->failedRequests);
    }

    
/**
     * Add to the array of successful requests
     *
     * @param RequestInterface $request Successful request
     *
     * @return self
     */
    
public function addSuccessfulRequest(RequestInterface $request)
    {
        
$this->successfulRequests[] = $request;

        return 
$this;
    }

    
/**
     * Add to the array of failed requests
     *
     * @param RequestInterface $request Failed request
     *
     * @return self
     */
    
public function addFailedRequest(RequestInterface $request)
    {
        
$this->failedRequests[] = $request;

        return 
$this;
    }

    
/**
     * Add to the array of failed requests and associate with exceptions
     *
     * @param RequestInterface $request   Failed request
     * @param \Exception       $exception Exception to add and associate with
     *
     * @return self
     */
    
public function addFailedRequestWithException(RequestInterface $request, \Exception $exception)
    {
        
$this->add($exception)
             ->
addFailedRequest($request)
             ->
exceptionForRequest[spl_object_hash($request)] = $exception;

        return 
$this;
    }

    
/**
     * Get the Exception that caused the given $request to fail
     *
     * @param RequestInterface $request Failed command
     *
     * @return \Exception|null
     */
    
public function getExceptionForFailedRequest(RequestInterface $request)
    {
        
$oid spl_object_hash($request);

        return isset(
$this->exceptionForRequest[$oid]) ? $this->exceptionForRequest[$oid] : null;
    }

    
/**
     * Set all of the successful requests
     *
     * @param array Array of requests
     *
     * @return self
     */
    
public function setSuccessfulRequests(array $requests)
    {
        
$this->successfulRequests $requests;

        return 
$this;
    }

    
/**
     * Set all of the failed requests
     *
     * @param array Array of requests
     *
     * @return self
     */
    
public function setFailedRequests(array $requests)
    {
        
$this->failedRequests $requests;

        return 
$this;
    }

    
/**
     * Get an array of successful requests sent in the multi transfer
     *
     * @return array
     */
    
public function getSuccessfulRequests()
    {
        return 
$this->successfulRequests;
    }

    
/**
     * Get an array of failed requests sent in the multi transfer
     *
     * @return array
     */
    
public function getFailedRequests()
    {
        return 
$this->failedRequests;
    }

    
/**
     * Check if the exception object contains a request
     *
     * @param RequestInterface $request Request to check
     *
     * @return bool
     */
    
public function containsRequest(RequestInterface $request)
    {
        return 
in_array($request$this->failedRequeststrue) || in_array($request$this->successfulRequeststrue);
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

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

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

--[ c99shell v. 2.1 [PHP 8 Update] [02.02.2022] maintained byC99Shell Github | Generation time: 0.9799 ]--