| Server IP : 104.21.37.246 / Your IP : 104.23.243.33 [ Web Server : Apache System : Linux cpanel01wh.bkk1.cloud.z.com 2.6.32-954.3.5.lve1.4.59.el6.x86_64 #1 SMP Thu Dec 6 05:11:00 EST 2018 x86_64 User : cp648411 ( 1354) PHP Version : 7.2.34 Disable Function : NONE Domains : 0 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/2388322/task/2388322/cwd/webmail/jupiter/js/ |
Upload File : |
/* ***** BEGIN LICENSE BLOCK *****
# cpanel12 - interfacereset.js Copyright(c) 1997-2020 cPanel, L.L.C.
# All rights reserved.
# [email protected] http://cpanel.net
# This code is subject to the cPanel license. Unauthorized copying is prohibited
* ***** END LICENSE BLOCK *****
* ***** BEGIN APPLICABLE CODE BLOCK ***** */
var interfaceConfigs = [];
function register_interfacecfg_nvdata(nvname) {
interfaceConfigs.push(nvname);
}
var reset_all_interface_settings = function(securityToken) {
var sFormData = "names=" + interfaceConfigs.join("|");
for (var i = 0; i < interfaceConfigs.length; i++) {
sFormData += "&" + interfaceConfigs[i] + "=";
NVData[interfaceConfigs[i]] = "";
}
var successFunction = function() {
window.location.reload();
};
var token = securityToken || CPANEL.security_token;
var apiUrl = token + "/frontend/" + window.thisTheme + "/nvset.xml";
fetch(apiUrl, {
method: "POST",
body: sFormData,
})
.then(function(res) {
successFunction();
})
.catch(function(error) {
console.error("Error:", error);
});
};
register_interfacecfg_nvdata("ignorecharencoding");