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

Verify if adminer.version was created on www.adminer.org

This commit is contained in:
Jakub Vrana
2018-01-24 15:10:44 +01:00
parent 6c96b060e7
commit 8b29ae910f
3 changed files with 17 additions and 4 deletions

View File

@@ -37,7 +37,7 @@ if ($_GET["script"] == "db") {
} elseif ($_GET["script"] == "version") {
$fp = file_open_lock(get_temp_dir() . "/adminer.version");
if ($fp) {
file_write_unlock($fp, $_POST["version"]);
file_write_unlock($fp, serialize(array("signature" => $_POST["signature"], "version" => $_POST["version"])));
}
} else { // connect