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


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

namespace PhpOffice\PhpSpreadsheet\Calculation;

use 
PhpOffice\PhpSpreadsheet\Calculation\Engine\ArrayArgumentHelper;
use 
PhpOffice\PhpSpreadsheet\Calculation\Engine\ArrayArgumentProcessor;

trait 
ArrayEnabled
{
    
/**
     * @var ArrayArgumentHelper
     */
    
private static $arrayArgumentHelper;

    
/**
     * @param array|false $arguments Can be changed to array for Php8.1+
     */
    
private static function initialiseHelper($arguments): void
    
{
        if (
self::$arrayArgumentHelper === null) {
            
self::$arrayArgumentHelper = new ArrayArgumentHelper();
        }
        
self::$arrayArgumentHelper->initialise(($arguments === false) ? [] : $arguments);
    }

    
/**
     * Handles array argument processing when the function accepts a single argument that can be an array argument.
     * Example use for:
     *         DAYOFMONTH() or FACT().
     */
    
protected static function evaluateSingleArgumentArray(callable $method, array $values): array
    {
        
$result = [];
        foreach (
$values as $value) {
            
$result[] = $method($value);
        }

        return 
$result;
    }

    
/**
     * Handles array argument processing when the function accepts multiple arguments,
     *     and any of them can be an array argument.
     * Example use for:
     *         ROUND() or DATE().
     *
     * @param mixed ...$arguments
     */
    
protected static function evaluateArrayArguments(callable $method, ...$arguments): array
    {
        
self::initialiseHelper($arguments);
        
$arguments self::$arrayArgumentHelper->arguments();

        return 
ArrayArgumentProcessor::processArguments(self::$arrayArgumentHelper$method, ...$arguments);
    }

    
/**
     * Handles array argument processing when the function accepts multiple arguments,
     *     but only the first few (up to limit) can be an array arguments.
     * Example use for:
     *         NETWORKDAYS() or CONCATENATE(), where the last argument is a matrix (or a series of values) that need
     *                                         to be treated as a such rather than as an array arguments.
     *
     * @param mixed ...$arguments
     */
    
protected static function evaluateArrayArgumentsSubset(callable $methodint $limit, ...$arguments): array
    {
        
self::initialiseHelper(array_slice($arguments0$limit));
        
$trailingArguments array_slice($arguments$limit);
        
$arguments self::$arrayArgumentHelper->arguments();
        
$arguments array_merge($arguments$trailingArguments);

        return 
ArrayArgumentProcessor::processArguments(self::$arrayArgumentHelper$method, ...$arguments);
    }

    
/**
     * @param mixed $value
     */
    
private static function testFalse($value): bool
    
{
        return 
$value === false;
    }

    
/**
     * Handles array argument processing when the function accepts multiple arguments,
     *     but only the last few (from start) can be an array arguments.
     * Example use for:
     *         Z.TEST() or INDEX(), where the first argument 1 is a matrix that needs to be treated as a dataset
     *                   rather than as an array argument.
     *
     * @param mixed ...$arguments
     */
    
protected static function evaluateArrayArgumentsSubsetFrom(callable $methodint $start, ...$arguments): array
    {
        
$arrayArgumentsSubset array_combine(
            
range($startcount($arguments) - $start),
            
array_slice($arguments$start)
        );
        if (
self::testFalse($arrayArgumentsSubset)) {
            return [
'#VALUE!'];
        }

        
self::initialiseHelper($arrayArgumentsSubset);
        
$leadingArguments array_slice($arguments0$start);
        
$arguments self::$arrayArgumentHelper->arguments();
        
$arguments array_merge($leadingArguments$arguments);

        return 
ArrayArgumentProcessor::processArguments(self::$arrayArgumentHelper$method, ...$arguments);
    }

    
/**
     * Handles array argument processing when the function accepts multiple arguments,
     *     and any of them can be an array argument except for the one specified by ignore.
     * Example use for:
     *         HLOOKUP() and VLOOKUP(), where argument 1 is a matrix that needs to be treated as a database
     *                                  rather than as an array argument.
     *
     * @param mixed ...$arguments
     */
    
protected static function evaluateArrayArgumentsIgnore(callable $methodint $ignore, ...$arguments): array
    {
        
$leadingArguments array_slice($arguments0$ignore);
        
$ignoreArgument array_slice($arguments$ignore1);
        
$trailingArguments array_slice($arguments$ignore 1);

        
self::initialiseHelper(array_merge($leadingArguments, [[null]], $trailingArguments));
        
$arguments self::$arrayArgumentHelper->arguments();

        
array_splice($arguments$ignore1$ignoreArgument);

        return 
ArrayArgumentProcessor::processArguments(self::$arrayArgumentHelper$method, ...$arguments);
    }
}

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