!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/ParameterBag/   drwxr-xr-x
Free 83.25 GB of 96.73 GB (86.07%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     EnvPlaceholderParameterBag.php (4.91 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\ParameterBag;

use 
Symfony\Component\DependencyInjection\Exception\InvalidArgumentException;
use 
Symfony\Component\DependencyInjection\Exception\RuntimeException;

/**
 * @author Nicolas Grekas <[email protected]>
 */
class EnvPlaceholderParameterBag extends ParameterBag
{
    private 
$envPlaceholderUniquePrefix;
    private 
$envPlaceholders = [];
    private 
$unusedEnvPlaceholders = [];
    private 
$providedTypes = [];

    private static 
$counter 0;

    
/**
     * {@inheritdoc}
     */
    
public function get(string $name)
    {
        if (
str_starts_with($name'env(') && str_ends_with($name')') && 'env()' !== $name) {
            
$env substr($name4, -1);

            if (isset(
$this->envPlaceholders[$env])) {
                foreach (
$this->envPlaceholders[$env] as $placeholder) {
                    return 
$placeholder// return first result
                
}
            }
            if (isset(
$this->unusedEnvPlaceholders[$env])) {
                foreach (
$this->unusedEnvPlaceholders[$env] as $placeholder) {
                    return 
$placeholder// return first result
                
}
            }
            if (!
preg_match('/^(?:[-.\w]*+:)*+\w++$/'$env)) {
                throw new 
InvalidArgumentException(sprintf('Invalid %s name: only "word" characters are allowed.'$name));
            }
            if (
$this->has($name) && null !== ($defaultValue parent::get($name)) && !\is_string($defaultValue)) {
                throw new 
RuntimeException(sprintf('The default value of an env() parameter must be a string or null, but "%s" given to "%s".'get_debug_type($defaultValue), $name));
            }

            
$uniqueName md5($name.'_'.self::$counter++);
            
$placeholder sprintf('%s_%s_%s'$this->getEnvPlaceholderUniquePrefix(), strtr($env':-.''___'), $uniqueName);
            
$this->envPlaceholders[$env][$placeholder] = $placeholder;

            return 
$placeholder;
        }

        return 
parent::get($name);
    }

    
/**
     * Gets the common env placeholder prefix for env vars created by this bag.
     */
    
public function getEnvPlaceholderUniquePrefix(): string
    
{
        if (
null === $this->envPlaceholderUniquePrefix) {
            
$reproducibleEntropy unserialize(serialize($this->parameters));
            
array_walk_recursive($reproducibleEntropy, function (&$v) { $v null; });
            
$this->envPlaceholderUniquePrefix 'env_'.substr(md5(serialize($reproducibleEntropy)), -16);
        }

        return 
$this->envPlaceholderUniquePrefix;
    }

    
/**
     * Returns the map of env vars used in the resolved parameter values to their placeholders.
     *
     * @return string[][] A map of env var names to their placeholders
     */
    
public function getEnvPlaceholders()
    {
        return 
$this->envPlaceholders;
    }

    public function 
getUnusedEnvPlaceholders(): array
    {
        return 
$this->unusedEnvPlaceholders;
    }

    public function 
clearUnusedEnvPlaceholders()
    {
        
$this->unusedEnvPlaceholders = [];
    }

    
/**
     * Merges the env placeholders of another EnvPlaceholderParameterBag.
     */
    
public function mergeEnvPlaceholders(self $bag)
    {
        if (
$newPlaceholders $bag->getEnvPlaceholders()) {
            
$this->envPlaceholders += $newPlaceholders;

            foreach (
$newPlaceholders as $env => $placeholders) {
                
$this->envPlaceholders[$env] += $placeholders;
            }
        }

        if (
$newUnusedPlaceholders $bag->getUnusedEnvPlaceholders()) {
            
$this->unusedEnvPlaceholders += $newUnusedPlaceholders;

            foreach (
$newUnusedPlaceholders as $env => $placeholders) {
                
$this->unusedEnvPlaceholders[$env] += $placeholders;
            }
        }
    }

    
/**
     * Maps env prefixes to their corresponding PHP types.
     */
    
public function setProvidedTypes(array $providedTypes)
    {
        
$this->providedTypes $providedTypes;
    }

    
/**
     * Gets the PHP types corresponding to env() parameter prefixes.
     *
     * @return string[][]
     */
    
public function getProvidedTypes()
    {
        return 
$this->providedTypes;
    }

    
/**
     * {@inheritdoc}
     */
    
public function resolve()
    {
        if (
$this->resolved) {
            return;
        }
        
parent::resolve();

        foreach (
$this->envPlaceholders as $env => $placeholders) {
            if (
$this->has($name "env($env)") && null !== ($default $this->parameters[$name]) && !\is_string($default)) {
                throw new 
RuntimeException(sprintf('The default value of env parameter "%s" must be a string or null, "%s" given.'$envget_debug_type($default)));
            }
        }
    }
}

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