!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 12.96 GB of 57.97 GB (22.35%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace Illuminate\Validation;

use 
Illuminate\Support\Fluent;

class 
ConditionalRules
{
    
/**
     * The boolean condition indicating if the rules should be added to the attribute.
     *
     * @var callable|bool
     */
    
protected $condition;

    
/**
     * The rules to be added to the attribute.
     *
     * @var array|string|\Closure
     */
    
protected $rules;

    
/**
     * The rules to be added to the attribute if the condition fails.
     *
     * @var array|string|\Closure
     */
    
protected $defaultRules;

    
/**
     * Create a new conditional rules instance.
     *
     * @param  callable|bool  $condition
     * @param  array|string|\Closure  $rules
     * @param  array|string|\Closure  $defaultRules
     * @return void
     */
    
public function __construct($condition$rules$defaultRules = [])
    {
        
$this->condition $condition;
        
$this->rules $rules;
        
$this->defaultRules $defaultRules;
    }

    
/**
     * Determine if the conditional rules should be added.
     *
     * @param  array  $data
     * @return bool
     */
    
public function passes(array $data = [])
    {
        return 
is_callable($this->condition)
                    ? 
call_user_func($this->condition, new Fluent($data))
                    : 
$this->condition;
    }

    
/**
     * Get the rules.
     *
     * @param  array  $data
     * @return array
     */
    
public function rules(array $data = [])
    {
        return 
is_string($this->rules)
                    ? 
explode('|'$this->rules)
                    : 
value($this->rules, new Fluent($data));
    }

    
/**
     * Get the default rules.
     *
     * @param  array  $data
     * @return array
     */
    
public function defaultRules(array $data = [])
    {
        return 
is_string($this->defaultRules)
                    ? 
explode('|'$this->defaultRules)
                    : 
value($this->defaultRules, new Fluent($data));
    }
}

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