!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_led/php/vendor/guzzlehttp/guzzle/src/   drwxrwxr-x
Free 15.62 GB of 61.93 GB (25.23%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     BatchResults.php (3.2 KB)      -rwxrwxr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
namespace GuzzleHttp;

/**
 * Represents the result of a batch operation. This result container is
 * iterable, countable, and you can can get a result by value using the
 * getResult function.
 *
 * Successful results are anything other than exceptions. Failure results are
 * exceptions.
 *
 * @package GuzzleHttp
 */
class BatchResults implements \Countable, \IteratorAggregate, \ArrayAccess
{
    private 
$hash;

    
/**
     * @param \SplObjectStorage $hash Hash of key objects to result values.
     */
    
public function __construct(\SplObjectStorage $hash)
    {
        
$this->hash $hash;
    }

    
/**
     * Get the keys that are available on the batch result.
     *
     * @return array
     */
    
public function getKeys()
    {
        return 
iterator_to_array($this->hash);
    }

    
/**
     * Gets a result from the container for the given object. When getting
     * results for a batch of requests, provide the request object.
     *
     * @param object $forObject Object to retrieve the result for.
     *
     * @return mixed|null
     */
    
public function getResult($forObject)
    {
        return isset(
$this->hash[$forObject]) ? $this->hash[$forObject] : null;
    }

    
/**
     * Get an array of successful results.
     *
     * @return array
     */
    
public function getSuccessful()
    {
        
$results = [];
        foreach (
$this->hash as $key) {
            if (!(
$this->hash[$key] instanceof \Exception)) {
                
$results[] = $this->hash[$key];
            }
        }

        return 
$results;
    }

    
/**
     * Get an array of failed results.
     *
     * @return array
     */
    
public function getFailures()
    {
        
$results = [];
        foreach (
$this->hash as $key) {
            if (
$this->hash[$key] instanceof \Exception) {
                
$results[] = $this->hash[$key];
            }
        }

        return 
$results;
    }

    
/**
     * Allows iteration over all batch result values.
     *
     * @return \ArrayIterator
     */
    
public function getIterator()
    {
        
$results = [];
        foreach (
$this->hash as $key) {
            
$results[] = $this->hash[$key];
        }

        return new \
ArrayIterator($results);
    }

    
/**
     * Counts the number of elements in the batch result.
     *
     * @return int
     */
    
public function count()
    {
        return 
count($this->hash);
    }

    
/**
     * Checks if the batch contains a specific numerical array index.
     *
     * @param int $key Index to access
     *
     * @return bool
     */
    
public function offsetExists($key)
    {
        return 
$key count($this->hash);
    }

    
/**
     * Allows access of the batch using a numerical array index.
     *
     * @param int $key Index to access.
     *
     * @return mixed|null
     */
    
public function offsetGet($key)
    {
        
$i = -1;
        foreach (
$this->hash as $obj) {
            if (
$key === ++$i) {
                return 
$this->hash[$obj];
            }
        }

        return 
null;
    }

    public function 
offsetUnset($key)
    {
        throw new \
RuntimeException('Not implemented');
    }

    public function 
offsetSet($key$value)
    {
        throw new \
RuntimeException('Not implemented');
    }
}

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