1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-08 07:36:44 +02:00

Revert "Table-less drivers: Hide Create table link"

This reverts commit 841f76fb00.
This reverts commit 8fed1523ec.
This commit is contained in:
Jakub Vrana
2025-03-18 12:53:40 +01:00
parent 57e6c2651c
commit 336fdaf09c
2 changed files with 2 additions and 2 deletions

View File

@@ -165,7 +165,7 @@ if ($adminer->homepage()) {
echo script("tableCheck();"); echo script("tableCheck();");
} }
echo "<p class='links'>" . (support("table") ? "<a href='" . h(ME) . "create='>" . lang('Create table') . "</a>\n" : ""); echo "<p class='links'><a href='" . h(ME) . "create='>" . lang('Create table') . "</a>\n";
echo (support("view") ? "<a href='" . h(ME) . "view='>" . lang('Create view') . "</a>\n" : ""); echo (support("view") ? "<a href='" . h(ME) . "view='>" . lang('Create view') . "</a>\n" : "");
if (support("routine")) { if (support("routine")) {

View File

@@ -1032,7 +1032,7 @@ class Adminer {
$actions[] = "<a href='" . h(ME) . "dump=" . urlencode(isset($_GET["table"]) ? $_GET["table"] : $_GET["select"]) . "' id='dump'" . bold(isset($_GET["dump"])) . ">" . lang('Export') . "</a>"; $actions[] = "<a href='" . h(ME) . "dump=" . urlencode(isset($_GET["table"]) ? $_GET["table"] : $_GET["select"]) . "' id='dump'" . bold(isset($_GET["dump"])) . ">" . lang('Export') . "</a>";
} }
$in_db = $_GET["ns"] !== "" && !$missing && DB != ""; $in_db = $_GET["ns"] !== "" && !$missing && DB != "";
if ($in_db && support("table")) { if ($in_db) {
$actions[] = '<a href="' . h(ME) . 'create="' . bold($_GET["create"] === "") . ">" . lang('Create table') . "</a>"; $actions[] = '<a href="' . h(ME) . 'create="' . bold($_GET["create"] === "") . ">" . lang('Create table') . "</a>";
} }
echo ($actions ? "<p class='links'>\n" . implode("\n", $actions) . "\n" : ""); echo ($actions ? "<p class='links'>\n" . implode("\n", $actions) . "\n" : "");