12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- function footprint_1606269933(aid, root_dir)
- {
- var users_id = getCookie_1606269933('users_id');
- if (!users_id) {
- return false;
- }
-
-
- var ajax = new XMLHttpRequest();
-
- ajax.open("post", root_dir+'/index.php?m=api&c=Ajax&a=footprint_save', true);
-
- ajax.setRequestHeader("X-Requested-With","XMLHttpRequest");
-
- ajax.setRequestHeader("Content-type","application/x-www-form-urlencoded");
-
- ajax.send('aid='+aid+'&_ajax=1');
-
- ajax.onreadystatechange = function () {
-
- if (ajax.readyState==4 && ajax.status==200) {
- var json = ajax.responseText;
- var res = JSON.parse(json);
- if (1 == res.code) {
-
- }
- }
- }
- }
-
-
- function getCookie_1606269933(c_name)
- {
- if (document.cookie.length>0)
- {
- c_start = document.cookie.indexOf(c_name + "=")
- if (c_start!=-1)
- {
- c_start=c_start + c_name.length+1
- c_end=document.cookie.indexOf(";",c_start)
- if (c_end==-1) c_end=document.cookie.length
- return unescape(document.cookie.substring(c_start,c_end))
- }
- }
- return "";
- }
|