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

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

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

Safe-mode: OFF (not secure)

/usr/share/php/Twig/Loader/   drwxr-xr-x
Free 13.17 GB of 57.97 GB (22.73%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

/*
 * This file is part of Twig.
 *
 * (c) Fabien Potencier
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Twig\Loader;

use 
Twig\Error\LoaderError;

/**
 * Loads templates from other loaders.
 *
 * @author Fabien Potencier <fabien@symfony.com>
 */
final class ChainLoader implements LoaderInterfaceExistsLoaderInterfaceSourceContextLoaderInterface
{
    private 
$hasSourceCache = [];
    private 
$loaders = [];

    
/**
     * @param LoaderInterface[] $loaders
     */
    
public function __construct(array $loaders = [])
    {
        foreach (
$loaders as $loader) {
            
$this->addLoader($loader);
        }
    }

    public function 
addLoader(LoaderInterface $loader)
    {
        
$this->loaders[] = $loader;
        
$this->hasSourceCache = [];
    }

    
/**
     * @return LoaderInterface[]
     */
    
public function getLoaders()
    {
        return 
$this->loaders;
    }

    public function 
getSourceContext($name)
    {
        
$exceptions = [];
        foreach (
$this->loaders as $loader) {
            if (!
$loader->exists($name)) {
                continue;
            }

            try {
                return 
$loader->getSourceContext($name);
            } catch (
LoaderError $e) {
                
$exceptions[] = $e->getMessage();
            }
        }

        throw new 
LoaderError(sprintf('Template "%s" is not defined%s.'$name$exceptions ' ('.implode(', '$exceptions).')' ''));
    }

    public function 
exists($name)
    {
        if (isset(
$this->hasSourceCache[$name])) {
            return 
$this->hasSourceCache[$name];
        }

        foreach (
$this->loaders as $loader) {
            if (
$loader->exists($name)) {
                return 
$this->hasSourceCache[$name] = true;
            }
        }

        return 
$this->hasSourceCache[$name] = false;
    }

    public function 
getCacheKey($name)
    {
        
$exceptions = [];
        foreach (
$this->loaders as $loader) {
            if (!
$loader->exists($name)) {
                continue;
            }

            try {
                return 
$loader->getCacheKey($name);
            } catch (
LoaderError $e) {
                
$exceptions[] = \get_class($loader).': '.$e->getMessage();
            }
        }

        throw new 
LoaderError(sprintf('Template "%s" is not defined%s.'$name$exceptions ' ('.implode(', '$exceptions).')' ''));
    }

    public function 
isFresh($name$time)
    {
        
$exceptions = [];
        foreach (
$this->loaders as $loader) {
            if (!
$loader->exists($name)) {
                continue;
            }

            try {
                return 
$loader->isFresh($name$time);
            } catch (
LoaderError $e) {
                
$exceptions[] = \get_class($loader).': '.$e->getMessage();
            }
        }

        throw new 
LoaderError(sprintf('Template "%s" is not defined%s.'$name$exceptions ' ('.implode(', '$exceptions).')' ''));
    }
}

class_alias('Twig\Loader\ChainLoader''Twig_Loader_Chain');

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