diff --git a/content/PHPMC7/setting.html b/content/PHPMC7/setting.html index e080a9a..c0f4a17 100644 --- a/content/PHPMC7/setting.html +++ b/content/PHPMC7/setting.html @@ -102,6 +102,27 @@ } }); } + function saveConfig() { + var htmlobj = $.ajax({ + url: "/?action=saveconfig", + async:true, + timeout:5000, + data: { + SiteName: $("#SiteName").val(), + Description: $("#Description").val(), + Theme: $("#Theme").val() + }, + error: function() { + window.parent.frames.showmsg(htmlobj.responseText); + }, + success: function() { + console.log(htmlobj.responseText); + window.parent.frames.showmsg(htmlobj.responseText); + location = '?page=setting' + return; + } + }); + } window.onload = function() { checkUpdate(); } diff --git a/include/core/PHPMC/Main.php b/include/core/PHPMC/Main.php index 7e7e580..d234c90 100644 --- a/include/core/PHPMC/Main.php +++ b/include/core/PHPMC/Main.php @@ -1,7 +1,7 @@