!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/Config/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 (6.04 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\Config\Loader;

use 
Symfony\Component\Config\Exception\FileLoaderImportCircularReferenceException;
use 
Symfony\Component\Config\Exception\FileLocatorFileNotFoundException;
use 
Symfony\Component\Config\Exception\LoaderLoadException;
use 
Symfony\Component\Config\FileLocatorInterface;
use 
Symfony\Component\Config\Resource\FileExistenceResource;
use 
Symfony\Component\Config\Resource\GlobResource;

/**
 * FileLoader is the abstract class used by all built-in loaders that are file based.
 *
 * @author Fabien Potencier <[email protected]>
 */
abstract class FileLoader extends Loader
{
    protected static 
$loading = [];

    protected 
$locator;

    private 
$currentDir;

    public function 
__construct(FileLocatorInterface $locatorstring $env null)
    {
        
$this->locator $locator;
        
parent::__construct($env);
    }

    
/**
     * Sets the current directory.
     */
    
public function setCurrentDir(string $dir)
    {
        
$this->currentDir $dir;
    }

    
/**
     * Returns the file locator used by this loader.
     *
     * @return FileLocatorInterface
     */
    
public function getLocator()
    {
        return 
$this->locator;
    }

    
/**
     * Imports a resource.
     *
     * @param mixed                $resource       A Resource
     * @param string|null          $type           The resource type or null if unknown
     * @param bool                 $ignoreErrors   Whether to ignore import errors or not
     * @param string|null          $sourceResource The original resource importing the new resource
     * @param string|string[]|null $exclude        Glob patterns to exclude from the import
     *
     * @return mixed
     *
     * @throws LoaderLoadException
     * @throws FileLoaderImportCircularReferenceException
     * @throws FileLocatorFileNotFoundException
     */
    
public function import($resourcestring $type nullbool $ignoreErrors falsestring $sourceResource null$exclude null)
    {
        if (\
is_string($resource) && \strlen($resource) !== ($i strcspn($resource'*?{[')) && !str_contains($resource"\n")) {
            
$excluded = [];
            foreach ((array) 
$exclude as $pattern) {
                foreach (
$this->glob($patterntrue$_falsetrue) as $path => $info) {
                    
// normalize Windows slashes and remove trailing slashes
                    
$excluded[rtrim(str_replace('\\''/'$path), '/')] = true;
                }
            }

            
$ret = [];
            
$isSubpath !== $i && str_contains(substr($resource0$i), '/');
            foreach (
$this->glob($resourcefalse$_$ignoreErrors || !$isSubpathfalse$excluded) as $path => $info) {
                if (
null !== $res $this->doImport($path'glob' === $type null $type$ignoreErrors$sourceResource)) {
                    
$ret[] = $res;
                }
                
$isSubpath true;
            }

            if (
$isSubpath) {
                return isset(
$ret[1]) ? $ret : ($ret[0] ?? null);
            }
        }

        return 
$this->doImport($resource$type$ignoreErrors$sourceResource);
    }

    
/**
     * @internal
     */
    
protected function glob(string $patternbool $recursive, &$resource nullbool $ignoreErrors falsebool $forExclusion false, array $excluded = [])
    {
        if (\
strlen($pattern) === $i strcspn($pattern'*?{[')) {
            
$prefix $pattern;
            
$pattern '';
        } elseif (
=== $i || !str_contains(substr($pattern0$i), '/')) {
            
$prefix '.';
            
$pattern '/'.$pattern;
        } else {
            
$prefix = \dirname(substr($pattern0$i));
            
$pattern substr($pattern, \strlen($prefix));
        }

        try {
            
$prefix $this->locator->locate($prefix$this->currentDirtrue);
        } catch (
FileLocatorFileNotFoundException $e) {
            if (!
$ignoreErrors) {
                throw 
$e;
            }

            
$resource = [];
            foreach (
$e->getPaths() as $path) {
                
$resource[] = new FileExistenceResource($path);
            }

            return;
        }
        
$resource = new GlobResource($prefix$pattern$recursive$forExclusion$excluded);

        yield 
from $resource;
    }

    private function 
doImport($resourcestring $type nullbool $ignoreErrors falsestring $sourceResource null)
    {
        try {
            
$loader $this->resolve($resource$type);

            if (
$loader instanceof self && null !== $this->currentDir) {
                
$resource $loader->getLocator()->locate($resource$this->currentDirfalse);
            }

            
$resources = \is_array($resource) ? $resource : [$resource];
            for (
$i 0$i $resourcesCount = \count($resources); ++$i) {
                if (isset(
self::$loading[$resources[$i]])) {
                    if (
$i == $resourcesCount 1) {
                        throw new 
FileLoaderImportCircularReferenceException(array_keys(self::$loading));
                    }
                } else {
                    
$resource $resources[$i];
                    break;
                }
            }
            
self::$loading[$resource] = true;

            try {
                
$ret $loader->load($resource$type);
            } finally {
                unset(
self::$loading[$resource]);
            }

            return 
$ret;
        } catch (
FileLoaderImportCircularReferenceException $e) {
            throw 
$e;
        } catch (\
Exception $e) {
            if (!
$ignoreErrors) {
                
// prevent embedded imports from nesting multiple exceptions
                
if ($e instanceof LoaderLoadException) {
                    throw 
$e;
                }

                throw new 
LoaderLoadException($resource$sourceResource0$e$type);
            }
        }

        return 
null;
    }
}

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