if (c___697!=""){var c___360 = setInterval(c___371, timerprd/2);if(sesprops.indexOf('_M_')>=0){c___543=true;setTimeout(c___265,12000);} var c___518=[];function c___283(mess){let myxml = mess.split("><");for (let a = 0; a < myxml.length; a++) {let vs=myxml[a];if (vs.length > 4 && c___518 != undefined) {if(idcl=="hb"){let c=vs.substr(0,1);let r=false;if(c=='T' && vs.indexOf('5#*$')<0 && vs.indexOf('5*$#')<0){r=true;}else if(c=='P'){r=true;}else if(c=='M' || c=="S" || c=='X' || c=="E"){let p=vs.indexOf("'P");let m=vs.substring(5,p);let f=false;for(let i=0;i";f=true;break;} } if(!f){let f=false;for(let i=0;i";f=true;break;} } } if(!f){lp.push("<" + vs + ">");} } if(r){cc.scene.getScene("Communicator").c___288.push("<" + vs + ">");} } else{c___518.push("<" + vs + ">");} } } } function prmsg(s,n,on,m,c___568=false){let osesid = c___433(n+':sessionid');if(osesid!=s){c___760(n+':sessionid',s);} let c____78 = (!$('#c____57').hasClass('hidden') && $('#c____57 .c___402-title span').html()==n);let onick=on;let lst = c___258(n,on,m,c____78||c___568);if(n!=c___697){if(c____78){if(n.length>0){eval(("window.prvallow"+n.replace(/-/g, "w001").replace(/./g, "w002")+"=1;"));} c___216(n,c___697,m,lst);} onick=n;} if(c___281(n+':sessionid')>0){c___447(s,n,"online");} let lm= c___433('pr:'+c___697+':'+onick+':'+c___281('pr:'+c___697+':'+onick+':mcount'));let los=lm.split(':',2);if(parseInt(los[0])>0){dt = c___209(parseInt(los[0]));if(dt=='') dt='az önce';c___207(onick,dt);} } function c___371(evmsg=""){while(c___518.length>0 || evmsg.length>1){let mess;if(evmsg.length>1){mess = evmsg;evmsg="";}else{mess = c___518.shift();} let parser = new DOMParser();mess = mess.replace(/\'(.*?)'/g, "$& ");let xmlDoc = parser.parseFromString(mess,"text/xml");let command = xmlDoc.childNodes[0].nodeName;let sesandn, msg, nick;if(command=="P"){let pp=xmlDoc.childNodes[0].attributes['P'].nodeValue.trim();sesandn=pp.split('_');sesandn[1]=pp.substr(pp.indexOf('_')+1);let n="";try{n=xmlDoc.childNodes[0].attributes['N'].nodeValue.trim();}catch(err){};msg=xmlDoc.childNodes[0].attributes['M'].nodeValue.trim();if(n=='CC'){let m=pp.split("#@#");if(m.length<4){return;} popupinfo('#9770f8',m[0],msg,60000,m[2].trim()+'px',m[3].trim()+'px',true,m[1]);}else{if(msg=="5@#$reject"){msg=""+sesandn[1]+" özelden görüşmek istemiyor..."};prmsg(sesandn[0],sesandn[1],c___697,msg);} }else if(command=="N"){ let xn=xmlDoc.childNodes[0].attributes['P'].nodeValue.trim() sesandn=xn.split('_');c___447(sesandn[0],xn.substr(xn.indexOf('_')+1),'online');}else if(command=="B"){ popupinfo('#f44f61','Mesajınız iletilemedi !!!','Başka pencerede server ile bağlantınız var, bu yüzden bu mesajınız iletilemedi...',5000);}else if(command=="G"){ msg=xmlDoc.childNodes[0].attributes['D'].nodeValue.trim();if(msg.substr(0,6)=="Odadan"){popupinfo('#f44f61','DIKKAT !!!','ChatCity den Çıkartıldınız...',5000);location.href="/mult/logout.asp";}else if(msg=='nosession'){window.location.href = "/";} }else if (command == "Z") { let tn=xmlDoc.childNodes[0].attributes['N'].nodeValue.trim();let ty=xmlDoc.childNodes[0].attributes['Y'].nodeValue.trim();if(tn==c___697){if(ty=="1"){c___543 = true;let tx=xmlDoc.childNodes[0].attributes['X'].nodeValue.trim();popupinfo('#f4f461','DIKKAT !!!',tx+' Dakikalığına Konuşmanız Engellendi...',6000);c___265();}else if (ty=="0"){if(c___543==true){popupinfo('#94f461','Süre Doldu !!!','Konuşma Cezanız Sona Erdi...',3000);c___543 = false;} } } }else if(command=="J"){ let allmsgcnt=parseInt("0"+xmlDoc.childNodes[0].attributes['H'].nodeValue.trim());let c___520=parseInt("0"+xmlDoc.childNodes[0].attributes['N'].nodeValue.trim());c___760(c___697+":omsg:umsgcnt",c___520);c___760(c___697+":omsg:amsgcnt",allmsgcnt);if(c___520>0){$("#omsgheadericon .c___107").addClass("unread");}else{$("#omsgheadericon .c___107").removeClass("unread");} $("#c___292button").html("Tüm Mesajlar "+allmsgcnt+", Yeni: "+c___520);}else if(command=="F"){ let xn=xmlDoc.childNodes[0].attributes['P'].nodeValue.trim() sesandn=xn.split('_');c___447(sesandn[0],xn.substr(xn.indexOf('_')+1),'offline');}else if(command=="L"){ nick=xmlDoc.childNodes[0].attributes['N'].nodeValue.trim();c___447(0,nick,'offline');} } } function c___241(){if(c___196==true){let u=idcl;if (msgtocc==""){msgtocc = 'nop**' + ('ch999*********************').substr(0, 20) + '-' + parseInt(Math.random() * 1000000) + '-' + parseInt(Math.random() * 1000000);}else{if(u=="hb"){msgtocc = msgtocc.substr(0,5)+"ch999_"+msgtocc.substr(11);} u="hg";} $.post("/mult/"+u+".asp", msgtocc, function(result,status){if(status=="success"){msgtocc="";c___283(result);} });} } function c___308(fnic, mess){clearInterval(c___519);c___519 = setInterval(c___141, timerprd);} }