!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/sms.picotech.app/public_html/vendor/php-http/message/src/RequestMatcher/   drwxr-xr-x
Free 28.68 GB of 117.98 GB (24.31%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace Http\Message\RequestMatcher;

use 
Http\Message\RequestMatcher as RequestMatcherInterface;
use 
Psr\Http\Message\RequestInterface;

/**
 * A port of the Symfony RequestMatcher for PSR-7.
 *
 * @author Fabien Potencier <fabien@symfony.com>
 * @author Joel Wurtz <joel.wurtz@gmail.com>
 */
final class RequestMatcher implements RequestMatcherInterface
{
    
/**
     * @var string
     */
    
private $path;

    
/**
     * @var string
     */
    
private $host;

    
/**
     * @var array
     */
    
private $methods = [];

    
/**
     * @var string[]
     */
    
private $schemes = [];

    
/**
     * The regular expressions used for path or host must be specified without delimiter.
     * You do not need to escape the forward slash / to match it.
     *
     * @param string|null          $path    Regular expression for the path
     * @param string|null          $host    Regular expression for the hostname
     * @param string|string[]|null $methods Method or list of methods to match
     * @param string|string[]|null $schemes Scheme or list of schemes to match (e.g. http or https)
     */
    
public function __construct($path null$host null$methods = [], $schemes = [])
    {
        
$this->path $path;
        
$this->host $host;
        
$this->methods array_map('strtoupper', (array) $methods);
        
$this->schemes array_map('strtolower', (array) $schemes);
    }

    
/**
     * @api
     */
    
public function matches(RequestInterface $request)
    {
        if (
$this->schemes && !in_array($request->getUri()->getScheme(), $this->schemes)) {
            return 
false;
        }

        if (
$this->methods && !in_array($request->getMethod(), $this->methods)) {
            return 
false;
        }

        if (
null !== $this->path && !preg_match('{'.$this->path.'}'rawurldecode($request->getUri()->getPath()))) {
            return 
false;
        }

        if (
null !== $this->host && !preg_match('{'.$this->host.'}i'$request->getUri()->getHost())) {
            return 
false;
        }

        return 
true;
    }
}

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