Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

History: edit all

  • Loading branch information...
commit ddaa8947eeecc05f7a8caa5bd9f5514422d91d40 1 parent 02d6b90
@vrana authored
Showing with 6 additions and 0 deletions.
  1. +3 −0  adminer/sql.inc.php
  2. +3 −0  changes.txt
View
3  adminer/sql.inc.php
@@ -145,6 +145,8 @@
$q = $_GET["sql"]; // overwrite $q from if ($_POST) to save memory
if ($_POST) {
$q = $_POST["query"];
+} elseif ($_GET["history"] == "all") {
+ $q = implode(";\n\n\n", $history);
} elseif ($_GET["history"] != "") {
$q = $history[$_GET["history"]];
}
@@ -178,6 +180,7 @@
echo '<a href="' . h(ME . "sql=&history=$key") . '">' . lang('Edit') . "</a> <code class='jush-$jush'>" . shorten_utf8(ltrim(str_replace("\n", " ", str_replace("\r", "", preg_replace('~^(#|-- ).*~m', '', $val)))), 80, "</code>") . "<br>\n";
}
echo "<input type='submit' name='clear' value='" . lang('Clear') . "'>\n";
+ echo "<a href='" . h(ME . "sql=&history=all") . "'>" . lang('Edit') . "</a>\n";
echo "</div></fieldset>\n";
}
?>
View
3  changes.txt
@@ -1,6 +1,9 @@
Adminer 3.2.0-dev:
Get long texts and slow information by AJAX
All links and some forms by AJAX in browsers with support for history.pushState
+History: edit all
+MS SQL: auto primary and foreign key
+SQLite: display 0
Adminer 3.1.0 (released 2010-11-16):
TSV export and import
Please sign in to comment.
Something went wrong with that request. Please try again.