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


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

namespace Guzzle\Plugin\Async;

use 
Guzzle\Common\Event;
use 
Guzzle\Http\Message\Response;
use 
Guzzle\Http\Exception\CurlException;
use 
Symfony\Component\EventDispatcher\EventSubscriberInterface;

/**
 * Sends requests but does not wait for the response
 */
class AsyncPlugin implements EventSubscriberInterface
{
    public static function 
getSubscribedEvents()
    {
        return array(
            
'request.before_send'    => 'onBeforeSend',
            
'request.exception'      => 'onRequestTimeout',
            
'request.sent'           => 'onRequestSent',
            
'curl.callback.progress' => 'onCurlProgress'
        
);
    }

    
/**
     * Event used to ensure that progress callback are emitted from the curl handle's request mediator.
     *
     * @param Event $event
     */
    
public function onBeforeSend(Event $event)
    {
        
// Ensure that progress callbacks are dispatched
        
$event['request']->getCurlOptions()->set('progress'true);
    }

    
/**
     * Event emitted when a curl progress function is called. When the amount of data uploaded == the amount of data to
     * upload OR any bytes have been downloaded, then time the request out after 1ms because we're done with
     * transmitting the request, and tell curl not download a body.
     *
     * @param Event $event
     */
    
public function onCurlProgress(Event $event)
    {
        if (
$event['handle'] &&
            (
$event['downloaded'] || (isset($event['uploaded']) && $event['upload_size'] === $event['uploaded']))
        ) {
            
// Timeout after 1ms
            
curl_setopt($event['handle'], CURLOPT_TIMEOUT_MS1);
            
// Even if the response is quick, tell curl not to download the body.
            // - Note that we can only perform this shortcut if the request transmitted a body so as to ensure that the
            //   request method is not converted to a HEAD request before the request was sent via curl.
            
if ($event['uploaded']) {
                
curl_setopt($event['handle'], CURLOPT_NOBODYtrue);
            }
        }
    }

    
/**
     * Event emitted when a curl exception occurs. Ignore the exception and set a mock response.
     *
     * @param Event $event
     */
    
public function onRequestTimeout(Event $event)
    {
        if (
$event['exception'] instanceof CurlException) {
            
$event['request']->setResponse(new Response(200, array(
                
'X-Guzzle-Async' => 'Did not wait for the response'
            
)));
        }
    }

    
/**
     * Event emitted when a request completes because it took less than 1ms. Add an X-Guzzle-Async header to notify the
     * caller that there is no body in the message.
     *
     * @param Event $event
     */
    
public function onRequestSent(Event $event)
    {
        
// Let the caller know this was meant to be async
        
$event['request']->getResponse()->setHeader('X-Guzzle-Async''Did not wait for the 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.9633 ]--