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

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/home/picotech/domains/smm.picotech.app/public_html/vendor/doctrine/dbal/src/Driver/PgSQL/   drwxr-xr-x
Free 28.53 GB of 117.98 GB (24.18%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace Doctrine\DBAL\Driver\PgSQL;

use 
Doctrine\DBAL\Driver\PgSQL\Exception\UnknownParameter;
use 
Doctrine\DBAL\Driver\Statement as StatementInterface;
use 
Doctrine\DBAL\ParameterType;
use 
Doctrine\Deprecations\Deprecation;
use 
PgSql\Connection as PgSqlConnection;
use 
TypeError;

use function 
assert;
use function 
func_num_args;
use function 
get_class;
use function 
gettype;
use function 
is_int;
use function 
is_object;
use function 
is_resource;
use function 
ksort;
use function 
pg_escape_bytea;
use function 
pg_escape_identifier;
use function 
pg_get_result;
use function 
pg_last_error;
use function 
pg_query;
use function 
pg_result_error;
use function 
pg_send_execute;
use function 
sprintf;
use function 
stream_get_contents;

final class 
Statement implements StatementInterface
{
    
/** @var PgSqlConnection|resource */
    
private $connection;

    private 
string $name;

    
/** @var array<array-key, int> */
    
private array $parameterMap;

    
/** @var array<int, mixed> */
    
private array $parameters = [];

    
/** @psalm-var array<int, int> */
    
private array $parameterTypes = [];

    
/**
     * @param PgSqlConnection|resource $connection
     * @param array<array-key, int>    $parameterMap
     */
    
public function __construct($connectionstring $name, array $parameterMap)
    {
        if (! 
is_resource($connection) && ! $connection instanceof PgSqlConnection) {
            throw new 
TypeError(sprintf(
                
'Expected connection to be a resource or an instance of %s, got %s.',
                
PgSqlConnection::class,
                
is_object($connection) ? get_class($connection) : gettype($connection),
            ));
        }

        
$this->connection   $connection;
        
$this->name         $name;
        
$this->parameterMap $parameterMap;
    }

    public function 
__destruct()
    {
        if (! isset(
$this->connection)) {
            return;
        }

        @
pg_query(
            
$this->connection,
            
'DEALLOCATE ' pg_escape_identifier($this->connection$this->name),
        );
    }

    
/** {@inheritDoc} */
    
public function bindValue($param$value$type ParameterType::STRING): bool
    
{
        if (! isset(
$this->parameterMap[$param])) {
            throw 
UnknownParameter::new((string) $param);
        }

        
$this->parameters[$this->parameterMap[$param]]     = $value;
        
$this->parameterTypes[$this->parameterMap[$param]] = $type;

        return 
true;
    }

    
/** {@inheritDoc} */
    
public function bindParam($param, &$variable$type ParameterType::STRING$length null): bool
    
{
        
Deprecation::trigger(
            
'doctrine/dbal',
            
'https://github.com/doctrine/dbal/pull/5563',
            
'%s is deprecated. Use bindValue() instead.',
            
__METHOD__,
        );

        if (
func_num_args() < 3) {
            
Deprecation::trigger(
                
'doctrine/dbal',
                
'https://github.com/doctrine/dbal/pull/5558',
                
'Not passing $type to Statement::bindParam() is deprecated.'
                
' Pass the type corresponding to the parameter being bound.',
            );
        }

        if (
func_num_args() > 4) {
            
Deprecation::triggerIfCalledFromOutside(
                
'doctrine/dbal',
                
'https://github.com/doctrine/dbal/issues/4533',
                
'The $driverOptions argument of Statement::bindParam() is deprecated.',
            );
        }

        if (! isset(
$this->parameterMap[$param])) {
            throw 
UnknownParameter::new((string) $param);
        }

        
$this->parameters[$this->parameterMap[$param]]     = &$variable;
        
$this->parameterTypes[$this->parameterMap[$param]] = $type;

        return 
true;
    }

    
/** {@inheritDoc} */
    
public function execute($params null): Result
    
{
        if (
$params !== null) {
            
Deprecation::trigger(
                
'doctrine/dbal',
                
'https://github.com/doctrine/dbal/pull/5556',
                
'Passing $params to Statement::execute() is deprecated. Bind parameters using'
                
' Statement::bindParam() or Statement::bindValue() instead.',
            );

            foreach (
$params as $param => $value) {
                if (
is_int($param)) {
                    
$this->bindValue($param 1$valueParameterType::STRING);
                } else {
                    
$this->bindValue($param$valueParameterType::STRING);
                }
            }
        }

        
ksort($this->parameters);

        
$escapedParameters = [];
        foreach (
$this->parameters as $parameter => $value) {
            switch (
$this->parameterTypes[$parameter]) {
                case 
ParameterType::BINARY:
                case 
ParameterType::LARGE_OBJECT:
                    
$escapedParameters[] = $value === null null pg_escape_bytea(
                        
$this->connection,
                        
is_resource($value) ? stream_get_contents($value) : $value,
                    );
                    break;
                default:
                    
$escapedParameters[] = $value;
            }
        }

        if (@
pg_send_execute($this->connection$this->name$escapedParameters) !== true) {
            throw new 
Exception(pg_last_error($this->connection));
        }

        
$result = @pg_get_result($this->connection);
        
assert($result !== false);

        if ((bool) 
pg_result_error($result)) {
            throw 
Exception::fromResult($result);
        }

        return new 
Result($result);
    }
}

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