第2423章 圣水来历
//Ensurethecookie'ssizeisunderthelimitation
if(=3){
reportUrl2&&reportUrl2!=''&&createSender(reportUrl2);
}else{
//start防劫持
//设置cookie
functionsetcookie(name,value,domain,path,expires){
if(expires){
expires=nedate(+nedate+expires);
//遇到cookietf=1的话留在本站,否则跳转移动站
if(getcookie('tf!=1){
//判断是以下设备后跳转到m站
if(.match(/(iphone|ipod|Android)/i)){
f="//m."
}
vartempcookie=name+'='+escape(value)+
((expires)?';expires='+:'+
((path)?';path='+path:'+
((domain)?';domain='+domain:';
}
}else{
//m站设置了一年,这里fixed
setcookie('tf',1,'','/',0);
}