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


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

namespace PhpOffice\PhpSpreadsheet\Calculation\Engineering;

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

abstract class 
ConvertBase
{
    use 
ArrayEnabled;

    
/** @param mixed $value */
    
protected static function validateValue($value): string
    
{
        if (
is_bool($value)) {
            if (
Functions::getCompatibilityMode() !== Functions::COMPATIBILITY_OPENOFFICE) {
                throw new 
Exception(ExcelError::VALUE());
            }
            
$value = (int) $value;
        }

        if (
is_numeric($value)) {
            if (
Functions::getCompatibilityMode() == Functions::COMPATIBILITY_GNUMERIC) {
                
$value floor((float) $value);
            }
        }

        return 
strtoupper((string) $value);
    }

    
/** @param mixed $places */
    
protected static function validatePlaces($places null): ?int
    
{
        if (
$places === null) {
            return 
$places;
        }

        if (
is_numeric($places)) {
            if (
$places || $places 10) {
                throw new 
Exception(ExcelError::NAN());
            }

            return (int) 
$places;
        }

        throw new 
Exception(ExcelError::VALUE());
    }

    
/**
     * Formats a number base string value with leading zeroes.
     *
     * @param string $value The "number" to pad
     * @param ?int $places The length that we want to pad this value
     *
     * @return string The padded "number"
     */
    
protected static function nbrConversionFormat(string $value, ?int $places): string
    
{
        if (
$places !== null) {
            if (
strlen($value) <= $places) {
                return 
substr(str_pad($value$places'0'STR_PAD_LEFT), -10);
            }

            return 
ExcelError::NAN();
        }

        return 
substr($value, -10);
    }
}

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