]> git.joonet.de Git - adminer.git/commitdiff
Store current version before authentication and in Editor
authorJakub Vrana <jakub@vrana.cz>
Mon, 19 Feb 2018 22:02:39 +0000 (23:02 +0100)
committerJakub Vrana <jakub@vrana.cz>
Mon, 19 Feb 2018 22:02:39 +0000 (23:02 +0100)
adminer/include/bootstrap.inc.php
adminer/script.inc.php
changes.txt

index d3e791aec6cd4888ca79f33d7ccd375947963a1a..af82de6d4a2789b5d4fc1c2020b5bd1cad089dcf 100644 (file)
@@ -25,6 +25,14 @@ if (isset($_GET["file"])) {
 
 include "../adminer/include/functions.inc.php";
 
+if ($_GET["script"] == "version") {
+       $fp = file_open_lock(get_temp_dir() . "/adminer.version");
+       if ($fp) {
+               file_write_unlock($fp, serialize(array("signature" => $_POST["signature"], "version" => $_POST["version"])));
+       }
+       exit;
+}
+
 global $adminer, $connection, $drivers, $edit_functions, $enum_length, $error, $functions, $grouping, $HTTPS, $inout, $jush, $LANG, $langs, $on_actions, $permanent, $structured_types, $has_token, $token, $translations, $types, $unsigned, $VERSION; // allows including Adminer inside a function
 
 if (!$_SERVER["REQUEST_URI"]) { // IIS 5 compatibility
index 51f0534d6d65063eebdc82842d5fb53e96442d2c..d36f03df1b7a9ef213686f4c4bcfebdba04011cd 100644 (file)
@@ -34,12 +34,6 @@ if ($_GET["script"] == "db") {
 } elseif ($_GET["script"] == "kill") {
        $connection->query("KILL " . number($_POST["kill"]));
 
-} elseif ($_GET["script"] == "version") {
-       $fp = file_open_lock(get_temp_dir() . "/adminer.version");
-       if ($fp) {
-               file_write_unlock($fp, serialize(array("signature" => $_POST["signature"], "version" => $_POST["version"])));
-       }
-
 } else { // connect
        foreach (count_tables($adminer->databases()) as $db => $val) {
                json_row("tables-$db", $val);
index ab28273ef38061091061baa99b46c56462df91bf..cfeb061603c3ab5bf5d95c6036897a7bedf28a17 100644 (file)
@@ -2,6 +2,7 @@ Adminer 4.6.2-dev:
 Semi-transparent border on table actions
 Shorten JSON values in select (bug #594)
 Speed up alter table (regression from 4.4.0)
+Store current version before authentication and in Editor
 PostgreSQL: Fix exporting string default values
 PostgreSQL: Fix exporting sequences in PostgreSQL 10
 PostgreSQL: Add IF EXISTS to DROP SEQUENCE in export (bug #595)