!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/queuepro/vendor/league/commonmark/src/Extension/Attributes/Parser/   drwxrwxr-x
Free 13.03 GB of 57.97 GB (22.48%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

/*
 * This file is part of the league/commonmark package.
 *
 * (c) Colin O'Dell <colinodell@gmail.com>
 * (c) 2015 Martin HasoĊˆ <martin.hason@gmail.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

declare(strict_types=1);

namespace 
League\CommonMark\Extension\Attributes\Parser;

use 
League\CommonMark\Extension\Attributes\Node\Attributes;
use 
League\CommonMark\Extension\Attributes\Util\AttributesHelper;
use 
League\CommonMark\Node\Block\AbstractBlock;
use 
League\CommonMark\Parser\Block\AbstractBlockContinueParser;
use 
League\CommonMark\Parser\Block\BlockContinue;
use 
League\CommonMark\Parser\Block\BlockContinueParserInterface;
use 
League\CommonMark\Parser\Cursor;

final class 
AttributesBlockContinueParser extends AbstractBlockContinueParser
{
    private 
Attributes $block;

    private 
AbstractBlock $container;

    private 
bool $hasSubsequentLine false;

    
/**
     * @param array<string, mixed> $attributes The attributes identified by the block start parser
     * @param AbstractBlock        $container  The node we were in when these attributes were discovered
     */
    
public function __construct(array $attributesAbstractBlock $container)
    {
        
$this->block = new Attributes($attributes);

        
$this->container $container;
    }

    public function 
getBlock(): AbstractBlock
    
{
        return 
$this->block;
    }

    public function 
tryContinue(Cursor $cursorBlockContinueParserInterface $activeBlockParser): ?BlockContinue
    
{
        
$this->hasSubsequentLine true;

        
$cursor->advanceToNextNonSpaceOrTab();

        
// Does this next line also have attributes?
        
$attributes AttributesHelper::parseAttributes($cursor);
        
$cursor->advanceToNextNonSpaceOrTab();
        if (
$cursor->isAtEnd() && $attributes !== []) {
            
// It does! Merge them into what we parsed previously
            
$this->block->setAttributes(AttributesHelper::mergeAttributes(
                
$this->block->getAttributes(),
                
$attributes
            
));

            
// Tell the core parser we've consumed everything
            
return BlockContinue::at($cursor);
        }

        
// Okay, so there are no attributes on the next line
        // If this next line is blank we know we can't target the next node, it must be a previous one
        
if ($cursor->isBlank()) {
            
$this->block->setTarget(Attributes::TARGET_PREVIOUS);
        }

        return 
BlockContinue::none();
    }

    public function 
closeBlock(): void
    
{
        
// Attributes appearing at the very end of the document won't have any last lines to check
        // so we can make that determination here
        
if (! $this->hasSubsequentLine) {
            
$this->block->setTarget(Attributes::TARGET_PREVIOUS);
        }

        
// We know this block must apply to the "previous" block, but that could be a sibling or parent,
        // so we check the containing block to see which one it might be.
        
if ($this->block->getTarget() === Attributes::TARGET_PREVIOUS && $this->block->parent() === $this->container) {
            
$this->block->setTarget(Attributes::TARGET_PARENT);
        }
    }
}

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