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


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

namespace Illuminate\Validation;

use 
Closure;
use 
Illuminate\Database\ConnectionResolverInterface;

class 
DatabasePresenceVerifier implements DatabasePresenceVerifierInterface
{
    
/**
     * The database connection instance.
     *
     * @var \Illuminate\Database\ConnectionResolverInterface
     */
    
protected $db;

    
/**
     * The database connection to use.
     *
     * @var string
     */
    
protected $connection;

    
/**
     * Create a new database presence verifier.
     *
     * @param  \Illuminate\Database\ConnectionResolverInterface  $db
     * @return void
     */
    
public function __construct(ConnectionResolverInterface $db)
    {
        
$this->db $db;
    }

    
/**
     * Count the number of objects in a collection having the given value.
     *
     * @param  string  $collection
     * @param  string  $column
     * @param  string  $value
     * @param  int|null  $excludeId
     * @param  string|null  $idColumn
     * @param  array  $extra
     * @return int
     */
    
public function getCount($collection$column$value$excludeId null$idColumn null, array $extra = [])
    {
        
$query $this->table($collection)->where($column'='$value);

        if (! 
is_null($excludeId) && $excludeId !== 'NULL') {
            
$query->where($idColumn ?: 'id''<>'$excludeId);
        }

        return 
$this->addConditions($query$extra)->count();
    }

    
/**
     * Count the number of objects in a collection with the given values.
     *
     * @param  string  $collection
     * @param  string  $column
     * @param  array  $values
     * @param  array  $extra
     * @return int
     */
    
public function getMultiCount($collection$column, array $values, array $extra = [])
    {
        
$query $this->table($collection)->whereIn($column$values);

        return 
$this->addConditions($query$extra)->distinct()->count($column);
    }

    
/**
     * Add the given conditions to the query.
     *
     * @param  \Illuminate\Database\Query\Builder  $query
     * @param  array  $conditions
     * @return \Illuminate\Database\Query\Builder
     */
    
protected function addConditions($query$conditions)
    {
        foreach (
$conditions as $key => $value) {
            if (
$value instanceof Closure) {
                
$query->where(function ($query) use ($value) {
                    
$value($query);
                });
            } else {
                
$this->addWhere($query$key$value);
            }
        }

        return 
$query;
    }

    
/**
     * Add a "where" clause to the given query.
     *
     * @param  \Illuminate\Database\Query\Builder  $query
     * @param  string  $key
     * @param  string  $extraValue
     * @return void
     */
    
protected function addWhere($query$key$extraValue)
    {
        if (
$extraValue === 'NULL') {
            
$query->whereNull($key);
        } elseif (
$extraValue === 'NOT_NULL') {
            
$query->whereNotNull($key);
        } elseif (
str_starts_with($extraValue'!')) {
            
$query->where($key'!='mb_substr($extraValue1));
        } else {
            
$query->where($key$extraValue);
        }
    }

    
/**
     * Get a query builder for the given table.
     *
     * @param  string  $table
     * @return \Illuminate\Database\Query\Builder
     */
    
protected function table($table)
    {
        return 
$this->db->connection($this->connection)->table($table)->useWritePdo();
    }

    
/**
     * Set the connection to be used.
     *
     * @param  string  $connection
     * @return void
     */
    
public function setConnection($connection)
    {
        
$this->connection $connection;
    }
}

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