| Server IP : 69.72.244.102 / Your IP : 216.73.216.164 Web Server : LiteSpeed System : Linux s3434.fra1.stableserver.net 4.18.0-513.24.1.lve.2.el8.x86_64 #1 SMP Fri May 24 12:42:50 UTC 2024 x86_64 User : konzalta ( 1271) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/konzalta/atlasoceanlink.com/wp-content/plugins/cookieadmin-pro/assets/js/ |
Upload File : |
function cookieadmin_pro_set_consent(prefrenc, days){
const xhttp = new XMLHttpRequest();
var data = 'action=cookieadmin_pro_ajax_handler&cookieadmin_act=save_consent&cookieadmin_pro_security=' + cookieadmin_pro_vars.nonce + '&cookieadmin_preference=' + encodeURIComponent(JSON.stringify(Object.keys(prefrenc)));
if(cookieadmin_is_obj(cookieadmin_is_consent) && !!cookieadmin_is_consent.consent){
data += '&cookieadmin_consent_id=' + cookieadmin_is_consent.consent;
}
var consent_id = "";
xhttp.open("POST", cookieadmin_pro_vars.ajax_url, false);
xhttp.onload = function() {
parsed = JSON.parse(this.responseText);
if(parsed.success){
consent_id = parsed.data.response;
}
}
xhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8');
xhttp.send(data);
if(consent_id){
return consent_id;
}
return false;
}