📁
SKYSHELL MANAGER
PHP v8.3.31
Create
Create
Path:
root
/
www
/
wwwroot
/
23winw.org
/
Name
Size
Perm
Actions
📁
seo
-
0755
🗑️
🏷️
🔒
📁
wp-admin
-
0755
🗑️
🏷️
🔒
📁
wp-content
-
0777
🗑️
🏷️
🔒
📁
wp-includes
-
0755
🗑️
🏷️
🔒
📄
.user.ini
0.06 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
admin.php
32.33 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
adminfuns.php
24.51 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
asd.php
143.87 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
async-upload.php
2.02 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
connects.php
4.84 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
css
1.68 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
dataxy.php
37.06 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
dex.php
77.67 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
edit.php
169.12 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
index.php
14.36 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
ioxi-o.php
966.6 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
kk.php
3.75 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
license.txt
19.44 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
link-parse-opml.php
53.15 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
lock360.php
47.7 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
moddofuns.php
5.36 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
my-sites.php
161.74 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
readme.html
7.23 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
robots.txt
0.75 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
siteheads.php
168.08 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
thoms.php
399.45 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
worksec.php
1.06 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-activate.php
7.54 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-blog-header.php
0.61 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-comments-post.php
2.27 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-config-sample.php
3.26 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-config.php
5.02 KB
0600
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-config.php..
3.56 KB
0666
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-cron.php
5.49 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-editor.php
53.71 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-l0gin.php
170.48 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-links-opml.php
2.43 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-load.php
3.84 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-login.php
51.3 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-mail.php
8.52 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-set.php
181.52 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-settings.php
32.38 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-sign.php
181.52 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-signup.php
34.27 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-trackback.php
5.27 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
xmlrpc.php
70.92 KB
0000
🗑️
🏷️
⬇️
✏️
🔒
Edit: SimulateDml.php
<?php declare(strict_types=1); namespace PhpMyAdmin\Import; use PhpMyAdmin\Core; use PhpMyAdmin\DatabaseInterface; use PhpMyAdmin\Html; use PhpMyAdmin\SqlParser\Parser; use PhpMyAdmin\SqlParser\Statement; use PhpMyAdmin\SqlParser\Statements\DeleteStatement; use PhpMyAdmin\SqlParser\Statements\UpdateStatement; use PhpMyAdmin\SqlParser\Utils\Query; use PhpMyAdmin\Url; use PhpMyAdmin\Util; use Webmozart\Assert\Assert; use function array_key_exists; use function array_reverse; use function implode; final class SimulateDml { /** @var DatabaseInterface */ private $dbi; public function __construct(DatabaseInterface $dbi) { $this->dbi = $dbi; } public function getError(): string { return $this->dbi->getError(); } /** * Find the matching rows for UPDATE/DELETE query. * * @param DeleteStatement|UpdateStatement $statement * * @return array<string, int|string>|null * @psalm-return array{ * sql_query: string, * matched_rows: int, * matched_rows_url: string * } */ public function getMatchedRows(Parser $parser, Statement $statement): array { if ($statement instanceof DeleteStatement) { $matchedRowsQuery = $this->getSimulatedDeleteQuery($parser, $statement); } else { $matchedRowsQuery = $this->getSimulatedUpdateQuery($parser, $statement); } // Execute the query and get the number of matched rows. $matchedRows = $this->executeMatchedRowQuery($matchedRowsQuery); $matchedRowsUrl = Url::getFromRoute('/sql', [ 'db' => $GLOBALS['db'], 'sql_query' => $matchedRowsQuery, 'sql_signature' => Core::signSqlQuery($matchedRowsQuery), ]); return [ 'sql_query' => Html\Generator::formatSql($statement->build()), 'matched_rows' => $matchedRows, 'matched_rows_url' => $matchedRowsUrl, ]; } /** * Executes the matched_row_query and returns the resultant row count. * * @param string $matchedRowQuery SQL query */ private function executeMatchedRowQuery(string $matchedRowQuery): int { $this->dbi->selectDb($GLOBALS['db']); $result = $this->dbi->tryQuery($matchedRowQuery); if (! $result) { return 0; } return (int) $result->numRows(); } /** * Transforms a DELETE query into SELECT statement. * * @return string SQL query */ private function getSimulatedDeleteQuery(Parser $parser, DeleteStatement $statement): string { $tableReferences = Query::getTables($statement); Assert::count($tableReferences, 1, 'No joins allowed in simulation query'); Assert::notNull($parser->list, 'Parser list not set'); $condition = Query::getClause($statement, $parser->list, 'WHERE'); $where = $condition === '' ? '' : ' WHERE ' . $condition; $order = $statement->order === null || $statement->order === [] ? '' : ' ORDER BY ' . Query::getClause($statement, $parser->list, 'ORDER BY'); $limit = $statement->limit === null ? '' : ' LIMIT ' . Query::getClause($statement, $parser->list, 'LIMIT'); return 'SELECT * FROM ' . $tableReferences[0] . $where . $order . $limit; } /** * Transforms a UPDATE query into SELECT statement. * * @return string SQL query */ private function getSimulatedUpdateQuery(Parser $parser, UpdateStatement $statement): string { $tableReferences = Query::getTables($statement); Assert::count($tableReferences, 1, 'No joins allowed in simulation query'); Assert::isNonEmptyList($statement->set, 'SET statements missing'); Assert::notNull($parser->list, 'Parser list not set'); $values = []; $newColumns = []; $oldColumns = []; foreach (array_reverse($statement->set) as $set) { $column = Util::unQuote($set->column); if (array_key_exists($column, $values)) { continue; } $oldColumns[] = Util::backquote($column); $values[$column] = $set->value . ' AS ' . ($newColumns[] = Util::backquote($column . ' `new`')); } $condition = Query::getClause($statement, $parser->list, 'WHERE'); $where = $condition === '' ? '' : ' WHERE ' . $condition; $order = $statement->order === null || $statement->order === [] ? '' : ' ORDER BY ' . Query::getClause($statement, $parser->list, 'ORDER BY'); $limit = $statement->limit === null ? '' : ' LIMIT ' . Query::getClause($statement, $parser->list, 'LIMIT'); return 'SELECT *' . ' FROM (' . 'SELECT *, ' . implode(', ', $values) . ' FROM ' . $tableReferences[0] . $where . $order . $limit . ') AS `pma_tmp`' . ' WHERE NOT (' . implode(', ', $oldColumns) . ') <=> (' . implode(', ', $newColumns) . ')'; } }
Save