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


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

namespace Guzzle\Service\Command\Factory;

use 
Guzzle\Service\Command\CommandInterface;
use 
Guzzle\Service\ClientInterface;

/**
 * Composite factory used by a client object to create command objects utilizing multiple factories
 */
class CompositeFactory implements \IteratorAggregate, \CountableFactoryInterface
{
    
/** @var array Array of command factories */
    
protected $factories;

    
/**
     * Get the default chain to use with clients
     *
     * @param ClientInterface $client Client to base the chain on
     *
     * @return self
     */
    
public static function getDefaultChain(ClientInterface $client)
    {
        
$factories = array();
        if (
$description $client->getDescription()) {
            
$factories[] = new ServiceDescriptionFactory($description);
        }
        
$factories[] = new ConcreteClassFactory($client);

        return new 
self($factories);
    }

    
/**
     * @param array $factories Array of command factories
     */
    
public function __construct(array $factories = array())
    {
        
$this->factories $factories;
    }

    
/**
     * Add a command factory to the chain
     *
     * @param FactoryInterface        $factory Factory to add
     * @param string|FactoryInterface $before  Insert the new command factory before a command factory class or object
     *                                         matching a class name.
     * @return CompositeFactory
     */
    
public function add(FactoryInterface $factory$before null)
    {
        
$pos null;

        if (
$before) {
            foreach (
$this->factories as $i => $f) {
                if (
$before instanceof FactoryInterface) {
                    if (
$f === $before) {
                        
$pos $i;
                        break;
                    }
                } elseif (
is_string($before)) {
                    if (
$f instanceof $before) {
                        
$pos $i;
                        break;
                    }
                }
            }
        }

        if (
$pos === null) {
            
$this->factories[] = $factory;
        } else {
            
array_splice($this->factories$i0, array($factory));
        }

        return 
$this;
    }

    
/**
     * Check if the chain contains a specific command factory
     *
     * @param FactoryInterface|string $factory Factory to check
     *
     * @return bool
     */
    
public function has($factory)
    {
        return (bool) 
$this->find($factory);
    }

    
/**
     * Remove a specific command factory from the chain
     *
     * @param string|FactoryInterface $factory Factory to remove by name or instance
     *
     * @return CompositeFactory
     */
    
public function remove($factory null)
    {
        if (!(
$factory instanceof FactoryInterface)) {
            
$factory $this->find($factory);
        }

        
$this->factories array_values(array_filter($this->factories, function($f) use ($factory) {
            return 
$f !== $factory;
        }));

        return 
$this;
    }

    
/**
     * Get a command factory by class name
     *
     * @param string|FactoryInterface $factory Command factory class or instance
     *
     * @return null|FactoryInterface
     */
    
public function find($factory)
    {
        foreach (
$this->factories as $f) {
            if (
$factory === $f || (is_string($factory) && $f instanceof $factory)) {
                return 
$f;
            }
        }
    }

    
/**
     * Create a command using the associated command factories
     *
     * @param string $name Name of the command
     * @param array  $args Command arguments
     *
     * @return CommandInterface
     */
    
public function factory($name, array $args = array())
    {
        foreach (
$this->factories as $factory) {
            
$command $factory->factory($name$args);
            if (
$command) {
                return 
$command;
            }
        }
    }

    public function 
count()
    {
        return 
count($this->factories);
    }

    public function 
getIterator()
    {
        return new \
ArrayIterator($this->factories);
    }
}

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