!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)

/uploads/script/vendor/omnipay/common/src/Common/   drwxr-xr-x
Free 13.15 GB of 57.97 GB (22.69%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     ItemBag.php (1.71 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * Cart Item Bag
 */

namespace Omnipay\Common;

/**
 * Cart Item Bag
 *
 * This class defines a bag (multi element set or array) of single cart items
 * in the Omnipay system.
 *
 */
class ItemBag implements \IteratorAggregate\Countable
{
    
/**
     * Item storage
     *
     *
     * @var array
     */
    
protected $items;

    
/**
     * Constructor
     *
     * @param array $items An array of items
     */
    
public function __construct(array $items = array())
    {
        
$this->replace($items);
    }

    
/**
     * Return all the items
     *
     *
     * @return array An array of items
     */
    
public function all()
    {
        return 
$this->items;
    }

    
/**
     * Replace the contents of this bag with the specified items
     *
     *
     * @param array $items An array of items
     */
    
public function replace(array $items = array())
    {
        
$this->items = array();

        foreach (
$items as $item) {
            
$this->add($item);
        }
    }

    
/**
     * Add an item to the bag
     *
     *
     * @param ItemInterface|array $item An existing item, or associative array of item parameters
     */
    
public function add($item)
    {
        if (
$item instanceof ItemInterface) {
            
$this->items[] = $item;
        } else {
            
$this->items[] = new Item($item);
        }
    }

    
/**
     * Returns an iterator for items
     *
     * @return \ArrayIterator An \ArrayIterator instance
     */
    
public function getIterator()
    {
        return new 
\ArrayIterator($this->items);
    }

    
/**
     * Returns the number of items
     *
     * @return int The number of items
     */
    
public function count()
    {
        return 
count($this->items);
    }
}

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