diff --git a/res/forum/admin/admin.html b/res/forum/admin/admin.html index 3eb2cdf..ceea4fe 100644 --- a/res/forum/admin/admin.html +++ b/res/forum/admin/admin.html @@ -4,7 +4,7 @@
- +
@@ -68,6 +68,24 @@ }); } + function update_user() + { + $.ajax + ({ + url: "./res/forum/api/update_user.php" + + "?old_username=" + username + + "&username=" + document.getElementById("username").value + + "&nickname=" + document.getElementById("nickname").value + + "&admin=" + document.getElementById("admin").value + + "&sex=" + document.getElementById("sex").value + + "&bio=" + document.getElementById("bio").value, + success: function(result) + { + show("admin"); + } + }); + } + function selection(type, value) { return new Promise(function(resolve)