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


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

namespace PhpOffice\PhpSpreadsheet\Calculation\Information;

use 
PhpOffice\PhpSpreadsheet\Calculation\ArrayEnabled;

class 
ExcelError
{
    use 
ArrayEnabled;

    
/**
     * List of error codes.
     *
     * @var array<string, string>
     */
    
public const ERROR_CODES = [
        
'null' => '#NULL!'// 1
        
'divisionbyzero' => '#DIV/0!'// 2
        
'value' => '#VALUE!'// 3
        
'reference' => '#REF!'// 4
        
'name' => '#NAME?'// 5
        
'num' => '#NUM!'// 6
        
'na' => '#N/A'// 7
        
'gettingdata' => '#GETTING_DATA'// 8
        
'spill' => '#SPILL!'// 9
        
'connect' => '#CONNECT!'//10
        
'blocked' => '#BLOCKED!'//11
        
'unknown' => '#UNKNOWN!'//12
        
'field' => '#FIELD!'//13
        
'calculation' => '#CALC!'//14
    
];

    
/**
     * List of error codes. Replaced by constant;
     * previously it was public and updateable, allowing
     * user to make inappropriate alterations.
     *
     * @deprecated 1.25.0 Use ERROR_CODES constant instead.
     *
     * @var array<string, string>
     */
    
public static $errorCodes self::ERROR_CODES;

    
/**
     * @param mixed $value
     */
    
public static function throwError($value): string
    
{
        return 
in_array($valueself::ERROR_CODEStrue) ? $value self::ERROR_CODES['value'];
    }

    
/**
     * ERROR_TYPE.
     *
     * @param mixed $value Value to check
     *
     * @return array|int|string
     */
    
public static function type($value '')
    {
        if (
is_array($value)) {
            return 
self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $value);
        }

        
$i 1;
        foreach (
self::ERROR_CODES as $errorCode) {
            if (
$value === $errorCode) {
                return 
$i;
            }
            ++
$i;
        }

        return 
self::NA();
    }

    
/**
     * NULL.
     *
     * Returns the error value #NULL!
     *
     * @return string #NULL!
     */
    
public static function null(): string
    
{
        return 
self::ERROR_CODES['null'];
    }

    
/**
     * NaN.
     *
     * Returns the error value #NUM!
     *
     * @return string #NUM!
     */
    
public static function NAN(): string
    
{
        return 
self::ERROR_CODES['num'];
    }

    
/**
     * REF.
     *
     * Returns the error value #REF!
     *
     * @return string #REF!
     */
    
public static function REF(): string
    
{
        return 
self::ERROR_CODES['reference'];
    }

    
/**
     * NA.
     *
     * Excel Function:
     *        =NA()
     *
     * Returns the error value #N/A
     *        #N/A is the error value that means "no value is available."
     *
     * @return string #N/A!
     */
    
public static function NA(): string
    
{
        return 
self::ERROR_CODES['na'];
    }

    
/**
     * VALUE.
     *
     * Returns the error value #VALUE!
     *
     * @return string #VALUE!
     */
    
public static function VALUE(): string
    
{
        return 
self::ERROR_CODES['value'];
    }

    
/**
     * NAME.
     *
     * Returns the error value #NAME?
     *
     * @return string #NAME?
     */
    
public static function NAME(): string
    
{
        return 
self::ERROR_CODES['name'];
    }

    
/**
     * DIV0.
     *
     * @return string #DIV/0!
     */
    
public static function DIV0(): string
    
{
        return 
self::ERROR_CODES['divisionbyzero'];
    }

    
/**
     * CALC.
     *
     * @return string #CALC!
     */
    
public static function CALC(): string
    
{
        return 
self::ERROR_CODES['calculation'];
    }
}

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