Linux cesa-www-main 6.1.0-49-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64
Apache/2.4.68 (Debian)
Server IP : 10.218.0.2 & Your IP : 216.73.217.117
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
share /
php /
PhpMyAdmin /
SqlParser /
Statements /
Delete
Unzip
Name
Size
Permission
Date
Action
AlterStatement.php
3.96
KB
-rw-r--r--
2023-01-25 10:43
AnalyzeStatement.php
744
B
-rw-r--r--
2023-01-25 10:43
BackupStatement.php
631
B
-rw-r--r--
2023-01-25 10:43
CallStatement.php
716
B
-rw-r--r--
2023-01-25 10:43
CheckStatement.php
632
B
-rw-r--r--
2023-01-25 10:43
ChecksumStatement.php
553
B
-rw-r--r--
2023-01-25 10:43
CreateStatement.php
24.01
KB
-rw-r--r--
2023-01-25 10:43
DeleteStatement.php
11.19
KB
-rw-r--r--
2023-01-25 10:43
DropStatement.php
1.61
KB
-rw-r--r--
2023-01-25 10:43
ExplainStatement.php
6.31
KB
-rw-r--r--
2023-01-25 10:43
InsertStatement.php
7.2
KB
-rw-r--r--
2023-01-25 10:43
LoadStatement.php
11.05
KB
-rw-r--r--
2023-01-25 10:43
LockStatement.php
3.36
KB
-rw-r--r--
2023-01-25 10:43
MaintenanceStatement.php
1.47
KB
-rw-r--r--
2023-01-25 10:43
NotImplementedStatement.php
1.3
KB
-rw-r--r--
2023-01-25 10:43
OptimizeStatement.php
748
B
-rw-r--r--
2023-01-25 10:43
PurgeStatement.php
3.74
KB
-rw-r--r--
2023-01-25 10:43
RenameStatement.php
1.36
KB
-rw-r--r--
2023-01-25 10:43
RepairStatement.php
674
B
-rw-r--r--
2023-01-25 10:43
ReplaceStatement.php
4.97
KB
-rw-r--r--
2023-01-25 10:43
RestoreStatement.php
580
B
-rw-r--r--
2023-01-25 10:43
SelectStatement.php
7.83
KB
-rw-r--r--
2023-01-25 10:43
SetStatement.php
2.36
KB
-rw-r--r--
2023-01-25 10:43
ShowStatement.php
1.35
KB
-rw-r--r--
2023-01-25 10:43
TransactionStatement.php
2.39
KB
-rw-r--r--
2023-01-25 10:43
TruncateStatement.php
854
B
-rw-r--r--
2023-01-25 10:43
UpdateStatement.php
2.5
KB
-rw-r--r--
2023-01-25 10:43
WithStatement.php
11.07
KB
-rw-r--r--
2023-01-25 10:43
Save
Rename
<?php declare(strict_types=1); namespace PhpMyAdmin\SqlParser\Statements; use PhpMyAdmin\SqlParser\Components\LockExpression; use PhpMyAdmin\SqlParser\Parser; use PhpMyAdmin\SqlParser\Statement; use PhpMyAdmin\SqlParser\Token; use PhpMyAdmin\SqlParser\TokensList; use function trim; /** * `LOCK` statement. */ class LockStatement extends Statement { /** * Tables with their Lock expressions. * * @var LockExpression[] */ public $locked = []; /** * Whether it's a LOCK statement * if false, it's an UNLOCK statement * * @var bool */ public $isLock = true; /** * @param Parser $parser the instance that requests parsing * @param TokensList $list the list of tokens to be parsed */ public function parse(Parser $parser, TokensList $list) { if ($list->tokens[$list->idx]->value === 'UNLOCK') { // this is in fact an UNLOCK statement $this->isLock = false; } ++$list->idx; // Skipping `LOCK`. /** * The state of the parser. * * Below are the states of the parser. * * 0 ---------------- [ TABLES ] -----------------> 1 * 1 -------------- [ lock_expr ] ----------------> 2 * 2 ------------------ [ , ] --------------------> 1 * * @var int */ $state = 0; /** * Previous parsed token */ $prevToken = null; for (; $list->idx < $list->count; ++$list->idx) { /** * Token parsed at this moment. */ $token = $list->tokens[$list->idx]; // End of statement. if ($token->type === Token::TYPE_DELIMITER) { break; } // Skipping whitespaces and comments. if (($token->type === Token::TYPE_WHITESPACE) || ($token->type === Token::TYPE_COMMENT)) { continue; } if ($state === 0) { if ($token->type === Token::TYPE_KEYWORD) { if ($token->keyword !== 'TABLES') { $parser->error('Unexpected keyword.', $token); break; } $state = 1; continue; } $parser->error('Unexpected token.', $token); break; } if ($state === 1) { if (! $this->isLock) { // UNLOCK statement should not have any more tokens $parser->error('Unexpected token.', $token); break; } $this->locked[] = LockExpression::parse($parser, $list); $state = 2; } elseif ($state === 2) { if ($token->value === ',') { // move over to parsing next lock expression $state = 1; } } $prevToken = $token; } if ($state === 2 || $prevToken === null) { return; } $parser->error('Unexpected end of LOCK statement.', $prevToken); } /** * @return string */ public function build() { return trim(($this->isLock ? 'LOCK' : 'UNLOCK') . ' TABLES ' . LockExpression::build($this->locked)); } }