!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/uploads/script/vendor/league/commonmark/src/   drwxr-xr-x
Free 13.29 GB of 57.97 GB (22.93%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

/*
 * This file is part of the league/commonmark package.
 *
 * (c) Colin O'Dell <colinodell@gmail.com>
 *
 * Original code based on the CommonMark JS reference parser (https://bitly.com/commonmark-js)
 *  - (c) John MacFarlane
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace League\CommonMark;

use 
League\CommonMark\Block\Element\AbstractBlock;
use 
League\CommonMark\Block\Renderer\BlockRendererInterface;
use 
League\CommonMark\Inline\Element\AbstractInline;
use 
League\CommonMark\Inline\Renderer\InlineRendererInterface;

/**
 * Renders a parsed AST to HTML
 */
final class HtmlRenderer implements ElementRendererInterface
{
    
/**
     * @var EnvironmentInterface
     */
    
protected $environment;

    
/**
     * @param EnvironmentInterface $environment
     */
    
public function __construct(EnvironmentInterface $environment)
    {
        
$this->environment $environment;
    }

    
/**
     * @param string $option
     * @param mixed  $default
     *
     * @return mixed|null
     */
    
public function getOption(string $option$default null)
    {
        return 
$this->environment->getConfig('renderer/' $option$default);
    }

    
/**
     * @param AbstractInline $inline
     *
     * @throws \RuntimeException
     *
     * @return string
     */
    
public function renderInline(AbstractInline $inline): string
    
{
        
$renderers $this->environment->getInlineRenderersForClass(\get_class($inline));

        
/** @var InlineRendererInterface $renderer */
        
foreach ($renderers as $renderer) {
            if ((
$result $renderer->render($inline$this)) !== null) {
                return 
$result;
            }
        }

        throw new 
\RuntimeException('Unable to find corresponding renderer for inline type ' \get_class($inline));
    }

    
/**
     * @param AbstractInline[] $inlines
     *
     * @return string
     */
    
public function renderInlines(iterable $inlines): string
    
{
        
$result = [];
        foreach (
$inlines as $inline) {
            
$result[] = $this->renderInline($inline);
        }

        return 
\implode(''$result);
    }

    
/**
     * @param AbstractBlock $block
     * @param bool          $inTightList
     *
     * @throws \RuntimeException
     *
     * @return string
     */
    
public function renderBlock(AbstractBlock $blockbool $inTightList false): string
    
{
        
$renderers $this->environment->getBlockRenderersForClass(\get_class($block));

        
/** @var BlockRendererInterface $renderer */
        
foreach ($renderers as $renderer) {
            if ((
$result $renderer->render($block$this$inTightList)) !== null) {
                return 
$result;
            }
        }

        throw new 
\RuntimeException('Unable to find corresponding renderer for block type ' \get_class($block));
    }

    
/**
     * @param AbstractBlock[] $blocks
     * @param bool            $inTightList
     *
     * @return string
     */
    
public function renderBlocks(iterable $blocksbool $inTightList false): string
    
{
        
$result = [];
        foreach (
$blocks as $block) {
            
$result[] = $this->renderBlock($block$inTightList);
        }

        
$separator $this->getOption('block_separator'"\n");

        return 
\implode($separator$result);
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

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

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

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0061 ]--