!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/sabberworm/php-css-parser/lib/Sabberworm/CSS/CSSList/   drwxr-xr-x
Free 13.1 GB of 57.97 GB (22.6%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace Sabberworm\CSS\CSSList;

use 
Sabberworm\CSS\RuleSet\DeclarationBlock;
use 
Sabberworm\CSS\RuleSet\RuleSet;
use 
Sabberworm\CSS\Property\Selector;
use 
Sabberworm\CSS\Rule\Rule;
use 
Sabberworm\CSS\Value\ValueList;
use 
Sabberworm\CSS\Value\CSSFunction;

/**
 * A CSSBlockList is a CSSList whose DeclarationBlocks are guaranteed to contain valid declaration blocks or at-rules.
 * Most CSSLists conform to this category but some at-rules (such as @keyframes) do not.
 */
abstract class CSSBlockList extends CSSList {
    public function 
__construct($iLineNo 0) {
        
parent::__construct($iLineNo);
    }

    protected function 
allDeclarationBlocks(&$aResult) {
        foreach (
$this->aContents as $mContent) {
            if (
$mContent instanceof DeclarationBlock) {
                
$aResult[] = $mContent;
            } else if (
$mContent instanceof CSSBlockList) {
                
$mContent->allDeclarationBlocks($aResult);
            }
        }
    }

    protected function 
allRuleSets(&$aResult) {
        foreach (
$this->aContents as $mContent) {
            if (
$mContent instanceof RuleSet) {
                
$aResult[] = $mContent;
            } else if (
$mContent instanceof CSSBlockList) {
                
$mContent->allRuleSets($aResult);
            }
        }
    }

    protected function 
allValues($oElement, &$aResult$sSearchString null$bSearchInFunctionArguments false) {
        if (
$oElement instanceof CSSBlockList) {
            foreach (
$oElement->getContents() as $oContent) {
                
$this->allValues($oContent$aResult$sSearchString$bSearchInFunctionArguments);
            }
        } else if (
$oElement instanceof RuleSet) {
            foreach (
$oElement->getRules($sSearchString) as $oRule) {
                
$this->allValues($oRule$aResult$sSearchString$bSearchInFunctionArguments);
            }
        } else if (
$oElement instanceof Rule) {
            
$this->allValues($oElement->getValue(), $aResult$sSearchString$bSearchInFunctionArguments);
        } else if (
$oElement instanceof ValueList) {
            if (
$bSearchInFunctionArguments || !($oElement instanceof CSSFunction)) {
                foreach (
$oElement->getListComponents() as $mComponent) {
                    
$this->allValues($mComponent$aResult$sSearchString$bSearchInFunctionArguments);
                }
            }
        } else {
            
//Non-List Value or CSSString (CSS identifier)
            
$aResult[] = $oElement;
        }
    }

    protected function 
allSelectors(&$aResult$sSpecificitySearch null) {
        
$aDeclarationBlocks = array();
        
$this->allDeclarationBlocks($aDeclarationBlocks);
        foreach (
$aDeclarationBlocks as $oBlock) {
            foreach (
$oBlock->getSelectors() as $oSelector) {
                if (
$sSpecificitySearch === null) {
                    
$aResult[] = $oSelector;
                } else {
                    
$sComparator '===';
                    
$aSpecificitySearch explode(' '$sSpecificitySearch);
                    
$iTargetSpecificity $aSpecificitySearch[0];
                    if(
count($aSpecificitySearch) > 1) {
                        
$sComparator $aSpecificitySearch[0];
                        
$iTargetSpecificity $aSpecificitySearch[1];
                    }
                    
$iTargetSpecificity = (int)$iTargetSpecificity;
                    
$iSelectorSpecificity $oSelector->getSpecificity();
                    
$bMatches false;
                    switch(
$sComparator) {
                        case 
'<=':
                            
$bMatches $iSelectorSpecificity <= $iTargetSpecificity;
                        break;
                        case 
'<':
                            
$bMatches $iSelectorSpecificity $iTargetSpecificity;
                        break;
                        case 
'>=':
                            
$bMatches $iSelectorSpecificity >= $iTargetSpecificity;
                        break;
                        case 
'>':
                            
$bMatches $iSelectorSpecificity $iTargetSpecificity;
                        break;
                        default:
                            
$bMatches $iSelectorSpecificity === $iTargetSpecificity;
                        break;
                    }
                    if (
$bMatches) {
                        
$aResult[] = $oSelector;
                    }
                }
            }
        }
    }

}

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