!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/gwp.picotech.app/public_html/vendor/laravel/framework/src/Illuminate/Config/   drwxr-xr-x
Free 28.68 GB of 117.98 GB (24.31%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace Illuminate\Config;

use 
ArrayAccess;
use 
Illuminate\Contracts\Config\Repository as ConfigContract;
use 
Illuminate\Support\Arr;
use 
Illuminate\Support\Collection;
use 
Illuminate\Support\Traits\Macroable;
use 
InvalidArgumentException;

class 
Repository implements ArrayAccessConfigContract
{
    use 
Macroable;

    
/**
     * All of the configuration items.
     *
     * @var array<string,mixed>
     */
    
protected $items = [];

    
/**
     * Create a new configuration repository.
     *
     * @param  array  $items
     */
    
public function __construct(array $items = [])
    {
        
$this->items $items;
    }

    
/**
     * Determine if the given configuration value exists.
     *
     * @param  string  $key
     * @return bool
     */
    
public function has($key)
    {
        return 
Arr::has($this->items$key);
    }

    
/**
     * Get the specified configuration value.
     *
     * @param  array|string  $key
     * @param  mixed  $default
     * @return mixed
     */
    
public function get($key$default null)
    {
        if (
is_array($key)) {
            return 
$this->getMany($key);
        }

        return 
Arr::get($this->items$key$default);
    }

    
/**
     * Get many configuration values.
     *
     * @param  array<string|int,mixed>  $keys
     * @return array<string,mixed>
     */
    
public function getMany($keys)
    {
        
$config = [];

        foreach (
$keys as $key => $default) {
            if (
is_numeric($key)) {
                [
$key$default] = [$defaultnull];
            }

            
$config[$key] = Arr::get($this->items$key$default);
        }

        return 
$config;
    }

    
/**
     * Get the specified string configuration value.
     *
     * @param  string  $key
     * @param  (\Closure():(string|null))|string|null  $default
     * @return string
     */
    
public function string(string $key$default null): string
    
{
        
$value $this->get($key$default);

        if (! 
is_string($value)) {
            throw new 
InvalidArgumentException(
                
sprintf('Configuration value for key [%s] must be a string, %s given.'$keygettype($value))
            );
        }

        return 
$value;
    }

    
/**
     * Get the specified integer configuration value.
     *
     * @param  string  $key
     * @param  (\Closure():(int|null))|int|null  $default
     * @return int
     */
    
public function integer(string $key$default null): int
    
{
        
$value $this->get($key$default);

        if (! 
is_int($value)) {
            throw new 
InvalidArgumentException(
                
sprintf('Configuration value for key [%s] must be an integer, %s given.'$keygettype($value))
            );
        }

        return 
$value;
    }

    
/**
     * Get the specified float configuration value.
     *
     * @param  string  $key
     * @param  (\Closure():(float|null))|float|null  $default
     * @return float
     */
    
public function float(string $key$default null): float
    
{
        
$value $this->get($key$default);

        if (! 
is_float($value)) {
            throw new 
InvalidArgumentException(
                
sprintf('Configuration value for key [%s] must be a float, %s given.'$keygettype($value))
            );
        }

        return 
$value;
    }

    
/**
     * Get the specified boolean configuration value.
     *
     * @param  string  $key
     * @param  (\Closure():(bool|null))|bool|null  $default
     * @return bool
     */
    
public function boolean(string $key$default null): bool
    
{
        
$value $this->get($key$default);

        if (! 
is_bool($value)) {
            throw new 
InvalidArgumentException(
                
sprintf('Configuration value for key [%s] must be a boolean, %s given.'$keygettype($value))
            );
        }

        return 
$value;
    }

    
/**
     * Get the specified array configuration value.
     *
     * @param  string  $key
     * @param  (\Closure():(array<array-key, mixed>|null))|array<array-key, mixed>|null  $default
     * @return array<array-key, mixed>
     */
    
public function array(string $key$default null): array
    {
        
$value $this->get($key$default);

        if (! 
is_array($value)) {
            throw new 
InvalidArgumentException(
                
sprintf('Configuration value for key [%s] must be an array, %s given.'$keygettype($value))
            );
        }

        return 
$value;
    }

    
/**
     * Get the specified array configuration value as a collection.
     *
     * @param  string  $key
     * @param  (\Closure():(array<array-key, mixed>|null))|array<array-key, mixed>|null  $default
     * @return Collection<array-key, mixed>
     */
    
public function collection(string $key$default null): Collection
    
{
        return new 
Collection($this->array($key$default));
    }

    
/**
     * Set a given configuration value.
     *
     * @param  array|string  $key
     * @param  mixed  $value
     * @return void
     */
    
public function set($key$value null)
    {
        
$keys is_array($key) ? $key : [$key => $value];

        foreach (
$keys as $key => $value) {
            
Arr::set($this->items$key$value);
        }
    }

    
/**
     * Prepend a value onto an array configuration value.
     *
     * @param  string  $key
     * @param  mixed  $value
     * @return void
     */
    
public function prepend($key$value)
    {
        
$array $this->get($key, []);

        
array_unshift($array$value);

        
$this->set($key$array);
    }

    
/**
     * Push a value onto an array configuration value.
     *
     * @param  string  $key
     * @param  mixed  $value
     * @return void
     */
    
public function push($key$value)
    {
        
$array $this->get($key, []);

        
$array[] = $value;

        
$this->set($key$array);
    }

    
/**
     * Get all of the configuration items for the application.
     *
     * @return array
     */
    
public function all()
    {
        return 
$this->items;
    }

    
/**
     * Determine if the given configuration option exists.
     *
     * @param  string  $key
     * @return bool
     */
    
public function offsetExists($key): bool
    
{
        return 
$this->has($key);
    }

    
/**
     * Get a configuration option.
     *
     * @param  string  $key
     * @return mixed
     */
    
public function offsetGet($key): mixed
    
{
        return 
$this->get($key);
    }

    
/**
     * Set a configuration option.
     *
     * @param  string  $key
     * @param  mixed  $value
     * @return void
     */
    
public function offsetSet($key$value): void
    
{
        
$this->set($key$value);
    }

    
/**
     * Unset a configuration option.
     *
     * @param  string  $key
     * @return void
     */
    
public function offsetUnset($key): void
    
{
        
$this->set($keynull);
    }
}

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