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


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

namespace Illuminate\Validation\Rules;

use 
Closure;
use 
Illuminate\Contracts\Support\Arrayable;
use 
Illuminate\Database\Eloquent\Model;

trait 
DatabaseRule
{
    
/**
     * The table to run the query against.
     *
     * @var string
     */
    
protected $table;

    
/**
     * The column to check on.
     *
     * @var string
     */
    
protected $column;

    
/**
     * The extra where clauses for the query.
     *
     * @var array
     */
    
protected $wheres = [];

    
/**
     * The array of custom query callbacks.
     *
     * @var array
     */
    
protected $using = [];

    
/**
     * Create a new rule instance.
     *
     * @param  string  $table
     * @param  string  $column
     * @return void
     */
    
public function __construct($table$column 'NULL')
    {
        
$this->column $column;

        
$this->table $this->resolveTableName($table);
    }

    
/**
     * Resolves the name of the table from the given string.
     *
     * @param  string  $table
     * @return string
     */
    
public function resolveTableName($table)
    {
        if (! 
str_contains($table'\\') || ! class_exists($table)) {
            return 
$table;
        }

        if (
is_subclass_of($tableModel::class)) {
            
$model = new $table;

            if (
str_contains($model->getTable(), '.')) {
                return 
$table;
            }

            return 
implode('.'array_map(function (string $part) {
                return 
trim($part'.');
            }, 
array_filter([$model->getConnectionName(), $model->getTable()])));
        }

        return 
$table;
    }

    
/**
     * Set a "where" constraint on the query.
     *
     * @param  \Closure|string  $column
     * @param  \Illuminate\Contracts\Support\Arrayable|array|string|int|null  $value
     * @return $this
     */
    
public function where($column$value null)
    {
        if (
$value instanceof Arrayable || is_array($value)) {
            return 
$this->whereIn($column$value);
        }

        if (
$column instanceof Closure) {
            return 
$this->using($column);
        }

        if (
is_null($value)) {
            return 
$this->whereNull($column);
        }

        
$this->wheres[] = compact('column''value');

        return 
$this;
    }

    
/**
     * Set a "where not" constraint on the query.
     *
     * @param  string  $column
     * @param  \Illuminate\Contracts\Support\Arrayable|array|string  $value
     * @return $this
     */
    
public function whereNot($column$value)
    {
        if (
$value instanceof Arrayable || is_array($value)) {
            return 
$this->whereNotIn($column$value);
        }

        return 
$this->where($column'!'.$value);
    }

    
/**
     * Set a "where null" constraint on the query.
     *
     * @param  string  $column
     * @return $this
     */
    
public function whereNull($column)
    {
        return 
$this->where($column'NULL');
    }

    
/**
     * Set a "where not null" constraint on the query.
     *
     * @param  string  $column
     * @return $this
     */
    
public function whereNotNull($column)
    {
        return 
$this->where($column'NOT_NULL');
    }

    
/**
     * Set a "where in" constraint on the query.
     *
     * @param  string  $column
     * @param  \Illuminate\Contracts\Support\Arrayable|array  $values
     * @return $this
     */
    
public function whereIn($column$values)
    {
        return 
$this->where(function ($query) use ($column$values) {
            
$query->whereIn($column$values);
        });
    }

    
/**
     * Set a "where not in" constraint on the query.
     *
     * @param  string  $column
     * @param  \Illuminate\Contracts\Support\Arrayable|array  $values
     * @return $this
     */
    
public function whereNotIn($column$values)
    {
        return 
$this->where(function ($query) use ($column$values) {
            
$query->whereNotIn($column$values);
        });
    }

    
/**
     * Register a custom query callback.
     *
     * @param  \Closure  $callback
     * @return $this
     */
    
public function using(Closure $callback)
    {
        
$this->using[] = $callback;

        return 
$this;
    }

    
/**
     * Get the custom query callbacks for the rule.
     *
     * @return array
     */
    
public function queryCallbacks()
    {
        return 
$this->using;
    }

    
/**
     * Format the where clauses.
     *
     * @return string
     */
    
protected function formatWheres()
    {
        return 
collect($this->wheres)->map(function ($where) {
            return 
$where['column'].','.'"'.str_replace('"''""'$where['value']).'"';
        })->
implode(',');
    }
}

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