2009-06-05 19:49:51 +04:00
|
|
|
sq.zh=mn.nn();mn.sn(sq.zh,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=(4693+307);this.frequency=(this.pq.frequency||2);this.at={} ;this._t();} ,gt:function(mu,nu){if(this.pq.ou)this.pq.ou("offline, reconnecting");this.ru();this.su=setTimeout(this._t.on(this),(832+168));} ,_q:function(mu){if(this.pq.ou)this.pq.ou("timeout, reconnecting");this.ru();this.su=setTimeout(this._t.on(this),01750);} ,ru:function(){if(this.at.pq)this.at.pq.onComplete=undefined;clearTimeout(this.su);} ,_t:function(){if(this.pq.$h)this.pq.fq=(this.pq.$h)();this.at=new sq.vq(this.pq.url,this.pq);} ,ft:function(fu){try{var ku=sq.uq(fu);if(ku){(this.pq.lu||sq.kq)(ku);} else{if(this.pq.ou)this.pq.ou("reconnecting");} } catch(e){} this.su=setTimeout(this._t.on(this),this.frequency*(704+296));} } );var _h={mi:function(link,title,ni,qi,width,height,ri){return'<a href="'+link+'"'+(ri!=null?' class="'+ri+'"':'')+' target="_blank" title="'+title+'" onclick="this.newWindow = window.open(\''+link+'\', \''+ni+'\', \'toolbar=0,scrollbars=0,location=0,status=1,menubar=0,width='+width+',height='+height+',resizable=1\');this.newWindow.focus();this.newWindow.opener=window;return false;">'+qi+'</a>';} ,si:function(content){return'<table class="inner"><tr>'+content+'</tr></table>';} ,ti:function(ui,hi,id,ii,ji,ki,yt,li){var oi=2;var link=hi+"?thread="+id;var pi='<td>';if(ji||ii){pi+=_h.mi((li||!ii)?link:link+"&viewonly=true",localized[ji?0:1],"ImCenter"+id,ui,(501+139),(295+185),null);} else{pi+='<a href="#">'+ui+'</a>';} pi+='</td>';if(ji){pi+='<td class="icon">';pi+=_h.mi(link,localized[0],"ImCenter"+id,'<img src="'+qh+'/images/tbliclspeak.gif" width="15" height="15" border="0" alt="'+localized[0]+'">',01200,(437+43),null);pi+='</td>';oi++;} if(ii){pi+='<td class="icon">';pi+=_h.mi(link+"&viewonly=true",localized[1],"ImCenter"+id,'<img src="'+qh+'/images/tbliclread.gif" width="15" height="15" border="0" alt="'+localized[1]+'">',(485+155),(375+105),null);pi+='</td>';oi++;} if(yt!=""){pi+='</tr><tr><td class="firstmessage" colspan="'+oi+'"><a href="javascript:void(0)" title="'+yt+'" onclick="alert(this.title);return false;">';pi+=yt.length>036?yt.substring(0,(19+11))+'...':yt;pi+='</a></td>';} return _h.si(pi);} ,di:function(id,ei){return'<td class="icon">'+_h.mi(qh+'/operator/ban.php?'+(ei?'id='+ei:'thread='+id),localized[2],"ban"+id,'<img src="'+qh+'/images/ban.gif" width="15" height="15" border="0" alt="'+localized[2]+'">',01320,(417+63),null)+'</td>';} } ;sq.fi=mn.nn();mn.sn(sq.fi,sq.lq,{qn:function(pq){this.oq(pq);this.pq.$h=this.$h.on(this);this.pq.ou=this.ou.on(this);this.pq.lu=this.lu.on(this);this.pq.gi=0;this.ai=new Object();this.bi=0;this.t=this.pq.ci;this.vi=new sq.zh(this.pq);} ,$h:function(){return"company="+this.pq.company+"&since="+this.pq.gi;} ,qu:function(du){this.pq.status.innerHTML=du;} ,ou:function(s){this.qu(s);} ,wi:function(ih){var id,xi,yi,ii=false,ji=false,zi=false,ki=null,ei=null;for(var i=0;i<ih.attributes.length;i++){var $i=ih.attributes[i];if($i.nodeName=="id")id=$i.nodeValue;else if($i.nodeName=="stateid")xi=$i.nodeValue;else if($i.nodeName=="state")yi=$i.nodeValue;else if($i.nodeName=="canopen")ji=true;else if($i.nodeName=="canview")ii=true;else if($i.nodeName=="canban")zi=true;else if($i.nodeName=="ban")ki=$i.nodeValue;else if($i.nodeName=="banid")ei=$i.nodeValue;} function _i(ds,mj,id,nj){var ws=ls.fs(id,mj,ds);if(ws)ws.innerHTML=nj;} var mj=ls.os("thr"+id,this.t);if(xi=="closed"){if(mj){this.t.deleteRow(mj.rowIndex);} this.ai[id]=null;return;} var qj=qs.rs(ih,"name");var rj=qs.rs(ih,"addr");var sj=qs.rs(ih,"time");var tj=qs.rs(ih,"agent");var uj=qs.rs(ih,"modified");var yt=qs.rs(ih,"message");var hj='<td>'+qs.rs(ih,"useragent")+'</td>';if(ki!=null){hj='<td>'+qs.rs(ih,"reason")+'</td>';} if(zi){hj+=_h.di(id,ei);} hj=_h.si(hj);var ij=ls.os("t"+xi,this.t);var jj=ls.os("t"+xi+"end",this.t);if(mj!=null&&(mj.rowIndex<=ij.rowIndex||mj.rowIndex>=jj.rowIndex)){this.t.deleteRow(mj.rowIndex);this.ai[id]=null;mj=null;} if(mj==null){mj=this.t.insert
|