1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-19 12:51:27 +02:00

Split SQL command and import

This commit is contained in:
Jakub Vrana
2013-08-02 11:45:55 -07:00
parent 5e2afaba9f
commit 507b224c95
4 changed files with 43 additions and 34 deletions

View File

@@ -769,7 +769,7 @@ username.form['auth[driver]'].onchange();
} else {
$this->databasesPrint($missing);
if (DB == "" || !$missing) {
echo "<p class='links'>" . (support("sql") ? "<a href='" . h(ME) . "sql='" . bold(isset($_GET["sql"])) . " title='" . lang('Import') . "'>" . lang('SQL command') . "</a>\n" : "") . "";
echo "<p class='links'>" . (support("sql") ? "<a href='" . h(ME) . "sql='" . bold(isset($_GET["sql"]) && !isset($_GET["import"])) . ">" . lang('SQL command') . "</a>\n<a href='" . h(ME) . "import='" . bold(isset($_GET["import"])) . ">" . lang('Import') . "</a>\n" : "") . "";
if (support("dump")) {
echo "<a href='" . h(ME) . "dump=" . urlencode(isset($_GET["table"]) ? $_GET["table"] : $_GET["select"]) . "' id='dump'" . bold(isset($_GET["dump"])) . ">" . lang('Dump') . "</a>\n";
}