!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/var/www/html/notification/vendor/illuminate/validation/   drwxr-xr-x
Free 13.32 GB of 57.97 GB (22.98%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace Illuminate\Validation;

use 
Exception;
use 
Illuminate\Support\Arr;
use 
Illuminate\Support\Facades\Validator as ValidatorFacade;

class 
ValidationException extends Exception
{
    
/**
     * The validator instance.
     *
     * @var \Illuminate\Contracts\Validation\Validator
     */
    
public $validator;

    
/**
     * The recommended response to send to the client.
     *
     * @var \Symfony\Component\HttpFoundation\Response|null
     */
    
public $response;

    
/**
     * The status code to use for the response.
     *
     * @var int
     */
    
public $status 422;

    
/**
     * The name of the error bag.
     *
     * @var string
     */
    
public $errorBag;

    
/**
     * The path the client should be redirected to.
     *
     * @var string
     */
    
public $redirectTo;

    
/**
     * Create a new exception instance.
     *
     * @param  \Illuminate\Contracts\Validation\Validator  $validator
     * @param  \Symfony\Component\HttpFoundation\Response|null  $response
     * @param  string  $errorBag
     * @return void
     */
    
public function __construct($validator$response null$errorBag 'default')
    {
        
parent::__construct(static::summarize($validator));

        
$this->response $response;
        
$this->errorBag $errorBag;
        
$this->validator $validator;
    }

    
/**
     * Create a new validation exception from a plain array of messages.
     *
     * @param  array  $messages
     * @return static
     */
    
public static function withMessages(array $messages)
    {
        return new static(
tap(ValidatorFacade::make([], []), function ($validator) use ($messages) {
            foreach (
$messages as $key => $value) {
                foreach (
Arr::wrap($value) as $message) {
                    
$validator->errors()->add($key$message);
                }
            }
        }));
    }

    
/**
     * Create an error message summary from the validation errors.
     *
     * @param  \Illuminate\Contracts\Validation\Validator  $validator
     * @return string
     */
    
protected static function summarize($validator)
    {
        
$messages $validator->errors()->all();

        if (! 
count($messages)) {
            return 
'The given data was invalid.';
        }

        
$message array_shift($messages);

        if (
$additional count($messages)) {
            
$pluralized $additional === 'error' 'errors';

            
$message .= " (and {$additional} more {$pluralized})";
        }

        return 
$message;
    }

    
/**
     * Get all of the validation error messages.
     *
     * @return array
     */
    
public function errors()
    {
        return 
$this->validator->errors()->messages();
    }

    
/**
     * Set the HTTP status code to be used for the response.
     *
     * @param  int  $status
     * @return $this
     */
    
public function status($status)
    {
        
$this->status $status;

        return 
$this;
    }

    
/**
     * Set the error bag on the exception.
     *
     * @param  string  $errorBag
     * @return $this
     */
    
public function errorBag($errorBag)
    {
        
$this->errorBag $errorBag;

        return 
$this;
    }

    
/**
     * Set the URL to redirect to on a validation error.
     *
     * @param  string  $url
     * @return $this
     */
    
public function redirectTo($url)
    {
        
$this->redirectTo $url;

        return 
$this;
    }

    
/**
     * Get the underlying response instance.
     *
     * @return \Symfony\Component\HttpFoundation\Response|null
     */
    
public function getResponse()
    {
        return 
$this->response;
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

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

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0217 ]--