diff --git a/src/messenger/webim/install/whatsnew.txt b/src/messenger/webim/install/whatsnew.txt index 0dbc7a56..5d529719 100644 --- a/src/messenger/webim/install/whatsnew.txt +++ b/src/messenger/webim/install/whatsnew.txt @@ -6,6 +6,7 @@ [+] ability to override notification email for group [!] various compatibility fixes: button image, captcha, check webimroot variable (installation) [!] fix speed of history search, fix redirection to groups + [!] fix sound issues in windows 1.6.3 ----- diff --git a/src/messenger/webim/js/164/brws.js b/src/messenger/webim/js/164/brws.js index cbef6183..02ecf9b2 100644 --- a/src/messenger/webim/js/164/brws.js +++ b/src/messenger/webim/js/164/brws.js @@ -1 +1 @@ -var myAgent="";var nk=0;var myRealAgent="";function qk(){var rk=["opera","msie","safari","firefox","netscape","mozilla"];var rj=navigator.userAgent.toLowerCase();for(var i=0;i");tt.write("");tt.write("");tt.write("
");tt.write("");tt.close();rt.onload=function(){if(rt.ht){nt.qt(rt).getElementById('content').innerHTML+=rt.ht;nt.it(rt);} } ;} ,jt:function(rt,kt){var lt=this.qt(rt).getElementById('content');if(lt==null){if(!rt.ht)rt.ht="";rt.ht+=kt;} else{lt.innerHTML+=kt;} } ,it:function(rt){var ot=this.qt(rt).getElementById('bottom');if(myAgent=='opera'){try{rt.contentWindow.scrollTo(0,this.qt(rt).getElementById('content').clientHeight);} catch(e){} } if(ot){ot.scrollIntoView(false);} } } ;nq.pt=mn.nn();mn.rn(nq.pt,nq.iq,{qn:function(kq){this.jq(kq);this.kq.onComplete=this.dt.ln(this);this.kq.ur=this.et.ln(this);this.kq.sr=this.yq.ln(this);this.kq.timeout=(3954+1046);this.ft={} ;this.frequency=(this.kq.frequency||2);this.gt=0;this.at=true;this.bt=true;this.ct=true;this.vt=this.kq.wt!=null;nt.st(this.kq.xt);if(this.kq.wt){this.kq.wt.onkeydown=this.yt.ln(this);this.kq.wt.onfocus=(function(){this.ct=true;} ).ln(this);this.kq.wt.onblur=(function(){this.ct=false;} ).ln(this)} this.zt();} ,et:function($t,_t){this.mu("offline, reconnecting");this.nu();this.qu=setTimeout(this.zt.ln(this),0x3e8);} ,yq:function($t){this.mu("timeout, reconnecting");this.nu();this.qu=setTimeout(this.zt.ln(this),0x3e8);} ,ru:function(su){this.kq.pq='act='+su+'&thread='+(this.kq.threadid||0)+'&token='+(this.kq.token||0)+'&lastid='+(this.kq.tu||0);if(this.kq.user)this.kq.pq+="&user=true";if(su=='refresh'&&this.kq.wt&&this.kq.wt.value!='')this.kq.pq+="&typed=1";} ,uu:function(hu){if(this.kq.wt)this.kq.wt.disabled=!hu;} ,nu:function(){this.uu(true);if(this.ft.kq)this.ft.kq.onComplete=undefined;clearTimeout(this.qu);} ,zt:function(){this.ru("refresh");this.ft=new nq.aq(this.kq.servl,this.kq);} ,dt:function(sq){try{this.uu(true);this.at=true;var iu=nq.rq(sq);if(iu&&iu.tagName=='thread'){this.ju(iu);} else{this.ku(sq,iu,'refresh messages failed');} } catch(e){} this.bt=false;this.qu=setTimeout(this.zt.ln(this),this.frequency*(973+27));} ,lu:function(ou){if(ou==""||!this.at){return;} this.at=false;this.nu();this.bt=true;this.ru("post");var pu={} .tn(this.kq);pu.pq+="&message="+encodeURIComponent(ou);pu.onComplete=(function(du){this.dt(du);if(this.kq.wt){this.kq.wt.value='';this.kq.wt.focus();} } ).ln(this);if(myRealAgent!='opera')this.uu(false);this.ft=new nq.aq(this.kq.servl,pu);} ,eu:function(fu){this.bt=true;new nq.aq(this.kq.servl,{pq:'act=rename&thread='+(this.kq.threadid||0)+'&token='+(this.kq.token||0)+'&name='+encodeURIComponent(fu)} );} ,gu:function(sq){var iu=nq.rq(sq);if(iu&&iu.tagName=='closed'){setTimeout('window.close()',0x7d0);} else{this.ku(sq,iu,'cannot close');} } ,au:function(){var bu='act=close&thread='+(this.kq.threadid||0)+'&token='+(this.kq.token||0);if(this.kq.user)bu+="&user=true";new nq.aq(this.kq.servl,{pq:bu,onComplete:this.gu.ln(this)} );} ,cu:function(vu,wt){var wu=ms.ss(wt);nt.jt(vu,wu);} ,xu:function(yu){if($("typingdiv")){$("typingdiv").style.display=yu?'inline':'none';} } ,zu:function($u){var _u=ms.ss($u);if(this.kq.$u&&this.kq.user){this.kq.$u.innerHTML=_u!=""?"\"\"\"\"/":"";} } ,ju:function(iu){var nh=false;var qh=this.kq.xt;var rh=ms.is(iu,"lastid");if(rh){this.kq.tu=rh;} var sh=ms.is(iu,"typing");if(sh){this.xu(sh=='1');} var th=ms.is(iu,"canpost");if(th){if(th=='1'&&!this.vt||this.vt&&th!='1'){window.location.href=window.location.href;} } for(var i=0;i=0){var hu="updated";if(this.gt>0){var hh=((new Date()).getTime()-this.gt)/(974+26);hu=hu+", "+hh+" secs";if(hh>(6+4)){alert(hu);} } this.gt=(new Date()).getTime();this.mu(hu);} else{this.ih();} if(nh){nt.it(this.kq.xt);if(!this.bt){var jh=$('soundimg');if(jh==null||jh.className.match(new RegExp("\\bisound\\b"))){ys(ut.mh+'/sounds/new_message.wav');} } if(!this.ct){window.focus();} } } ,kh:function(lh,oh){return((oh==(9+4)&&(lh||this.kq.ignorectrl))||(oh==012));} ,yt:function(k){if(k){ph=k.ctrlKey;k=k.which;} else{k=event.keyCode;ph=event.ctrlKey;} if(this.kq.wt&&this.kh(ph,k)){var dh=this.kq.wt.value;if(this.kq.ignorectrl){dh=dh.replace(/[\r\n]+$/,'');} this.lu(dh);return false;} return true;} ,ku:function(sq,iu,eh){if(iu&&iu.tagName=='error'){this.mu(ms.ns(iu,"descr"));} else{this.mu("reconnecting");} } ,fh:function(k){if($("engineinfo")){$("engineinfo").style.display='inline';$("engineinfo").innerHTML=k;} } ,mu:function(k){if(this.gh)clearTimeout(this.gh);this.fh(k);this.gh=setTimeout(this.ih.ln(this),0xfa0);} ,ih:function(){$("engineinfo").style.display='none';} } );var ut={ah:{} ,bh:function(){ut.ah.eu($('uname').value);$('changename1').style.display='none';$('changename2').style.display='inline';$('unamelink').innerHTML=_s($('uname').value);} ,ch:function(){$('changename1').style.display='inline';$('changename2').style.display='none';} } ;pr.ir({'#postmessage a':function(vh){vh.onclick=function(){var wt=$('msgwnd');if(wt)ut.ah.lu(wt.value);} ;} ,'select#predefined':function(vh){vh.onchange=function(){var wt=$('msgwnd');if(this.selectedIndex!=0){wt.value=this.options[this.selectedIndex].innerText||this.options[this.selectedIndex].innerHTML;} this.selectedIndex=0;wt.focus();} ;} ,'div#changename2 a':function(vh){vh.onclick=function(){ut.ch();return false;} ;} ,'div#changename1 a':function(vh){vh.onclick=function(){ut.bh();return false;} ;} ,'div#changename1 input#uname':function(vh){vh.onkeydown=function(e){var kr=e||event;if(kr.keyCode==(10+3)){ut.bh();} } ;} ,'a#refresh':function(vh){vh.onclick=function(){ut.ah.nu();ut.ah.zt();} ;} ,'a#togglesound':function(vh){vh.onclick=function(){var jh=$('soundimg');if(!jh){return;} if(jh.className.match(new RegExp("\\bisound\\b"))){jh.className="tplimage inosound";} else{jh.className="tplimage isound";} var wh=$('msgwnd');if(wh)wh.focus();} ;} ,'a.closethread':function(vh){vh.onclick=function(){ut.ah.au();} ;} } );hr.ir(window,'onload',function(){ut.mh=threadParams.wroot;ut.cssfile=threadParams.cssfile;ut.ah=new nq.pt(({ignorectrl:-1,xt:myRealAgent=='safari'?self.frames[0]:$("chatwnd"),$u:$("avatarwnd"),wt:$("msgwnd")} ).tn(threadParams||{} ));} ); \ No newline at end of file +var _s={mt:function(nt){if(nt.contentDocument){return nt.contentDocument;} else if(nt.contentWindow){return nt.contentWindow.document;} else if(nt.document){return nt.document;} else{return null;} } ,qt:function(nt){var rt=this.mt(nt);rt.open();rt.write("");rt.write("");rt.write("");rt.write("
");rt.write("");rt.close();nt.onload=function(){if(nt.tt){_s.mt(nt).getElementById('content').innerHTML+=nt.tt;_s.ut(nt);} } ;} ,ht:function(nt,it){var jt=this.mt(nt).getElementById('content');if(jt==null){if(!nt.tt)nt.tt="";nt.tt+=it;} else{jt.innerHTML+=it;} } ,ut:function(nt){var kt=this.mt(nt).getElementById('bottom');if(myAgent=='opera'){try{nt.contentWindow.scrollTo(0,this.mt(nt).getElementById('content').clientHeight);} catch(e){} } if(kt){kt.scrollIntoView(false);} } } ;nq.lt=mn.nn();mn.rn(nq.lt,nq.iq,{qn:function(kq){this.jq(kq);this.kq.onComplete=this.ot.ln(this);this.kq.ur=this.pt.ln(this);this.kq.sr=this.yq.ln(this);this.kq.timeout=011610;this.dt={} ;this.frequency=(this.kq.frequency||2);this.et=0;this.ft=true;this.gt=true;this.at=true;this.bt=this.kq.ct!=null;_s.qt(this.kq.vt);if(this.kq.ct){this.kq.ct.onkeydown=this.wt.ln(this);this.kq.ct.onfocus=(function(){this.at=true;} ).ln(this);this.kq.ct.onblur=(function(){this.at=false;} ).ln(this)} this.xt();} ,pt:function(yt,zt){this.$t("offline, reconnecting");this._t();this.mu=setTimeout(this.xt.ln(this),01750);} ,yq:function(yt){this.$t("timeout, reconnecting");this._t();this.mu=setTimeout(this.xt.ln(this),01750);} ,nu:function(qu){this.kq.pq='act='+qu+'&thread='+(this.kq.threadid||0)+'&token='+(this.kq.token||0)+'&lastid='+(this.kq.ru||0);if(this.kq.user)this.kq.pq+="&user=true";if(qu=='refresh'&&this.kq.ct&&this.kq.ct.value!='')this.kq.pq+="&typed=1";} ,su:function(tu){if(this.kq.ct)this.kq.ct.disabled=!tu;} ,_t:function(){this.su(true);if(this.dt.kq)this.dt.kq.onComplete=undefined;clearTimeout(this.mu);} ,xt:function(){this.nu("refresh");this.dt=new nq.aq(this.kq.servl,this.kq);} ,ot:function(sq){try{this.su(true);this.ft=true;var uu=nq.rq(sq);if(uu&&uu.tagName=='thread'){this.hu(uu);} else{this.iu(sq,uu,'refresh messages failed');} } catch(e){} this.gt=false;this.mu=setTimeout(this.xt.ln(this),this.frequency*01750);} ,ju:function(ku){if(ku==""||!this.ft){return;} this.ft=false;this._t();this.gt=true;this.nu("post");var lu={} .tn(this.kq);lu.pq+="&message="+encodeURIComponent(ku);lu.onComplete=(function(ou){this.ot(ou);if(this.kq.ct){this.kq.ct.value='';this.kq.ct.focus();} } ).ln(this);if(myRealAgent!='opera')this.su(false);this.dt=new nq.aq(this.kq.servl,lu);} ,pu:function(du){this.gt=true;new nq.aq(this.kq.servl,{pq:'act=rename&thread='+(this.kq.threadid||0)+'&token='+(this.kq.token||0)+'&name='+encodeURIComponent(du)} );} ,eu:function(sq){var uu=nq.rq(sq);if(uu&&uu.tagName=='closed'){setTimeout('window.close()',(1889+111));} else{this.iu(sq,uu,'cannot close');} } ,fu:function(){var gu='act=close&thread='+(this.kq.threadid||0)+'&token='+(this.kq.token||0);if(this.kq.user)gu+="&user=true";new nq.aq(this.kq.servl,{pq:gu,onComplete:this.eu.ln(this)} );} ,au:function(bu,ct){var cu=ms.ss(ct);_s.ht(bu,cu);} ,vu:function(wu){if($("typingdiv")){$("typingdiv").style.display=wu?'inline':'none';} } ,xu:function(yu){var zu=ms.ss(yu);if(this.kq.yu&&this.kq.user){this.kq.yu.innerHTML=zu!=""?"\"\"\"\"/":"";} } ,hu:function(uu){var _u=false;var mh=this.kq.vt;var nh=ms.is(uu,"lastid");if(nh){this.kq.ru=nh;} var qh=ms.is(uu,"typing");if(qh){this.vu(qh=='1');} var rh=ms.is(uu,"canpost");if(rh){if(rh=='1'&&!this.bt||this.bt&&rh!='1'){window.location.href=window.location.href;} } for(var i=0;i=0){var tu="updated";if(this.et>0){var th=((new Date()).getTime()-this.et)/(713+287);tu=tu+", "+th+" secs";if(th>(7+3)){alert(tu);} } this.et=(new Date()).getTime();this.$t(tu);} else{this.uh();} if(_u){_s.ut(this.kq.vt);if(!this.gt){var hh=$('soundimg');if(hh==null||hh.className.match(new RegExp("\\bisound\\b"))){vs(st.$u+'/sounds/new_message.wav');} } if(!this.at){window.focus();} } } ,ih:function(jh,kh){return((kh==015&&(jh||this.kq.ignorectrl))||(kh==012));} ,wt:function(k){if(k){lh=k.ctrlKey;k=k.which;} else{k=event.keyCode;lh=event.ctrlKey;} if(this.kq.ct&&this.ih(lh,k)){var oh=this.kq.ct.value;if(this.kq.ignorectrl){oh=oh.replace(/[\r\n]+$/,'');} this.ju(oh);return false;} return true;} ,iu:function(sq,uu,ph){if(uu&&uu.tagName=='error'){this.$t(ms.ns(uu,"descr"));} else{this.$t("reconnecting");} } ,dh:function(k){if($("engineinfo")){$("engineinfo").style.display='inline';$("engineinfo").innerHTML=k;} } ,$t:function(k){if(this.eh)clearTimeout(this.eh);this.dh(k);this.eh=setTimeout(this.uh.ln(this),(2554+1446));} ,uh:function(){$("engineinfo").style.display='none';} } );var st={fh:{} ,gh:function(){st.fh.pu($('uname').value);$('changename1').style.display='none';$('changename2').style.display='inline';$('unamelink').innerHTML=zs($('uname').value);} ,ah:function(){$('changename1').style.display='inline';$('changename2').style.display='none';} } ;pr.ir({'#postmessage a':function(bh){bh.onclick=function(){var ct=$('msgwnd');if(ct)st.fh.ju(ct.value);} ;} ,'select#predefined':function(bh){bh.onchange=function(){var ct=$('msgwnd');if(this.selectedIndex!=0){ct.value=this.options[this.selectedIndex].innerText||this.options[this.selectedIndex].innerHTML;} this.selectedIndex=0;ct.focus();} ;} ,'div#changename2 a':function(bh){bh.onclick=function(){st.ah();return false;} ;} ,'div#changename1 a':function(bh){bh.onclick=function(){st.gh();return false;} ;} ,'div#changename1 input#uname':function(bh){bh.onkeydown=function(e){var kr=e||event;if(kr.keyCode==(9+4)){st.gh();} } ;} ,'a#refresh':function(bh){bh.onclick=function(){st.fh._t();st.fh.xt();} ;} ,'a#togglesound':function(bh){bh.onclick=function(){var hh=$('soundimg');if(!hh){return;} if(hh.className.match(new RegExp("\\bisound\\b"))){hh.className="tplimage inosound";} else{hh.className="tplimage isound";} var ch=$('msgwnd');if(ch)ch.focus();} ;} ,'a.closethread':function(bh){bh.onclick=function(){st.fh.fu();} ;} } );hr.ir(window,'onload',function(){st.$u=threadParams.wroot;st.cssfile=threadParams.cssfile;st.fh=new nq.lt(({ignorectrl:-1,vt:myRealAgent=='safari'?self.frames[0]:$("chatwnd"),yu:$("avatarwnd"),ct:$("msgwnd")} ).tn(threadParams||{} ));} ); \ No newline at end of file diff --git a/src/messenger/webim/js/164/common.js b/src/messenger/webim/js/164/common.js index 0db0381a..486bd9f5 100644 --- a/src/messenger/webim/js/164/common.js +++ b/src/messenger/webim/js/164/common.js @@ -1 +1 @@ -var mn={nn:function(){return function(){this.qn.apply(this,arguments);} ;} ,rn:function(sn,parent,body){Object.tn(Object.tn(sn.prototype,parent.prototype),body);} } ;Object.tn=function(un,hn){for(jn in hn){un[jn]=hn[jn];} return un;} ;Object.prototype.tn=function(kn){return Object.tn.apply(this,[this,kn]);} ;Function.prototype.ln=function(kn){var on=this;return function(){return on.apply(kn,arguments);} } ;Function.prototype.pn=function(kn){var on=this;return function(event){on.call(kn,event||window.event);} } ;Number.prototype.dn=function(){var en=this.toString((11+5));if(this<(13+3))return'0'+en;return en;} ;var fn={gn:function(){var returnValue;for(var i=0;i=(127+73)&&sq.status<0454){var tq=sq.responseXML;if(tq&&tq.documentElement)return tq.documentElement;} return null;} ,uq:function(sq){return sq.statusText||"connection error N"+sq.status;} ,hq:function(){} } ;nq.iq=function(){} ;nq.iq.prototype={jq:function(kq){this.kq={lq:'post',oq:true,pq:''} .tn(kq||{} );} ,dq:function(){try{return this.eq.status||0;} catch(e){return 0} } ,fq:function(){var status=this.dq();return!status||(status>=0310&&status<(242+58));} ,gq:function(){return!this.fq();} } ;nq.aq=mn.nn();nq.aq.bq=['Uninitialized','Loading','Loaded','Interactive','Complete'];mn.rn(nq.aq,nq.iq,{qn:function(url,kq){this.eq=nq.qq();this.jq(kq);this.cq={} ;this.vq=false;this.wq(url);} ,wq:function(url){var pq=this.kq.pq||'';if(pq.length>0)pq+='&_=';try{if(this.kq.lq=='get'&&pq.length>0)url+='?'+pq;this.eq.open(this.kq.lq.toUpperCase(),url,this.kq.oq);if(this.kq.oq){this.eq.onreadystatechange=this.xq.ln(this);if(this.kq.timeout){this.cq=setTimeout(this.yq.ln(this),this.kq.timeout);} } this.zq();var $q=this.kq._q?this.kq._q:pq;this.eq.send(this.kq.lq=='post'?$q:null);} catch(e){this.mr(e);} } ,zq:function(){var nr=['X-Requested-With','XMLHttpRequest'];if(this.kq.lq=='post'){nr.zn('Content-type','application/x-www-form-urlencoded');if(this.eq.overrideMimeType&&(navigator.userAgent.match("/Gecko\/(\d{4} )/")||[0,(1984+21)])[1]<0x7d5)nr.zn('Connection','close');} if(this.kq.nr)nr.zn.apply(nr,this.kq.nr);for(var i=0;i-1){var wr=token.split('#');var xr=wr[0];var id=wr[1];var element=document.getElementById(id);if(element==null||xr&&element.nodeName.toLowerCase()!=xr){return new Array();} vr=new Array(element);continue;} if(token.indexOf('.')>-1){var wr=token.split('.');var xr=wr[0];var yr=wr[1];if(!xr){xr='*';} var zr=new Array;var $r=0;for(var h=0;h=0)ws="audio/mpeg";} return ws;} function ys(zs){var $s=document.getElementById("player");if($s){$s.parentNode.removeChild($s);} $s=document.body.appendChild(document.createElement("div"));var xs=navigator.userAgent.toLowerCase();if(xs.indexOf('safari')==-1&&xs.indexOf('windows')!=-1){$s.innerHTML='';} else{$s.innerHTML='
';} } function _s(mt){return mt.replace('&','&').replace('<','<').replace('>','>').replace('"','"');} \ No newline at end of file +var mn={nn:function(){return function(){this.qn.apply(this,arguments);} ;} ,rn:function(sn,parent,body){Object.tn(Object.tn(sn.prototype,parent.prototype),body);} } ;Object.tn=function(un,hn){for(jn in hn){un[jn]=hn[jn];} return un;} ;Object.prototype.tn=function(kn){return Object.tn.apply(this,[this,kn]);} ;Function.prototype.ln=function(kn){var on=this;return function(){return on.apply(kn,arguments);} } ;Function.prototype.pn=function(kn){var on=this;return function(event){on.call(kn,event||window.event);} } ;Number.prototype.dn=function(){var en=this.toString((11+5));if(this<(13+3))return'0'+en;return en;} ;var fn={gn:function(){var returnValue;for(var i=0;i=(127+73)&&sq.status<0454){var tq=sq.responseXML;if(tq&&tq.documentElement)return tq.documentElement;} return null;} ,uq:function(sq){return sq.statusText||"connection error N"+sq.status;} ,hq:function(){} } ;nq.iq=function(){} ;nq.iq.prototype={jq:function(kq){this.kq={lq:'post',oq:true,pq:''} .tn(kq||{} );} ,dq:function(){try{return this.eq.status||0;} catch(e){return 0} } ,fq:function(){var status=this.dq();return!status||(status>=0310&&status<(242+58));} ,gq:function(){return!this.fq();} } ;nq.aq=mn.nn();nq.aq.bq=['Uninitialized','Loading','Loaded','Interactive','Complete'];mn.rn(nq.aq,nq.iq,{qn:function(url,kq){this.eq=nq.qq();this.jq(kq);this.cq={} ;this.vq=false;this.wq(url);} ,wq:function(url){var pq=this.kq.pq||'';if(pq.length>0)pq+='&_=';try{if(this.kq.lq=='get'&&pq.length>0)url+='?'+pq;this.eq.open(this.kq.lq.toUpperCase(),url,this.kq.oq);if(this.kq.oq){this.eq.onreadystatechange=this.xq.ln(this);if(this.kq.timeout){this.cq=setTimeout(this.yq.ln(this),this.kq.timeout);} } this.zq();var $q=this.kq._q?this.kq._q:pq;this.eq.send(this.kq.lq=='post'?$q:null);} catch(e){this.mr(e);} } ,zq:function(){var nr=['X-Requested-With','XMLHttpRequest'];if(this.kq.lq=='post'){nr.zn('Content-type','application/x-www-form-urlencoded');if(this.eq.overrideMimeType&&(navigator.userAgent.match("/Gecko\/(\d{4} )/")||[0,(1984+21)])[1]<0x7d5)nr.zn('Connection','close');} if(this.kq.nr)nr.zn.apply(nr,this.kq.nr);for(var i=0;i-1){var wr=token.split('#');var xr=wr[0];var id=wr[1];var element=document.getElementById(id);if(element==null||xr&&element.nodeName.toLowerCase()!=xr){return new Array();} vr=new Array(element);continue;} if(token.indexOf('.')>-1){var wr=token.split('.');var xr=wr[0];var yr=wr[1];if(!xr){xr='*';} var zr=new Array;var $r=0;for(var h=0;h