mirror of
https://github.com/vrana/adminer.git
synced 2025-08-11 17:14:07 +02:00
Finish SQLite
Don't require num_rows
This commit is contained in:
@@ -157,10 +157,11 @@ page_header(lang('Export'), "", ($_GET["export"] != "" ? array("table" => $_GET[
|
||||
<?php
|
||||
$db_style = array('', 'USE', 'DROP+CREATE', 'CREATE');
|
||||
$table_style = array('', 'DROP+CREATE', 'CREATE');
|
||||
$data_style = array('', 'TRUNCATE+INSERT', 'INSERT', 'INSERT+UPDATE');
|
||||
$data_style = array('', 'TRUNCATE+INSERT', 'INSERT');
|
||||
if ($jush == "sql") {
|
||||
$db_style[] = 'CREATE+ALTER';
|
||||
$table_style[] = 'CREATE+ALTER';
|
||||
$data_style[] = 'INSERT+UPDATE';
|
||||
}
|
||||
parse_str($_COOKIE["adminer_export"], $row);
|
||||
if (!$row) {
|
||||
@@ -169,10 +170,10 @@ if (!$row) {
|
||||
$checked = ($_GET["dump"] == "");
|
||||
echo "<tr><th>" . lang('Output') . "<td>" . $adminer->dumpOutput(0, $row["output"]) . "\n";
|
||||
echo "<tr><th>" . lang('Format') . "<td>" . $adminer->dumpFormat(0, $row["format"]) . "\n";
|
||||
echo "<tr><th>" . lang('Database') . "<td>" . html_select('db_style', $db_style, $row["db_style"])
|
||||
echo ($jush == "sqlite" ? "" : "<tr><th>" . lang('Database') . "<td>" . html_select('db_style', $db_style, $row["db_style"])
|
||||
. (support("routine") ? checkbox("routines", 1, $checked, lang('Routines')) : "")
|
||||
. (support("event") ? checkbox("events", 1, $checked, lang('Events')) : "")
|
||||
;
|
||||
);
|
||||
echo "<tr><th>" . lang('Tables') . "<td>" . html_select('table_style', $table_style, $row["table_style"])
|
||||
. (support("trigger") ? checkbox("triggers", 1, $row["table_style"], lang('Triggers')) : "")
|
||||
;
|
||||
|
Reference in New Issue
Block a user