!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache. PHP/7.3.33 

uname -a: Linux acloudg.aryanict.com 4.18.0-513.9.1.lve.el8.x86_64 #1 SMP Mon Dec 4 15:01:22 UTC
2023 x86_64
 

uid=1095(katebhospital) gid=1098(katebhospital) groups=1098(katebhospital) 

Safe-mode: OFF (not secure)

/opt/alt/php55/usr/share/pear/Symfony/Component/Routing/Matcher/Dumper/   drwxr-xr-x
Free 294.03 GB of 429.69 GB (68.43%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     DumperPrefixCollection.php (2.67 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\Routing\Matcher\Dumper;

/**
 * Prefix tree of routes preserving routes order.
 *
 * @author Arnaud Le Blanc <arnaud.lb@gmail.com>
 */
class DumperPrefixCollection extends DumperCollection
{
    
/**
     * @var string
     */
    
private $prefix '';

    
/**
     * Returns the prefix.
     *
     * @return string The prefix
     */
    
public function getPrefix()
    {
        return 
$this->prefix;
    }

    
/**
     * Sets the prefix.
     *
     * @param string $prefix The prefix
     */
    
public function setPrefix($prefix)
    {
        
$this->prefix $prefix;
    }

    
/**
     * Adds a route in the tree.
     *
     * @param DumperRoute $route The route
     *
     * @return DumperPrefixCollection The node the route was added to
     *
     * @throws \LogicException
     */
    
public function addPrefixRoute(DumperRoute $route)
    {
        
$prefix $route->getRoute()->compile()->getStaticPrefix();

        for (
$collection $thisnull !== $collection$collection $collection->getParent()) {

            
// Same prefix, add to current leave
            
if ($collection->prefix === $prefix) {
                
$collection->add($route);

                return 
$collection;
            }

            
// Prefix starts with route's prefix
            
if ('' === $collection->prefix || === strpos($prefix$collection->prefix)) {
                
$child = new DumperPrefixCollection();
                
$child->setPrefix(substr($prefix0strlen($collection->prefix)+1));
                
$collection->add($child);

                return 
$child->addPrefixRoute($route);
            }
        }

        
// Reached only if the root has a non empty prefix
        
throw new \LogicException("The collection root must not have a prefix");
    }

    
/**
     * Merges nodes whose prefix ends with a slash
     *
     * Children of a node whose prefix ends with a slash are moved to the parent node
     */
    
public function mergeSlashNodes()
    {
        
$children = array();

        foreach (
$this as $child) {
            if (
$child instanceof self) {
                
$child->mergeSlashNodes();
                if (
'/' === substr($child->prefix, -1)) {
                    
$children array_merge($children$child->all());
                } else {
                    
$children[] = $child;
                }
            } else {
                
$children[] = $child;
            }
        }

        
$this->setAll($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.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0972 ]--