!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/main_file/vendor/doctrine/dbal/src/Platforms/Keywords/   drwxr-xr-x
Free 13.1 GB of 57.97 GB (22.6%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace Doctrine\DBAL\Platforms\Keywords;

use 
Doctrine\DBAL\Schema\Column;
use 
Doctrine\DBAL\Schema\ForeignKeyConstraint;
use 
Doctrine\DBAL\Schema\Index;
use 
Doctrine\DBAL\Schema\Schema;
use 
Doctrine\DBAL\Schema\Sequence;
use 
Doctrine\DBAL\Schema\Table;
use 
Doctrine\DBAL\Schema\Visitor\Visitor;
use 
Doctrine\Deprecations\Deprecation;

use function 
count;
use function 
implode;
use function 
str_replace;

/** @deprecated Use database documentation instead. */
class ReservedKeywordsValidator implements Visitor
{
    
/** @var KeywordList[] */
    
private array $keywordLists;

    
/** @var string[] */
    
private array $violations = [];

    
/** @param KeywordList[] $keywordLists */
    
public function __construct(array $keywordLists)
    {
        
Deprecation::triggerIfCalledFromOutside(
            
'doctrine/dbal',
            
'https://github.com/doctrine/dbal/pull/5431',
            
'ReservedKeywordsValidator is deprecated. Use database documentation instead.',
        );

        
$this->keywordLists $keywordLists;
    }

    
/** @return string[] */
    
public function getViolations()
    {
        return 
$this->violations;
    }

    
/**
     * @param string $word
     *
     * @return string[]
     */
    
private function isReservedWord($word): array
    {
        if (
$word[0] === '`') {
            
$word str_replace('`'''$word);
        }

        
$keywordLists = [];
        foreach (
$this->keywordLists as $keywordList) {
            if (! 
$keywordList->isKeyword($word)) {
                continue;
            }

            
$keywordLists[] = $keywordList->getName();
        }

        return 
$keywordLists;
    }

    
/**
     * @param string   $asset
     * @param string[] $violatedPlatforms
     */
    
private function addViolation($asset$violatedPlatforms): void
    
{
        if (
count($violatedPlatforms) === 0) {
            return;
        }

        
$this->violations[] = $asset ' keyword violations: ' implode(', '$violatedPlatforms);
    }

    
/**
     * {@inheritdoc}
     */
    
public function acceptColumn(Table $tableColumn $column)
    {
        
$this->addViolation(
            
'Table ' $table->getName() . ' column ' $column->getName(),
            
$this->isReservedWord($column->getName()),
        );
    }

    
/**
     * {@inheritdoc}
     */
    
public function acceptForeignKey(Table $localTableForeignKeyConstraint $fkConstraint)
    {
    }

    
/**
     * {@inheritdoc}
     */
    
public function acceptIndex(Table $tableIndex $index)
    {
    }

    
/**
     * {@inheritdoc}
     */
    
public function acceptSchema(Schema $schema)
    {
    }

    
/**
     * {@inheritdoc}
     */
    
public function acceptSequence(Sequence $sequence)
    {
    }

    
/**
     * {@inheritdoc}
     */
    
public function acceptTable(Table $table)
    {
        
$this->addViolation(
            
'Table ' $table->getName(),
            
$this->isReservedWord($table->getName()),
        );
    }
}

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