You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
72 KiB

5 years ago
declare(function(){return{name:"CookieSync",namespace:"Cpro.BusinessLogic",sync:function(){var d=using("Cpro.Utility.Cookie");var g=using("Cpro.Utility.Log");var f=d.getCookie("BAIDUID");var e=d.getCookie("CPROID");var j=d.getCookie("ISUS");var h=d.getCookie("ISBID");var k=false;var l=false;var m=(new Date()).getTime();if(!e&&f){var i="http://cpro.baidustatic.com/sync.htm?cproid="+encodeURIComponent(f);g.sendByIframe(i)}if(e&&!j){k=true}else{if(e&&j&&e!==j){k=true}}if(f&&!h){l=true}else{if(f&&h&&f!==h){l=true}}if(k||l){var a=new Date();a.setTime(a.getTime()+86400000);d.setCookie("ISBID",f||"1",{path:"/",expires:a});d.setCookie("ISUS",e||"1",{path:"/",expires:a});if(e&&f){var c=e;var b=e.indexOf(":");if(b&&b>0){c=e.substring(0,b)}g.sendByIframe("http://s.cpro.baidu.com/s.htm?cproid="+c+"&t="+m)}if(e){g.sendByIframe("http://weibo.com/aj/static/sync.html?t="+m);g.sendByIframe("http://pos.baidu.com/sync_pos.htm?cproid="+encodeURIComponent(e)+"&t="+m);var c=e;var b=e.indexOf(":");if(b&&b>0){c=e.substring(0,b)}g.sendByIframe("http://bd.tst.35go.net/bd/t.html?bid="+c+"&t="+m)}}}}});declare(function(){return{name:"AlignEngine",namespace:"Cpro.Template",paint:function(k){var p=k.slotData;var c=k.layoutObj;var g=c.layoutIndex;var j=k.data;var l={image:"image",res:"image",curl:"link"};var b=p.idPrefix||"";if(k.containerVerticalAlign==="center"){var a=document.getElementById(b+"container");if(a){var f=a.offsetWidth;var q=a.offsetHeight;for(var h=0,n=j.length;h<n;h++){var o=document.getElementById(b+"item"+h);if(o){o.style.height=""}}}}for(var h=0,n=j.length;h<n;h++){var o=document.getElementById(b+"item"+h);if(o){var e=o.offsetWidth;var m=o.offsetHeight;if(k.itemTextAlign==="center"){}if(k.itemVerticalAlign==="middle"){o.style.height="";itemNewHeight=o.offsetHeight;var d=m-itemNewHeight;if(d>0){o.style.paddingTop=d/2}c.item}}}}}});declare(function(){return{name:"AntiCheat",namespace:"Cpro.Template",antiCheatArray:[],mouseInClientX:-1,mouseInClientY:-1,mouseInTime:-1,mouseInTimeSpan:-1,mousePressTime:-1,mouseClickClientX:-1,mouseClickClientY:-1,mouseClickCheckNum:-1,mouseOverTimes:-1,bind:function(b,a,c){if(window.addEventListener){b.addEventListener(a,c,false)}else{b.attachEvent("on"+a,c)}},formatEventObj:function(a){a=a||window.event;a.target=a.target||a.srcElement;return a},mouseInHandler:function(a){if(this.mouseInClientX===-1){this.mouseInClientX=a.clientX}if(this.mouseInClientY===-1){this.mouseInClientY=a.clientY}},mouseInTimeHandler:function(a){if(this.mouseInTime===-1){this.mouseInTime=(new Date()).getTime()}this.mouseInTimeSpan=(new Date()).getTime()-this.mouseInTime},mousePressTimeHandler:function(a){if(a.type==="mousedown"){this.mousePressTime=(new Date()).getTime()}else{this.mousePressTime=(new Date()).getTime()-this.mousePressTime}},mouseClickHandler:function(l){l=this.formatEventObj(l);var h=l.target;if(h.tagName.toLowerCase()!=="a"){h=h.parentNode}this.mouseClickClientX=l.clientX;this.mouseClickClientY=l.clientY;this.mouseInTimeHandler();this.mouseClickCheckNum=0;var o=false;var g=h.href;var f=/(?:\?|&)q=(.*?)(?=\&|$)/i;if(h.href.indexOf("google.com")>0){o=true;var c=g.match(f)[1];h.href=decodeURIComponent(c)}var b=/\.php\?(url=)?([0-9a-zA-Z_-]*)\./.exec(h.href);var q=b[2];var a=/.*(\d+)/.exec(h.id);var d=a[1];var m=this.antiCheatArray[d];for(var k=0;k<(((this.mouseOverTimes*m)%99)+9);k++){var n=(this.mousePressTime*k)%q.length;this.mouseClickCheckNum+=q.charCodeAt(n)}var j=h.innerHTML;if(h.href.indexOf("&ck")==-1){h.href+="&ck="+this.mouseClickCheckNum+"."+this.mouseOverTimes+"."+this.mousePressTime+"."+this.mouseClickClientX+"."+this.mouseClickClientY+"."+this.mouseInClientX+"."+this.mouseInClientY+"."+this.mouseInTimeSpan}if((j.match(/(www\.)|(.*@.*)/i)!=null)&&document.all){j.match(/\<.*\>/i)==null?h.innerHTML=j:h.innerTEXT=j}if(o){h.href=g.replace(f,"&q="+encodeURIComponent(h.href))}},mouseOverHandler:function(a){if(this.mouseOverTimes===-1){this.mouseOverTimes=0}this.mouseOverTimes++},check:function(b,d){this.antiCheatArray=d||window.antiCheatArray;var a=document.getElementById(b);var f=a.getElementsByTagName("a