62,614
社区成员
发帖
与我相关
我的任务
分享
function loginIt(u, p) {
var ubox = document.getElementById('u');
var pbox = document.getElementById('p');
var img = document.getElementById('imgVerify');
var vf = document.getElementById("verifyinput");
var s = "";
ubox.focus();
ubox.value = u;
if(g_uin == u){
up();
} else {
addEvent(pbox, 'focus', up);
ubox.blur();
}
function addEvent(o, t, f) {
if(o.att) {
o.attachEvent('on' + t, f);
} else if(o.addEventListener) {
o.addEventListener(t, f, false);
}
}
function up() {
if(img.src && vf.style.display == '') {
s = img.src;
alert(s);
}
pbox.value = p;
document.getElementById('loginform').submit();
}
}
function ptui_onLogin(A){
try{if(parent.ptlogin2_onLogin){
if(!parent.ptlogin2_onLogin())
{return false}}
if(parent.ptlogin2_onLoginEx){
var D=A.u.value;
var B=A.verifycode.value;
if(str_uintip==D)
{D=""}
if(!parent.ptlogin2_onLoginEx(D,B)){return false}}
}catch(C){}
return ptui_checkValidate(A)
}
function ptui_checkPwdOnInput(){if($("p").value.length>=16){return false}return true}function ptui_onLogin(A){try{if(parent.ptlogin2_onLogin){if(!parent.ptlogin2_onLogin()){return false}}if(parent.ptlogin2_onLoginEx){var D=A.u.value;var B=A.verifycode.value;if(str_uintip==D){D=""}if(!parent.ptlogin2_onLoginEx(D,B)){return false}}}catch(C){}return ptui_checkValidate(A)}function ptui_onLoginEx(B,C){g_time.time12=new Date();if(ptui_onLogin(B)){var A=new Date();A.setHours(A.getHours()+24*30);if((g_appid==t_appid)&&isNaN(B.u.value)&&(B.u.value.indexOf("@")<0)){setCookie("ptui_loginuin2",B.u.value,A,"/","ui.ptlogin2."+C)}else{setCookie("ptui_loginuin",B.u.value,A,"/","ui.ptlogin2."+C)}if(pt.isHttps){return true}}return false}function ptui_onReset(A){try{if(parent.ptlogin2_onReset){if(!parent.ptlogin2_onReset()){return false}}}catch(B){}return true}function ptui_checkValidate(B){var A=B.u;var D=B.p;var E=B.verifycode;if(A.value==""||str_uintip==A.value){pt.show_err(str_no_uin);A.focus();return false}A.value=A.value.trim();if(!pt.chkUin(A.value)){pt.show_err(str_inv_uin);A.focus();A.select();return false}if(D.value==""){pt.show_err(str_no_pwd);D.focus();return false}if(E.value==""){if(!isLoadVC){loadVC(true);g_submitting=true;return false}pt.show_err(str_no_vcode);try{E.focus()}catch(C){}if(!g_loadcheck){ptui_reportAttr(78028)}else{ptui_reportAttr(78029)}return false}if(E.value.length<4){pt.show_err(str_inv_vcode);E.focus();E.select();return false}D.setAttribute("maxlength","32");ajax_Submit();ptui_reportNum(g_changeNum);g_changeNum=0;return true}var hexcase=1;var b64pad="";var chrsz=8;var mode=32;function preprocess(A){var B="";B+=A.verifycode.value;B=B.toUpperCase();A.p.value=md5(md5_3(A.p.value)+B);return true}function md5_3(B){var A=new Array;A=core_md5(str2binl(B),B.length*chrsz);A=core_md5(A,16*chrsz);A=core_md5(A,16*chrsz);return binl2hex(A)}function md5(A){return hex_md5(A)}function hex_md5(A){return binl2hex(core_md5(str2binl(A),A.length*chrsz))}function str_md5(A){return binl2str(core_md5(str2binl(A),A.length*chrsz))}function hex_hmac_md5(A,B){return binl2hex(core_hmac_md5(A,B))}function b64_hmac_md5(A,B){return binl2b64(core_hmac_md5(A,B))}function str_hmac_md5(A,B){return binl2str(core_hmac_md5(A,B))}
1String.prototype.trim=function(){return this.replace(/(^\s*)|(\s*$)/g,"")};var sys={$:function(A){return document.getElementById(A)},onload:function(B,C){var A=window.onload;window.onload=function(){if(C){if(typeof (B)=="function"){B()}if(typeof (A)=="function"){A()}}else{if(typeof (A)=="function"){A()}if(typeof (B)=="function"){B()}}}},getQueryValue:function(B,E){var D="&"+window.location.search.replace(/^\?/g,"");if(E){D="&"+E}var A="";var C="&"+B+"=";if(D.length>0){offset=D.indexOf(C);if(offset!=-1){offset+=C.length;end=D.indexOf("&",offset);if(end==-1){end=D.length}A=unescape(D.substring(offset,end))}}return A}};function getCookie(B){var A=document.cookie.match(new RegExp("(^| )"+B+"=([^;]*)(;|$)"));if(A!=null){return A[2]}return null}function setCookie(C,E){var A=setCookie.arguments;var H=setCookie.arguments.length;var B=(2<H)?A[2]:null;var G=(3<H)?A[3]:null;var D=(4<H)?A[4]:null;var F=(5<H)?A[5]:null;document.cookie=C+"="+escape(E)+((B==null)?" ":(";expires ="+B.toGMTString()))+((G==null)?" ":(";path = "+G))+((D==null)?" ":(";domain ="+D))+((F==true)?";secure":" ")}var pt={t_appid:46000101,isHttps:false,err_m:null,mibao_css:"",init:function(){if(pt.t_appid==g_appid){if(sys.$("u")){sys.$("u").setAttribute("style","")}sys.$("u").style.cssText=""}pt.isHttps=(/^https/g.test(window.location+""));sys.onload(function(){pt.err_m=sys.$("err_m")});pt.mibao_css=sys.getQueryValue("mibao_css")},show_err:function(A){if(pt.err_m&&(typeof ptui_notifySize=="function")){pt.err_m.innerHTML=A;pt.err_m.style.display="block";ptui_notifySize("login");return }else{alert(A)}},chkUin:function(qquin){qquin=qquin.trim();if(qquin.length==0){return false}if(window.location.hostname.match(/paipai.com$/)){if(qquin.length<64&&(new RegExp(/^[A-Za-z0-9]+@{1}[A-Za-z0-9]+$/).test(qquin))){return true}}if((new RegExp(/^[a-zA-Z]{1}([a-zA-Z0-9]|[-_]){0,19}$/).test(qquin))){if(t_appid==g_appid){return true}else{$("u").value=$("u").value.trim()+"@qq.com";qquin=$("u").value}}if(t_appid==g_appid){if(qquin=="<请输入帐号>"){return false}if(/[\u4E00-\u9FA5]/g.test(qquin)){if(qquin.length>8){return false}return true}}if(!(new RegExp(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/).test(qquin))){if(qquin.length<5||qquin.length>12||parseInt(qquin)<1000){return false}var exp=eval("/^[0-9]*$/");return exp.test(qquin)}return true}};pt.init();var vc_type="";var lastUin=1;var t_appid=46000101;var g_changeNum=0;var g_checkTime=0;var g_imgTime=0;var first=true;var changeimg=false;var defaultuin="";var login_param=g_href.substring(g_href.indexOf("?")+1);function ptui_onEnableLLogin(B){var A=B.low_login_enable;var C=B.low_login_hour;if(A!=null&&C!=null){C.disabled=!A.checked}}function ptui_setDefUin(C,B){if(B==""||B==null){B=getCookie("ptui_loginuin");if(B){defaultuin=B}}if(g_appid==t_appid){var A=getCookie("ptui_loginuin2");if(A){B=unescape(A);defaultuin=B}}if(B!=""&&B!=null){C.u.value=B}}var g_ptredirect=-1;var g_xmlhttp;var g_loadcheck=true;var g_submitting=false;function ptui_needVC(C,D){if(t_appid==D){if((C.indexOf("@")<0)&&isNaN(C)){C="@"+C}}var B="";if(pt.isHttps){ptui_checkVC("1","");return }else{B="http://ptlogin2."+g_domain+"/check?uin="+C+"&appid="+D+"&r="+Math.random()}var A=document.createElement("script");g_imgTime=new Date();A.src=B;document.body.appendChild(A);g_loadcheck=true;return }function ptui_checkVC(A,B){g_loadcheck=false;g_checkTime=new Date().getTime()-g_checkTime;if(g_submitting){return }var D=new Date();if(defaultuin!=""&&g_changeNum<=1){g_time.time7=D;var C={"12":g_time.time7-g_time.time6};if(defaultuin!=""){C["16"]=g_time.time6-g_time.time3,C["17"]=g_time.time7-g_time.time3}if(!xuiFrame){ptui_speedReport(C)}}else{g_time.time10=D;var C={"13":g_time.time10-g_time.time9};ptui_speedReport(C)}if(A=="0"){$("verifycode").value=B;loadVC(false)}else{vc_type=B;$("verifycode").value="";loadVC(true)}}function ptui_changeImg(E,D,H){changeimg=true;var G=g_uin;if((g_appid==t_appid)&&isNaN(g_uin)&&(g_uin.indexOf("@")<0)){G="@"+g_uin}var B=(pt.isHttps?"https://ssl.":"http://")+"captcha."+E+"/getimage?&uin="+G+("pt.isHttps"?"":("&vc_type="+vc_type))+"&aid="+D+"&"+Math.random();var A=$("imgVerify");try{if(A!=null){A.src=B;var C=$("verifycode");if(C!=null&&C.disabled==false&&H){C.focus();C.select()}}}catch(F){}}function ptui_initFocus(B){try{var A=B.u;var D=B.p;var E=B.verifycode;if(A.value==""||str_uintip==A.value){A.focus();return }if(D.value==""){D.focus();return }if(E.value==""){E.focus()}}catch(C){}}function ajax_Submit(){var D=true;var E=document.forms[0];var B="";for(var A=0;A<E.length;A++){if(E[A].name=="fp"||E[A].type=="submit"){continue}if(E[A].name=="ptredirect"){g_ptredirect=E[A].value}if(E[A].name=="low_login_enable"&&(!E[A].checked)){D=false;continue}if(E[A].name=="low_login_hour"&&(!D)){continue}if(E[A].name=="webqq_type"&&(!E[A].checked)){continue}B+=E[A].name;B+="=";if(t_appid==g_appid&&E[A].name=="u"&&E[A].value.indexOf("@")<0&&isNaN(E[A].value)){B+="@"+E[A].value+"&";continue}if(E[A].name=="p"){var F="";F+=E.verifycode.value;F=F.toUpperCase();B+=md5(md5_3(E.p.value)+F);if(pt.isHttps){E.p.value=md5(md5_3(E.p.value)+F)}}else{if(E[A].name=="u1"||E[A].name=="ep"){B+=encodeURIComponent(E[A].value)}else{B+=E[A].value}}B+="&"}B+="fp=loginerroralert";if(pt.isHttps){return true}var C=document.createElement("script");C.src=E.action+"?"+B+"&mibao_css="+pt.mibao_css;document.cookie="login_param="+encodeURIComponent(login_param)+";domain=ui.ptlogin2."+g_domain+";path=/";document.body.appendChild(C);return }function ptuiCB(C,A,B,G,F){$("p").blur();g_time.time13=new Date();var E={"15":g_time.time13-g_time.time12};ptui_speedReport(E);first=false;if(B!=""){switch(G){case"0":window.location.href=B;break;case"1":top.location.href=B;break;case"2":parent.location.href=B;break;default:top.location.href=B}return }g_submitting=false;if(C==0){top.location=document.forms[0].ul.value;return }else{if(A==0){if(F&&F!=""){pt.show_err(F)}else{pt.show_err("您的输入有误,请重试。")}}else{pt.show_err(F);$("p").value="";$("p").focus();$("p").select()}if(isLoadVC){ptui_changeImg(g_domain,g_appid,true);$("verifycode").value="";loadVC(true);$("verifycode").focus();$("verifycode").select()}else{if(A==0){g_uin=0}}if(C==3||C==4){if(navigator.userAgent.toLowerCase().indexOf("webkit")>-1){$("u").focus()}if(C==3){$("p").value=""}$("p").focus();$("p").select();if(C==4){try{$("verifycode").focus();$("verifycode").select()}catch(D){}}if(A!=0){$("verifycode").value="";loadVC(true);g_submitting=true}}}}function browser_version(){var A=navigator.userAgent.toLowerCase();return A.match(/msie ([\d.]+)/)?1:A.match(/firefox\/([\d.]+)/)?3:A.match(/chrome\/([\d.]+)/)?5:A.match(/opera.([\d.]+)/)?9:A.match(/version\/([\d.]+).*safari/)?7:1}function ptui_reportSpeed(D,C){if(pt.isHttps){return }if(Math.random()>0.001){return }var A=browser_version();url="http://isdspeed.qq.com/cgi-bin/r.cgi?flag1=6000&flag2=1&flag3="+A;for(var B=0;B<g_speedArray.length;B++){url+="&"+g_speedArray[B][0]+"="+(g_speedArray[B][1]-D)}if(C!=0){url+="&4="+(D-C)}imgSendTimePoint=new Image();imgSendTimePoint.src=url}function ptui_VCReport(){if(Math.random()>0.001){return }if(g_imgTime<1000000000000){return }var A=browser_version();url="http://isdspeed.qq.com/cgi-bin/r.cgi?flag1=6000&flag2=1&flag3="+A;url+="&5="+g_checkTime+"&6="+g_imgTime}function ptui_imgPoint(){if(g_imgTime>0){return }g_imgTime=new Date()-g_imgTime;ptui_VCReport()}function ptui_reportAttr(A){if(Math.random()>0.001){return }url="http://ui.ptlogin2."+g_domain+"/cgi-bin/report?id="+A;imgAttr=new Image();imgAttr.src=url}function ptui_reportNum(B){if(Math.random()>0.001){return }url="http://ui.ptlogin2."+g_domain+"/cgi-bin/report?id=1000&n="+B;var A=new Image();A.src=url}function imgLoadReport(){if(changeimg){return }var A=new Date();var B={};if(defaultuin!=""&&g_changeNum<=1){g_time.time8=A;if(!xuiFrame&&defaultuin!=""){B["9"]=g_time.time8-g_time.time1;B["10"]=g_time.time8-g_time.time3;B["11"]=g_time.time8-g_time.time7}}else{g_time.time11=A;B["14"]=g_time.time11-g_time.time10}ptui_speedReport(B)}function webLoginReport(){var D={};D["7"]=g_time.time3-g_time.time1;if(!xuiFrame){D["8"]=g_time.time4-g_time.time1}try{if(location.hash){var B=location.hash.substring(1,location.hash.length);if(B.indexOf("_")>-1){var A=B.split("_");g_time.time0=A[1]>=A[0]?A[0]:A[1];g_time.time2=A[1]>=A[0]?A[1]:A[0]}else{g_time.time2=B}}}catch(C){}if(g_time.time2&&g_time.time2>0){D["18"]=g_time.time1-g_time.time2;D["21"]=g_time.time3-g_time.time2;if(D["18"]>60000||D["21"]>60000){return }}if(g_time.time0&&g_time.time0>0){D["19"]=g_time.time2-g_time.time0;D["20"]=g_time.time3-g_time.time0;if(D["19"]>60000||D["20"]>60000){return }}ptui_speedReport(D)}function ptui_speedReport(E){if(pt.isHttps){return }if(!first){return }if(Math.random()>0.001){return }var B="http://isdspeed.qq.com/cgi-bin/r.cgi?flag1=6000&flag2=1&flag3="+browser_version();var C=0;for(var D in E){B+="&"+D+"="+E[D];C++}if(C==0){return }var A=new Image();A.src=B}function ptui_notifyClose(){try{if(parent.ptlogin2_onClose){parent.ptlogin2_onClose()}else{if(top==this){window.close()}}}catch(A){window.close()}}function ptui_setUinColor(D,B,A){var C=$(D);if(str_uintip==C.value){C.style.color=A}else{C.style.color=B}}