!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/siu/security-multitool/library/SecurityMultiTool/Markdown/   drwxrwxr-x
Free 15.66 GB of 61.93 GB (25.28%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


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

namespace SecurityMultiTool\Markdown;

use 
Michelf\Markdown;
use 
SecurityMultiTool\Html\Sanitizer;
use 
SecurityMultiTool\Exception;
use 
SecurityMultiTool\Common;

class 
Parser implements Common\OptionsInterface
{

    protected 
$parser null;

    protected 
$sanitizer null;

    protected 
$filter '';

    public function 
__construct($cachePath, array $options null)
    {
        
$this->sanitizer = new Sanitizer($cachePath$options);
        
//$this->sanitizer->setOption('HTML.Allowed', $this->filter);
        
$this->parser = new Markdown;
    }

    public function 
parse($markdown$filter null)
    {
        
$unsanitized $this->parser->transform($markdown);
        
$sanitized $this->sanitizer->sanitize($unsanitized$filter);
        return 
$sanitized;
    }

    public function 
resetSanitizer()
    {
        
$this->sanitizer->reset();
    }

    public function 
setFilterDefinition($filter)
    {
        
$this->filter $filter;
        
$this->resetSanitizer();
        
$this->sanitizer->setOption('HTML.Allowed'$this->filter);
    }

    public function 
getFilterDefinition()
    {
        return 
$this->filter;
    }

    public function 
setOptions(array $options)
    {
        foreach (
$options as $key => $value) {
            
$this->setOption($key$value);
        }
    }

    public function 
getOptions()
    {
        return 
$this->sanitizer->getOptions();
    }

    public function 
setOption($key$value)
    {
        
$this->sanitizer->setOption($key$value);
    }

    public function 
getOption($key)
    {
        return 
$this->sanitizer->getOption($key);
    }

    public function 
getSanitizerConfig()
    {
        return 
$this->sanitizer->getConfig();
    }

    public function 
setSanitizer(Sanitizer $sanitizer)
    {
        
$this->sanitizer $sanitizer;
    }

    public function 
getSanitizer()
    {
        return 
$this->sanitizer;
    }

    public function 
getParser()
    {
        return 
$this->parser;
    }

}

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