!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/wataxi.picotech.app/public_html/vendor/symfony/dom-crawler/   drwxr-xr-x
Free 28.45 GB of 117.98 GB (24.12%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     AbstractUriElement.php (3.37 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\DomCrawler;

/**
 * Any HTML element that can link to an URI.
 *
 * @author Fabien Potencier <fabien@symfony.com>
 */
abstract class AbstractUriElement
{
    
/**
     * @var \DOMElement
     */
    
protected $node;

    
/**
     * @var string|null The method to use for the element
     */
    
protected $method;

    
/**
     * @var string The URI of the page where the element is embedded (or the base href)
     */
    
protected $currentUri;

    
/**
     * @param \DOMElement $node       A \DOMElement instance
     * @param string|null $currentUri The URI of the page where the link is embedded (or the base href)
     * @param string|null $method     The method to use for the link (GET by default)
     *
     * @throws \InvalidArgumentException if the node is not a link
     */
    
public function __construct(\DOMElement $node, ?string $currentUri null, ?string $method 'GET')
    {
        
$this->setNode($node);
        
$this->method $method strtoupper($method) : null;
        
$this->currentUri $currentUri;

        
$elementUriIsRelative null === parse_url(trim($this->getRawUri()), \PHP_URL_SCHEME);
        
$baseUriIsAbsolute null !== $this->currentUri && \in_array(strtolower(substr($this->currentUri04)), ['http''file']);
        if (
$elementUriIsRelative && !$baseUriIsAbsolute) {
            throw new 
\InvalidArgumentException(sprintf('The URL of the element is relative, so you must define its base URI passing an absolute URL to the constructor of the "%s" class ("%s" was passed).'__CLASS__$this->currentUri));
        }
    }

    
/**
     * Gets the node associated with this link.
     *
     * @return \DOMElement
     */
    
public function getNode()
    {
        return 
$this->node;
    }

    
/**
     * Gets the method associated with this link.
     *
     * @return string
     */
    
public function getMethod()
    {
        return 
$this->method ?? 'GET';
    }

    
/**
     * Gets the URI associated with this link.
     *
     * @return string
     */
    
public function getUri()
    {
        return 
UriResolver::resolve($this->getRawUri(), $this->currentUri);
    }

    
/**
     * Returns raw URI data.
     *
     * @return string
     */
    
abstract protected function getRawUri();

    
/**
     * Returns the canonicalized URI path (see RFC 3986, section 5.2.4).
     *
     * @param string $path URI path
     *
     * @return string
     */
    
protected function canonicalizePath(string $path)
    {
        if (
'' === $path || '/' === $path) {
            return 
$path;
        }

        if (
str_ends_with($path'.')) {
            
$path .= '/';
        }

        
$output = [];

        foreach (
explode('/'$path) as $segment) {
            if (
'..' === $segment) {
                
array_pop($output);
            } elseif (
'.' !== $segment) {
                
$output[] = $segment;
            }
        }

        return 
implode('/'$output);
    }

    
/**
     * Sets current \DOMElement instance.
     *
     * @param \DOMElement $node A \DOMElement instance
     *
     * @throws \LogicException If given node is not an anchor
     */
    
abstract protected function setNode(\DOMElement $node);
}

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