diff --git a/src/messenger/webim/js/brws.js b/src/messenger/webim/js/brws.js index 45935939..a487394b 100644 --- a/src/messenger/webim/js/brws.js +++ b/src/messenger/webim/js/brws.js @@ -1 +1 @@ -var myAgent="";var ik=0;var myRealAgent="";function jk(){var kk=["opera","msie","safari","firefox","netscape","mozilla"];var ej=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'){rt.contentWindow.scrollTo(0,this.qt(rt).getElementById('content').clientHeight);} else if(ot)ot.scrollIntoView(false);} } ;sq.pt=mn.nn();mn.sn(sq.pt,sq.lq,{qn:function(pq){this.oq(pq);this.pq.onComplete=this.dt.on(this);this.pq.jr=this.et.on(this);this.pq.hr=this._q.on(this);this.pq.timeout=(3861+1139);this.ft={} ;this.frequency=(this.pq.frequency||2);this.gt=0;this.at=true;this.bt=true;this.ct=true;this.vt=this.pq.wt!=null;nt.st(this.pq.xt);if(this.pq.wt){this.pq.wt.onkeydown=this.yt.on(this);this.pq.wt.onfocus=(function(){this.ct=true;} ).on(this);this.pq.wt.onblur=(function(){this.ct=false;} ).on(this)} this.zt();} ,et:function($t,_t){this.mu("offline, reconnecting");this.nu();this.qu=setTimeout(this.zt.on(this),(973+27));} ,_q:function($t){this.mu("timeout, reconnecting");this.nu();this.qu=setTimeout(this.zt.on(this),(603+397));} ,ru:function(su){this.pq.fq='act='+su+'&thread='+(this.pq.threadid||0)+'&token='+(this.pq.token||0)+'&lastid='+(this.pq.tu||0);if(this.pq.user)this.pq.fq+="&user=true";if(su=='refresh'&&this.pq.wt&&this.pq.wt.value!='')this.pq.fq+="&typed=1";} ,uu:function(hu){if(this.pq.wt)this.pq.wt.disabled=!hu;} ,nu:function(){this.uu(true);if(this.ft.pq)this.ft.pq.onComplete=undefined;clearTimeout(this.qu);} ,zt:function(){this.ru("refresh");this.ft=new sq.vq(this.pq.servl,this.pq);} ,dt:function(hq){try{this.uu(true);this.at=true;var iu=sq.uq(hq);if(iu&&iu.tagName=='thread'){this.ju(iu);} else{this.ku(hq,iu,'refresh messages failed');} } catch(e){} this.bt=false;this.qu=setTimeout(this.zt.on(this),this.frequency*01750);} ,lu:function(ou){if(ou==""||!this.at){return;} this.at=false;this.nu();this.bt=true;this.ru("post");var pu={} .un(this.pq);pu.fq+="&message="+encodeURIComponent(ou);pu.onComplete=(function(du){this.dt(du);if(this.pq.wt){this.pq.wt.value='';this.pq.wt.focus();} } ).on(this);if(myRealAgent!='opera')this.uu(false);this.ft=new sq.vq(this.pq.servl,pu);} ,eu:function(fu){this.bt=true;new sq.vq(this.pq.servl,{fq:'act=rename&thread='+(this.pq.threadid||0)+'&token='+(this.pq.token||0)+'&name='+encodeURIComponent(fu)} );} ,gu:function(hq){var iu=sq.uq(hq);if(iu&&iu.tagName=='closed'){setTimeout('window.close()',(1389+611));} else{this.ku(hq,iu,'cannot close');} } ,au:function(){var bu='act=close&thread='+(this.pq.threadid||0)+'&token='+(this.pq.token||0);if(this.pq.user)bu+="&user=true";new sq.vq(this.pq.servl,{fq:bu,onComplete:this.gu.on(this)} );} ,cu:function(vu,wt){var wu=qs.us(wt);nt.jt(vu,wu);} ,xu:function(yu){if($("typingdiv")){$("typingdiv").style.display=yu?'inline':'none';} } ,zu:function($u){var _u=qs.us($u);if(this.pq.$u&&this.pq.user){this.pq.$u.innerHTML=_u!=""?"\"\"\"\"/":"";} } ,ju:function(iu){var nh=false;var qh=this.pq.xt;var rh=qs.ks(iu,"lastid");if(rh){this.pq.tu=rh;} var sh=qs.ks(iu,"typing");if(sh){this.xu(sh=='1');} var th=qs.ks(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)/01750;hu=hu+", "+hh+" secs";if(hh>(9+1)){alert(hu);} } this.gt=(new Date()).getTime();this.mu(hu);} else{this.ih();} if(nh){nt.it(this.pq.xt);if(!this.bt){var jh=$('soundimg');if(jh==null||jh.className.match(new RegExp("\\bisound\\b"))){$s(ut.mh+'/sounds/new_message.wav');} } if(!this.ct){window.focus();} } } ,yt:function(k){if(k){kh=k.ctrlKey;k=k.which;} else{k=event.keyCode;kh=event.ctrlKey;} if(this.pq.wt&&((k==015&&(kh||myRealAgent=='opera'))||(k==012))){var lh=this.pq.wt.value;if(myRealAgent=='opera'){lh=lh.replace(/[\r\n]+$/,'');} this.lu(lh);return false;} return true;} ,ku:function(hq,iu,oh){if(iu&&iu.tagName=='error'){this.mu(qs.rs(iu,"descr"));} else{this.mu("reconnecting");} } ,ph:function(k){if($("engineinfo")){$("engineinfo").style.display='inline';$("engineinfo").innerHTML=k;} } ,mu:function(k){if(this.dh)clearTimeout(this.dh);this.ph(k);this.dh=setTimeout(this.ih.on(this),(2728+1272));} ,ih:function(){$("engineinfo").style.display='none';} } );eh=mn.nn();eh.prototype={qn:function(pq){this.pq=pq;this.fh=0;if(this.pq.gh&&this.pq.ah&&this.pq.bh){this.pq.bh.onmousedown=this.ch.on(this);this.pq.bh.onmouseup=this.vh.on(this);this.pq.bh.onmousemove=this.wh.on(this);} } ,ch:function(e){var or=e||event;if(this.pq.bh.setCapture)this.pq.bh.setCapture();this.xh=this.pq.gh.style.pixelHeight||this.pq.gh.clientHeight;this.yh=or.screenY;this.pq.zh=this.pq.gh.style.pixelHeight+this.pq.ah.clientHeight-this.pq.$h;this.fh=1;} ,vh:function(){if(this.fh){if(this.pq.bh.releaseCapture)this.pq.bh.releaseCapture();this.fh=0;} } ,wh:function(e){var or=e||event;if(this.fh){var _h=this.xh-(or.screenY-this.yh);if(_h>this.pq.zh)_h=this.pq.zh;else if(_h");ht.write("");ht.write("");ht.write("
");ht.write("");ht.close();tt.onload=function(){if(tt.jt){rt.st(tt).getElementById('content').innerHTML+=tt.jt;rt.kt(tt);} } ;} ,lt:function(tt,ot){var pt=this.st(tt).getElementById('content');if(pt==null){if(!tt.jt)tt.jt="";tt.jt+=ot;} else{pt.innerHTML+=ot;} } ,kt:function(tt){var dt=this.st(tt).getElementById('bottom');if(myAgent=='opera'){tt.contentWindow.scrollTo(0,this.st(tt).getElementById('content').clientHeight);} else if(dt)dt.scrollIntoView(false);} } ;sq.et=mn.nn();mn.sn(sq.et,sq.lq,{qn:function(pq){this.oq(pq);this.pq.onComplete=this.ft.on(this);this.pq.jr=this.gt.on(this);this.pq.hr=this._q.on(this);this.pq.timeout=0x1388;this.at={} ;this.frequency=(this.pq.frequency||2);this.bt=0;this.ct=true;this.vt=true;this.wt=true;this.xt=this.pq.yt!=null;rt.ut(this.pq.zt);if(this.pq.yt){this.pq.yt.onkeydown=this.$t.on(this);this.pq.yt.onfocus=(function(){this.wt=true;} ).on(this);this.pq.yt.onblur=(function(){this.wt=false;} ).on(this)} this._t();} ,gt:function(mu,nu){this.qu("offline, reconnecting");this.ru();this.su=setTimeout(this._t.on(this),01750);} ,_q:function(mu){this.qu("timeout, reconnecting");this.ru();this.su=setTimeout(this._t.on(this),(667+333));} ,tu:function(uu){this.pq.fq='act='+uu+'&thread='+(this.pq.threadid||0)+'&token='+(this.pq.token||0)+'&lastid='+(this.pq.hu||0);if(this.pq.user)this.pq.fq+="&user=true";if(uu=='refresh'&&this.pq.yt&&this.pq.yt.value!='')this.pq.fq+="&typed=1";} ,iu:function(ju){if(this.pq.yt)this.pq.yt.disabled=!ju;} ,ru:function(){this.iu(true);if(this.at.pq)this.at.pq.onComplete=undefined;clearTimeout(this.su);} ,_t:function(){this.tu("refresh");this.at=new sq.vq(this.pq.servl,this.pq);} ,ft:function(hq){try{this.iu(true);this.ct=true;var ku=sq.uq(hq);if(ku&&ku.tagName=='thread'){this.lu(ku);} else{this.ou(hq,ku,'refresh messages failed');} } catch(e){} this.vt=false;this.su=setTimeout(this._t.on(this),this.frequency*01750);} ,pu:function(du){if(du==""||!this.ct){return;} this.ct=false;this.ru();this.vt=true;this.tu("post");var eu={} .un(this.pq);eu.fq+="&message="+encodeURIComponent(du);eu.onComplete=(function(fu){this.ft(fu);if(this.pq.yt){this.pq.yt.value='';this.pq.yt.focus();} } ).on(this);if(myRealAgent!='opera')this.iu(false);this.at=new sq.vq(this.pq.servl,eu);} ,gu:function(au){this.vt=true;new sq.vq(this.pq.servl,{fq:'act=rename&thread='+(this.pq.threadid||0)+'&token='+(this.pq.token||0)+'&name='+encodeURIComponent(au)} );} ,bu:function(hq){var ku=sq.uq(hq);if(ku&&ku.tagName=='closed'){setTimeout('window.close()',(1926+74));} else{this.ou(hq,ku,'cannot close');} } ,cu:function(){var vu='act=close&thread='+(this.pq.threadid||0)+'&token='+(this.pq.token||0);if(this.pq.user)vu+="&user=true";new sq.vq(this.pq.servl,{fq:vu,onComplete:this.bu.on(this)} );} ,wu:function(xu,yt){var yu=qs.us(yt);rt.lt(xu,yu);} ,zu:function($u){if($("typingdiv")){$("typingdiv").style.display=$u?'inline':'none';} } ,_u:function(mh){var nh=qs.us(mh);if(this.pq.mh&&this.pq.user){this.pq.mh.innerHTML=nh!=""?"\"\"\"\"/":"";} } ,lu:function(ku){var rh=false;var sh=this.pq.zt;var th=qs.ks(ku,"lastid");if(th){this.pq.hu=th;} var uh=qs.ks(ku,"typing");if(uh){this.zu(uh=='1');} var hh=qs.ks(ku,"canpost");if(hh){if(hh=='1'&&!this.xt||this.xt&&hh!='1'){window.location.href=window.location.href;} } for(var i=0;i=0){var ju="updated";if(this.bt>0){var jh=((new Date()).getTime()-this.bt)/01750;ju=ju+", "+jh+" secs";if(jh>(6+4)){alert(ju);} } this.bt=(new Date()).getTime();this.qu(ju);} else{this.kh();} if(rh){rt.kt(this.pq.zt);if(!this.vt){var lh=$('soundimg');if(lh==null||lh.className.match(new RegExp("\\bisound\\b"))){$s(it.qh+'/sounds/new_message.wav');} } if(!this.wt){window.focus();} } } ,$t:function(k){if(k){oh=k.ctrlKey;k=k.which;} else{k=event.keyCode;oh=event.ctrlKey;} if(this.pq.yt&&((k==015&&(oh||myRealAgent=='opera'))||(k==(9+1)))){var ph=this.pq.yt.value;if(myRealAgent=='opera'){ph=ph.replace(/[\r\n]+$/,'');} this.pu(ph);return false;} return true;} ,ou:function(hq,ku,dh){if(ku&&ku.tagName=='error'){this.qu(qs.rs(ku,"descr"));} else{this.qu("reconnecting");} } ,eh:function(k){if($("engineinfo")){$("engineinfo").style.display='inline';$("engineinfo").innerHTML=k;} } ,qu:function(k){if(this.fh)clearTimeout(this.fh);this.eh(k);this.fh=setTimeout(this.kh.on(this),07640);} ,kh:function(){$("engineinfo").style.display='none';} } );gh=mn.nn();gh.prototype={qn:function(pq){this.pq=pq;this.ah=0;if(this.pq.bh&&this.pq.ch&&this.pq.vh){this.pq.vh.onmousedown=this.wh.on(this);this.pq.vh.onmouseup=this.xh.on(this);this.pq.vh.onmousemove=this.yh.on(this);} } ,wh:function(e){var or=e||event;if(this.pq.vh.setCapture)this.pq.vh.setCapture();this.zh=this.pq.bh.style.pixelHeight||this.pq.bh.clientHeight;this.$h=or.screenY;this.pq._h=this.pq.bh.style.pixelHeight+this.pq.ch.clientHeight-this.pq.mi;this.ah=1;} ,xh:function(){if(this.ah){if(this.pq.vh.releaseCapture)this.pq.vh.releaseCapture();this.ah=0;} } ,yh:function(e){var or=e||event;if(this.ah){var ni=this.zh-(or.screenY-this.$h);if(ni>this.pq._h)ni=this.pq._h;else if(ni=(161+39)&&hq.status<(247+53)){var iq=hq.responseXML;if(iq&&iq.documentElement)return iq.documentElement;} return null;} ,jq:function(hq){return hq.statusText||"connection error N"+hq.status;} ,kq:function(){} } ;sq.lq=function(){} ;sq.lq.prototype={oq:function(pq){this.pq={dq:'post',eq:true,fq:''} .un(pq||{} );} ,gq:function(){try{return this.aq.status||0;} catch(e){return 0} } ,bq:function(){var status=this.gq();return!status||(status>=0310&&status<0x12c);} ,cq:function(){return!this.bq();} } ;sq.vq=mn.nn();sq.vq.wq=['Uninitialized','Loading','Loaded','Interactive','Complete'];mn.sn(sq.vq,sq.lq,{qn:function(url,pq){this.aq=sq.tq();this.oq(pq);this.xq={} ;this.yq=false;this.zq(url);} ,zq:function(url){var fq=this.pq.fq||'';if(fq.length>0)fq+='&_=';try{if(this.pq.dq=='get'&&fq.length>0)url+='?'+fq;this.aq.open(this.pq.dq.toUpperCase(),url,this.pq.eq);if(this.pq.eq){this.aq.onreadystatechange=this.$q.on(this);if(this.pq.timeout){this.xq=setTimeout(this._q.on(this),this.pq.timeout);} } this.mr();var nr=this.pq.qr?this.pq.qr:fq;this.aq.send(this.pq.dq=='post'?nr:null);} catch(e){this.rr(e);} } ,mr:function(){var sr=['X-Requested-With','XMLHttpRequest'];if(this.pq.dq=='post'){sr.$n('Content-type','application/x-www-form-urlencoded');if(this.aq.overrideMimeType&&(navigator.userAgent.match("/Gecko\/(\d{4} )/")||[0,03725])[1]<(1793+212))sr.$n('Connection','close');} if(this.pq.sr)sr.$n.rn(sr,this.pq.sr);for(var i=0;i-1){var yr=token.split('#');var zr=yr[0];var id=yr[1];var element=document.getElementById(id);if(element==null||zr&&element.nodeName.toLowerCase()!=zr){return new Array();} xr=new Array(element);continue;} if(token.indexOf('.')>-1){var yr=token.split('.');var zr=yr[0];var $r=yr[1];if(!zr){zr='*';} var _r=new Array;var ms=0;for(var h=0;h=0)ys="audio/mpeg";} return ys;} function $s(_s){var mt=document.getElementById("player");if(mt){mt.parentNode.removeChild(mt);} mt=document.body.appendChild(document.createElement("div"));var zs=navigator.userAgent.toLowerCase();if(zs.indexOf('safari')==-1&&zs.indexOf('windows')!=-1){mt.innerHTML='';} else{mt.innerHTML='
';} } \ No newline at end of file +var mn={nn:function(){return function(){this.qn.rn(this,arguments);} ;} ,sn:function(tn,parent,body){Object.un(Object.un(tn.prototype,parent.prototype),body);} } ;Object.un=function(hn,jn){for(kn in jn){hn[kn]=jn[kn];} return hn;} ;Object.prototype.un=function(ln){return Object.un.rn(this,[this,ln]);} ;Function.prototype.on=function(ln){var pn=this;return function(){return pn.rn(ln,arguments);} } ;Function.prototype.dn=function(ln){var pn=this;return function(event){pn.call(ln,event||window.event);} } ;Number.prototype.en=function(){var fn=this.toString((11+5));if(this<(13+3))return'0'+fn;return fn;} ;var gn={an:function(){var returnValue;for(var i=0;i=(161+39)&&hq.status<(247+53)){var iq=hq.responseXML;if(iq&&iq.documentElement)return iq.documentElement;} return null;} ,jq:function(hq){return hq.statusText||"connection error N"+hq.status;} ,kq:function(){} } ;sq.lq=function(){} ;sq.lq.prototype={oq:function(pq){this.pq={dq:'post',eq:true,fq:''} .un(pq||{} );} ,gq:function(){try{return this.aq.status||0;} catch(e){return 0} } ,bq:function(){var status=this.gq();return!status||(status>=0310&&status<0x12c);} ,cq:function(){return!this.bq();} } ;sq.vq=mn.nn();sq.vq.wq=['Uninitialized','Loading','Loaded','Interactive','Complete'];mn.sn(sq.vq,sq.lq,{qn:function(url,pq){this.aq=sq.tq();this.oq(pq);this.xq={} ;this.yq=false;this.zq(url);} ,zq:function(url){var fq=this.pq.fq||'';if(fq.length>0)fq+='&_=';try{if(this.pq.dq=='get'&&fq.length>0)url+='?'+fq;this.aq.open(this.pq.dq.toUpperCase(),url,this.pq.eq);if(this.pq.eq){this.aq.onreadystatechange=this.$q.on(this);if(this.pq.timeout){this.xq=setTimeout(this._q.on(this),this.pq.timeout);} } this.mr();var nr=this.pq.qr?this.pq.qr:fq;this.aq.send(this.pq.dq=='post'?nr:null);} catch(e){this.rr(e);} } ,mr:function(){var sr=['X-Requested-With','XMLHttpRequest'];if(this.pq.dq=='post'){sr.$n('Content-type','application/x-www-form-urlencoded');if(this.aq.overrideMimeType&&(navigator.userAgent.match("/Gecko\/(\d{4} )/")||[0,03725])[1]<(1793+212))sr.$n('Connection','close');} if(this.pq.sr)sr.$n.rn(sr,this.pq.sr);for(var i=0;i-1){var yr=token.split('#');var zr=yr[0];var id=yr[1];var element=document.getElementById(id);if(element==null||zr&&element.nodeName.toLowerCase()!=zr){return new Array();} xr=new Array(element);continue;} if(token.indexOf('.')>-1){var yr=token.split('.');var zr=yr[0];var $r=yr[1];if(!zr){zr='*';} var _r=new Array;var ms=0;for(var h=0;h=0)ys="audio/mpeg";} return ys;} function $s(_s){var mt=document.getElementById("player");if(mt){mt.parentNode.removeChild(mt);} mt=document.body.appendChild(document.createElement("div"));var zs=navigator.userAgent.toLowerCase();if(zs.indexOf('safari')==-1&&zs.indexOf('windows')!=-1){mt.innerHTML='';} else{mt.innerHTML='
';} } function nt(qt){return qt.replace('&','&').replace('<','<').replace('>','>').replace('"','"');} \ No newline at end of file diff --git a/src/messenger/webim/js/source/chat.js b/src/messenger/webim/js/source/chat.js index 9d518530..d8ceaec4 100644 --- a/src/messenger/webim/js/source/chat.js +++ b/src/messenger/webim/js/source/chat.js @@ -347,7 +347,7 @@ var Chat = { Chat.threadUpdater.changeName($('uname').value); $('changename1').style.display='none'; $('changename2').style.display='inline'; - $('unamelink').innerHTML=$('uname').value; + $('unamelink').innerHTML = htmlescape($('uname').value); }, showNameField: function() { diff --git a/src/messenger/webim/js/source/common.js b/src/messenger/webim/js/source/common.js index 8cb73ce6..0ce99df4 100644 --- a/src/messenger/webim/js/source/common.js +++ b/src/messenger/webim/js/source/common.js @@ -543,3 +543,7 @@ function playSound(wav_file) { player.innerHTML = '
'; } } + +function htmlescape(str) { + return str.replace('&','&').replace('<','<').replace('>','>').replace('"','"'); +} \ No newline at end of file diff --git a/src/messenger/webim/js/users.js b/src/messenger/webim/js/users.js index 287b6ba2..27e147f1 100644 --- a/src/messenger/webim/js/users.js +++ b/src/messenger/webim/js/users.js @@ -1 +1 @@ -sq.hi=mn.nn();mn.sn(sq.hi,sq.lq,{qn:function(pq){this.oq(pq);this.pq.onComplete=this.dt.on(this);this.pq.jr=this.et.on(this);this.pq.hr=this._q.on(this);this.pq.timeout=(4228+772);this.frequency=(this.pq.frequency||2);this.ft={} ;this.zt();} ,et:function($t,_t){if(this.pq.ku)this.pq.ku("offline, reconnecting");this.nu();this.qu=setTimeout(this.zt.on(this),01750);} ,_q:function($t){if(this.pq.ku)this.pq.ku("timeout, reconnecting");this.nu();this.qu=setTimeout(this.zt.on(this),(756+244));} ,nu:function(){if(this.ft.pq)this.ft.pq.onComplete=undefined;clearTimeout(this.qu);} ,zt:function(){if(this.pq.ii)this.pq.fq=(this.pq.ii)();this.ft=new sq.vq(this.pq.url,this.pq);} ,dt:function(du){try{var iu=sq.uq(du);if(iu){(this.pq.ju||sq.kq)(iu);} else{if(this.pq.ku)this.pq.ku("reconnecting");} } catch(e){} this.qu=setTimeout(this.zt.on(this),this.frequency*01750);} } );var ji={ki:function(link,title,li,oi,width,height,pi){return'
'+oi+'';} ,di:function(content){return''+content+'
';} ,ei:function(fi,gi,id,ai,bi,ci,wt,vi){var wi=2;var link=gi+"?thread="+id;var xi='';if(bi||ai){xi+=ji.ki((vi||!ai)?link:link+"&viewonly=true",localized[bi?0:1],"ImCenter"+id,fi,01200,0740,null);} else{xi+=''+fi+'';} xi+='';if(bi){xi+='';xi+=ji.ki(link,localized[0],"ImCenter"+id,''+localized[0]+'',0x280,0x1e0,null);xi+='';wi++;} if(ai){xi+='';xi+=ji.ki(link+"&viewonly=true",localized[1],"ImCenter"+id,''+localized[1]+'',0x280,(337+143),null);xi+='';wi++;} if(wt!=""){xi+='';xi+=wt.length>(27+3)?wt.substring(0,(29+1))+'...':wt;xi+='';} return ji.di(xi);} ,yi:function(id,zi){return''+ji.ki(mh+'/operator/ban.php?'+(zi?'id='+zi:'thread='+id),localized[2],"ban"+id,''+localized[2]+'',0x2d0,0740,null)+'';} } ;sq.$i=mn.nn();mn.sn(sq.$i,sq.lq,{qn:function(pq){this.oq(pq);this.pq.ii=this.ii.on(this);this.pq.ku=this.ku.on(this);this.pq.ju=this.ju.on(this);this.pq._i=0;this.mj=new Object();this.nj=0;this.t=this.pq.qj;this.rj=new sq.hi(this.pq);} ,ii:function(){return"company="+this.pq.company+"&since="+this.pq._i;} ,mu:function(ou){this.pq.status.innerHTML=ou;} ,ku:function(s){this.mu(s);} ,sj:function(uh){var id,tj,uj,ai=false,bi=false,hj=false,ci=null,zi=null;for(var i=0;i';if(ci!=null){gj=''+qs.rs(uh,"reason")+'';} if(hj){gj+=ji.yi(id,zi);} gj=ji.di(gj);var aj=ls.os("t"+tj,this.t);var bj=ls.os("t"+tj+"end",this.t);if(kj!=null&&(kj.rowIndex<=aj.rowIndex||kj.rowIndex>=bj.rowIndex)){this.t.deleteRow(kj.rowIndex);this.mj[id]=null;kj=null;} if(kj==null){kj=this.t.insertRow(aj.rowIndex+1);kj.className=(ci=="blocked"&&tj!="chat")?"ban":"in"+tj;kj.id="thr"+id;this.mj[id]=new Array(dj,fj,tj);ls.insertCell(kj,"name","visitor",null,null,ji.ei(oj,this.pq.agentservl,id,ai,bi,ci,wt,tj!='chat'));ls.insertCell(kj,"contid","visitor","center",null,pj);ls.insertCell(kj,"state","visitor","center",null,uj);ls.insertCell(kj,"op","visitor","center",null,ej);ls.insertCell(kj,"time","visitor","center",null,this.cj(dj));ls.insertCell(kj,"wait","visitor","center",null,(tj!='chat'?this.cj(fj):'-'));ls.insertCell(kj,"etc","visitor","center",null,gj);if(tj=='wait'||tj=='prio')return true;} else{this.mj[id]=new Array(dj,fj,tj);kj.className=(ci=="blocked"&&tj!="chat")?"ban":"in"+tj;jj(this.t,kj,"name",ji.ei(oj,this.pq.agentservl,id,ai,bi,ci,wt,tj!='chat'));jj(this.t,kj,"contid",pj);jj(this.t,kj,"state",uj);jj(this.t,kj,"op",ej);jj(this.t,kj,"time",this.cj(dj));jj(this.t,kj,"wait",(tj!='chat'?this.cj(fj):'-'));jj(this.t,kj,"etc",gj);} return false;} ,vj:function(){function wj(t,id){var aj=$(id);var bj=$(id+"end");if(aj==null||bj==null){return false;} return aj.rowIndex+1=074){var nk=Math.floor(_j/(49+11));_j=_j%0x3c;if(_j<(8+2))_j="0"+_j;mk=nk+":";} return mk+_j+":"+$j;} ,qk:function(){for(var i in this.mj){if(this.mj[i]!=null){var value=this.mj[i];var kj=ls.os("thr"+i,this.t);if(kj!=null){function jj(ds,kj,id,lj){var ws=ls.fs(id,kj,ds);if(ws)ws.innerHTML=lj;} jj(this.t,kj,"time",this.cj(value[0]));jj(this.t,kj,"wait",(value[2]!='chat'?this.cj(value[1]):'-'));} } } } ,ju:function(rk){var sk=false;if(rk.tagName=='threads'){var tk=qs.ks(rk,"time");var uk=qs.ks(rk,"revision");if(tk)this.nj=(new Date()).getTime()-tk;if(uk)this.pq._i=uk;for(var i=0;i'+di+'';} ,fi:function(content){return''+content+'
';} ,gi:function(ai,bi,id,ci,vi,wi,yt,xi){var yi=2;var link=bi+"?thread="+id;var zi='';if(vi||ci){zi+=li.oi((xi||!ci)?link:link+"&viewonly=true",localized[vi?0:1],"ImCenter"+id,ai,01200,(340+140),null);} else{zi+=''+ai+'';} zi+='';if(vi){zi+='';zi+=li.oi(link,localized[0],"ImCenter"+id,''+localized[0]+'',(544+96),0x1e0,null);zi+='';yi++;} if(ci){zi+='';zi+=li.oi(link+"&viewonly=true",localized[1],"ImCenter"+id,''+localized[1]+'',0x280,0x1e0,null);zi+='';yi++;} if(yt!=""){zi+='';zi+=yt.length>036?yt.substring(0,0x1e)+'...':yt;zi+='';} return li.fi(zi);} ,$i:function(id,_i){return''+li.oi(qh+'/operator/ban.php?'+(_i?'id='+_i:'thread='+id),localized[2],"ban"+id,''+localized[2]+'',(645+75),(343+137),null)+'';} } ;sq.mj=mn.nn();mn.sn(sq.mj,sq.lq,{qn:function(pq){this.oq(pq);this.pq.ki=this.ki.on(this);this.pq.ou=this.ou.on(this);this.pq.lu=this.lu.on(this);this.pq.nj=0;this.qj=new Object();this.rj=0;this.t=this.pq.sj;this.tj=new sq.ji(this.pq);} ,ki:function(){return"company="+this.pq.company+"&since="+this.pq.nj;} ,qu:function(du){this.pq.status.innerHTML=du;} ,ou:function(s){this.qu(s);} ,uj:function(ih){var id,hj,ij,ci=false,vi=false,jj=false,wi=null,_i=null;for(var i=0;i';if(wi!=null){bj=''+qs.rs(ih,"reason")+'';} if(jj){bj+=li.$i(id,_i);} bj=li.fi(bj);var cj=ls.os("t"+hj,this.t);var vj=ls.os("t"+hj+"end",this.t);if(oj!=null&&(oj.rowIndex<=cj.rowIndex||oj.rowIndex>=vj.rowIndex)){this.t.deleteRow(oj.rowIndex);this.qj[id]=null;oj=null;} if(oj==null){oj=this.t.insertRow(cj.rowIndex+1);oj.className=(wi=="blocked"&&hj!="chat")?"ban":"in"+hj;oj.id="thr"+id;this.qj[id]=new Array(fj,aj,hj);ls.insertCell(oj,"name","visitor",null,null,li.gi(dj,this.pq.agentservl,id,ci,vi,wi,yt,hj!='chat'));ls.insertCell(oj,"contid","visitor","center",null,ej);ls.insertCell(oj,"state","visitor","center",null,ij);ls.insertCell(oj,"op","visitor","center",null,gj);ls.insertCell(oj,"time","visitor","center",null,this.wj(fj));ls.insertCell(oj,"wait","visitor","center",null,(hj!='chat'?this.wj(aj):'-'));ls.insertCell(oj,"etc","visitor","center",null,bj);if(hj=='wait'||hj=='prio')return true;} else{this.qj[id]=new Array(fj,aj,hj);oj.className=(wi=="blocked"&&hj!="chat")?"ban":"in"+hj;lj(this.t,oj,"name",li.gi(dj,this.pq.agentservl,id,ci,vi,wi,yt,hj!='chat'));lj(this.t,oj,"contid",ej);lj(this.t,oj,"state",ij);lj(this.t,oj,"op",gj);lj(this.t,oj,"time",this.wj(fj));lj(this.t,oj,"wait",(hj!='chat'?this.wj(aj):'-'));lj(this.t,oj,"etc",bj);} return false;} ,xj:function(){function yj(t,id){var cj=$(id);var vj=$(id+"end");if(cj==null||vj==null){return false;} return cj.rowIndex+1=(55+5)){var rk=Math.floor(nk/074);nk=nk%(40+20);if(nk<012)nk="0"+nk;qk=rk+":";} return qk+nk+":"+mk;} ,sk:function(){for(var i in this.qj){if(this.qj[i]!=null){var value=this.qj[i];var oj=ls.os("thr"+i,this.t);if(oj!=null){function lj(ds,oj,id,pj){var ws=ls.fs(id,oj,ds);if(ws)ws.innerHTML=pj;} lj(this.t,oj,"time",this.wj(value[0]));lj(this.t,oj,"wait",(value[2]!='chat'?this.wj(value[1]):'-'));} } } } ,lu:function(tk){var uk=false;if(tk.tagName=='threads'){var hk=qs.ks(tk,"time");var ik=qs.ks(tk,"revision");if(hk)this.rj=(new Date()).getTime()-hk;if(ik)this.pq.nj=ik;for(var i=0;i