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

Software: nginx/1.23.4. PHP/5.6.40-65+ubuntu20.04.1+deb.sury.org+1 

uname -a: Linux foro-restaurado-2 5.15.0-1040-oracle #46-Ubuntu SMP Fri Jul 14 21:47:21 UTC 2023
aarch64
 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/usr/share/php/Symfony/Component/DependencyInjection/Loader/   drwxr-xr-x
Free 83.25 GB of 96.73 GB (86.06%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


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

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

namespace Symfony\Component\DependencyInjection\Loader;

use 
Symfony\Component\Config\Exception\FileLocatorFileNotFoundException;
use 
Symfony\Component\Config\Exception\LoaderLoadException;
use 
Symfony\Component\Config\FileLocatorInterface;
use 
Symfony\Component\Config\Loader\FileLoader as BaseFileLoader;
use 
Symfony\Component\Config\Loader\Loader;
use 
Symfony\Component\Config\Resource\GlobResource;
use 
Symfony\Component\DependencyInjection\Attribute\When;
use 
Symfony\Component\DependencyInjection\ChildDefinition;
use 
Symfony\Component\DependencyInjection\Compiler\RegisterAutoconfigureAttributesPass;
use 
Symfony\Component\DependencyInjection\ContainerBuilder;
use 
Symfony\Component\DependencyInjection\Definition;
use 
Symfony\Component\DependencyInjection\Exception\InvalidArgumentException;

/**
 * FileLoader is the abstract class used by all built-in loaders that are file based.
 *
 * @author Fabien Potencier <[email protected]>
 */
abstract class FileLoader extends BaseFileLoader
{
    public const 
ANONYMOUS_ID_REGEXP '/^\.\d+_[^~]*+~[._a-zA-Z\d]{7}$/';

    protected 
$container;
    protected 
$isLoadingInstanceof false;
    protected 
$instanceof = [];
    protected 
$interfaces = [];
    protected 
$singlyImplemented = [];
    protected 
$autoRegisterAliasesForSinglyImplementedInterfaces true;

    public function 
__construct(ContainerBuilder $containerFileLocatorInterface $locatorstring $env null)
    {
        
$this->container $container;

        
parent::__construct($locator$env);
    }

    
/**
     * {@inheritdoc}
     *
     * @param bool|string $ignoreErrors Whether errors should be ignored; pass "not_found" to ignore only when the loaded resource is not found
     */
    
public function import($resourcestring $type null$ignoreErrors falsestring $sourceResource null$exclude null)
    {
        
$args = \func_get_args();

        if (
$ignoreNotFound 'not_found' === $ignoreErrors) {
            
$args[2] = false;
        } elseif (!\
is_bool($ignoreErrors)) {
            throw new \
TypeError(sprintf('Invalid argument $ignoreErrors provided to "%s::import()": boolean or "not_found" expected, "%s" given.', static::class, get_debug_type($ignoreErrors)));
        }

        try {
            return 
parent::import(...$args);
        } catch (
LoaderLoadException $e) {
            if (!
$ignoreNotFound || !($prev $e->getPrevious()) instanceof FileLocatorFileNotFoundException) {
                throw 
$e;
            }

            foreach (
$prev->getTrace() as $frame) {
                if (
'import' === ($frame['function'] ?? null) && is_a($frame['class'] ?? ''Loader::class, true)) {
                    break;
                }
            }

            if (
__FILE__ !== $frame['file']) {
                throw 
$e;
            }
        }

        return 
null;
    }

    
/**
     * Registers a set of classes as services using PSR-4 for discovery.
     *
     * @param Definition           $prototype A definition to use as template
     * @param string               $namespace The namespace prefix of classes in the scanned directory
     * @param string               $resource  The directory to look for classes, glob-patterns allowed
     * @param string|string[]|null $exclude   A globbed path of files to exclude or an array of globbed paths of files to exclude
     */
    
public function registerClasses(Definition $prototypestring $namespacestring $resource$exclude null)
    {
        if (!
str_ends_with($namespace'\\')) {
            throw new 
InvalidArgumentException(sprintf('Namespace prefix must end with a "\\": "%s".'$namespace));
        }
        if (!
preg_match('/^(?:[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*+\\\\)++$/'$namespace)) {
            throw new 
InvalidArgumentException(sprintf('Namespace is not a valid PSR-4 prefix: "%s".'$namespace));
        }

        
$autoconfigureAttributes = new RegisterAutoconfigureAttributesPass();
        
$autoconfigureAttributes $autoconfigureAttributes->accept($prototype) ? $autoconfigureAttributes null;
        
$classes $this->findClasses($namespace$resource, (array) $exclude$autoconfigureAttributes);
        
// prepare for deep cloning
        
$serializedPrototype serialize($prototype);

        foreach (
$classes as $class => $errorMessage) {
            if (
null === $errorMessage && $autoconfigureAttributes && $this->env) {
                
$r $this->container->getReflectionClass($class);
                
$attribute null;
                foreach (
$r->getAttributes(When::class) as $attribute) {
                    if (
$this->env === $attribute->newInstance()->env) {
                        
$attribute null;
                        break;
                    }
                }
                if (
null !== $attribute) {
                    continue;
                }
            }

            if (
interface_exists($classfalse)) {
                
$this->interfaces[] = $class;
            } else {
                
$this->setDefinition($class$definition unserialize($serializedPrototype));
                if (
null !== $errorMessage) {
                    
$definition->addError($errorMessage);

                    continue;
                }
                foreach (
class_implements($classfalse) as $interface) {
                    
$this->singlyImplemented[$interface] = ($this->singlyImplemented[$interface] ?? $class) !== $class false $class;
                }
            }
        }

        if (
$this->autoRegisterAliasesForSinglyImplementedInterfaces) {
            
$this->registerAliasesForSinglyImplementedInterfaces();
        }
    }

    public function 
registerAliasesForSinglyImplementedInterfaces()
    {
        foreach (
$this->interfaces as $interface) {
            if (!empty(
$this->singlyImplemented[$interface]) && !$this->container->has($interface)) {
                
$this->container->setAlias($interface$this->singlyImplemented[$interface]);
            }
        }

        
$this->interfaces $this->singlyImplemented = [];
    }

    
/**
     * Registers a definition in the container with its instanceof-conditionals.
     */
    
protected function setDefinition(string $idDefinition $definition)
    {
        
$this->container->removeBindings($id);

        if (
$this->isLoadingInstanceof) {
            if (!
$definition instanceof ChildDefinition) {
                throw new 
InvalidArgumentException(sprintf('Invalid type definition "%s": ChildDefinition expected, "%s" given.'$idget_debug_type($definition)));
            }
            
$this->instanceof[$id] = $definition;
        } else {
            
$this->container->setDefinition($id$definition->setInstanceofConditionals($this->instanceof));
        }
    }

    private function 
findClasses(string $namespacestring $pattern, array $excludePatterns, ?RegisterAutoconfigureAttributesPass $autoconfigureAttributes): array
    {
        
$parameterBag $this->container->getParameterBag();

        
$excludePaths = [];
        
$excludePrefix null;
        
$excludePatterns $parameterBag->unescapeValue($parameterBag->resolveValue($excludePatterns));
        foreach (
$excludePatterns as $excludePattern) {
            foreach (
$this->glob($excludePatterntrue$resourcetruetrue) as $path => $info) {
                if (
null === $excludePrefix) {
                    
$excludePrefix $resource->getPrefix();
                }

                
// normalize Windows slashes and remove trailing slashes
                
$excludePaths[rtrim(str_replace('\\''/'$path), '/')] = true;
            }
        }

        
$pattern $parameterBag->unescapeValue($parameterBag->resolveValue($pattern));
        
$classes = [];
        
$extRegexp '/\\.php$/';
        
$prefixLen null;
        foreach (
$this->glob($patterntrue$resourcefalsefalse$excludePaths) as $path => $info) {
            if (
null === $prefixLen) {
                
$prefixLen = \strlen($resource->getPrefix());

                if (
$excludePrefix && !str_starts_with($excludePrefix$resource->getPrefix())) {
                    throw new 
InvalidArgumentException(sprintf('Invalid "exclude" pattern when importing classes for "%s": make sure your "exclude" pattern (%s) is a subset of the "resource" pattern (%s).'$namespace$excludePattern$pattern));
                }
            }

            if (isset(
$excludePaths[str_replace('\\''/'$path)])) {
                continue;
            }

            if (!
preg_match($extRegexp$path$m) || !$info->isReadable()) {
                continue;
            }
            
$class $namespace.ltrim(str_replace('/''\\'substr($path$prefixLen, -\strlen($m[0]))), '\\');

            if (!
preg_match('/^[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*+(?:\\\\[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*+)*+$/'$class)) {
                continue;
            }

            try {
                
$r $this->container->getReflectionClass($class);
            } catch (\
ReflectionException $e) {
                
$classes[$class] = $e->getMessage();
                continue;
            }
            
// check to make sure the expected class exists
            
if (!$r) {
                throw new 
InvalidArgumentException(sprintf('Expected to find class "%s" in file "%s" while importing services from resource "%s", but it was not found! Check the namespace prefix used with the resource.'$class$path$pattern));
            }

            if (
$r->isInstantiable() || $r->isInterface()) {
                
$classes[$class] = null;
            }

            if (
$autoconfigureAttributes && !$r->isInstantiable()) {
                
$autoconfigureAttributes->processClass($this->container$r);
            }
        }

        
// track only for new & removed files
        
if ($resource instanceof GlobResource) {
            
$this->container->addResource($resource);
        } else {
            foreach (
$resource as $path) {
                
$this->container->fileExists($pathfalse);
            }
        }

        return 
$classes;
    }
}

:: 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 HackingTool | HackingTool | Generation time: 0.005 ]--