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

Software: Apache/2.4.68 (Linux) PHP/7.4.33. PHP/7.4.33 

uname -a: Linux bjb2293782.nichost.ru 6.6.151-1.el8.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Aug 10
11:16:02 MSK 2026 x86_64
 

uid=12584(bjb2293782) gid=12584(bjb2293782) groups=12584(bjb2293782)  

Safe-mode: OFF (not secure)

/usr/share/php/Composer/vendor/symfony/finder/Iterator/   drwxr-xr-x
Free 60.62 GB of 99.95 GB (60.65%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <fabien@symfony.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Symfony\Component\Finder\Iterator;

/**
 * ExcludeDirectoryFilterIterator filters out directories.
 *
 * @author Fabien Potencier <fabien@symfony.com>
 *
 * @extends \FilterIterator<string, \SplFileInfo>
 *
 * @implements \RecursiveIterator<string, \SplFileInfo>
 */
class ExcludeDirectoryFilterIterator extends \FilterIterator implements \RecursiveIterator
{
    private 
$iterator;
    private 
$isRecursive;
    private 
$excludedDirs = [];
    private 
$excludedPattern;

    
/**
     * @param \Iterator $iterator    The Iterator to filter
     * @param string[]  $directories An array of directories to exclude
     */
    
public function __construct(\Iterator $iterator, array $directories)
    {
        
$this->iterator $iterator;
        
$this->isRecursive $iterator instanceof \RecursiveIterator;
        
$patterns = [];
        foreach (
$directories as $directory) {
            
$directory rtrim($directory'/');
            if (!
$this->isRecursive || str_contains($directory'/')) {
                
$patterns[] = preg_quote($directory'#');
            } else {
                
$this->excludedDirs[$directory] = true;
            }
        }
        if (
$patterns) {
            
$this->excludedPattern '#(?:^|/)(?:'.implode('|'$patterns).')(?:/|$)#';
        }

        
parent::__construct($iterator);
    }

    
/**
     * Filters the iterator values.
     *
     * @return bool
     */
    #[\ReturnTypeWillChange]
    
public function accept()
    {
        if (
$this->isRecursive && isset($this->excludedDirs[$this->getFilename()]) && $this->isDir()) {
            return 
false;
        }

        if (
$this->excludedPattern) {
            
$path $this->isDir() ? $this->current()->getRelativePathname() : $this->current()->getRelativePath();
            
$path str_replace('\\''/'$path);

            return !
preg_match($this->excludedPattern$path);
        }

        return 
true;
    }

    
/**
     * @return bool
     */
    #[\ReturnTypeWillChange]
    
public function hasChildren()
    {
        return 
$this->isRecursive && $this->iterator->hasChildren();
    }

    
/**
     * @return self
     */
    #[\ReturnTypeWillChange]
    
public function getChildren()
    {
        
$children = new self($this->iterator->getChildren(), []);
        
$children->excludedDirs $this->excludedDirs;
        
$children->excludedPattern $this->excludedPattern;

        return 
$children;
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

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

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