!C99Shell v. 2.1 [PHP 8 Update] [02.02.2022]!

Software: Apache/2.4.53 (Unix) OpenSSL/1.1.1o PHP/7.4.29 mod_perl/2.0.12 Perl/v5.34.1. PHP/7.4.29 

uname -a: Linux vps-2738122-x 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64 

uid=1(daemon) gid=1(daemon) grupos=1(daemon) 

Safe-mode: OFF (not secure)

/opt/apex_led/php/vendor/ezyang/htmlpurifier/extras/ConfigDoc/   drwxrwxr-x
Free 15.64 GB of 61.93 GB (25.25%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     HTMLXSLTProcessor.php (2.35 KB)      -rwxrwxr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

/**
 * Decorator/extender XSLT processor specifically for HTML documents.
 */
class ConfigDoc_HTMLXSLTProcessor
{

    
/**
     * Instance of XSLTProcessor
     */
    
protected $xsltProcessor;

    public function 
__construct($proc false)
    {
        if (
$proc === false$proc = new XSLTProcessor();
        
$this->xsltProcessor $proc;
    }

    
/**
     * @note Allows a string $xsl filename to be passed
     */
    
public function importStylesheet($xsl)
    {
        if (
is_string($xsl)) {
            
$xsl_file $xsl;
            
$xsl = new DOMDocument();
            
$xsl->load($xsl_file);
        }
        return 
$this->xsltProcessor->importStylesheet($xsl);
    }

    
/**
     * Transforms an XML file into compatible XHTML based on the stylesheet
     * @param $xml XML DOM tree, or string filename
     * @return string HTML output
     * @todo Rename to transformToXHTML, as transformToHTML is misleading
     */
    
public function transformToHTML($xml)
    {
        if (
is_string($xml)) {
            
$dom = new DOMDocument();
            
$dom->load($xml);
        } else {
            
$dom $xml;
        }
        
$out $this->xsltProcessor->transformToXML($dom);

        
// fudges for HTML backwards compatibility
        // assumes that document is XHTML
        
$out str_replace('/>'' />'$out); // <br /> not <br/>
        
$out str_replace(' xmlns=""'''$out); // rm unnecessary xmlns

        
if (class_exists('Tidy')) {
            
// cleanup output
            
$config = array(
                
'indent'        => true,
                
'output-xhtml'  => true,
                
'wrap'          => 80
            
);
            
$tidy = new Tidy;
            
$tidy->parseString($out$config'utf8');
            
$tidy->cleanRepair();
            
$out = (string) $tidy;
        }

        return 
$out;
    }

    
/**
     * Bulk sets parameters for the XSL stylesheet
     * @param array $options Associative array of options to set
     */
    
public function setParameters($options)
    {
        foreach (
$options as $name => $value) {
            
$this->xsltProcessor->setParameter(''$name$value);
        }
    }

    
/**
     * Forward any other calls to the XSLT processor
     */
    
public function __call($name$arguments)
    {
        
call_user_func_array(array($this->xsltProcessor$name), $arguments);
    }

}

// vim: et sw=4 sts=4

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.1 [PHP 8 Update] [02.02.2022] maintained byC99Shell Github | Generation time: 0.3005 ]--