Files
Testing/js/ctp.js
sean 0e8a8b3028
Some checks are pending
deploy-testing / deploy (push) Waiting to run
Initial testing snapshot
2026-11-17 16:15:01 -05:00

66 lines
1.1 KiB
JavaScript

var hc_picid="";
function ctpinfo(thepid)
{
if(typeof thepid== 'undefined') {thepid = '';}
doc="/include/analytics/ctp_info.php";
hc_picid=thepid;
jQuery.ajax({
url: doc,
type: 'POST',
cache: false,
data:{thepid:thepid,theuid:userid,uphoto:userphoto},
success: function(data,resp) {
if(!data.error)
{
if(data.somestuff != "")
{
jQuery('#somestuff').html(data.somestuff);
jQuery('#somestuff').css('display','block');
}
}
},
error: function(resp, textStatus, errorThrown) {
alert(resp.responseText);
}
});
}
function ctp_active(val,blogid)
{
isactive=jQuery('#ctp_active').is(':checked');
theid=val;
doc="/include/analytics/ctp_update_active.php";
jQuery.ajax({
url: doc,
type: 'POST',
cache: false,
data:{isactive:isactive,theid:theid,blogid:blogid},
success: function(data,resp) {
if(!data.error)
{
}
else
{
alert(data.error);
}
},
error: function(resp, textStatus, errorThrown) {
alert(resp.responseText);
}
});
}