From 621aadecdfba34bf14cf627087497a332773eef6 Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Fri, 22 Oct 2021 13:36:26 +0800 Subject: [PATCH] fix export&import with no localstorage --- common.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/common.php b/common.php index a28c450..2abb476 100644 --- a/common.php +++ b/common.php @@ -1790,7 +1790,6 @@ output:
- @@ -1833,7 +1832,7 @@ output: xhr.onerror = function(e){ alert("Network Error "+xhr.status); } - xhr.send("pass=" + sha1(config_f.pass.value + "" + timestamp) + "&config_b=" + b.value + "×tamp=" + timestamp); + xhr.send("pass=" + sha1(config_f.pass.value + "" + timestamp) + "&config_b=" + b.value + "×tamp=" + timestamp + "&_admin=" + localStorage.getItem("admin")); } function importConfig(b) { if (config_f.pass.value=="") { @@ -1873,7 +1872,7 @@ output: xhr.onerror = function(e){ alert("Network Error "+xhr.status); } - xhr.send("pass=" + sha1(config_f.pass.value + "" + timestamp) + "&config_t=" + encodeURIComponent(config_f.config_t.value) + "&config_b=" + b.value + "×tamp=" + timestamp); + xhr.send("pass=" + sha1(config_f.pass.value + "" + timestamp) + "&config_t=" + encodeURIComponent(config_f.config_t.value) + "&config_b=" + b.value + "×tamp=" + timestamp + "&_admin=" + localStorage.getItem("admin")); } function changePassword(f) { if (f.oldPass.value==""||f.newPass1.value==""||f.newPass2.value=="") {
' . getconstStr('AdminPassword') . ':