!C99Shell v. 2.1 [PHP 8 Update] [02.02.2022]!

Software: Apache/2.4.53 (Unix) OpenSSL/1.1.1o PHP/7.4.29 mod_perl/2.0.12 Perl/v5.34.1. PHP/7.4.29 

uname -a: Linux vps-2738122-x 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64 

uid=1(daemon) gid=1(daemon) grupos=1(daemon) 

Safe-mode: OFF (not secure)

/opt/apex_led/php/vendor/siu-toba/rest/src/SIUToba/rest/lib/   drwxrwxr-x
Free 15.58 GB of 61.93 GB (25.16%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     Set.php (4.89 KB)      -rwxrwxr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * Slim - a micro PHP 5 framework.
 *
 * @author      Josh Lockhart <info@slimframework.com>
 * @copyright   2011 Josh Lockhart
 *
 * @link        http://www.slimframework.com
 *
 * @license     http://www.slimframework.com/license
 *
 * @version     2.4.0
 */

namespace SIUToba\rest\lib;

class 
Set implements \ArrayAccess, \Countable, \IteratorAggregate
{
    
/**
     * Key-value array of arbitrary data.
     *
     * @var array
     */
    
protected $data = array();

    
/**
     * Constructor.
     *
     * @param array $items Pre-populate set with this key-value array
     */
    
public function __construct($items = array())
    {
        
$this->replace($items);
    }

    
/**
     * Normalize data key.
     *
     * Used to transform data key into the necessary
     * key format for this set. Used in subclasses
     * like \Slim\Http\Headers.
     *
     * @param string $key The data key
     *
     * @return mixed The transformed/normalized data key
     */
    
protected function normalizeKey($key)
    {
        return 
$key;
    }

    
/**
     * Set data key to value.
     *
     * @param string $key   The data key
     * @param mixed  $value The data value
     */
    
public function set($key$value)
    {
        
$this->data[$this->normalizeKey($key)] = $value;
    }

    
/**
     * Get data value with key.
     *
     * @param string $key     The data key
     * @param mixed  $default The value to return if data key does not exist
     *
     * @return mixed The data value, or the default value
     */
    
public function get($key$default null)
    {
        if (
$this->has($key)) {
            
$isInvokable is_object($this->data[$this->normalizeKey($key)]) && method_exists($this->data[$this->normalizeKey($key)], '__invoke');

            return 
$isInvokable $this->data[$this->normalizeKey($key)]($this) : $this->data[$this->normalizeKey($key)];
        }

        return 
$default;
    }

    
/**
     * Add data to set.
     *
     * @param array $items Key-value array of data to append to this set
     */
    
public function replace($items)
    {
        foreach (
$items as $key => $value) {
            
$this->set($key$value); // Ensure keys are normalized
        
}
    }

    
/**
     * Fetch set data.
     *
     * @return array This set's key-value data array
     */
    
public function all()
    {
        return 
$this->data;
    }

    
/**
     * Fetch set data keys.
     *
     * @return array This set's key-value data array keys
     */
    
public function keys()
    {
        return 
array_keys($this->data);
    }

    
/**
     * Does this set contain a key?
     *
     * @param string $key The data key
     *
     * @return boolean
     */
    
public function has($key)
    {
        return 
array_key_exists($this->normalizeKey($key), $this->data);
    }

    
/**
     * Remove value with key from this set.
     *
     * @param string $key The data key
     */
    
public function remove($key)
    {
        unset(
$this->data[$this->normalizeKey($key)]);
    }

    
/**
     * Property Overloading.
     */
    
public function __get($key)
    {
        return 
$this->get($key);
    }

    public function 
__set($key$value)
    {
        
$this->set($key$value);
    }

    public function 
__isset($key)
    {
        return 
$this->has($key);
    }

    public function 
__unset($key)
    {
        return 
$this->remove($key);
    }

    
/**
     * Clear all values.
     */
    
public function clear()
    {
        
$this->data = array();
    }

    
/**
     * Array Access.
     */
    
public function offsetExists($offset)
    {
        return 
$this->has($offset);
    }

    public function 
offsetGet($offset)
    {
        return 
$this->get($offset);
    }

    public function 
offsetSet($offset$value)
    {
        
$this->set($offset$value);
    }

    public function 
offsetUnset($offset)
    {
        
$this->remove($offset);
    }

    
/**
     * Countable.
     */
    
public function count()
    {
        return 
count($this->data);
    }

    
/**
     * IteratorAggregate.
     */
    
public function getIterator()
    {
        return new \
ArrayIterator($this->data);
    }

    
/**
     * Ensure a value or object will remain globally unique.
     *
     * @param string $key The value or object name
     * @param  Closure        The closure that defines the object
     *
     * @return mixed
     */
    
public function singleton($key$value)
    {
        
$this->set($key, function ($c) use ($value) {
            static 
$object;

            if (
null === $object) {
                
$object $value($c);
            }

            return 
$object;
        });
    }

    
/**
     * Protect closure from being directly invoked.
     *
     * @param Closure $callable A closure to keep from being invoked and evaluated
     *
     * @return Closure
     */
    
public function protect(\Closure $callable)
    {
        return function () use (
$callable) {
            return 
$callable;
        };
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

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

--[ c99shell v. 2.1 [PHP 8 Update] [02.02.2022] maintained byC99Shell Github | Generation time: 0.2836 ]--