!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/main_file/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xml/Style/   drwxr-xr-x
Free 12.97 GB of 57.97 GB (22.37%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace PhpOffice\PhpSpreadsheet\Reader\Xml\Style;

use 
PhpOffice\PhpSpreadsheet\Style\Font as FontUnderline;
use 
SimpleXMLElement;

class 
Font extends StyleBase
{
    protected const 
UNDERLINE_STYLES = [
        
FontUnderline::UNDERLINE_NONE,
        
FontUnderline::UNDERLINE_DOUBLE,
        
FontUnderline::UNDERLINE_DOUBLEACCOUNTING,
        
FontUnderline::UNDERLINE_SINGLE,
        
FontUnderline::UNDERLINE_SINGLEACCOUNTING,
    ];

    protected function 
parseUnderline(array $stylestring $styleAttributeValue): array
    {
        if (
self::identifyFixedStyleValue(self::UNDERLINE_STYLES$styleAttributeValue)) {
            
$style['font']['underline'] = $styleAttributeValue;
        }

        return 
$style;
    }

    protected function 
parseVerticalAlign(array $stylestring $styleAttributeValue): array
    {
        if (
$styleAttributeValue == 'Superscript') {
            
$style['font']['superscript'] = true;
        }
        if (
$styleAttributeValue == 'Subscript') {
            
$style['font']['subscript'] = true;
        }

        return 
$style;
    }

    public function 
parseStyle(SimpleXMLElement $styleAttributes): array
    {
        
$style = [];

        foreach (
$styleAttributes as $styleAttributeKey => $styleAttributeValue) {
            
$styleAttributeValue = (string) $styleAttributeValue;
            switch (
$styleAttributeKey) {
                case 
'FontName':
                    
$style['font']['name'] = $styleAttributeValue;

                    break;
                case 
'Size':
                    
$style['font']['size'] = $styleAttributeValue;

                    break;
                case 
'Color':
                    
$style['font']['color']['rgb'] = substr($styleAttributeValue1);

                    break;
                case 
'Bold':
                    
$style['font']['bold'] = true;

                    break;
                case 
'Italic':
                    
$style['font']['italic'] = true;

                    break;
                case 
'Underline':
                    
$style $this->parseUnderline($style$styleAttributeValue);

                    break;
                case 
'VerticalAlign':
                    
$style $this->parseVerticalAlign($style$styleAttributeValue);

                    break;
            }
        }

        return 
$style;
    }
}

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