!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/home/picotech/domains/sms.picotech.app/public_html/vendor/predis/predis/src/Command/Processor/   drwxr-xr-x
Free 28.64 GB of 117.98 GB (24.28%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

/*
 * This file is part of the Predis package.
 *
 * (c) 2009-2020 Daniele Alessandri
 * (c) 2021-2025 Till Krüss
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Predis\Command\Processor;

use 
ArrayAccess;
use 
ArrayIterator;
use 
InvalidArgumentException;
use 
Predis\Command\CommandInterface;
use 
ReturnTypeWillChange;
use 
Traversable;

/**
 * Default implementation of a command processors chain.
 */
class ProcessorChain implements ArrayAccessProcessorInterface
{
    private 
$processors = [];

    
/**
     * @param array $processors List of instances of ProcessorInterface.
     */
    
public function __construct($processors = [])
    {
        foreach (
$processors as $processor) {
            
$this->add($processor);
        }
    }

    
/**
     * {@inheritdoc}
     */
    
public function add(ProcessorInterface $processor)
    {
        
$this->processors[] = $processor;
    }

    
/**
     * {@inheritdoc}
     */
    
public function remove(ProcessorInterface $processor)
    {
        if (
false !== $index array_search($processor$this->processorstrue)) {
            unset(
$this[$index]);
        }
    }

    
/**
     * {@inheritdoc}
     */
    
public function process(CommandInterface $command)
    {
        for (
$i 0$i $count count($this->processors); ++$i) {
            
$this->processors[$i]->process($command);
        }
    }

    
/**
     * {@inheritdoc}
     */
    
public function getProcessors()
    {
        return 
$this->processors;
    }

    
/**
     * Returns an iterator over the list of command processor in the chain.
     *
     * @return Traversable<int, ProcessorInterface>
     */
    
public function getIterator()
    {
        return new 
ArrayIterator($this->processors);
    }

    
/**
     * Returns the number of command processors in the chain.
     *
     * @return int
     */
    
public function count()
    {
        return 
count($this->processors);
    }

    
/**
     * @param  int  $index
     * @return bool
     */
    
#[ReturnTypeWillChange]
    public function 
offsetExists($index)
    {
        return isset(
$this->processors[$index]);
    }

    
/**
     * @param  int                $index
     * @return ProcessorInterface
     */
    
#[ReturnTypeWillChange]
    public function 
offsetGet($index)
    {
        return 
$this->processors[$index];
    }

    
/**
     * @param  int                $index
     * @param  ProcessorInterface $processor
     * @return void
     */
    
#[ReturnTypeWillChange]
    public function 
offsetSet($index$processor)
    {
        if (!
$processor instanceof ProcessorInterface) {
            throw new 
InvalidArgumentException(
                
'Processor chain accepts only instances of `Predis\Command\Processor\ProcessorInterface`'
            
);
        }

        
$this->processors[$index] = $processor;
    }

    
/**
     * @param  int  $index
     * @return void
     */
    
#[ReturnTypeWillChange]
    public function 
offsetUnset($index)
    {
        unset(
$this->processors[$index]);
        
$this->processors array_values($this->processors);
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

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

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0049 ]--