1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-08 23:57:29 +02:00

Store current version before authentication and in Editor

This commit is contained in:
Jakub Vrana
2018-02-19 23:02:39 +01:00
parent 0e1d8c67fc
commit 059d6266e2
3 changed files with 9 additions and 6 deletions

View 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