!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/Pipeline/   drwxr-xr-x
Free 116.5 GB of 200.55 GB (58.09%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


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

namespace Illuminate\Pipeline;

use 
Closure;
use 
Illuminate\Contracts\Container\Container;
use 
Illuminate\Contracts\Pipeline\Pipeline as PipelineContract;

class 
Pipeline implements PipelineContract
{
    
/**
     * The container implementation.
     *
     * @var \Illuminate\Contracts\Container\Container
     */
    
protected $container;

    
/**
     * The object being passed through the pipeline.
     *
     * @var mixed
     */
    
protected $passable;

    
/**
     * The array of class pipes.
     *
     * @var array
     */
    
protected $pipes = [];

    
/**
     * The method to call on each pipe.
     *
     * @var string
     */
    
protected $method 'handle';

    
/**
     * Create a new class instance.
     *
     * @param  \Illuminate\Contracts\Container\Container  $container
     * @return void
     */
    
public function __construct(Container $container)
    {
        
$this->container $container;
    }

    
/**
     * Set the object being sent through the pipeline.
     *
     * @param  mixed  $passable
     * @return $this
     */
    
public function send($passable)
    {
        
$this->passable $passable;

        return 
$this;
    }

    
/**
     * Set the array of pipes.
     *
     * @param  array|mixed  $pipes
     * @return $this
     */
    
public function through($pipes)
    {
        
$this->pipes is_array($pipes) ? $pipes func_get_args();

        return 
$this;
    }

    
/**
     * Set the method to call on the pipes.
     *
     * @param  string  $method
     * @return $this
     */
    
public function via($method)
    {
        
$this->method $method;

        return 
$this;
    }

    
/**
     * Run the pipeline with a final destination callback.
     *
     * @param  \Closure  $destination
     * @return mixed
     */
    
public function then(Closure $destination)
    {
        
$firstSlice $this->getInitialSlice($destination);

        
$pipes array_reverse($this->pipes);

        return 
call_user_func(
            
array_reduce($pipes$this->getSlice(), $firstSlice), $this->passable
        
);
    }

    
/**
     * Get a Closure that represents a slice of the application onion.
     *
     * @return \Closure
     */
    
protected function getSlice()
    {
        return function (
$stack$pipe) {
            return function (
$passable) use ($stack$pipe) {
                if (
$pipe instanceof Closure) {
                    
// If the pipe is an instance of a Closure, we will just call it directly but
                    // otherwise we'll resolve the pipes out of the container and call it with
                    // the appropriate method and arguments, returning the results back out.
                    
return call_user_func($pipe$passable$stack);
                } elseif (! 
is_object($pipe)) {
                    list(
$name$parameters) = $this->parsePipeString($pipe);

                    
// If the pipe is a string we will parse the string and resolve the class out
                    // of the dependency injection container. We can then build a callable and
                    // execute the pipe function giving in the parameters that are required.
                    
$pipe $this->container->make($name);

                    
$parameters array_merge([$passable$stack], $parameters);
                } else {
                    
// If the pipe is already an object we'll just make a callable and pass it to
                    // the pipe as-is. There is no need to do any extra parsing and formatting
                    // since the object we're given was already a fully instantiated object.
                    
$parameters = [$passable$stack];
                }

                return 
call_user_func_array([$pipe$this->method], $parameters);
            };
        };
    }

    
/**
     * Get the initial slice to begin the stack call.
     *
     * @param  \Closure  $destination
     * @return \Closure
     */
    
protected function getInitialSlice(Closure $destination)
    {
        return function (
$passable) use ($destination) {
            return 
call_user_func($destination$passable);
        };
    }

    
/**
     * Parse full pipe string to get name and parameters.
     *
     * @param  string $pipe
     * @return array
     */
    
protected function parsePipeString($pipe)
    {
        list(
$name$parameters) = array_pad(explode(':'$pipe2), 2, []);

        if (
is_string($parameters)) {
            
$parameters explode(','$parameters);
        }

        return [
$name$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.0113 ]--