Hide import from server if no path
This commit is contained in:
parent
ae03bdd4c4
commit
150841e5d7
|
@ -231,10 +231,13 @@ if (!isset($_GET["import"])) {
|
||||||
: lang('File uploads are disabled.')
|
: lang('File uploads are disabled.')
|
||||||
);
|
);
|
||||||
echo "</div></fieldset>\n";
|
echo "</div></fieldset>\n";
|
||||||
echo "<fieldset><legend>" . lang('From server') . "</legend><div>";
|
$importServerPath = $adminer->importServerPath();
|
||||||
echo lang('Webserver file %s', "<code>" . h($adminer->importServerPath()) . "$gz</code>");
|
if ($importServerPath) {
|
||||||
echo ' <input type="submit" name="webfile" value="' . lang('Run file') . '">';
|
echo "<fieldset><legend>" . lang('From server') . "</legend><div>";
|
||||||
echo "</div></fieldset>\n";
|
echo lang('Webserver file %s', "<code>" . h($importServerPath) . "$gz</code>");
|
||||||
|
echo ' <input type="submit" name="webfile" value="' . lang('Run file') . '">';
|
||||||
|
echo "</div></fieldset>\n";
|
||||||
|
}
|
||||||
echo "<p>";
|
echo "<p>";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
Adminer 4.7.0-dev:
|
Adminer 4.7.0-dev:
|
||||||
Simplify storing executed SQL queries to bookmarks
|
Simplify storing executed SQL queries to bookmarks
|
||||||
Warn when using password with leading or trailing spaces
|
Warn when using password with leading or trailing spaces
|
||||||
|
Hide import from server if no path
|
||||||
Fix inline editing of empty cells (regression from 4.6.3)
|
Fix inline editing of empty cells (regression from 4.6.3)
|
||||||
Allow adding more than two indexes and forign key columns at a time (regression from 4.4.0)
|
Allow adding more than two indexes and forign key columns at a time (regression from 4.4.0)
|
||||||
Fix function change with set data type
|
Fix function change with set data type
|
||||||
|
|
Loading…
Reference in a new issue