<!doctypehtml><html lang=tr dir=ltr xmlns=http://www.w3.org/1999/xhtml><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta content="text/html; charset=utf-8"http-equiv=Content-Type><meta name=viewport content="user-scalable=1,initial-scale=1,minimum-scale=1,maximum-scale=1"><meta name=format-detection content="telephone=no"><meta name=robots content=noindex,nofollow><link rel=manifest href={{{domainurl}}}manifest.json><link rel="shortcut icon"href={{{domainurl}}}favicon.ico><link rel=icon type=image/png sizes=16x16 href={{{domainurl}}}favicon-16x16.png><link rel=icon type=image/png sizes=32x32 href={{{domainurl}}}favicon-32x32.png><link rel=apple-touch-icon href=/favicon-303x303.png><link type=text/css href=styles/xterm.css media=screen rel=stylesheet title=CSS><body id=body onload='"undefined"!=typeof startup&&startup()'style="overflow-y:hidden;margin:0;padding:0;border:0;font-size:13px;font-family:\'Trebuchet MS\',Arial,Helvetica,sans-serif">{{{customCSSTags}}}<meta name=apple-mobile-web-app-capable content=yes><meta name=apple-mobile-web-app-status-bar-style content=#ffffff><meta name=apple-mobile-web-app-title content={{{title}}}><script src=scripts/common-0.0.1{{{min}}}.js></script><script src=scripts/meshcentral{{{min}}}.js></script><script src=scripts/agent-redir-ws-0.1.1{{{min}}}.js></script><script src=scripts/agent-desktop-0.0.2{{{min}}}.js></script><script src=scripts/amt-0.2.0{{{min}}}.js></script><script src=scripts/amt-redir-ws-0.1.0{{{min}}}.js></script><script src=scripts/amt-desktop-0.0.2{{{min}}}.js></script><script src=scripts/xterm{{{min}}}.js></script><script src=scripts/xterm-addon-fit{{{min}}}.js></script><script src=scripts/xterm-addon-image{{{min}}}.js></script><script src=scripts/zlib{{{min}}}.js></script><script src=scripts/zlib-inflate{{{min}}}.js></script><script src=scripts/zlib-adler32{{{min}}}.js></script><script src=scripts/zlib-crc32{{{min}}}.js></script><script keeplink=1 src=scripts/filesaver.min.js></script>{{{customJSTags}}}<meta name=msapplication-TileColor content=#00aba9><meta name=theme-color content=#ffffff><title>{{{title}}}</title><style>body{background-color:#fff}.night body{background-color:#000}#MxMESH{color:#000}.night #MxMESH{color:#d3d3d3}.textOverGray{color:#000}#dialog{z-index:1000;background-color:#eee;box-shadow:0 0 15px #666;font-family:Arial,Helvetica,sans-serif;border-radius:5px;position:fixed;top:90px;width:300px}.night #dialog{color:#000;background-color:#aaa}:focus{outline:0}a{color:#036;text-decoration:underline}.night a{color:#99f}#footer a{color:#fff;text-decoration:underline}#footer a:hover{text-decoration:none}.night #footer{color:gray}.i1{background:url(../images/icons50.png) 0 0;background-image:image-set(url(../images/icons50.png) 1x,url(../images/icons100.png) 2x);height:50px;width:50px;border:none}.i2{background:url(../images/icons50.png) -50px 0;background-image:image-set(url(../images/icons50.png) 1x,url(../images/icons100.png) 2x);height:50px;width:50px;border:none}.i3{background:url(../images/icons50.png) -100px 0;background-image:image-set(url(../images/icons50.png) 1x,url(../images/icons100.png) 2x);height:50px;width:50px;border:none}.i4{background:url(../images/icons50.png) -150px 0;background-image:image-set(url(../images/icons50.png) 1x,url(../images/icons100.png) 2x);height:50px;width:50px;border:none}.i5{background:url(../images/icons50.png) -200px 0;background-image:image-set(url(../images/icons50.png) 1x,url(../images/icons100.png) 2x);height:50px;width:50px;border:none}.i6{background:url(../images/icons50.png) -250px 0;background-image:image-set(url(../images/icons50.png) 1x,url(../images/icons100.png) 2x);height:50px;width:50px;border:none}.i7{background:url(../images/icons50.png) -300px 0;background-image:image-set(url(../images/icons50.png) 1x,url(../images/icons100.png) 2x);height:50px;width:50px;border:none}.i8{background:url(../images/icons50.png) -350px 0;background-image:image-set(url(../images/icons50.png) 1x,url(../images/icons100.png) 2x);height:50px;width:50px;border:none}.m0{background:url(../images/images16.png) -32px 0;height:16px;width:16px;border:none;float:left}.m1{background:url(../images/images16.png) -16px 0;height:16px;width:16px;border:none;float:left}.m2{background:url(../images/images16.png) -96px 0;height:16px;width:16px;border:none;float:left}.m3{background:url(../images/images16.png) -112px 0;height:16px;width:16px;border:none;float:left}.m4{background:url(../images/images16.png) -128px 0;height:16px;width:16px;border:none;float:left}.NotifyIconSmall1{width:24px;height:24px;background:url(../images/notify24.png) 0 0;background-image:image-set(url(../images/notify24.png) 1x,url(../images/notify48.png) 2x)}.NotifyIconSmall2{width:24px;height:24px;background:url(../images/notify24.png) -24px 0;background-image:image-set(url(../images/notify24.png) 1x,url(../images/notify48.png) 2x)}.NotifyIconSmall3{width:24px;height:24px;background:url(../images/notify24.png) -48px 0;background-image:image-set(url(../images/notify24.png) 1x,url(../images/notify48.png) 2x)}.NotifyIconSmall4{width:24px;height:24px;background:url(../images/notify24.png) -72px 0;background-image:image-set(url(../images/notify24.png) 1x,url(../images/notify48.png) 2x)}.NotifyIconSmall5{width:24px;height:24px;background:url(../images/notify24.png) -96px 0;background-image:image-set(url(../images/notify24.png) 1x,url(../images/notify48.png) 2x)}.NotifyIconSmall6{width:24px;height:24px;background:url(../images/notify24.png) -120px 0;background-image:image-set(url(../images/notify24.png) 1x,url(../images/notify48.png) 2x)}.NotifyIconSmall7{width:24px;height:24px;background:url(../images/notify24.png) -144px 0;background-image:image-set(url(../images/notify24.png) 1x,url(../images/notify48.png) 2x)}.NotifyIconSmall8{width:24px;height:24px;background:url(../images/notify24.png) -168px 0;background-image:image-set(url(../images/notify24.png) 1x,url(../images/notify48.png) 2x)}.NotifyIconSmall9{width:24px;height:24px;background:url(../images/notify24.png) -192px 0;background-image:image-set(url(../images/notify24.png) 1x,url(../images/notify48.png) 2x)}.gray{filter:gray;-webkit-filter:grayscale(100%) opacity(60%)}.DevSt{padding-left:5px;border-bottom-style:solid;border-bottom-width:1px;border-bottom-color:#ddd}.noselect{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.fileIcon1{background:url(data:image/gif;base64,R0lGODlhEAAQAJEDAPb49Y2Sj9LT2f///yH5BAEAAAMALAAAAAAQABAAAAImnI+py+1vhJwyUYAzHTL4D3qdlJWaIFJqmKod607sDKIiDUP63hQAOw==);height:16px;width:16px;cursor:pointer;border:none;float:left;margin-top:1px}.fileIcon2{background:url(data:image/gif;base64,R0lGODlhEAAQAJEDAM2xV/Xur+XPgP///yH5BAEAAAMALAAAAAAQABAAAAJD3ISZIGHWUGihznesYDYATFVM+D2hJ4lgN1olxALAtAlmPCJvuMmJd6PJckDYwicrHhTD5o7plJmg0Uc0asNMkphHAQA7);height:16px;width:16px;cursor:pointer;border:none;float:left;margin-top:1px}.fileIcon3{background:url(data:image/gif;base64,R0lGODlhEAAQAJEDAPb19IGBgbq6uv///yH5BAEAAAMALAAAAAAQABAAAAIy3ISpxgcPH2ouQgFEw1YmxnUXKEaaEZZnVWZk66JwzKpvuwZzwOgwb/C1gIOA8Yg8DgoAOw==);height:16px;width:16px;cursor:pointer;border:none;float:left;margin-top:1px}.fileIcon4{background:url(../images/meshicon16.png);height:16px;width:16px;cursor:pointer;border:none;float:left;margin-top:1px}.filelist{-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-o-user-select:none;cursor:default;-khtml-user-drag:element;clear:both}.deviceNotifyDot{position:absolute;right:10px;top:0;height:16px}.deviceNotifyDotSub{text-align:center;color:#fff;width:16px;background-color:#00f;padding:2px;border-radius:10px;box-shadow:2px 2px 10px #000;cursor:pointer;margin-left:3px;float:left}.deviceNotifyDotSub:hover{background-color:#44f}.deviceNotifySmallDot{position:absolute;right:10px;top:0;height:10px}.deviceNotifySmallDotSub{text-align:center;color:#fff;width:10px;padding:2px;background-color:#00f;border-radius:10px;box-shadow:2px 2px 10px #000;cursor:pointer;margin-left:2px;float:left}.deviceNotifySmallDotSub:hover{background-color:#44f}.deviceNotifyLargeDot{position:absolute;right:10px;top:10px;height:40px}.deviceNotifyLargeDotSub{text-align:center;width:35px;height:35px;color:#fff;padding:2px;background-color:#00f;border-radius:20px;box-shadow:2px 2px 10px #000;cursor:pointer;margin-left:4px;font-size:30px;float:left}.deviceNotifyLargeDotSub:hover{background-color:#44f}.style10{background-color:#c9c9c9;color:#000}.night .style10{background-color:#888}.deviceBatteryLarge{position:absolute;right:10px;top:0;width:28px;height:48px;border:none;box-shadow:none}.deviceBatteryLarge1{background:url(../images/batteries48.png) 0 0}.deviceBatteryLarge2{background:url(../images/batteries48.png) -28px 0}.deviceBatteryLarge3{background:url(../images/batteries48.png) -56px 0}.deviceBatteryLarge4{background:url(../images/batteries48.png) -84px 0}.deviceBatteryLarge5{background:url(../images/batteries48.png) -112px 0}.deviceBatteryLarge6{background:url(../images/batteries48.png) -140px 0}.deviceBatteryLarge7{background:url(../images/batteries48.png) -168px 0}.deviceBatteryLarge8{background:url(../images/batteries48.png) -196px 0}.deviceBatteryLarge9{background:url(../images/batteries48.png) -224px 0}.deviceBatteryLarge10{background:url(../images/batteries48.png) -252px 0}.deviceBatteryLarge11{background:url(../images/batteries48.png) -280px 0}.deviceBatterySmall{position:absolute;left:6px;top:22px;width:14px;height:24px;border:none;box-shadow:none}.deviceBatterySmall1{background:url(../images/batteries24.png) 0 0}.deviceBatterySmall2{background:url(../images/batteries24.png) -14px 0}.deviceBatterySmall3{background:url(../images/batteries24.png) -28px 0}.deviceBatterySmall4{background:url(../images/batteries24.png) -42px 0}.deviceBatterySmall5{background:url(../images/batteries24.png) -56px 0}.deviceBatterySmall6{background:url(../images/batteries24.png) -70px 0}.deviceBatterySmall7{background:url(../images/batteries24.png) -84px 0}.deviceBatterySmall8{background:url(../images/batteries24.png) -98px 0}.deviceBatterySmall9{background:url(../images/batteries24.png) -112px 0}.deviceBatterySmall10{background:url(../images/batteries24.png) -126px 0}.deviceBatterySmall11{background:url(../images/batteries24.png) -140px 0}.meshList{width:auto;height:40px;background-color:#d3d3d3;margin-top:5px;margin-bottom:5px;margin-left:60px;padding-top:5px;padding-bottom:5px;border-radius:8px 0 0 8px}.night .meshList{background-color:gray}.devList1{height:50px;cursor:pointer;position:relative;margin-top:5px;margin-bottom:5px}.devList2{float:left;margin-left:4px}.devList3{width:auto;height:40px;background-color:#d3d3d3;margin-left:60px;padding-top:5px;padding-bottom:5px;border-radius:8px 0 0 8px}.night .devList3{background-color:gray}.devList4{padding-left:12px;padding-top:2px;color:#000}.devList5{padding-left:12px;padding-top:3px;color:#444}.night .devList5{color:#000}.deskButton{box-shadow:0 0 10px #000;border-radius:20px;position:absolute;right:10px;top:10px;cursor:pointer;background-color:#aaa;z-index:1000}.menuButton{box-shadow:0 0 10px #000;border-radius:10px;display:inline-block;width:120px;background-color:#aaa;text-align:center;padding:8px;cursor:pointer;margin:10px;z-index:1000}#notificationCount{min-width:28px;font-size:20px;background-color:orange;text-align:center;cursor:pointer;color:#000}.notifiyBox{font-size:16px;position:absolute;z-index:1000;top:60px;right:76px;width:300px;text-align:left;background-color:#f0eccd;border:4px solid #666;-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px;-webkit-box-shadow:2px 2px 4px #888;-moz-box-shadow:2px 2px 4px #888;box-shadow:2px 2px 4px #888;max-height:200px}.night .notifiyBox{color:#000}.notifiyBox:before{content:' ';position:absolute;width:0;height:0;right:5px;top:-30px;border:15px solid;border-color:transparent #666 #666 transparent}.notifiyBox:after{content:' ';position:absolute;width:0;height:0;right:7px;top:-24px;border:12px solid;border-color:transparent #f0eccd #f0eccd transparent}#p15statetext{padding:4px;height:15px}#p15agentConsole{background:#000;margin:0;padding:0;color:#d3d3d3;width:100%;position:relative}#p15coreName{padding:4px;display:inline-block}#p15agentConsoleText{position:absolute;margin:0;padding:0;top:0;bottom:0;left:0;right:0;overflow-y:scroll;overflow-x:auto}.areaHead{padding-top:2px;padding-bottom:2px;background:silver}.night .areaHead{color:#ccc;background:#333}.areaFoot{padding-top:2px;padding-bottom:2px;background:silver}.night .areaFoot{color:#ccc;background:#333}.toright2{float:right;text-align:right}#consoleTable{width:100%;height:100%;padding:0;margin-top:0}.night #consoleTable{color:#000}.menucurve{background-color:#fff;width:10px;height:10px;border-radius:10px 0 0 0;border-right:1px solid #fff;border-bottom:1px solid #fff}.night .menucurve{background-color:#000;border-right:1px solid #000;border-bottom:1px solid #000}#termTable{width:100%;padding:0;margin-top:0}.fulldesk #termTable{position:absolute;top:0;bottom:0;left:0;right:0}#termarea3x{background:#000;text-align:center;height:400px;position:relative}.viewSelector10{margin-left:2px;margin-top:2px;background:url(../images/views.png) -476px 0;height:28px;width:28px}.viewSelector11{margin-left:2px;margin-top:2px;background:url(../images/views.png) -504px 0;height:28px;width:28px}.tagSpan{background-color:#d3d3d3;padding:3px;border-radius:5px}.night .tagSpan{color:#000}#d2serveraction,#d3serveraction{width:100%;background-color:#d3d9d6;text-align:left;padding:3px}#d2serverfiles,#d3serverfiles{width:100%;height:150px;background-color:#fff;padding:2px;border:1px solid gray;overflow-y:scroll}</style><div id=container><div id=notifiyBox class=notifiyBox style=display:none></div><div id=mastheadx></div><div id=masthead style="background:url(logo.png) 0 0;background-size:341px 50px;background-color:#036;background-repeat:no-repeat;height:50px;width:100%;overflow:hidden"><div style="width:calc(100% - 50px);overflow:hidden"><div style=float:left;height:66px;color:#c8c8c8;padding-left:10px;padding-top:6px onclick=go(2)><strong><font style="font-size:36px;font-family:Arial,Helvetica,sans-serif;text-shadow:1px 1px 2px #000">{{{title1}}}</font></strong></div><div style=float:left;height:66px;color:#c8c8c8;padding-left:5px;padding-top:10px><strong><font style="font-size:12px;font-family:Arial,Helvetica,sans-serif;text-shadow:1px 1px 2px #000">{{{title2}}}</font></strong></div></div><div id=devViewPageState class=noselect style=position:absolute;right:160px;top:10px;height:30px;line-height:30px;color:#c8c8c8;font-size:16px;display:none></div><img id=devViewPageButton2 class=noselect style=position:absolute;right:130px;top:10px;cursor:pointer;display:none onclick=onDeviceViewPageChange(2) src=/images/left-30.png width=20 height=30> <img id=devViewPageButton3 class=noselect style=position:absolute;right:100px;top:10px;cursor:pointer;display:none onclick=onDeviceViewPageChange(3) src=/images/right-30.png width=20 height=30><div id=notificationCount onclick=clickNotificationIcon() class=unselectable style=position:absolute;right:50px;top:0;font-size:28px;width:50px;height:50px;cursor:pointer;display:none title="Mevcut bildirimleri görüntülemek için tıklayın"><div id=notificationCount2 style=padding-top:8px>0</div></div><img id=topMenuIcon class=noselect style=position:absolute;right:0;top:10px;color:#c8c8c8;font-size:44px;margin-right:8px;cursor:pointer;display:none onclick=topMenu() src=/images/3bars-30.png width=30 height=30></div><div id=page_content style=position:absolute;bottom:32px;top:50px;width:100%><div id=column_l style=width:100%;padding:0;position:absolute;bottom:0;top:0><div id=p0 style=display:none;width:100%;height:100%><div style=display:flex;align-items:center;width:100%;height:100%><div id=p0message style=text-align:center;width:100%><span id=p0span>Sunucunun bağlantısı kesildi</span>,<href onclick=reload() style=cursor:pointer><u>yeniden bağlanmak için tıklayın</u></href>.</div></div></div><div id=p1 style=display:none;width:100%;height:100%><div style=display:flex;align-items:center;width:100%;height:100%><div id=p1message style=text-align:center;width:100%></div></div></div><div id=p2 style=display:none;position:absolute;top:0;left:0;right:0;bottom:0><div id=xdevices style=position:absolute;overflow-y:auto;top:0;left:0;right:0;bottom:34px onscroll=onDevicesScroll() ontouchstart=onDeviceTouch(!0) ontouchend=onDeviceTouch(!1)></div><div id=xdevicesBar style=position:absolute;overflow-y:auto;height:34px;left:0;right:0;bottom:0;background-color:#aaa;color:#000><div style=margin:4px><span style=width:20px;display:inline-block;text-align:center;cursor:pointer;font-size:16px onclick=clearSearchInput()><b>X</b></span> <input id=SearchInput autocomplete=off type=search placeholder=Filtrele onchange=onDeviceSearchChanged(event) onclick=onDeviceSearchChanged(event) onkeyup=onDeviceSearchChanged(event) style=padding:2px;margin:0;height:20px;background-color:#fff>&nbsp; <label class=noselect><input type=checkbox id=RealNameCheckBox onclick=onRealNameCheckBox()>İşletim Sistemi Adı</label> <label class=noselect><input type=checkbox id=OnlineCheckBox onclick=onOnlineCheckBox(event)>Çevrimiçi</label></div></div></div><div id=p3 style=display:none;position:absolute;bottom:0;top:0;width:100%><table cellspacing=0 style=margin:0;padding:0;border-spacing:0;border:0><tr style=padding:0><td style=padding:0;color:#c8c8c8;text-align:center;cursor:pointer width=60px valign=top onclick=goBack()><div style=padding:0;background-color:#036;width:10px;height:10px;float:right;border:0><div class=menucurve></div></div><div style="padding:0;font-size:25px;background-color:#036;width:50px;border-radius:0 0 10px 0;height:36px">◀</div><td><div style=margin-left:5px><strong style=font-size:large><span id=p3userName></span></strong><br></div></table><div id=p3info style=overflow-y:auto;position:absolute;top:55px;bottom:0;width:100%><img id=p2AccountImage alt=""width=128 height=128 onclick=account_manageImage(0) src=images/user-256.png style="position:absolute;right:8px;top:7px;border-radius:8px;box-shadow:0 0 7px #000"><div style=margin-left:8px><div id=p3AccountActions><div id=p2AccountSecurity style=display:none><p><strong>Hesap Güvenliği</strong><div style=margin-left:9px;margin-bottom:8px><div id=managePhoneNumber1 style=margin-top:5px;display:none><a onclick=account_managePhone() style=cursor:pointer>Telefon numarasını yönetin</a> <span id=authPhoneNumberCheck><strong>✓</strong></span></div><div id=manageEmail2FA style=margin-top:5px;display:none><a onclick=account_manageAuthEmail() style=cursor:pointer>E-posta kimlik doğrulamasını yönetin</a> <span id=authEmailSetupCheck><strong>✓</strong></span></div><div style=margin-top:5px><a href=# onclick=account_showLocalizationSettings()>Yerelleştirme Ayarları</a></div><div id=manageAuthApp style=margin-top:5px;display:none><a onclick=account_manageAuthApp() style=cursor:pointer>Kimlik doğrulayıcı uygulamasını yönetin</a> <span id=authAppSetupCheck><strong>✓</strong></span></div><div id=manageOtp style=margin-top:5px;display:none><a onclick=account_manageOtp(0) style=cursor:pointer>Yedek kodları yönetin</a> <span id=authCodesSetupCheck><strong>✓</strong></span></div></div></div><div id=p2AccountActions style=display:none><p><strong>Hesap İşlemleri</strong><div style=margin-left:9px;margin-bottom:8px><div style=margin-top:5px><span id=viewPreviousLogins><a onclick="return account_viewPreviousLogins()"style=cursor:pointer>Önceki oturumları görüntüle</a></span></div><div style=margin-top:5px><span id=managePhoneNumber2 style=display:none><a onclick=account_managePhone() style=cursor:pointer>Telefon numarasını yönetin</a></span></div><div style=margin-top:5px><span id=verifyEmailId style=display:none><a onclick=account_showVerifyEmail() style=cursor:pointer>E-mail'i doğrula</a></span></div><span id=p2AccountPassActions><div style=margin-top:5px><span id=changeEmailId style=display:none><a onclick=account_showChangeEmail() style=cursor:pointer>e-posta adresini değiştir</a></span></div><div style=margin-top:5px><a onclick=account_showChangePassword() style=cursor:pointer>Şifre değiştir</a><span id=p2nextPasswordUpdateTime></span></div><div style=margin-top:5px><a onclick=account_showDeleteAccount() style=cursor:pointer>Hesabı sil</a></div></span><div style=margin-top:5px id=setDarkModeLink><a onclick=toggleNightMode() style=cursor:pointer>Karanlık modu ayarla</a></div><div style=margin-top:5px><a onclick=showNotes(!1) style=cursor:pointer>Kişisel notlar</a></div></div><br style=clear:both></div></div><strong>Cihaz Grupları</strong> <span id=p3createMeshLink1>( <a onclick=account_createMesh() style=cursor:pointer><img src=images/icon-addnew.png width=12 height=12 border=0> Yeni</a> )</span><br><br><div id=p3meshes></div><div id=p3noMeshFound style=margin-left:9px;display:none>Cihaz grubu yok.<span id=p3createMeshLink2> <a onclick=account_createMesh() style=cursor:pointer><strong>Buradan başla!</strong></a></span></div><br style=clear:both></div></div></div><div id=p5 style=display:none><table cellspacing=0 style=margin:0;padding:0;border-spacing:0;border:0><tr style=padding:0><td style=padding:0;color:#c8c8c8;text-align:center;cursor:pointer width=60px valign=top onclick=goBack()><div style=padding:0;background-color:#036;width:10px;height:10px;float:right;border:0><div class=menucurve></div></div><div style="padding:0;font-size:25px;background-color:#036;width:50px;border-radius:0 0 10px 0;height:36px">◀</div><td><img src=/images/user-50.png width=50 height=50><td><div style=margin-left:5px><strong style=font-size:large>Dosyalarım</strong><br></div></table><div id=p5myfiles style=position:absolute;top:55px;bottom:0;width:100%><table id=p5toolbar style=width:100%;height:78px cellpadding=0 cellspacing=0><tr><td style=width:100%;background-color:#d3d9d6;text-align:left;padding:4px valign=bottom><div style=width:100%;text-align:center><input type=button style="width:calc(100%/5 - 5px)"id=p5FolderUp disabled onclick=p5folderup() value=Yukarı> <input type=button style="width:calc(100%/5 - 5px)"id=p5SelectAllButton disabled onclick=p5selectallfile() value="Hepsini seç"onkeypress=return!1 onkeydown=return!1> <input type=button style="width:calc(100%/5 - 5px)"id=p5RenameFileButton disabled value="Yeniden adlandır"onclick=p5renamefile() onkeypress=return!1 onkeydown=return!1> <input type=button style="width:calc(100%/5 - 5px)"id=p5DeleteFileButton disabled value=Sil onclick=p5deletefile() onkeypress=return!1 onkeydown=return!1> <input type=button style="width:calc(100%/5 - 5px)"id=p5NewFolderButton disabled value=Klasör onclick=p5createfolder() onkeypress=return!1 onkeydown=return!1></div><div style=width:100%;text-align:center><input type=button style="width:calc(100%/5 - 5px)"id=p5UploadButton disabled value=Gönder onclick=p5uploadFile() onkeypress=return!1 onkeydown=return!1> <input type=button style="width:calc(100%/5 - 5px)"id=p5CutButton disabled value=Kes onclick=p5copyFile(1) onkeypress=return!1 onkeydown=return!1> <input type=button style="width:calc(100%/5 - 5px)"id=p5CopyButton disabled value=Kopyala onclick=p5copyFile(0) onkeypress=return!1 onkeydown=return!1> <input type=button style="width:calc(100%/5 - 5px)"id=p5PasteButton disabled value=Yapıştır onclick=p5pasteFile() onkeypress=return!1 onkeydown=return!1> <input type=button style="width:calc(100%/5 - 5px)"id=p5RefreshButton value=Yenile onclick=p5refreshFiles() onkeypress=return!1 onkeydown=return!1></div><tr><td style=background-color:#e4e9e7;height:28px><table style=width:100%><tr><td id=p5currentpath style=overflow:hidden;padding-left:4px;padding-top:2px;color:#000><td style=text-align:right;padding-right:4px><select id=p5sortdropdown onchange=updateFiles()><option value=1 selected>İsme göre sırala<option value=2>Boyuta göre sırala<option value=3>Tarihe göre sırala<option value=4>Ada göre ters<option value=5>Boyuta göre ters<option value=6>Tarihe göre ters</select></table></table><div id=p5filetable style="width:100%;height:calc(100% - 102px);overflow:auto;-webkit-user-select:none"><span id=p5files></span></div><table id=p5toolbarBottom style=width:100%;height:22px;position:absolute;bottom:0;background-color:#d3d9d6 cellpadding=0 cellspacing=0><tr><td style=text-align:left;padding:3px>&nbsp;<span id=p5bottomstatus></span><td id=p5rightOfButtons style=text-align:right;padding:3px></table></div></div><div id=p10 style=display:none;position:absolute;bottom:0;top:0;width:100%;overflow:hidden><table id=p10deskTopTable cellspacing=0 style=margin:0;padding:0;border-spacing:0;border:0;position:absolute;top:0><tr style=padding:0><td style=padding:0;color:#c8c8c8;text-align:center;cursor:pointer width=60px valign=top onclick=goBack()><div style=padding:0;background-color:#036;width:10px;height:10px;float:right;border:0><div class=menucurve></div></div><div style="padding:0;font-size:25px;background-color:#036;width:50px;border-radius:0 0 10px 0;height:36px">◀</div><td><a id=MainComputerImage style=cursor:pointer onclick=p10showiconselector()></a><td><div style=margin-left:5px><strong><span id=p10deviceName></span></strong><br><span id=MainComputerState></span></div></table><div id=p10dialog style="z-index:1000;background-color:#eee;box-shadow:0 0 15px #666;font-family:Arial,Helvetica,sans-serif;border-radius:5px;position:fixed;top:30px;width:300px;left:30px;display:none"><div style="width:100%;background-color:#036;color:#fff;border-radius:5px 5px 0 0"><div style=padding:5px>Klavye Kısayollarını Özelleştirme</div><div style=width:100%;margin:6px></div></div><div style=margin-right:16px;margin-left:8px><div id=p10dialog2 style=margin:auto;margin:3px></div></div><div style=width:100%;padding:2px;text-align:center><input type=button value="Restore Default Keyboard Shortcuts"onclick=restoreDeskCustomizeKey()></div><div style=padding:10px;margin-bottom:20px><input type=button value=Tamam style=float:right;width:80px onclick=deskCustomizeKeysEx()></div></div><div id=p10general style=overflow-y:scroll;position:absolute;top:55px;bottom:0;width:100%><div class=deviceNotifyLargeDot><img id=p10deviceStar class=deviceNotifyLargeDotSub src=images/icon-star-notify-40.png width=35 height=35><div id=p10deviceMsg onclick=showDeviceMessages(null,null,event) class=deviceNotifyLargeDotSub></div><img id=p10deviceNotify onclick=showDeviceSessions() class=deviceNotifyLargeDotSub src=images/icon-relay-notify-40.png width=35 height=35> <img id=p10deviceHelp onclick=showDeviceHelpRequests(null,null,event) class=deviceNotifyLargeDotSub src=images/icon-help-notify-40.png width=35 height=35></div><div id=p10deviceBattery class="deviceBatteryLarge deviceBatteryLarge1"></div><div id=p10html style=margin-left:8px;margin-right:8px></div><div id=p10html2></div><div id=p10html3 style=margin-left:8px></div></div><img id=deskkeybutton1 src=images/mobile-desk-exit.png class=deskButton style=top:10px;display:none onclick=exitButton()> <img id=deskkeybutton3a src=images/mobile-desk-menu-open.png class=deskButton style=top:60px;display:none onclick=toggleMenu(!1)> <img id=deskkeybutton3b src=images/mobile-desk-menu-close.png class=deskButton style=top:60px;display:none onclick=toggleMenu(!0)> <img id=deskkeybutton4a src=images/mobile-desk-mouse-left.png class=deskButton style=top:110px;display:none onclick=deskChangeMouseButton(0)> <img id=deskkeybutton4b src=images/mobile-desk-mouse-right.png class=deskButton style=top:110px;display:none onclick=deskChangeMouseButton(1)> <img id=deskkeybutton5a src=images/mobile-desk-scale-out.png class=deskButton style=top:160px;display:none onclick=deskChangeFullscreenZoom()> <img id=deskkeybutton5b src=images/mobile-desk-scale-in.png class=deskButton style=top:160px;display:none onclick=deskChangeFullscreenZoom()> <img id=deskkeybutton2a src=images/mobile-desk-keyboard-open.png class=deskButton style=top:210px;display:none onclick=toggleKeyboard()> <img id=deskkeybutton2b src=images/mobile-desk-keyboard-close.png class=deskButton style=top:210px;display:none onclick=toggleKeyboard()><div style=position:absolute;top:0;left:0;z-index:200;opacity:0;width:1px;height:1px><input id=softKeyboard autocapitalize=off autocomplete=off inputmode=text spellcheck=false style=z-index:200;opacity:0;width:1px;height:1px onfocus=keyboardFocusChange() onblur=keyboardFocusChange()></div><div id=deskButtonMenu style=display:none;position:absolute;top:10px;left:10px;right:55px;bottom:10px;z-index:1000></div><div id=p10desktop style=overflow:hidden;position:absolute;top:55px;bottom:0;width:100%;display:none><div id=deskarea1 style=position:absolute;top:0;width:100%;height:32px><div style=padding-top:2px;padding-bottom:2px;background:silver;height:32px><div style=float:right;text-align:right><span id=p14power></span>&nbsp; <input type=button id=deskFullScreen value="Tam ekran"onclick=deskToggleFull(event) onkeypress=return!1 onkeydown=return!1 disabled style=height:28px;margin-right:3px></div><div style=margin-left:3px><input type=button id=connectbutton1 value=Bağlan onclick=connectDesktop(event,3) onkeypress=return!1 onkeydown=return!1 disabled style=height:28px> <input type=button id=connectbutton1h value="HW Connect"onclick=connectDesktop(event,2) onkeypress=return!1 onkeydown=return!1 disabled style=height:28px> <input type=button id=disconnectbutton1 value="Bağlantıyı kes"onclick=connectDesktop(event,0) onkeypress=return!1 onkeydown=return!1 style=height:28px> <span id=deskstatus style=color:#000>Bağlantı kesildi</span></div></div></div><div id=deskarea3 style="position:absolute;top:32px;width:100%;height:calc(100% - 64px);background-color:#000;text-align:center"><div id=DeskParent style=height:100%><canvas id=Desk width=640 height=200 style=width:100%;-ms-touch-action:none;margin-left:0 oncontextmenu=return!1 onmousedown=dmousedown(event) onmouseup=dmouseup(event) onmousemove=dmousemove(event) onmousewheel=dmousewheel(event)></canvas></div><div id=p11DeskConsoleMsg style=display:none;cursor:pointer;position:absolute;left:30px;top:17px;color:#ff0;background-color:rgba(0,0,0,.6);padding:10px;border-radius:5px;text-align:left onclick=p11clearConsoleMsg()></div><div id=p11DeskSessionSelector style=display:none;position:absolute;left:30px;top:17px;right:30px;bottom:17px;overflow-y:auto></div></div><div id=deskarea4 style=position:absolute;bottom:0;width:100%;height:32px><div style=padding-top:2px;padding-bottom:2px;background:silver><div style=float:right;text-align:right;padding-right:2px><span id=DeskLockButton><img src=images/icon-lock.png onclick=deviceLockFunction() height=16 width=16 style=padding-top:5px;cursor:pointer></span><span id=DeskChatButton><img src=images/icon-chat.png onclick=deviceChat(event) height=16 width=16 style=padding-top:5px;cursor:pointer></span>&nbsp; <span id=DeskToastButton><img src=images/icon-notify.png onclick=deviceToastFunction() height=16 width=16 style=padding-top:5px;cursor:pointer></span>&nbsp; <span id=DeskOpenWebButton><img src=images/icon-url2.png onclick=deviceUrlFunction() height=16 width=16 style=padding-top:5px;cursor:pointer></span>&nbsp; <span id=DeskRunButton><img src=images/icon-play.png onclick=runDeviceCmd() height=16 width=16 style=padding-top:5px;cursor:pointer></span></div><div><input id=deskActionsBtn type=button style=margin-left:3px;height:28px onkeypress=return!1 onkeydown=return!1 value=İşlemler onclick=deviceActionFunction()> <input type=button value=Ayarlar onkeypress=return!1 onkeydown=return!1 onclick=showDesktopSettings() style=height:28px> <input type=button onkeypress=return!1 onkeydown=return!1 value="Açma/Kapatma İşlemleri ..."onclick=showPowerActionDlg() style=display:none;height:28px> <input type=button id=DeskScreens value=Ekranlar onkeypress=return!1 onkeydown=return!1 onclick=deskSelectScreens() style=display:none;height:28px> <label><span id=DeskControlSpan style=display:none><input id=DeskControl type=checkbox onkeypress=return!1 onkeydown=return!1>Giriş</span></label></div></div></div></div><div id=termButtonMenu style=display:none;position:absolute;top:10px;left:10px;right:55px;bottom:10px;z-index:1000></div><div id=p10terminal style=overflow:hidden;position:absolute;top:55px;bottom:0;width:100%;display:none;background-color:#333><div id=termTable style=position:absolute;top:0;bottom:0;left:0;right:0><div id=termarea1><div class=areaHead style=line-height:24px><div class=toright2><input type=button id=termFullScreen value="Tam ekran"onclick=deskToggleFull(event) onkeypress=return!1 onkeydown=return!1 disabled style=height:28px;margin-right:3px><div id=terminalCustomUpperRight style=float:left;margin-right:6px></div></div><div><span id=connectbutton2span style=margin-left:3px><input type=button id=connectbutton2 value=Bağlan style=height:28px onclick=connectTerminal(event,1) onkeypress=return!1 onkeydown=return!1 disabled></span><span id=connectbutton2sspan style=margin-right:4px><input type=button id=connectbutton2s value="SSH Bağlantısı"style=height:28px onclick=connectTerminal(event,3) onkeypress=return!1 onkeydown=return!1 disabled></span><span id=disconnectbutton2span style=margin-left:3px><input type=button id=disconnectbutton2 value="Bağlantıyı kes"style=height:28px onclick=connectTerminal(event,0) onkeypress=return!1 onkeydown=return!1></span><span id=termstatus style=line-height:22px>Bağlantı kesildi</span><span id=termtitle></span></div></div></div><div id=termarea3 style="width:100%;height:calc(100% - 60px)"cellpadding=0 cellspacing=0><div id=termarea3x style=width:100%;height:100%><div style=width:100%;height:100%;text-align:left id=termarea3xdiv></div></div></div><div id=termarea4 style=position:relative;height:32px><div class=areaFoot><div class=toright2></div><div style=height:28px><input id=termActionsBtn style=margin-left:3px;height:28px type=button title="Cihazda güç işlemleri gerçekleştirin"onkeypress=return!1 onkeydown=return!1 value=İşlemler onclick=deviceActionFunction()> <input id=ctrlcbutton style=margin-left:3px;height:28px type=button onkeypress=return!1 onkeydown=return!1 value=Ctl-C onclick='termSendKey(3,"ctrlcbutton")'> <input id=ctrlxbutton style=margin-left:3px;height:28px type=button onkeypress=return!1 onkeydown=return!1 value=Ctl-X onclick='termSendKey(24,"ctrlxbutton")'> <input id=escbutton style=margin-left:3px;height:28px type=button onkeypress=return!1 onkeydown=return!1 value=ESC onclick='termSendKey(27,"escbutton")'></div></div></div><div id=p12TermConsoleMsg style=display:none;cursor:pointer;position:absolute;left:30px;top:45px;color:#ff0;background-color:rgba(0,0,0,.6);padding:10px;border-radius:5px onclick=p12clearConsoleMsg()></div></div></div><div id=p10files style=position:absolute;top:55px;bottom:0;width:100%;display:none><table id=p13toolbar style=width:100%;height:111px cellpadding=0 cellspacing=0><tr><td style="background-color:silver;border-bottom:2px solid #000;padding:2px;line-height:24px"><div style=float:right;text-align:right><input id=filesActionsBtn type=button onkeypress=return!1 onkeydown=return!1 value=İşlemler onclick=deviceActionFunction() style=margin-right:2px><div id=filesCustomUpperRight style=float:left;margin-right:6px></div></div><div style=margin-left:2px><input id=p13AutoConnect value="Otomatik bağlantı"onclick=autoConnectFiles(event) onkeypress=return!1 onkeydown=return!1 type=button style=display:none> <input id=p13Connect value=Bağlan onclick=connectFiles(event,1) onkeypress=return!1 onkeydown=return!1 type=button> <input id=p13Connects value="SFTP Bağlantısı"onclick=connectFiles(event,2) onkeypress=return!1 onkeydown=return!1 type=button> <input id=p13Disconnect value="Bağlantıyı kes"onclick=connectFiles(event) onkeypress=return!1 onkeydown=return!1 type=button> <span class=textOverGray id=p13Status>Bağlantı kesildi</span></div><tr><td style=width:100%;background-color:#d3d9d6;text-align:left;padding:4px valign=bottom><div style=width:100%;text-align:center><input type=button style="width:calc(100%/5 - 5px)"id=p13FolderUp disabled onclick=p13folderup() value=Yukarı> <input type=button style="width:calc(100%/5 - 5px)"id=p13SelectAllButton disabled onclick=p13selectallfile() value="Hepsini seç"onkeypress=return!1 onkeydown=return!1> <input type=button style="width:calc(100%/5 - 5px)"id=p13RenameFileButton disabled value="Yeniden adlandır"onclick=p13renamefile() onkeypress=return!1 onkeydown=return!1> <input type=button style="width:calc(100%/5 - 5px)"id=p13DeleteFileButton disabled value=Sil onclick=p13deletefile() onkeypress=return!1 onkeydown=return!1> <input type=button style="width:calc(100%/5 - 5px)"id=p13NewFolderButton disabled value=Klasör onclick=p13createfolder() onkeypress=return!1 onkeydown=return!1></div><div style=width:100%;text-align:center><input type=button style="width:calc(100%/5 - 5px)"id=p13UploadButton disabled value=Gönder onclick=p13uploadFile() onkeypress=return!1 onkeydown=return!1> <input type=button style="width:calc(100%/5 - 5px)"id=p13CutButton disabled value=Kes onclick=p13copyFile(1) onkeypress=return!1 onkeydown=return!1> <input type=button style="width:calc(100%/5 - 5px)"id=p13CopyButton disabled value=Kopyala onclick=p13copyFile(0) onkeypress=return!1 onkeydown=return!1> <input type=button style="width:calc(100%/5 - 5px)"id=p13PasteButton disabled value=Yapıştır onclick=p13pasteFile() onkeypress=return!1 onkeydown=return!1> <input type=button style="width:calc(100%/5 - 5px)"id=p13RefreshButton disabled value=Yenile onclick=p13folderup(9999) onkeypress=return!1 onkeydown=return!1></div><tr><td style=background-color:#e4e9e7;height:28px><table style=width:100%><tr><td id=p13currentpath style=overflow:hidden;padding-left:4px;padding-top:2px;color:#000><td style=text-align:right;padding-right:4px><select id=p13sortdropdown onchange=p13updateFiles()><option value=1 selected>İsme göre sırala<option value=2>Boyuta göre sırala<option value=3>Tarihe göre sırala<option value=4>Ada göre ters<option value=5>Boyuta göre ters<option value=6>Tarihe göre ters</select></table></table><div id=p13FilesConsoleMsg style=display:none;cursor:pointer;position:absolute;left:30px;top:165px;color:#ff0;background-color:rgba(0,0,0,.6);padding:10px;border-radius:5px onclick=p13clearConsoleMsg()></div><div id=p13filetable style="width:100%;height:calc(100% - 133px);overflow:auto;-webkit-user-select:none"><span id=p13files></span></div><table id=p13toolbarBottom style=width:100%;height:22px;position:absolute;bottom:0 cellpadding=0 cellspacing=0><tr><td style=text-align:left;padding:3px;text-align:center;background-color:#d3d9d6;color:#000>&nbsp;<span id=p13bottomstatus></span></table></div><div id=p10details style=overflow-y:scroll;position:absolute;top:55px;bottom:0;width:100%><div id=p10detailshtml style=margin-left:-3px></div></div><div id=p10console style=overflow:hidden;position:absolute;top:55px;bottom:0;width:100%><table id=consoleTable cellpadding=0 cellspacing=0><tr style=height:28px><td class=areaHead><div class=toright2><div id=p15coreName></div><input type=button id=p15uploadCore value="Agent İşlemleri"onclick=p15uploadCore(event)></div><div id=p15statetext></div><tr><td id=p15agentConsole style=position:relative><pre id=p15agentConsoleText></pre><tr style=height:28px><td class=areaFoot><table style=width:100%><tr><td style=width:99%><input id=p15consoleText style=width:100%;box-sizing:border-box onkeyup=p15consoleSend(event)><td id=p15outputselecttd><select id=p15outputselect onchange=setupConsole()><option id=p15outputselect1 value=1>Agent<option id=p15outputselect3 value=3>İtmek<option id=p15outputselect2 value=2>MQTT</select><td style=width:1%><input id=id_p15consoleClear type=button class=bottombutton value=Açık onclick=p15consoleClear()></table></table></div></div><div id=p20 style=display:none;position:absolute;bottom:0;top:0;width:100%><table cellspacing=0 style=margin:0;padding:0;border-spacing:0;border:0;position:absolute;top:0><tr style=padding:0><td style=padding:0;color:#c8c8c8;text-align:center;cursor:pointer width=60px valign=top onclick=goBack()><div style=padding:0;background-color:#036;width:10px;height:10px;float:right;border:0><div class=menucurve></div></div><div style="padding:0;font-size:25px;background-color:#036;width:50px;border-radius:0 0 10px 0;height:36px">◀</div><td onclick=p20editmesh(1)><img src=/images/meshicon50.png width=50 height=50><td onclick=p20editmesh(1)><div style=margin-left:5px><strong style=font-size:large><span id=p20meshName></span></strong><br></div></table><div style=overflow-y:auto;position:absolute;top:55px;bottom:0;left:0;right:0><div id=p20info style=margin-left:8px;margin-right:8px></div></div></div></div></div><div id=footer style=height:32px;width:100%;text-align:center;background-color:#113962;position:absolute;bottom:0><table id=footerMenu cellpadding=0 cellspacing=0 style=height:32px;width:100%;color:#fff;cursor:pointer;table-layout:fixed></table></div></div><div id=dialog style=display:none><div style="width:100%;background-color:#036;color:#fff;border-radius:5px 5px 0 0"><div id=id_dialogclose style=float:right;padding:5px;cursor:pointer onclick=setDialogMode()><b>X</b></div><div id=id_dialogtitle style=padding:5px></div><div style=width:100%;margin:6px></div></div><div style=margin-right:16px;margin-left:8px><div id=dialog1 style=margin:auto;text-align:center;margin:3px><div id=id_dialogMessage style=padding:10px></div></div><div id=dialog2 style=margin:auto;margin:3px><div id=id_dialogOptions></div></div><div id=dialog3 style=margin:auto;margin:3px><select id=deskkeys style=width:100%><option value=10>Ctrl + Alt + Del<option value=11>Sekme<option value=5>Galibiyet<option value=0>Win + Aşağı<option value=1>Win + Yukarı<option value=2>Win + L<option value=3>Win + M<option value=4>Shift + Win + M<option value=6>Win + R<option value=7>Alt-F4<option value=8>Ctrl-W<option value=9>Alt-Tab<option value=12>Shift-F10</select></div><div id=dialog4 style=margin:auto;margin:3px><div id=d3upload><div>Dosya Seçimi</div><select id=d3uploadMode onchange=d3modechange()><option value=1>Yerel dosya gönderme<option value=2>Sunucu dosyası seçimi</select></div><div id=d3localmode style=display:none><div>Dosya gönder</div><form id=d3localmodeform method=post enctype=multipart/form-data action=uploadfile.ashx target=fileUploadFrame><input id=d3auth name=auth style=display:none> <input id=d3filter name=filter style=display:none> <input id=d3attrib name=attrib style=display:none> <input type=file id=d3localFile name=files onchange=d3setActions()> <input type=submit id=d3submit style=display:none></form></div><div id=d3servermode><div id=d3serveraction valign=bottom><input type=button id=p3FolderUp disabled onclick=d3folderup() value=Yukarı>&nbsp;<span id=p3CurrentFolder></span></div><div id=d3serverfiles></div></div></div><div id=dialog7 style=margin:auto;margin:3px><div id=d7meshkvm><h4 style="width:100%;border-bottom:1px solid gray">Agent Uzak Masaüstü</h4><table style=width:100%><tr><td>Kalite<td style=width:100px><select id=d7bitmapquality style=float:right;width:200px dir=rtl></select><tr><td>Ölçeklendirme<td style=width:100px><select id=d7bitmapscaling style=float:right;width:200px dir=rtl><option selected value=1024>100%<option value=896>% 87.5<option value=768>% 75<option value=640>% 62,5<option value=512>% 50<option value=384>% 37,5<option value=256>% 25<option value=128>% 12.5</select><tr><td>Oranı<td style=width:100px><select id=d7framelimiter style=float:right;width:200px dir=rtl><option selected value=50>Hızlı<option value=100>Orta<option value=400>Yavaş<option value=1000>Çok yavaş</select><tr><td>Kodlama<td style=width:100px><select id=d7encoding style=float:right;width:200px dir=rtl><option value=1>JPEG<option value=2>PNG<option value=3>TIFF<option selected value=4>WEBP</select><tr><td><td><label style=display:block id=d7deskAutoLockLabel><input type=checkbox id=d7deskAutoLock>Bağlantıyı Keste Kilitle</label></table></div><div id=d7amtkvm><h4 style="width:100%;border-bottom:1px solid gray">Intel® AMT Donanımı KVM</h4><table style=width:100%><tr><td>Kodlama<td style=width:100px><select id=d7desktopmode style=float:right;width:200px><option value=1>RLE8, En Hızlı<option value=2>RLE16, Önerilen<option value=3>RAW8, Yavaş<option value=4>RAW16, Çok Yavaş</select></table></div></div></div><div id=idx_dlgButtonBar style=padding:10px;margin-bottom:20px><input id=idx_dlgCancelButton type=button value=İptal style=float:right;width:80px;margin-left:5px onclick=dialogclose(0)> <input id=idx_dlgOkButton type=button value=Tamam style=float:right;width:80px onclick=dialogclose(1)><div><input id=idx_dlgDeleteButton type=button value=Sil style=display:none onclick=dialogclose(2)></div></div></div><div id=topMenu style="z-index:1000;background-color:#eee;box-shadow:0 0 15px #666;font-family:Arial,Helvetica,sans-serif;border-radius:0 0 5px 5px;position:fixed;top:50px;right:5px;width:170px;display:none"><div style="padding:12px;border-top:1px solid gray;color:#000;cursor:pointer"onclick=topMenu(2)>Dosyalarım</div><div style="padding:12px;border-top:1px solid gray;color:#000;cursor:pointer"onclick=topMenu(1)>Hesabım</div><div id=logoutMenuOption><a id=logoutMenuOptionRef href=/logout><div style="padding:12px;border-top:1px solid gray;color:#000;cursor:pointer">Çıkış Yap</div></a></div></div><audio id=chimes><source src=sounds/chimes.mp3 type=audio/mp3></audio><iframe name=fileUploadFrame style=display:none></iframe><script>"use strict";var random="{{{randomlength}}}",webState="{{{webstate}}}";for(var i in""!=webState&&(webState=JSON.parse(decodeURIComponent(webState))),webState)try{localStorage.setItem(i,webState[i])}catch(e){}if(webState&&!webState.loctag)try{localStorage.removeItem("loctag")}catch(e){}var urlargs=parseUriArgs();null!=urlargs.key&&(urlargs.key=""+urlargs.key),urlargs.key&&0==isAlphaNumeric(urlargs.key)&&delete urlargs.key,urlargs.locale&&0==isAlphaNumeric(urlargs.locale)&&delete urlargs.locale,delete urlargs.user,delete urlargs.pass,delete urlargs.viewmode,delete urlargs.gotonode,delete urlargs.gotodevicename,delete urlargs.gotodevicername,delete urlargs.gotodeviceip,delete urlargs.gotomesh,delete urlargs.panel;var args=parseUriArgs();args.key&&0==isAlphaNumeric(args.key)&&delete args.key,args.locale&&0==isAlphaNumeric(args.locale)&&delete args.locale;var debugLevel=parseInt("{{{debuglevel}}}"),features=parseInt("{{{features}}}"),features2=parseInt("{{{features2}}}"),features3=parseInt("{{{features3}}}"),sessionTime=parseInt("{{{sessiontime}}}"),sessionRefreshTimer=null,domain="{{{domain}}}",domainUrl="{{{domainurl}}}",authCookie="{{{authCookie}}}",authRelayCookie="{{{authRelayCookie}}}",logoutControls=JSON.parse(decodeURIComponent("{{{logoutControls}}}")),authCookieRenewTimer=null,webRelayPort=parseInt("{{{webRelayPort}}}"),hidePowerTimeline="{{{hidePowerTimeline}}}",webRelayDns="{{{webRelayDns}}}",meshserver=null,xdr=null,usergroups=null,stars={},serverinfo=null,nodes=[],meshes={},filetree={},userinfo=null,users=(serverinfo=null,null),nodeShortIdent=0,serverPublicNamePort="{{{serverDnsName}}}:{{{serverPublicPort}}}",debugmode=!1,attemptWebRTC=!!(128&features),webrtcconfiguration="{{{webrtcconfig}}}";if(""==webrtcconfiguration)webrtcconfiguration=null;else try{webrtcconfiguration=JSON.parse(decodeURIComponent(webrtcconfiguration))}catch(e){console.log('Invalid WebRTC config: "'+webrtcconfiguration+'".'),webrtcconfiguration=null}var files,terminal,StatusStrs=["Bağlantı kesildi","Bağlanıyor...","Kurmak...","Bağlandı","Intel&reg; AMT Bağlı"],agentsStr=["Bilinmeyen","Windows 32bit komut satırı","Windows 64bit komut satırı","Windows 32bit hizmeti","Windows 64bit hizmeti","Linux 32bit","Linux 64bit","MIPS","XENx86","Android","Linux ARM","macOS x86-32bit","Android x86","PogoPlug KOLU","Android","Linux Poky x86-32bit","macOS x86-64bit","ChromeOS","Linux Poky x86-64bit","Linux NoKVM x86-32bit","Linux NoKVM x86-64bit","Windows MinCore komut satırı","Windows MinCore hizmeti","NodeJS","ARM-Linaro","ARMv6l / ARMv7l","ARMv8 64bit","ARMv6l / ARMv7l / NoKVM","MIPS24KC (OpenWRT)","Apple Silicon","FreeBSD x86-64","Bilinmeyen","Linux ARM 64 bit","Alpine Linux x86 64 Bit (MUSL)","Asistan (Windows)","Armada370 - ARM32/HF (libc/2.26)","OpenWRT x86-64","OpenBSD x86-64","Bilinmeyen","Bilinmeyen","MIPSEL24KC (OpenWRT)","ARMADA/CORTEX-A53/MUSL (OpenWRT)","Windows ARM 64bit console","Windows ARM 64bit service","ARMVIRT32 (OpenWRT)","RISC-V x86-64"],domainStates=["Yok","Azure AD","On-Premises AD","Hybrid AD","Microsoft Account"],passRequirements="{{{passRequirements}}}";""!=passRequirements&&(passRequirements=JSON.parse(decodeURIComponent(passRequirements)));var deskPinchZoom,sessionActivity=Date.now(),deskKeyboardShortcuts=[],nightMode=setNightMode(),xterm=null,xtermfit=null,xtermimage=null,xtermResizeTimer=null,devicePagingState=null,p11DeskConsoleMsgTimer=null,p12TermConsoleMsgTimer=null,p13FilesConsoleMsgTimer=null,webpSupport=!1;function startup(){if(!(32&features)){var e=null;try{e=top.location.toString().toLowerCase()}catch(e){}if(top!=self&&(null==e||0==top.active))return void(top.location=self.location)}if(!args.locale){var t=getstore("loctag",0);null!=t&&"*"!=t&&(args.locale=t)}window.onresize=center,center(),QV("changeEmailId",!(2097152&features)),QH("p1message","Bağlanıyor..."),go(1),document.onkeypress=ondeskkeypress,document.onkeydown=ondeskkeydown,document.onkeyup=ondeskkeyup,document.onclick=function(e){999==xxdialogMode&&"topMenuIcon"!=e.target.id&&(QV("topMenu",!1),xxdialogMode=0)},(meshserver=MeshServerCreateControl(domainUrl)).onStateChanged=onStateChanged,meshserver.onMessage=onMessage,meshserver.trace=args.trace,meshserver.Start();try{stars=JSON.parse(getstore("stars","{}"))}catch(e){}logoutControls&&logoutControls.logoutUrl&&(Q("logoutMenuOptionRef").href=logoutControls.logoutUrl);var n=localStorage.getItem("desktopsettings");null!=n&&(desktopsettings=JSON.parse(n)),applyDesktopSettings(),null!=args.webrtc&&(attemptWebRTC=1==args.webrtc),sessionTime>=10&&(sessionRefreshTimer=setTimeout(refreshCookieSession,Math.round(6e4*sessionTime*.8))),QV("setDarkModeLink",!(3145728&features2)),deskKeyboardShortcuts=[];var a=getstore("deskKeyShortcuts","0x0A002E,0x100000,0x100028,0x100026,0x10004C,0x10004D,0x11004D,0x100052,0x020073,0x080057,0x020009,0x100025,0x100027").split(",");for(var i in a)deskKeyboardShortcuts.push(parseInt(a[i]));updateDeskShortcutKeys(),updateTermShortcutKeys()}function refreshCookieSession(){var e=null;try{e=new XDomainRequest}catch(e){}e||(e=new XMLHttpRequest),e.open("GET",window.location.origin+domainUrl+"refresh.ashx"),e.timeout=15e3,e.onload=function(){sessionRefreshTimer=setTimeout(refreshCookieSession,Math.round(6e4*sessionTime*.8))},e.onerror=e.ontimeout=function(){sessionRefreshTimer=null},e.send()}function onStateChanged(e,t,n,a){if(0==t){if(setDialogMode(0),go(0),deleteAllNotifications(),"noauth"==a)return void QH("p0span","Kimlik doğrulama gerçekleştirilemiyor");2==n?setTimeout(serverPoll,5e3):QH("p0span","Web soketine bağlanılamıyor"),null!=authCookieRenewTimer&&(clearInterval(authCookieRenewTimer),authCookieRenewTimer=null),devicePagingState=null,updateDevicePageState()}else 2==t&&(meshserver.send({action:"usergroups"}),meshserver.send({action:"meshes"}),meshserver.send({action:"nodes",skip:null==devicePagingState?0:devicePagingState.skip}),meshserver.send({action:"files"}),authCookieRenewTimer=setInterval(function(){meshserver.send({action:"authcookie"})},18e5));QV("topMenuIcon",2==t)}function serverPoll(){xdr=null;try{xdr=new XDomainRequest}catch(e){}xdr||(xdr=new XMLHttpRequest),xdr.open("HEAD",window.location.href),xdr.timeout=15e3,xdr.onload=function(){xdr.status<500?reload():setTimeout(serverPoll,1e4)},xdr.onerror=xdr.ontimeout=function(){setTimeout(serverPoll,1e4)},xdr.send()}function updateSelf(){var e=!!(256&features2);if(userinfo&&(e=4294967295!=userinfo.siteadmin&&!!(1024&userinfo.siteadmin)||!!(256&features2)),QV("p3AccountActions",!(4&features)&&0==serverinfo.domainauth&&0==e),QV("logoutMenuOption",!(4&features)&&0==serverinfo.domainauth),QV("p2AccountSecurity",!(4&features||0!=serverinfo.domainauth||!(4096&features)||0!=e)),QV("p2AccountImage",!e),QV("verifyEmailId",!0!==userinfo.emailVerified&&null!=userinfo.email&&1==serverinfo.emailcheck),QV("manageAuthApp",1!=serverinfo.lock2factor&&4096&features&&(1==userinfo.otpsecret||!(131072&features2))),QV("manageOtp",1!=serverinfo.lock2factor&&!(262144&features2)&&4096&features&&(1==userinfo.otpsecret||userinfo.otphkeys>0)),QV("authPhoneNumberCheck",null!=userinfo.phone),QV("authEmailSetupCheck",1==userinfo.otpekey&&null!=userinfo.email&&1==userinfo.emailVerified),QV("authAppSetupCheck",1==userinfo.otpsecret),QV("authCodesSetupCheck",userinfo.otpkeys>0),QV("p2AccountActions",!(4&features)&&0==serverinfo.domainauth&&null!=userinfo),QV("p2AccountPassActions",!(4&features)&&0==serverinfo.domainauth&&null!=userinfo&&0==userinfo._id.split("/")[2].startsWith("~")),QV("p3createMeshLink1",!1),QV("p3createMeshLink2",!1),null!=userinfo.flags&&1&userinfo.flags?(null==userinfo.accountImageRnd&&(userinfo.accountImageRnd=Math.floor(9999999999*Math.random())),Q("p2AccountImage").src="userimage.ashx?rnd="+userinfo.accountImageRnd):Q("p2AccountImage").src="images/user-256.png","number"==typeof userinfo.passchange)if(-1==userinfo.passchange)QH("p2nextPasswordUpdateTime"," - Sonraki girişte sıfırlayın.");else if(null!=passRequirements&&"number"==typeof passRequirements.reset){var t=userinfo.passchange+86400*passRequirements.reset-Math.floor(Date.now()/1e3);if(t<0)QH("p2nextPasswordUpdateTime"," - Sonraki girişte sıfırlayın.");else if(t<3600){var n=Math.floor(t/60);QH("p2nextPasswordUpdateTime",format(1==n?" - 1 dakika içinde sıfırlayın.":" - {0} dakika içinde sıfırlayın.",n))}else if(t<86400){var a=Math.floor(t/3600);QH("p2nextPasswordUpdateTime",format(1==a?" - 1 saat içinde sıfırlayın.":" - {0} saat içinde sıfırlayın.",a))}else{var i=Math.floor(t/86400);QH("p2nextPasswordUpdateTime",format(1==a?" - 1 gün içinde sıfırlayın.":"- {0} gün içinde sıfırlayın.",i))}}}function setSessionActivity(){sessionActivity=Date.now()}function checkIdleSessionTimeout(){Date.now()-sessionActivity>serverinfo.timeout&&(null!=desktop&&(desktop.Stop(),desktopNode=desktop=null),null!=terminal&&(terminal.Stop(),terminal=null),null!=files&&(files.Stop(),files=null),serverinfo.logoutonidlesessiontimeout&&(urlargs.key?window.location.href="logout?key="+urlargs.key:window.location.href="logout"))}function onMessage(e,t){switch(t.action){case"serverinfo":if((serverinfo=t.serverinfo).timeout&&(setInterval(checkIdleSessionTimeout,1e4),checkIdleSessionTimeout()),null!=userinfo&&updateSelf(),null!=serverinfo.certExpire){var n=Math.floor((serverinfo.certExpire-Date.now())/864e5);n>=0&&n<20&&addNotification({text:format("Sertifikanın süresi {0} gün içinde dolacak",n)})}QV("manageEmail2FA",8388608&features&&1!=serverinfo.lock2factor),QV("managePhoneNumber1",33554432&features&&67108864&features&&1!=serverinfo.lock2factor),QV("managePhoneNumber2",33554432&features&&!(67108864&features)&&1!=serverinfo.lock2factor);break;case"authcookie":authCookie=t.cookie,authRelayCookie=t.rcookie;break;case"userinfo":userinfo=t.userinfo,QH("p3userName",userinfo.name),null!=serverinfo&&updateSelf();break;case"users":for(var a in users={},t.users)users[t.users[a]._id]=t.users[a];null!=currentUser&&(currentUser=users[currentUser._id]),updateUsers();break;case"wssessioncount":wssessions=t.wssessions,updateUsers();break;case"meshes":for(var a in meshes={},t.meshes)meshes[t.meshes[a]._id]=t.meshes[a];null!=currentMesh&&(currentMesh=meshes[currentMesh._id]),updateMeshes(),mainUpdate(4);break;case"usergroups":var i=0;if(Array.isArray(t.ugroups)){for(var o in usergroups={},t.ugroups)i++,usergroups[t.ugroups[o]._id]=t.ugroups[o];0==i&&(usergroups=null)}else{for(var o in usergroups=t.ugroups,t.ugroups)i++;0==i&&(usergroups=null)}break;case"files":filetree=setupBackPointers(t.filetree),updateFiles();break;case"nodes":for(var a in nodes=[],t.nodes)for(var l in t.nodes[a])t.nodes[a][l].namel=t.nodes[a][l].name.toLowerCase(),t.nodes[a][l].rname?t.nodes[a][l].rnamel=t.nodes[a][l].rname.toLowerCase():t.nodes[a][l].rnamel=t.nodes[a][l].namel,t.nodes[a][l].meshnamel=meshes[a]?meshes[a].name.toLowerCase():"*",t.nodes[a][l].meshid=a,t.nodes[a][l].state=t.nodes[a][l].state?t.nodes[a][l].state:0,t.nodes[a][l].desc=t.nodes[a][l].desc,t.nodes[a][l].icon||(t.nodes[a][l].icon=1),t.nodes[a][l].ident=++nodeShortIdent,nodes.push(t.nodes[a][l]);null!=currentNode&&0==IsNodeViewable(currentNode)&&(currentNode=null,go(2)),null!=currentNode&&(null!=(currentNode=getNodeFromId(currentNode._id))?gotoDevice(currentNode._id,xxcurrentView,!0):go(2)),devicePagingState=null==t.totalcount?null:{total:t.totalcount,skip:t.skip,limit:t.limit},updateDevicePageState(),mainUpdate(4),0==xxcurrentView&&go(parseInt("{{viewmode}}")),gotoDevice("{{currentNode}}",parseInt("{{viewmode}}"));break;case"powertimeline":if(t.nodeid!=powerTimelineReq)break;for(var o in powerTimelineNode=t.nodeid,powerTimeline=t.timeline,powerTimelineUpdate=Date.now()+3e5,powerTimeline)o%2==1&&(powerTimeline[o]=1e3*powerTimeline[o]);currentNode._id==t.nodeid&&drawDeviceTimeline();break;case"getsysinfo":if(t.nodeid!=powerTimelineReq)break;!0===t.noinfo?updateDeviceDetails(getNodeFromId(t.nodeid)):(t.hardware.time=t.time,updateDeviceDetails(getNodeFromId(t.nodeid),t.hardware));break;case"lastconnect":null!=(x=getNodeFromId(t.nodeid))&&(x.lastconnect=t.time,x.lastaddr=t.addr);break;case"msg":if(null!=t.nodeid){var s=-1;if(null!=nodes)for(var o in nodes)if(nodes[o]._id==t.nodeid){s=o;break}if(-1!=s)if("console"==t.type)p15consoleReceive(nodes[s],t.value,t.source);else if("notify"==t.type){if(!(8&(l=getstore("notifications",0)))&&null!=t.amtMessage)break;l={text:t.value,title:t.title,icon:t.icon,titleid:t.titleid,msgid:t.msgid,args:t.args};null!=t.id&&(l.id=t.id),null!=t.nodeid&&(l.nodeid=t.nodeid),null!=t.tag&&(l.tag=t.tag),null!=t.url&&(l.url=t.url),null!=t.username&&(l.username=t.username),"number"==typeof t.maxtime&&(l.maxtime=t.maxtime),addNotification(l)}else if("userSessions"==t.type&&null!=currentNode&&currentNode._id==t.nodeid&&null==desktop){var r=[];if(null!=t.data)for(var o in t.data)"Active"!=t.data[o].State&&"Console"!=t.data[o].StationName&&3!=debugmode||r.push(t.data[o]);if(0==r.length)connectDesktop(null,1,null,t.tag);else if(1==r.length)connectDesktop(null,1,r[0].SessionId,t.tag);else{var d="",u="{{{userSessionsSort}}}";for(var o in r.sort(function(e,t){return e[u]?t[u]?e[u]<t[u]?-1:e[u]>t[u]?1:0:1:-1}),r)d+='<div style="text-align:left;cursor:pointer;background-color:gray;margin:5px;padding:5px;border-radius:5px" onclick=connectDesktop(event,1,'+r[o].SessionId+","+t.tag+")>"+r[o].State+", "+r[o].StationName,r[o].Username&&(r[o].Domain?d+=" - "+r[o].Domain+"/"+r[o].Username:d+=" - "+r[o].Username),d+="</div>";QH("p11DeskSessionSelector",d),QV("p11DeskSessionSelector",!0)}}}else if("notify"==t.type){l={text:t.value,title:t.title,icon:t.icon,titleid:t.titleid,msgid:t.msgid,args:t.args};null!=t.id&&(l.id=t.id),null!=t.tag&&(l.tag=t.tag),null!=t.url&&(l.url=t.url),null!=t.username&&(l.username=t.username),"number"==typeof t.maxtime&&(l.maxtime=t.maxtime),addNotification(l)}break;case"getnetworkinfo":if(currentNode._id!=t.nodeid)return;updateDeviceDetails(getNodeFromId(t.nodeid),null,t);break;case"getNotes":if((l=Q("d2devNotes"))&&t.id==decodeURIComponent(l.attributes.noteid.value))t.notes?QH("d2devNotes",decodeURIComponent(t.notes)):QH("d2devNotes",""),0==("true"==l.attributes.ro.value)&&(l.removeAttribute("readonly"),QE("idx_dlgOkButton",!0),QV("idx_dlgOkButton",!0),focusTextBox("d2devNotes"));break;case"otpauth-request":if(2==xxdialogMode&&"otpauth-request"==xxdialogTag)if(null!=t.err){var c=["","2FA kilitlendi","Yedek kodlar kilitli","Giriş belirteci kullanımda","OTP 2FA'ya izin verilmiyor","Hesap kilitlendi","OTPLIB yüklenemiyor"];t.err>0&&t.err<c.length?QH("d2optinfo",c[t.err]):QH("d2optinfo",format("Hata #{0}",t.err))}else{var p=t.secret;52==p.length?p=p.split(/(.............)/).filter(Boolean).join(" "):32==p.length&&(p=(p=p.split(/(....)/).filter(Boolean).join(" ")).substring(0,20)+"<br/>"+p.substring(20)),QH("d2optinfo",format('Yüklemek <a href="https://play.google.com/store/apps/details?id=com.google.android.apps.authenticator2" rel="noreferrer noopener" target=_blank>Google Authenticator\'ı yükleyin </a> veya uyumlu bir uygulama için <a href="{0}" rel="noreferrer noopener" target=_blank> bu bağlantıyı </a> kullanın veya aşağıdaki şifreyi girin. Ardından, 2 Adımlı oturum açma özelliğini etkinleştirmek için mevcut 6 basamaklı anahtarı girin.',t.url)+'<br /><br /><div style=width:100%;text-align:center><tt id=d2optsecret secret="'+t.secret+'" style=font-size:15px>'+p+'</tt><br /><br />Token: <input type=text autocomplete="one-time-code" inputmode="numeric" pattern="[0-9]*" onkeypress="return (event.keyCode == 8) || (event.charCode >= 48 && event.charCode <= 57)" onkeyup=account_addOtpCheck(event) onkeydown=account_addOtpCheck() maxlength=6 id=d2otpauthinput type=text></div>'),QV("idx_dlgOkButton",!0),QE("idx_dlgOkButton",!1),Q("d2otpauthinput").focus()}break;case"otpauth-setup":if(xxdialogMode)return;setDialogMode(2,"Kimlik Doğrulama Uygulaması",1,null,t.success?"<b style=color:green>Kimlik doğrulama uygulaması aktivasyonu başarılı.</b> Şimdi tekrar giriş yapmak için geçerli bir anahtara ihtiyacınız olacak.":"<b style=color:red>2 adımlı oturum açma etkinleştirilemedi.</b> Sırrı uygulamadan temizleyin ve tekrar deneyin. Doğru kodu girmek için yalnızca birkaç dakikanız var.");break;case"otpauth-clear":if(xxdialogMode)return;setDialogMode(2,"Kimlik Doğrulama Uygulaması",1,null,t.success?"<b>Kimlik doğrulama uygulaması kaldırıldı.</b> Bu özelliği istediğiniz zaman yeniden etkinleştirebilirsiniz.":"<b style=color:red>2 adımlı oturum açma etkinleştirme kaldırılamadı.</b> Tekrar deneyin.");break;case"otpauth-getpasswords":if(xxdialogMode)return;d="Tek seferlik belirteçler, ikincil kimlik doğrulama olarak kullanılabilir. Bir set oluşturun, yazdırın ve güvenli bir yerde saklayın.";if(d+="<div style='border-radius:6px;border: 2px dashed #888;width:100%;margin-top:8px'><div style='padding:8px;font-family:Arial, Helvetica, sans-serif;font-size:20px;font-weight:bold'><table style=width:100%;text-align:center>",t.passwords){var m=0;for(var o in t.passwords){++m%2&&(d+="<tr>");for(var g=""+t.passwords[o].p;g.length<8;)g="0"+g;!0===t.passwords[o].u?d+="<td>"+g.substring(0,4)+"&nbsp;"+g.substring(4):d+="<td><strike style=color:#BBB>"+g.substring(0,4)+"&nbsp;"+g.substring(4)}}else d+="<tr><td>Aktif Anahtar Yok";d+="</table></div></div><br />",d+="<div><input type=button value='Kapat' onclick=setDialogMode(0) style=float:right></input>",d+="<input type=button value='Yeni Anahtarlar' onclick='account_manageOtp(1);'></input>",null!=t.passwords&&(d+="<input type=button value='Açık' onclick='account_manageOtp(2);'></input>"),setDialogMode(2,"Yedek Kodları Yönetin",8,null,d+="</div><br />","otpauth-manage");break;case"verifyPhone":if(xxdialogMode&&"verifyPhone"!=xxdialogTag)return;d='<table><tr><td><img src="images/phone80.png" style=padding:8px>';d+="<td>Check your phone and enter the verification code.",setDialogMode(2,"Telefon Bildirimleri",3,account_managePhoneConfirm,d+='<br /><br /><div style=width:100%;text-align:center>Doğrulama kodu: <input type=tel pattern="[0-9]" inputmode="number" maxlength=6 id=d2phoneCodeInput onKeyUp=account_managePhoneCodeValidate() onkeypress="if (event.key==\'Enter\') account_managePhoneCodeValidate(1)"></div></table>',t.cookie),Q("d2phoneCodeInput").focus(),account_managePhoneCodeValidate();break;case"previousLogins":if(2==xxdialogMode&&"previousLogins"==xxdialogTag){d="";var f="BBB";if(0==t.events.length)d+="No previous login.";else{for(var o in d+="<div style=max-height:260px;overflow-y:scroll;overflow-x:hidden>",t.events){107==(a=t.events[o].m)?(a="Geçerli giriş",f="BBD1BB",""):108==a?(a="Geçersiz 2FA",f="DD9DC3","x"):109==a?(a="Kilitli hesap",f="E1BBBB","x"):110==a&&(a="Geçersiz şifre",f="E1BBBB","x"),d+="<div style=width:260px;background-color:#"+f+";border-radius:6px;margin-bottom:4px;padding:4px><div><b>"+EscapeHtml(a)+"</b><br />"+printDateTime(new Date(t.events[o].t))+"</div><div style=font-size:x-small>"+EscapeHtml(t.events[o].a.join(", "))+"</div></div></tr>"}d+="</div>"}setDialogMode(2,"Önceki Girişler",1,null,d)}break;case"event":if(t.event.noact)break;switch(t.event.action){case"serverinfochange":null!=t.event.lock2factor&&(serverinfo.lock2factor=t.event.lock2factor,updateSelf());break;case"userWebState":if(null!=localStorage){var h=JSON.parse(t.event.state);for(var o in h)localStorage.setItem(o,h[o]);if(null!=h.stars&&(stars=JSON.parse(h.stars)),null!=h.loctag&&h.loctag!=oldLoctag?(null!=h.loctag?args.locale=h.loctag:delete args.locale,mainUpdate(132)):null!=h.stars&&(mainUpdate(4),"*"==Q("SearchInput").value&&onSearchInputChanged()),currentNode&&refreshDevice(currentNode._id),null!=h.deskKeyShortcuts){deskKeyboardShortcuts=[];var v=h.deskKeyShortcuts.split(",");for(var o in v)deskKeyboardShortcuts.push(parseInt(v[o]));updateDeskShortcutKeys()}}break;case"accountchange":if("object"!=typeof t.event.account||null==t.event.account)return void console.log(t.event);if(userinfo.name==t.event.account.name){t.event.account.siteadmin&&t.event.account.siteadmin,userinfo.siteadmin&&userinfo.siteadmin;(t.event.account.quota!=userinfo.quota||!(8&userinfo.siteadmin)&&8&t.event.account.siteadmin)&&meshserver.send({action:"files"}),userinfo=t.event.account,updateSelf(),t.event.nodeListChange==userinfo._id&&meshserver.send({action:"nodes",skip:null==devicePagingState?0:devicePagingState.skip})}break;case"createusergroup":case"usergroupchange":null==usergroups&&(usergroups={});var k=usergroups[t.event.ugrpid];null==k?usergroups[t.event.ugrpid]={_id:t.event.ugrpid,name:t.event.name,desc:t.event.desc,domain:t.event.domain,links:t.event.links}:(k.name=t.event.name,k.desc=t.event.desc,k.links=t.event.links,k.flags=t.event.flags),meshserver.send({action:"meshes"}),meshserver.send({action:"nodes",skip:null==devicePagingState?0:devicePagingState.skip});break;case"deleteusergroup":if(null!=usergroups&&null!=usergroups[t.event.ugrpid]){delete usergroups[t.event.ugrpid];f=0;for(var o in usergroups)f++;0==f&&(usergroups=null)}break;case"createmesh":null!=meshes[t.event.meshid]||!userinfo.manageAllDeviceGroups&&null==t.event.mesh.links[userinfo._id]||(meshes[t.event.meshid]=t.event.mesh,mainUpdate(132),meshserver.send({action:"files"}));break;case"meshchange":if(null==meshes[t.event.meshid]){var y=!1;for(var o in null!=t.event.links[userinfo._id]&&(y=!0),null!=userinfo.links[t.event.meshid]&&(y=!0),userinfo.links)o.startsWith("ugrp/")&&null!=t.event.links[o]&&(y=!0);y&&(meshes[t.event.meshid]={_id:t.event.meshid,name:t.event.name,mtype:t.event.mtype,desc:t.event.desc,links:t.event.links,relayid:t.event.relayid},meshserver.send({action:"nodes",skip:null==devicePagingState?0:devicePagingState.skip}))}else{if(meshes[t.event.meshid].name!=t.event.name)for(var o in meshes[t.event.meshid].name=t.event.name,nodes)nodes[o].meshid==t.event.meshid&&(nodes[o].meshnamel=t.event.name.toLowerCase());if(meshes[t.event.meshid].desc=t.event.desc,meshes[t.event.meshid].links=t.event.links,null!=t.event.relayid&&(meshes[t.event.meshid].relayid=t.event.relayid),0==IsMeshViewable(t.event.meshid)){20==xxcurrentView&&currentMesh==meshes[t.event.meshid]&&go(2),delete meshes[t.event.meshid];var b=[];for(var o in nodes)(nodes[o].meshid!=t.event.meshid||null!=userinfo.links&&null!=userinfo.links[nodes[o]._id])&&b.push(nodes[o]);nodes=b,xxcurrentView>=10&&xxcurrentView<20&&currentNode&&!IsNodeViewable(currentNode)&&(setDialogMode(0),go(2),currentNode=null)}}mainUpdate(132),meshserver.send({action:"files"}),20==xxcurrentView&&currentMesh._id==t.event.meshid&&p20updateMesh();break;case"deletemesh":meshes[t.event.meshid]&&(delete meshes[t.event.meshid],updateMeshes(),meshserver.send({action:"files"}));b=[];for(var o in nodes)nodes[o].meshid!=t.event.meshid&&b.push(nodes[o]);nodes=b,mainUpdate(4),xxcurrentView>=20&&xxcurrentView<30&&currentMesh._id==t.event.meshid&&(setDialogMode(0),go(2)),xxcurrentView>=10&&xxcurrentView<20&&currentNode&&!IsNodeViewable(currentNode)&&(setDialogMode(0),go(2));break;case"addnode":var x=t.event.node;if(!meshes[x.meshid])break;if(null!=getNodeFromId(x._id))break;x.namel=x.name.toLowerCase(),x.rname?x.rnamel=x.rname.toLowerCase():x.rnamel=x.namel,x.meshnamel=meshes[x.meshid]?meshes[x.meshid].name.toLowerCase():"*",x.state=0,x.icon||(x.icon=1),x.ident=++nodeShortIdent,nodes.push(x),mainUpdate(4);break;case"removenode":s=-1;for(var o in nodes)if(nodes[o]._id==t.event.nodeid){s=o;break}if(-1!=s){x=nodes[s];currentNode==x&&(xxcurrentView>=10&&xxcurrentView<20&&(setDialogMode(0),go(2)),currentNode=null),nodes.splice(s,1),mainUpdate(4)}break;case"changenode":s=-1;for(var o in nodes)if(nodes[o]._id==t.event.nodeid){s=o;break}if(-1!=s)(x=nodes[s]).name=t.event.node.name,x.rname=t.event.node.rname,x.lusers=t.event.node.lusers,x.users=t.event.node.users,x.host=t.event.node.host,x.desc=t.event.node.desc,x.publicip=t.event.node.publicip,x.iploc=t.event.node.iploc,x.wifiloc=t.event.node.wifiloc,x.gpsloc=t.event.node.gpsloc,x.tags=t.event.node.tags,x.ssh=t.event.node.ssh,x.rdp=t.event.node.rdp,x.userloc=t.event.node.userloc,x.rdpport=t.event.node.rdpport,x.rfbport=t.event.node.rfbport,x.sshport=t.event.node.sshport,x.httpport=t.event.node.httpport,x.httpsport=t.event.node.httpsport,x.consent=t.event.node.consent,x.pmt=t.event.node.pmt,null!=t.event.node.agent&&(null==x.agent&&(x.agent={}),null!=t.event.node.agent.ver&&(x.agent.ver=t.event.node.agent.ver),null!=t.event.node.agent.id&&(x.agent.id=t.event.node.agent.id),null!=t.event.node.agent.caps&&(x.agent.caps=t.event.node.agent.caps),null!=t.event.node.agent.root&&(x.agent.root=t.event.node.agent.root),null!=t.event.node.agent.core?x.agent.core=t.event.node.agent.core:x.agent.core&&delete x.agent.core,x.agent.tag=t.event.node.agent.tag),null!=t.event.node.intelamt&&(null==x.intelamt&&(x.intelamt={}),null!=t.event.node.intelamt.state&&(x.intelamt.state=t.event.node.intelamt.state),null!=t.event.node.intelamt.host&&(x.intelamt.user=t.event.node.intelamt.host),null!=t.event.node.intelamt.user&&(x.intelamt.user=t.event.node.intelamt.user),null!=t.event.node.intelamt.tls&&(x.intelamt.tls=t.event.node.intelamt.tls),null!=t.event.node.intelamt.ver&&(x.intelamt.ver=t.event.node.intelamt.ver),null!=t.event.node.intelamt.tag&&(x.intelamt.tag=t.event.node.intelamt.tag),null!=t.event.node.intelamt.uuid&&(x.intelamt.uuid=t.event.node.intelamt.uuid),null!=t.event.node.intelamt.realm&&(x.intelamt.realm=t.event.node.intelamt.realm),null!=t.event.node.intelamt.flags&&(x.intelamt.flags=t.event.node.intelamt.flags),null!=t.event.node.intelamt.warn?x.intelamt.warn=t.event.node.intelamt.warn:delete x.intelamt.warn),null!=t.event.node.av&&(x.av=t.event.node.av),null!=t.event.node.wsc&&(x.wsc=t.event.node.wsc),null!=t.event.node.defender&&(x.defender=t.event.node.defender),x.namel=x.name.toLowerCase(),x.rname?x.rnamel=x.rname.toLowerCase():x.rnamel=x.namel,t.event.node.icon&&(x.icon=t.event.node.icon),null!=t.event.node.lastbootuptime&&(x.lastbootuptime=t.event.node.lastbootuptime),null!=t.event.node.idletime&&(x.idletime=t.event.node.idletime),refreshDevice(x._id),updateDeviceViewDevice(x),currentNode==x&&updateDeviceDetails();break;case"nodemeshchange":s=-1;for(var o in nodes)if(nodes[o]._id==t.event.nodeid){s=o;break}if(-1!=s){x=nodes[s];null!=meshes[t.event.newMeshId]||null!=userinfo.links&&null!=userinfo.links[x._id]?(x.meshid=t.event.newMeshId,x.meshnamel=meshes[t.event.newMeshId]?meshes[t.event.newMeshId].name.toLowerCase():"*"):(xxcurrentView>=10&&xxcurrentView<20&&currentNode&&!IsNodeViewable(currentNode)&&(setDialogMode(0),go(2),currentNode=null),nodes.splice(s,1)),mainUpdate(4),refreshDevice(t.event.nodeid)}else{x=t.event.node;if(!meshes[x.meshid])break;x.namel=x.name.toLowerCase(),x.rname?x.rnamel=x.rname.toLowerCase():x.rnamel=x.namel,x.meshnamel=meshes[x.meshid]?meshes[x.meshid].name.toLowerCase():"*",x.state=0,x.icon||(x.icon=1),x.ident=++nodeShortIdent,nodes.push(x),mainUpdate(4)}break;case"nodeconnect":s=-1;for(var o in nodes)if(nodes[o]._id==t.event.nodeid){s=o;break}if(-1!=s)(x=nodes[s]).conn=t.event.conn,x.pwr=t.event.pwr,1&x.conn||delete x.sessions,refreshDevice(x._id),updateDeviceViewDevice(x);break;case"login":null!=users&&users["user/"+domain+"/"+t.event.username.toLowerCase()]&&(users["user/"+domain+"/"+t.event.username.toLowerCase()].login=t.event.time);break;case"notify":l={text:t.event.value,title:t.event.title,icon:t.event.icon,titleid:t.titleid,msgid:t.msgid,args:t.args};null!=t.id&&(l.id=t.id),null!=t.event.tag&&(l.tag=t.event.tag),"number"==typeof t.maxtime&&(l.maxtime=t.maxtime),addNotification(l);break;case"sysinfohash":null!=currentNode&&t.event.nodeid==powerTimelineReq&&meshserver.send({action:"getsysinfo",nodeid:t.event.nodeid});break;case"ifchange":null!=currentNode&&currentNode._id==t.event.nodeid&&meshserver.send({action:"getnetworkinfo",nodeid:currentNode._id});break;case"devicesessions":if(null==(x=getNodeFromId(t.event.nodeid)))break;if(x.sessions=t.event.sessions,null!=x.sessions){for(var o in x.sessions)0==Object.keys(x.sessions[o]).length&&delete x.sessions[o];0==Object.keys(x.sessions).length&&delete x.sessions}refreshDevice(t.event.nodeid),updateDeviceViewDevice(x),xxdialogTag=="SESSIONS-"+t.event.nodeid&&showDeviceSessions(t.event.nodeid,!0),xxdialogTag=="HELPREQ-"+t.event.nodeid&&showDeviceHelpRequests(t.event.nodeid,!0)}break;case"getcookie":if("novnc"==t.tag){var w=window.location.origin+domainUrl+"novnc/vnc.html?ws=wss%3A%2F%2F"+window.location.host+encodeURIComponentEx(domainUrl)+(t.localRelay?"local":"mesh")+"relay.ashx%3Fauth%3D"+t.cookie+"&show_dot=1"+(urlargs.key?"&key="+urlargs.key:"")+"&l={{{lang}}}";null!=(x=getNodeFromId(t.nodeid))&&(w+="&name="+encodeURIComponentEx(x.name)),safeNewWindow(w,"mcnovnc/"+t.nodeid)}else if("mstsc"==t.tag){var S=window.location.origin+domainUrl+"mstsc.html?ws="+t.cookie+(urlargs.key?"&key="+urlargs.key:"");null!=(x=getNodeFromId(t.nodeid))&&(S+="&name="+encodeURIComponentEx(x.name)),t.localRelay&&(S+="&local=1"),safeNewWindow(S,"mcmstsc/"+t.nodeid)}else if("ssh"==t.tag){var D=window.location.origin+domainUrl+"ssh.html?ws="+t.cookie+(urlargs.key?"&key="+urlargs.key:"");null!=(x=getNodeFromId(t.nodeid))&&(D+="&name="+encodeURIComponentEx(x.name)),t.localRelay&&(D+="&local=1"),safeNewWindow(D,"mcssh/"+t.nodeid)}}}check_webp_feature("lossy",function(e,t){webpSupport=t,t||(d7encoding.options[1].disabled=!0,d7encoding.value=1)});var updateNaggleTimer=null,updateNaggleFlags=0;function mainUpdate(e){updateNaggleFlags|=e,null==updateNaggleTimer&&(updateNaggleTimer=setTimeout(function(){1&updateNaggleFlags&&onSearchInputChanged(),4&updateNaggleFlags&&(updateDevices(),updateDeviceDetails()),128&updateNaggleFlags&&updateMeshes(),updateNaggleTimer=null,updateNaggleFlags=0,gotoStartViewPage()},150))}function gotoStartViewPage(){var e=parseInt("{{viewmode}}");if(!(xxcurrentView>1)){if(""!="{{currentNode}}".toLowerCase()){if(null==getNodeFromId("{{currentNode}}"))return;gotoDevice("{{currentNode}}",e)}else if(null!=args.gotonode){if(96==args.gotonode.length&&(args.gotonode=btoa(hex2rstr(args.gotonode)).split("+").join("@").split("/").join("$")),null==getNodeFromId("node/"+domain+"/"+args.gotonode))return;args.panel&&(currentDevicePanel=parseInt(args.panel)),gotoDevice("node/"+domain+"/"+args.gotonode,e)}else if(null!=args.gotodevicename){var t=null;if(null!=nodes)for(var n in nodes)nodes[n].name==args.gotodevicename&&(t=nodes[n]._id);t&&(gotoDevice(t,e),go(e))}else if(null!=args.gotodevicername){t=null;if(null!=nodes)for(var n in nodes)nodes[n].rname==args.gotodevicername&&(t=nodes[n]._id);t&&(gotoDevice(t,e),goBackStack.push(1))}else if(null!=args.gotodeviceip){t=null;if(null!=nodes)for(var n in nodes)nodes[n].ip==args.gotodeviceip&&(t=nodes[n]._id);t&&(gotoDevice(t,e),go(e))}else if(null!=args.gotomesh){if(null==meshes["mesh/"+domain+"/"+args.gotomesh])return;gotoMesh("mesh/"+domain+"/"+args.gotomesh),go(e)}else isNaN(e)?(setDialogMode(0),go(1)):go(e);delete args.gotonode,delete args.gotomesh,delete args.panel,xxcurrentView<2&&go(2)}}function topMenu(e){null!=xxdialogMode&&0!=xxdialogMode&&999!=xxdialogMode||(void 0===e?1==("none"==QS("topMenu").display)?0!=xxdialogMode&&null!=xxdialogMode||(QV("topMenu",!0),xxdialogMode=999):(QV("topMenu",!1),xxdialogMode=0):(QV("topMenu",!1),xxdialogMode=0,1==e&&3!=xxcurrentView&&goForward("account"),2==e&&5!=xxcurrentView&&goForward("files")))}var backStack=[];function goBack(){xxdialogMode||(backStack.length>0&&backStack.pop(),goStack())}function goForward(e){xxdialogMode||(backStack.push(e),goStack())}function goStack(){if(0!=backStack.length){var e=backStack[backStack.length-1],t=e.split("/")[0];if("node"==t&&(setupDeviceMenu(0),gotoDevice(e)),"mesh"==t&&gotoMesh(e),"account"==t&&go(3),"devices"==t&&go(2),"files"==t){if(262144&features&&!(1==userinfo.otpsecret||userinfo.otphkeys>0||userinfo.otpkeys>0||userinfo.otpduo>0||userinfo.otpdev>0||8388608&features&&1==userinfo.otpekey))return void setDialogMode(2,"Hesap Güvenliği",1,null,'Unable to access this feature until two-factor authentication is enabled. This is required for extra security. Go to the "My Account" and look at the "Account Security" section.');go(5)}}else go(2)}function updateFooterMenu(e){for(;null!=e&&e.length<3;)e.push({n:""});var t="",n="";if(null!=e)for(var a in e)t+='<td style="cursor:pointer'+(""==n?"":";border-left:solid 1px white")+'" onclick="'+e[a].f+'">'+e[a].n,n=e[a].n;QH("footerMenu","<tr>"+t)}function account_viewPreviousLogins(){xxdialogMode||(setDialogMode(2,"Önceki Girişler",1,null,"Yükleniyor...","previousLogins"),meshserver.send({action:"previousLogins"}))}function account_manageImage(e){if(!xxdialogMode){var t=0==e?userinfo:currentUser;setDialogMode(2,"Hesap Resmini Yönet",7,account_manageImageEx2,'<input id=p2file type=file style=width:100% accept="image/*" onchange=account_manageImageEx()><div style=width:100%><canvas id=p2canvas width=256 height=256 style="width:256px;height:256px;margin-left:12px;margin-top:8px;border-radius:16px;box-shadow: 0px 0px 15px #000" onclick=account_canvasClick() /></div>',t._id);var n=Q("p2canvas").getContext("2d");null==t.accountImageRnd&&(t.accountImageRnd=Math.floor(9999999999*Math.random()));var a="";1==e&&(a="&id="+t._id.split("/")[2]);var i=new Image;i.onload=function(){n.clearRect(0,0,256,256),n.drawImage(i,0,0)},i.src=null!=t.flags&&1&t.flags?"userimage.ashx?rnd="+t.accountImageRnd+a:"images/user-256.png",QE("idx_dlgDeleteButton",null!=t.flags&&1&t.flags),QE("idx_dlgOkButton",!1)}}function account_canvasClick(){Q("p2file").click()}function account_manageImageEx(){var e=Q("p2file").files[0],t=new Image;t.onload=function(){var e=0,n=0,a=Math.min(t.width,t.height);t.width>a&&(e=(t.width-a)/2),t.height>a&&(n=(t.height-a)/2);var i=Q("p2canvas").getContext("2d");i.imageSmoothingEnabled=!0,i.webkitImageSmoothingEnabled=!0,i.mozImageSmoothingEnabled=!0,i.clearRect(0,0,256,256),i.drawImage(t,e,n,a,a,0,0,256,256),QE("idx_dlgOkButton",!0)},t.src=URL.createObjectURL(e)}function account_manageImageEx2(e,t){meshserver.send({action:"updateUserImage",userid:t,image:2==e?0:Q("p2canvas").toDataURL("image/jpeg",.8)})}function toggleNightMode(){if(!xxdialogMode){var e=getstore("nightMode","0"),t="<input type=radio id=night0 name=nightmoderadio value=0 "+(0==e?"checked":"")+"><label for=night0>tarayıcı varsayılanı</label><br>";t+="<input type=radio id=night2 name=nightmoderadio value=2 "+(2==e?"checked":"")+"><label for=night2>Işık modu</label><br>",setDialogMode(2,"Gece modu",3,toggleNightModeEx,t+="<input type=radio id=night1 name=nightmoderadio value=1 "+(1==e?"checked":"")+"><label for=night1>Karanlık mod</label><br>"),QV("uiMenu",!1)}}function toggleNightModeEx(){var e="0";Q("night1").checked&&(e="1"),Q("night2").checked&&(e="2"),putstore("nightMode",e),setNightMode()}function setNightMode(){var e=getstore("nightMode","0");return nightMode=!1,1048576&features2&&(e="1"),2097152&features2&&(e="2"),"1"==e?nightMode=!0:"0"==e&&window.matchMedia&&(nightMode=window.matchMedia("(prefers-color-scheme: dark)").matches),nightMode?(QC("body").add("night"),QS("body")["background-color"]="#000",QS("body").color="lightgray"):(QC("body").remove("night"),QS("body")["background-color"]="#FFF",QS("body").color="black"),nightMode}function account_managePhone(){var e;!xxdialogMode&&33554432&features&&(null!=userinfo.phone?(e='<table style=width:100%><tr><td style=width:56px><img src="images/phone80.png" style=padding:8px>',e+="<td style=text-align:center><div style=padding:6px>Doğrulanmış telefon numarası</div><div style=font-size:20px>"+userinfo.phone+"</div>",setDialogMode(2,"Telefon Bildirimleri",3,account_managePhoneRemove,e+="<div style=margin:10px><label><input id=d2delPhone type=checkbox onclick=account_managePhoneRemoveValidate() />Telefon numarasını kaldır</label></div>"),account_managePhoneRemoveValidate()):(e='<table style=width:100%><tr><td style=width:56px><img src="images/phone80.png" style=padding:8px>',e+="<td>Enter your SMS capable phone number. Once verified, the number may be used for login verification and other notifications.",setDialogMode(2,"Telefon Bildirimleri",3,account_managePhoneAdd,e+='<br /><br /><div style=width:100%;text-align:center>Telefon numarası: <input type=tel pattern="[0-9]" autocomplete="tel" inputmode="tel" maxlength=18 id=d2phoneinput onKeyUp=account_managePhoneValidate() onkeypress="if (event.key==\'Enter\') account_managePhoneValidate(1)"></div></table>',"verifyPhone"),Q("d2phoneinput").focus(),account_managePhoneValidate()))}function isPhoneNumber(e){return e.match(/^\(?([0-9]{3,4})\)?[-. ]?([0-9]{3})[-. ]?([0-9]{4})$/)}function account_managePhoneValidate(e){var t=isPhoneNumber(Q("d2phoneinput").value);QE("idx_dlgOkButton",t),1==e&&t&&dialogclose(1)}function account_managePhoneCodeValidate(e){var t=6==Q("d2phoneCodeInput").value.length&&Q("d2phoneCodeInput").value.match(/[0-9]/);QE("idx_dlgOkButton",t),1==e&&t&&dialogclose(1)}function account_managePhoneConfirm(e,t){meshserver.send({action:"confirmPhone",code:Q("d2phoneCodeInput").value,cookie:t})}function account_managePhoneAdd(){0!=isPhoneNumber(Q("d2phoneinput").value)&&(QE("d2phoneinput",!1),meshserver.send({action:"verifyPhone",phone:Q("d2phoneinput").value}))}function account_managePhoneRemove(){Q("d2delPhone").checked&&meshserver.send({action:"removePhone"})}function account_managePhoneRemoveValidate(){QE("idx_dlgOkButton",Q("d2delPhone").checked)}function account_manageAuthEmail(){if(!xxdialogMode&&8388608&features){var e=1==userinfo.otpekey&&null!=userinfo.email&&1==userinfo.emailVerified;setDialogMode(2,"E-posta kimlik doğrulaması",1,function(){e!=Q("email2facheck").checked&&meshserver.send({action:"otpemail",enabled:Q("email2facheck").checked})},"Etkinleştirildiğinde, her girişte, ek güvenlik için e-posta hesabınıza bir giriş anahtarı alma seçeneği verilecektir.<br /><br /><label><input id=email2facheck type=checkbox "+(e?"checked":"")+"/>E-posta iki faktörlü kimlik doğrulamasını etkinleştirin.</label>")}}var d3filetreelinkpath,loclist={af:"Afrikalı",sq:"Arnavut",ar:"Arapça (Standart)","ar-dz":"Arapça (Cezayir)","ar-bh":"Arapça (Bahreyn)","ar-eg":"Arapça (Mısır)","ar-iq":"Arapça (Irak)","ar-jo":"Arapça (Ürdün)","ar-kw":"Arapça (Kuveyt)","ar-lb":"Arapça (Lübnan)","ar-ly":"Arapça (Libya)","ar-ma":"Arapça (Fas)","ar-om":"Arapça (Umman)","ar-qa":"Arapça (Katar)","ar-sa":"Arapça (Suudi Arabistan)","ar-sy":"Arapça (Suriye)","ar-tn":"Arapça (Tunus)","ar-ae":"Arapça (BAE)","ar-ye":"Arapça (Yemen)",an:"Aragonca",hy:"Ermeni",as:"Assamca",ast:"Asturca",az:"Azerice",eu:"Bask dili",bg:"Bulgarca",be:"Belarusça",bn:"Bengalce",bs:"Boşnakça",br:"Breton",my:"Birmanya",ca:"Katalanca",ch:"Çamorro dili",ce:"Çeçen",zh:"Çince","zh-hk":"Çince (Hong Kong)","zh-cn":"Çince (ÇHC)","zh-sg":"Çince (Singapur)","zh-tw":"Çince (Tayvan)",cv:"Çuvaş",co:"Korsikalı",cr:"Cree",hr:"Hırvat",cs:"Çek",da:"Danimarkalı",nl:"Hollandaca (Standart)","nl-be":"Hollandaca (Belçika)",en:"ingilizce","en-au":"İngilizce (Avustralya)","en-bz":"İngilizce (Belize)","en-ca":"İngilizce (Kanada)","en-ie":"İngilizce (İrlanda)","en-jm":"İngilizce (Jamaika)","en-nz":"İngilizce (Yeni Zelanda)","en-ph":"İngilizce (Filipinler)","en-za":"İngilizce (Güney Afrika)","en-tt":"İngilizce (Trinidad ve Tobago)","en-gb":"İngiliz Birleşik Krallık)","en-us":"İngilizce (Amerika Birleşik Devletleri)","en-zw":"İngilizce (Zimbabve)",eo:"Esperanto",et:"Estonyalı",fo:"Faero dili",fa:"Farsça (Farsça)",fj:"Fiji dili",fi:"Fince",fr:"Fransızca (Standart)","fr-be":"Fransızca (Belçika)","fr-ca":"Fransızca (Kanada)","fr-fr":"Fransızca Fransa)","fr-lu":"Fransızca (Lüksemburg)","fr-mc":"Fransızca (Monako)","fr-ch":"Fransızca (İsviçre)",fy:"Frizce",fur:"Friulian",gd:"Galce (İskoç)","gd-ie":"Galce (İrlanda)",gl:"Galacian",ka:"Gürcü",de:"Almanca (Standart)","de-at":"Almanca (Avusturya)","de-de":"Almanca (Almanya)","de-li":"Almanca (Lihtenştayn)","de-lu":"Almanca (Lüksemburg)","de-ch":"Almanca (İsviçre)",el:"Yunan",gu:"Gujurati",ht:"Haitili",he:"İbranice",hi:"Hintçe",hu:"Macarca",is:"İzlandaca",id:"Endonezya dili",iu:"İnuitçe",ga:"İrlandalı",it:"İtalyanca (Standart)","it-ch":"İtalyanca (İsviçre)",ja:"Japonca",kn:"Kannada",ks:"Keşmirce",kk:"Kazak",km:"Khmer",ky:"Kırgız",tlh:"Klingon",ko:"Koreli","ko-kp":"Korece (Kuzey Kore)","ko-kr":"Korece (Güney Kore)",la:"Latince",lv:"Letonca",lt:"Litvanyalı",lb:"Lüksemburgca",mk:"FYRO Makedonca",ms:"Malayca",ml:"Malayalam dili",mt:"Malta dili",mi:"Maori",mr:"Marathi",mo:"Moldovalı",nv:"Navajo",ng:"Ndonga",ne:"Nepalce",no:"Norveççe",nb:"Norveççe (Bokmal)",nn:"Norveççe (Nynorsk)",oc:"Oksitanca",or:"Oriya",om:"Oromo","fa-ir":"Farsça / İran",pl:"Lehçe",pt:"Portekizce","pt-br":"Portekiz Brezilyası)",pa:"Pencap dili","pa-in":"Pencap (Hindistan)","pa-pk":"Pencap (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanca",ro:"Romence","ro-mo":"Romence (Moldavya)",ru:"Rusça","ru-mo":"Rusça (Moldavya)",sz:"Sami (Laponya)",sg:"Sango",sa:"Sanskritçe",sc:"Sardunya",sd:"Sindice",si:"Singhalese",sr:"Sırpça",sk:"Slovak",sl:"Slovence",so:"Somani",sb:"Sorb dili",es:"İspanyol","es-ar":"İspanyolca (Arjantin)","es-bo":"İspanyolca (Bolivya)","es-cl":"İspanyolca (Şili)","es-co":"İspanyolca (Kolombiya)","es-cr":"İspanyolca (Kosta Rika)","es-do":"İspanyolca (Dominik Cumhuriyeti)","es-ec":"İspanyolca (Ekvador)","es-sv":"İspanyolca (El Salvador)","es-gt":"İspanyolca (Guatemala)","es-hn":"İspanyolca (Honduras)","es-mx":"İspanyolca (Meksika)","es-ni":"İspanyolca (Nikaragua)","es-pa":"İspanyolca (Panama)","es-py":"İspanyolca (Paraguay)","es-pe":"İspanyolca (Peru)","es-pr":"İspanyolca (Porto Riko)","es-es":"İspanyolca (İspanya)","es-uy":"İspanyolca (Uruguay)","es-ve":"İspanyolca (Venezuela)",sx:"Sutu",sw:"Svahili",sv:"İsveççe","sv-fi":"İsveççe (Finlandiya)","sv-sv":"İsveççe (İsveç)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Tay dili",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Türk",tk:"Türkmen",uk:"Ukrayna",hsb:"Yukarı Sorbca",ur:"Urduca",ve:"Venda",vi:"Vietnam",vo:"Volapuk",wa:"Valon",cy:"Galce",xh:"Xhosa",ji:"Yidiş",zu:"Zulu"},loclistex={"zh-chs":"Basitleştirilmiş Çince)","zh-cht":"Çin geleneği)"};function account_showLocalizationSettings(){if(xxdialogMode)return!1;var e=getstore("loctag",0),t="",n='<select id=d2locselect style=width:180px><option value="*">Kullanıcı tarayıcı değeri</option>';for(var a in loclist)n+='<option value="'+a+'"'+(e==a?" selected":"")+">"+a+" - "+loclist[a]+"</option>";if(n+="</select>",serverinfo.languages&&serverinfo.languages.length>0){t+="Dilin değiştirilmesi, sayfanın yenilenmesini gerektirir.<br /><br />";var i='<select id=d2langselect style=width:180px><option value="*">Kullanıcı tarayıcı değeri</option>';for(var a in serverinfo.languages){var o=serverinfo.languages[a];i+='<option value="'+o+'"'+(userinfo.lang==o?" selected":"")+">"+o+" - "+(loclist[o]?loclist[o]:loclistex[o])+"</option>"}t+=addHtmlValue("Dil",i+="</select>")}return t+=addHtmlValue("Tarihler ve Saat",n),4294967295==userinfo.siteadmin&&""==domain&&(t+='<br /><a rel="noreferrer noopener" target="_blank" href="translator.htm">MeshCentral\'ı çevirmeye yardım et</a>'),setDialogMode(2,"Yerelleştirme Ayarları",3,account_showLocalizationSettingsEx,t),!1}function account_showLocalizationSettingsEx(){var e=Q("d2langselect").value;"*"==e&&null==userinfo.lang&&(e=userinfo.lang),e!=userinfo.lang&&meshserver.send({action:"changelang",lang:e});var t=getstore("loctag",0),n=Q("d2locselect").value;t!=n&&("*"!=n?args.locale=n:delete args.locale,putstore("loctag",args.locale),mainUpdate(4294967295))}function account_manageAuthApp(){!xxdialogMode&&4096&features&&(1==userinfo.otpsecret?account_removeOtp():account_addOtp())}function account_addOtp(){!xxdialogMode&&1!=userinfo.otpsecret&&4096&features&&(setDialogMode(2,"Kimlik Doğrulama Uygulaması",2,function(){meshserver.send({action:"otpauth-setup",secret:Q("d2optsecret").attributes.secret.value,token:Q("d2otpauthinput").value})},"<div id=d2optinfo>Yükleniyor...</div>","otpauth-request"),meshserver.send({action:"otpauth-request"}))}function account_addOtpCheck(e){var t=6==Q("d2otpauthinput").value.length;QE("idx_dlgOkButton",t),e&&13==e.keyCode&&t&&dialogclose(1)}function account_removeOtp(){!xxdialogMode&&1==userinfo.otpsecret&&4096&features&&setDialogMode(2,"Kimlik Doğrulama Uygulaması",3,function(){meshserver.send({action:"otpauth-clear"})},"Kimlik doğrulayıcı uygulamasının 2 adımlı oturum açma işleminin kaldırılmasını onaylıyor musunuz?")}function account_manageOtp(e){2==xxdialogMode&&"otpauth-manage"==xxdialogTag&&dialogclose(0),xxdialogMode||!(4096&features)||1!=userinfo.otpsecret&&userinfo.otphkeys<1||meshserver.send({action:"otpauth-getpasswords",subaction:e})}function account_showVerifyEmail(){xxdialogMode||1==userinfo.emailVerified||1!=serverinfo.emailcheck||setDialogMode(2,"Eposta Doğrulama",3,account_showVerifyEmailEx,"Aşağıdaki adrese doğrulama postası göndermek için Tamam'ı tıklayın:<br /><div style=padding:8px><b>"+EscapeHtml(userinfo.email)+"</b></div>Doğrulamayı almak için lütfen birkaç dakika bekleyin.")}function account_showVerifyEmailEx(){meshserver.send({action:"verifyemail",email:userinfo.email})}function account_showChangeEmail(){xxdialogMode||(setDialogMode(2,"E-posta Adresi Değişikliği",3,account_changeEmail,addHtmlValue("E-posta","<input id=dp3email style=width:170px maxlength=256 onchange=account_validateEmail() onkeyup=account_validateEmail(event) />")),null!=userinfo.email&&(Q("dp3email").value=userinfo.email),account_validateEmail(),Q("dp3email").focus())}function account_validateEmail(e,t){QE("idx_dlgOkButton",validateEmail(Q("dp3email").value)&&Q("dp3email").value!=userinfo.email),null!=e&&13==e.keyCode&&dialogclose(1)}function account_changeEmail(){meshserver.send({action:"changeemail",email:Q("dp3email").value})}function account_showDeleteAccount(){if(!xxdialogMode){var e="<form method=post><table style=margin-left:10px><input type=hidden name=action value=deleteaccount /><input type=hidden name=authcookie value="+authCookie+" /><tr>";e+="<td align=right>Parola:</td><td><input id=apassword1 type=password name=apassword1 autocomplete=off onchange=account_validateDeleteAccount() onkeyup=account_validateDeleteAccount() /></td>",e+="</tr><tr><td align=right>Parola:</td><td><input id=apassword2 type=password name=apassword2 autocomplete=off onchange=account_validateDeleteAccount() onkeyup=account_validateDeleteAccount() /></td>",e+="</tr></table><div style=padding:10px;margin-bottom:4px>",e+='<input id=account_dlgCancelButton type=button value="İptal" style=float:right;width:80px;margin-left:5px onclick=dialogclose(0)>',e+='<input id=account_dlgOkButton type=submit value="Tamam" style="float:right;width:80px" onclick=dialogclose(1)>',setDialogMode(2,"Hesabı sil",0,null,e+="</div><br /></form>"),account_validateDeleteAccount(),Q("apassword1").focus()}}function account_showChangePassword(){if(xxdialogMode)return!1;var e="<table style=margin-left:10px>";if(e+="<tr><td align=right>"+nobreak("Eski şifre:")+"</td><td><input id=apassword0 type=password name=apassword0 autocomplete=off onchange=account_validateNewPassword() onkeyup=account_validateNewPassword() onkeydown=account_validateNewPassword() /> <b></b></td></tr>",e+="<tr><td align=right>"+nobreak("Yeni Şifre:")+"</td><td><input id=apassword1 type=password name=apassword1 autocomplete=off onchange=account_validateNewPassword() onkeyup=account_validateNewPassword() onkeydown=account_validateNewPassword() /> <b><span id=dxPassWarn></span></b></td></tr>",e+="<tr><td align=right>"+nobreak("Yeni Şifre:")+"</td><td><input id=apassword2 type=password name=apassword2 autocomplete=off onchange=account_validateNewPassword() onkeyup=account_validateNewPassword() onkeydown=account_validateNewPassword() /></td></tr>",65536&features&&(e+="<tr><td align=right>Şifre ipucu:</td><td><input id=apasswordhint name=apasswordhint maxlength=250 type=text autocomplete=off onchange=account_validateNewPassword() onkeyup=account_validateNewPassword() onkeydown=account_validateNewPassword() /></td></tr>"),e+="</table>",passRequirements){var t=[],n=0;for(var a in passRequirements)"reset"!=a&&"hint"!=a&&(t.push(a+":"+passRequirements[a]),n++);n>0&&(e+="<br /><span style=font-size:x-small>"+format("Gereksinimler: {0}.",t.join(", "))+"</span>")}return setDialogMode(2,"Şifre değiştir",3,account_showChangePasswordEx,e+="<br />"),Q("apassword0").focus(),account_validateNewPassword(),!1}function account_showChangePasswordEx(){if(Q("apassword1").value==Q("apassword2").value){var e={action:"changepassword",oldpass:Q("apassword0").value,newpass:Q("apassword1").value};65536&features&&(e.hint=Q("apasswordhint").value),meshserver.send(e)}}function account_createMesh(){if(!xxdialogMode)if(4294967295!=userinfo.siteadmin&&64&userinfo.siteadmin)setDialogMode(2,"Yeni Cihaz Grubu",1,null,"Bu hesap, yeni bir cihaz grubu oluşturma haklarına sahip değil.");else if(!0===userinfo.emailVerified||1!=serverinfo.emailcheck||4294967295==userinfo.siteadmin)if(!(262144&features)||1==userinfo.otpsecret||userinfo.otphkeys>0||userinfo.otpkeys>0||userinfo.otpduo>0||userinfo.otpdev>0||8388608&features&&1==userinfo.otpekey){var e=addHtmlValue("İsim","<input id=dp3meshname style=width:170px maxlength=64 onchange=account_validateMeshCreate() onkeyup=account_validateMeshCreate() />");e+=addHtmlValue("Yazı","<div style=width:170px;margin:0;padding:0><select id=dp3meshtype style=width:100% onchange=account_validateMeshCreate() ><option value=2>Agent Grubu</option><option value=1>Yalnızca Intel&reg; AMT</option></select></div>"),setDialogMode(2,"Cihaz Grubu Oluşturun",3,account_createMeshEx,e+=addHtmlValue("Açıklama","<div style=width:170px;margin:0;padding:0><textarea id=dp3meshdesc maxlength=1024 style=width:100%;resize:none></textarea></div>")),account_validateMeshCreate(),Q("dp3meshname").focus()}else setDialogMode(2,"Hesap Güvenliği",1,null,'İki faktörlü kimlik doğrulama etkinleştirilene kadar bir cihaza erişilemez. Bu, ekstra güvenlik için gereklidir. "Hesabım" a gidin ve "Hesap Güvenliği" bölümüne bakın.');else setDialogMode(2,"Hesap Güvenliği",1,null,'Bir e-posta adresi doğrulanana kadar bir cihaza erişilemiyor. Bu, şifre kurtarma için gereklidir. Bir e-posta adresini değiştirmek ve doğrulamak için "Hesabım" a gidin.')}function account_validateMeshCreate(){QE("idx_dlgOkButton",Q("dp3meshname").value.length>0)}function account_createMeshEx(e,t){meshserver.send({action:"createmesh",meshname:Q("dp3meshname").value,meshtype:parseInt(Q("dp3meshtype").value),desc:Q("dp3meshdesc").value})}function account_validateDeleteAccount(){QE("account_dlgOkButton",Q("apassword1").value.length>0&&Q("apassword1").value==Q("apassword2").value)}function account_validateNewPassword(){var e="",t=Q("apassword0").value.length>0&&Q("apassword1").value.length>0&&Q("apassword1").value==Q("apassword2").value&&Q("apassword0").value!=Q("apassword1").value;if(65536&features&&Q("apasswordhint").value==Q("apassword1").value&&(t=!1),""!=Q("apassword1").value)if(null==passRequirements||""==passRequirements){var n=checkPasswordStrength(Q("apassword1").value);e=n>=80?"<span style=color:green>Strong<span>":n>=60?"<span style=color:blue>&#9679;<span>":"<span style=color:red>&#9679;<span>"}else{0==checkPasswordRequirements(Q("apassword1").value,passRequirements)&&(t=!1,e="<span style=color:red>Politika<span>")}QH("dxPassWarn",e),QE("idx_dlgOkButton",t)}function checkPasswordStrength(e){var t=0,n={},a=0,i={digits:/\d/.test(e),lower:/[a-z]/.test(e),upper:/[A-Z]/.test(e),nonWords:/\W/.test(e)};if(!e)return 0;for(var o=0;o<e.length;o++)n[e[o]]=(n[e[o]]||0)+1,t+=5/n[e[o]];for(var l in i)a+=1==i[l]?1:0;return parseInt(t+10*(a-1))}function checkPasswordRequirements(e,t){if(null==t||""==t||"object"!=typeof t)return!0;if(t.min&&e.length<t.min)return!1;if(t.max&&e.length>t.max)return!1;for(var n=0,a=0,i=0,o=0,l=0;l<e.length;l++)/\d/.test(e[l])&&n++,/[a-z]/.test(e[l])&&a++,/[A-Z]/.test(e[l])&&i++,/\W/.test(e[l])&&o++;return!(t.numeric&&n<t.numeric)&&(!(t.lower&&a<t.lower)&&(!(t.upper&&i<t.upper)&&!(t.nonalpha&&o<t.nonalpha)))}function updateMeshes(){var e="",t=0;for(i in meshes){t++;var n=GetMeshRights(meshes[i]),a="Kısmi Haklar";4294967295==n?a="Tam Yönetici":0==n&&(a="Hak Yok"),e+="<div style=cursor:pointer onclick=goForward('"+i+"')>",e+='<div style="float:left;margin-left:4px"><img src="/images/meshicon50.png" width=50 height=50 /></div>',e+="<div class=meshList>",e+="<div><div style=color:black;padding-left:12px;padding-top:2px><b>"+EscapeHtml(meshes[i].name)+"</b></div><div style=padding-left:12px;padding-top:3px;color:black>"+a+"</div></div>",e+="</div></div>"}QH("p3meshes",e),QV("p3noMeshFound",0==t)}function gotoMesh(e){!(262144&features)||1==userinfo.otpsecret||userinfo.otphkeys>0||userinfo.otpkeys>0||userinfo.otpduo>0||userinfo.otpdev>0||8388608&features&&1==userinfo.otpekey?(null==(currentMesh=meshes[e])&&goBack(),p20updateMesh(),go(20)):setDialogMode(2,"Hesap Güvenliği",1,null,'Unable to access this feature until two-factor authentication is enabled. This is required for extra security. Go to the "My Account" and look at the "Account Security" section.')}function d3init(){d3fileoptions={dialog:1,filter:"d3filter",files:"d3serverfiles",folderup:"p3FolderUp",currentFolder:"p3CurrentFolder",func:d3setActions},Q("d3localFile").value="",Q("d3localFile").accept=Q("d3filter").value,d3modechange()}function d3modechange(){var e=Q("d3uploadMode").value;QV("d3localmode",1==e),QV("d3servermode",2==e),1==e?d3setActions():d3updatefiles()}var filetreelinkpath,d3filetreelocation=[],d3fileoptions=null;function d3updatefiles(){if(null!=d3fileoptions&&("d3filter"!=d3fileoptions.filter||1!=Q("d3uploadMode").value)){for(var e="",t="",n=filetree,a=1,i="",o=[],l=[],s=document.getElementsByName("fc"),r=0;r<s.length;r++)s[r].checked&&l.push(s[r].value);for(var r in d3filetreelinkpath="",d3filetreelocation){if(null==n.f||null==n.f[d3filetreelocation[r]])break;if(o.push(d3filetreelocation[r]),1==a){var d=d3filetreelocation[r].split("/");window.location.origin+domainUrl+d[0]+"files/"+d[2],d3filetreelocation[r]===userinfo._id?d3filetreelinkpath+="self":d3filetreelinkpath+=d[0]+"/"+d[2]}else""!=d3filetreelinkpath&&(d3filetreelinkpath+="/"+d3filetreelocation[r],a>2&&"/"+d3filetreelocation[r]);i=(n=n.f[d3filetreelocation[r]]).n,a++}d3filetreelocation=o;var u=p5sort_files(n.f),c="";for(var r in d3fileoptions.filter&&(c=Q(d3fileoptions.filter).value),u){var p,m=u[r],g=m.n;if(3!=m.t||""==c||0!=m.nx.toLowerCase().endsWith(c)){p=EscapeHtml(g);var f="";null!=m.s&&(f=getFileSizeStr(m.s));var h="";if(3!=m.t){h='<div class=filelist file=999><span style=float:right title=""></span><span title="'+p+'"><div class=fileIcon'+m.t+' onclick=d3folderset("'+encodeURIComponentEx(m.nx)+'")></div>&nbsp;<a href=# style=cursor:pointer onclick=\'return d3folderset("'+encodeURIComponentEx(m.nx)+"\")'>"+p+"</a></span></div>"}else{var v=p;h='<div class=filelist file=3><input style=float:left name=fcx class=fcb type=checkbox onchange=d3setActions() value="'+m.nx+'">&nbsp;<span style=float:right>'+EscapeHtml(f)+'</span><span title="'+p+'"><div class=fileIcon'+m.t+"></div>"+v+"</span></div>"}m.t<3?e+=h:t+=h}}d3fileoptions.currentFolder&&QH(d3fileoptions.currentFolder,i),QH(d3fileoptions.files,e+t),QE(d3fileoptions.folderup,d3filetreelocation.length>0),d3fileoptions.func&&d3fileoptions.func()}}function d3folderset(e){return d3filetreelocation.push(decodeURIComponent(e)),d3updatefiles(),!1}function d3folderup(e){if(null==e)d3filetreelocation.pop();else for(;d3filetreelocation.length>e;)d3filetreelocation.pop();d3updatefiles()}function d3getFileSel(){for(var e=[],t=document.getElementsByName("fcx"),n=0;n<t.length;n++)t[n].checked&&e.push(t[n].value);return e}function d3setActions(){1==d3fileoptions.dialog?1==Q("d3uploadMode").value?QE("idx_dlgOkButton",Q("d3localFile").value.length>0):QE("idx_dlgOkButton",1==d3getFileSel().length):2==d3fileoptions.dialog&&QE("idx_dlgOkButton",1==d3getFileSel().length)}var sortorder,filetreelocation=[];function p5refreshFiles(){meshserver.send({action:"files"})}function updateFiles(){if(QV("MainMenuMyFiles",!(8&features)),!(8&features)){for(var e,t="",n="",a="<a style=cursor:pointer;color:black onclick=p5folderup(0)>Kök</a>",i="Root",o=filetree,l=1,s=[],r=filetreelinkpath,d=[],u=document.getElementsByName("fc"),c=0;c<u.length;c++)u[c].checked&&d.push(u[c].value);for(var c in filetreelinkpath="",filetreelocation){if(null==o.f||null==o.f[filetreelocation[c]])break;if(s.push(filetreelocation[c]),i+=" / "+filetreelocation[c],1==l){var p=filetreelocation[c].split("/");e=window.location.origin+domainUrl+p[0]+"files/"+p[2],filetreelinkpath+=filetreelocation[c]}else""!=filetreelinkpath&&(filetreelinkpath+="/"+filetreelocation[c],l>2&&(e+="/"+filetreelocation[c]));o=o.f[filetreelocation[c]],a+=" / <a style=cursor:pointer;color:black onclick=p5folderup("+l+")>"+EscapeHtml(null!=o.n?o.n:filetreelocation[c])+"</a>",l++}filetreelocation=s;var m=i.toLowerCase().startsWith("root / "+userinfo._id+" / public"),g=p5sort_files(o.f);for(var c in g){var f,h=g[c],v=h.n;f=EscapeHtml(v);var k="";null!=h.s&&(k=getFileSizeStr(h.s));var y="";if(h.t<3||4==h.t){var b=1==h.t||4==h.t?p5getQuotabar(h):"";y="<div class=filelist file=999><input file=999 style=float:left name=fc class=fcb type=checkbox onchange=p5setActions() value='"+EscapeHtml(v)+"'>&nbsp;<span style=float:right;padding-right:4px>"+b+'</span><span title="'+f+'"><div class=fileIcon'+h.t+'></div><a style=cursor:pointer onclick=p5folderset("'+encodeURIComponent(h.nx)+'")>'+f+"</a></span></div>"}else{var x=f,w="";m&&(w=" (<a style=cursor:pointer onclick='p5showPublicLink(\""+e+"/"+h.nx+"\")'>Bağlantı</a>)"),h.s>0&&(x='<a rel="noreferrer noopener" target="_blank" href="downloadfile.ashx?link='+encodeURIComponent(filetreelinkpath+"/"+h.nx)+'">'+f+"</a>"+w),y="<div class=filelist file=3><input file=3 style=float:left name=fc class=fcb type=checkbox onchange=p5setActions() value='"+h.nx+"'>&nbsp;<span style=float:right;padding-right:4px>"+EscapeHtml(k)+'</span><span title="'+f+'"><div class=fileIcon'+h.t+"></div>"+x+"</span></div>"}h.t<3?t+=y:n+=y}if(QH("p5rightOfButtons",p5getQuotabar(o)),QH("p5files",t+n),QH("p5currentpath",a),QE("p5FolderUp",0!=filetreelocation.length),QV("p5PublicShare",m),r==filetreelinkpath){u=document.getElementsByName("fc");for(c=0;c<u.length;c++)u[c].checked=d.indexOf(u[c].value)>=0}p5setActions()}}function getNiceSize(e){return e<=0?"Depolama aşımı":e<2048?format("{0} b kaldı",e):e<2097152?format("{0} k kaldı",Math.round(e/1024)):e<2147483648?format("{0} m kaldı",Math.round(e/1024/1024)):format("{0} g kaldı",Math.round(e/1024/1024/1024))}function getNetworkSpeed(e){return e<=0?"0 bps":e<1e3?format("{0} bps",e):e<1e6?format("{0} Kbps",Math.round(e/1e3)):e<1e9?format("{0} Mbps",Math.round(e/1e6)):format("{0} Gbps",(e/1e9).toFixed(1))}function p5getQuotabar(e){for(;e.t>1&&4!=e.t;)e=e.parent;return 1!=e.t&&4!=e.t||null==e.maxbytes?"":getNiceSize(e.maxbytes-e.s)+" <progress style=height:10px;width:100px value="+e.s+" max="+e.maxbytes+" />"}function p5showPublicLink(e){setDialogMode(2,"Genel Bağlantı",1,null,'<input type=text style=width:100% value="'+e+'" readonly />')}function p5sort_filename(e,t){return e.ln>t.ln?1*sortorder:e.ln<t.ln?-1*sortorder:0}function p5sort_timestamp(e,t){return e.d>t.d?1*sortorder:e.d<t.d?-1*sortorder:0}function p5sort_bysize(e,t){return e.s==t.s?p5sort_filename(e,t):(e.s-t.s)*sortorder}function p5sort_files(e){var t=[],n=Q("p5sortdropdown").value;for(var a in e)e[a].nx=a,null==e[a].n&&(e[a].n=a),e[a].ln=e[a].n.toLowerCase(),t.push(e[a]);return sortorder=1,n>3&&(sortorder=-1,n-=3),1==n?t.sort(p5sort_filename):2==n?t.sort(p5sort_bysize):3==n&&t.sort(p5sort_timestamp),t}function p5setActions(){var e=getFileSelCount(),t=getFileCount(),n=getFileSelCount(!1);QE("p5DeleteFileButton",e>0&&filetreelocation.length>0),QE("p5NewFolderButton",filetreelocation.length>0),QE("p5UploadButton",filetreelocation.length>0),QE("p5RenameFileButton",1==e&&filetreelocation.length>0),QE("p5SelectAllButton",t>0),Q("p5SelectAllButton").value=e>0?"Yok":"Hepsi",QE("p5CutButton",n>0&&e==n),QE("p5CopyButton",n>0&&e==n),QE("p5PasteButton",null!=p5clipboard&&p5clipboard.length>0&&filetreelocation.length>0)}function getFileSelCount(e){for(var t=0,n=document.getElementsByName("fc"),a=0;a<n.length;a++)!n[a].checked||0==e&&"3"!=n[a].attributes.file.value||t++;return t}function getFileSelDirCount(){for(var e=0,t=document.getElementsByName("fc"),n=0;n<t.length;n++)t[n].checked&&"999"==t[n].attributes.file.value&&e++;return e}function getFileCount(){return document.getElementsByName("fc").length}function p5selectallfile(){for(var e=0==getFileSelCount(),t=document.getElementsByName("fc"),n=0;n<t.length;n++)t[n].checked=e;p5setActions()}function setupBackPointers(e){if(null!=e.f){var t=0,n=0;for(var a in e.f)setupBackPointers(e.f[a]),e.f[a].parent=e,e.f[a].s&&(t+=e.f[a].s),e.f[a].c&&(n+=e.f[a].c),3==e.f[a].t&&n++;e.s=t,e.c=n}return e}function getFileSizeStr(e){return 1==e?"1 bayt":format("{0} bayt",e)}function p5folderup(e){if(null==e)filetreelocation.pop();else for(;filetreelocation.length>e;)filetreelocation.pop();return updateFiles(),!1}function p5folderset(e){return filetreelocation.push(decodeURIComponent(e)),updateFiles(),!1}function p5createfolder(){setDialogMode(2,"Yeni dosya",3,p5createfolderEx,"<input type=text id=p5renameinput maxlength=64 onkeyup=p5fileNameCheck(event) style=width:100% />"),focusTextBox("p5renameinput"),p5fileNameCheck()}function p5createfolderEx(){meshserver.send({action:"fileoperation",fileop:"createfolder",path:filetreelocation,newfolder:Q("p5renameinput").value})}function p5deletefile(){var e=getFileSelCount(),t=getFileSelDirCount()>0?"<br /><br /><label><input type=checkbox id=p5recdeleteinput>Yinelemeli silme</label><br>":"<input type=checkbox id=p5recdeleteinput style='display:none'>";setDialogMode(2,"Sil",3,p5deletefileEx,e>1?format("{0} seçili öğe silinsin mi?",e)+t:"Seçili öğe silinsin mi?"+t)}function p5deletefileEx(){for(var e=[],t=document.getElementsByName("fc"),n=0;n<t.length;n++)t[n].checked&&e.push(t[n].value);meshserver.send({action:"fileoperation",fileop:"delete",path:filetreelocation,delfiles:e,rec:Q("p5recdeleteinput").checked})}function p5renamefile(){for(var e,t=document.getElementsByName("fc"),n=0;n<t.length;n++)t[n].checked&&(e=t[n].value);setDialogMode(2,"Yeniden adlandır",3,p5renamefileEx,'<input type=text id=p5renameinput maxlength=64 onkeyup=p5fileNameCheck(event) style=width:100% value="'+e+'" />',{action:"fileoperation",fileop:"rename",path:filetreelocation,oldname:e}),focusTextBox("p5renameinput"),p5fileNameCheck()}function p5renamefileEx(e,t){t.newname=Q("p5renameinput").value,meshserver.send(t)}function p5fileNameCheck(e){var t=isFilenameValid(Q("p5renameinput").value);QE("idx_dlgOkButton",t),1==t&&e&&13==e.keyCode&&dialogclose(1)}var isFilenameValid=function(){var e=/^[^\\/:\*\?"<>\|]+$/,t=/^\./,n=/^(nul|prn|con|lpt[0-9]|com[0-9])(\.|$)/i;return function(a){return e.test(a)&&!t.test(a)&&!n.test(a)&&"."!=a[0]}}();function p5uploadFile(){setDialogMode(2,"Dosya gönder",3,p5uploadFileEx,'<form method=post enctype=multipart/form-data action=uploadfile.ashx target=fileUploadFrame><input type=text name=link style=display:none id=p5uploadpath value="'+encodeURIComponent(filetreelinkpath)+'" /><input type=file name=files id=p5uploadinput style=width:100% multiple=multiple onchange="updateUploadDialogOk(\'p5uploadinput\')" /><input type=hidden name=authCookie value='+authCookie+" /><input type=submit id=p5loginSubmit style=display:none /></form>"),updateUploadDialogOk("p5uploadinput")}function p5uploadFileEx(){Q("p5loginSubmit").click()}function updateUploadDialogOk(e){QE("idx_dlgOkButton",""!=Q(e).value)}var p5clipboard=null,p5clipboardFolder=null,p5clipboardCut=0;function p5copyFile(e){var t=document.getElementsByName("fc");p5clipboard=[],p5clipboardCut=e,p5clipboardFolder=Clone(filetreelocation);for(var n=0;n<t.length;n++)t[n].checked&&"3"==t[n].attributes.file.value&&p5clipboard.push(t[n].value);p5updateClipview()}function p5pasteFile(){var e="";null!=p5clipboard&&p5clipboard.length>0&&(e=format("Bu konuma {0} / {1} giriş {2} konulsun mu?",0==p5clipboardCut?"copy":"move",p5clipboard.length,p5clipboard.length>1?"s":"")),setDialogMode(2,"Yapıştır",3,p5pasteFileEx,e)}function p5pasteFileEx(){meshserver.send({action:"fileoperation",fileop:0==p5clipboardCut?"copy":"move",scpath:p5clipboardFolder,path:filetreelocation,names:p5clipboard}),p5folderup(999),1==p5clipboardCut&&(p5clipboard=null,p5clipboardFolder=null,p5clipboardCut=0,p5updateClipview())}function p5updateClipview(){var e="";null!=p5clipboard&&p5clipboard.length>0&&(e=format("{2} için {0} giriş {1} tutuluyor",p5clipboard.length,p5clipboard.length>1?"s":"",0==p5clipboardCut?"kopya":"taşı")+', <a href=# onclick="return p5clearClip()" style=cursor:pointer>Açık</a>.'),QH("p5bottomstatus",e),p5setActions()}function p5clearClip(){return p5clipboard=null,p5clipboardFolder=null,p5clipboardCut=0,p5updateClipview(),!1}function p5fileDragDrop(e){if(haltEvent(e),QV("bigfail",!1),QV("bigok",!1),null!=e.dataTransfer&&0!=e.dataTransfer.files.length&&0!=filetreelocation.length)for(var t=[],n=[],a=[],i=[],o=e.dataTransfer.files.length,l=0;l<e.dataTransfer.files.length;l++){var s=new FileReader,r=e.dataTransfer.files[l];t.push(r.name),n.push(r.size),a.push(r.type),s.onload=function(e){i.push(e.target.result),0==--o&&(Q("p5fileDragName").value=t.join("*"),Q("p5fileDragSize").value=n.join("*"),Q("p5fileDragType").value=a.join("*"),Q("p5fileDragData").value=i.join("*"),Q("p5fileDragLink").value=encodeURIComponent(filetreelinkpath),Q("p5loginSubmit2").click())},s.readAsDataURL(r)}}var p5dragtimer=null;function p5fileDragOver(e){haltEvent(e),null!=p5dragtimer&&(clearTimeout(p5dragtimer),p5dragtimer=null);var t=!0;0==filetreelocation.length&&(t=!1),QV("bigok",t),QV("bigfail",!t)}function p5fileDragLeave(e){haltEvent(e),"p5filetable"!=e.target.id?(QV("bigfail",!1),QV("bigok",!1)):p5dragtimer=setTimeout("QV('bigfail',false);QV('bigok',false);p5dragtimer=null;",200)}function onRealNameCheckBox(){putstore("showRealNames",(showRealNames=Q("RealNameCheckBox").checked)?1:0),mainUpdate(5)}function onOnlineCheckBox(e){putstore("onlineOnly",Q("OnlineCheckBox").checked?1:0),onSearchInputChanged()}function updateDevicePageState(){if(null==devicePagingState||devicePagingState.total<=devicePagingState.limit)QV("devViewPageState",!1),QV("devViewPageButton2",!1),QV("devViewPageButton3",!1);else{var e=Math.floor((devicePagingState.skip+devicePagingState.limit)/devicePagingState.limit),t=Math.ceil(devicePagingState.total/devicePagingState.limit);QV("devViewPageState",!0),QV("devViewPageButton2",!0),QV("devViewPageButton3",!0),QH("devViewPageState",e+"/"+t)}}function onDeviceViewPageChange(e){if(null!=devicePagingState){var t=Math.floor((devicePagingState.skip+devicePagingState.limit)/devicePagingState.limit),n=Math.ceil(devicePagingState.total/devicePagingState.limit);switch(e){case 2:t>1&&meshserver.send({action:"nodes",skip:(t-2)*devicePagingState.limit});break;case 3:t<n&&meshserver.send({action:"nodes",skip:t*devicePagingState.limit})}}}function onDeviceSearchChanged(e){setTimeout(function(){onSearchInputChanged()},10)}function clearSearchInput(){Q("SearchInput").value="",Q("OnlineCheckBox").checked=!1,onSearchInputChanged()}function onSearchInputChanged(){var e=Q("SearchInput").value.toLowerCase().trim();putstore("_search",Q("SearchInput").value),QS("SearchInput")["background-color"]=""==e?"#FFFFFF":"#FDFFBE";var t=e.startsWith("!");t&&(e=e.substring(1));var n=Q("SearchInput").value.trim();t&&(n=n.substring(1));var a=null,i=null,o=null,l=null,s=null,r=null,d=null,u=null;if(e.startsWith("user:".toLowerCase())?a=e.substring(5):e.startsWith("u:".toLowerCase())?a=e.substring(2):e.startsWith("ip:".toLowerCase())?i=e.substring(3):e.startsWith("group:".toLowerCase())?o=e.substring(6):e.startsWith("g:".toLowerCase())?o=e.substring(2):e.startsWith("tag:".toLowerCase())?l=n.substring(4):e.startsWith("t:".toLowerCase())?l=n.substring(2):e.startsWith("atag:".toLowerCase())?s=n.substring(5).toLowerCase():e.startsWith("a:".toLowerCase())?s=n.substring(2).toLowerCase():e.startsWith("os:".toLowerCase())?d=n.substring(3).toLowerCase():e.startsWith("amt:".toLowerCase())?u=n.substring(4).toLowerCase():"wsc:ok"==e?r=1:"wsc:noav"==e?r=2:"wsc:noupdate"==e?r=3:"wsc:nofirewall"==e?r=4:"wsc:any"==e&&(r=5),""==e)for(var c in nodes)nodes[c].v=!0;else if(null!=i)for(var c in nodes)nodes[c].v=null!=nodes[c].ip&&nodes[c].ip.indexOf(i)>=0;else if(null!=o)for(var c in nodes)nodes[c].v=meshes[nodes[c].meshid].name.toLowerCase().indexOf(o)>=0;else if(null!=l)for(var c in nodes)nodes[c].v=null==nodes[c].tags&&""==l||null!=nodes[c].tags&&nodes[c].tags.indexOf(l)>=0;else if(null!=s)for(var c in nodes)nodes[c].v=null!=nodes[c].agent&&null==nodes[c].agent.tag&&""==s||null!=nodes[c].agent&&null!=nodes[c].agent.tag&&nodes[c].agent.tag.toLowerCase().indexOf(s)>=0;else if(null!=a){for(var c in nodes)if(nodes[c].v=!1,nodes[c].users&&nodes[c].users.length>0)for(var p in nodes[c].users)nodes[c].users[p].toLowerCase().indexOf(a)>=0&&(nodes[c].v=!0)}else if(null!=d)for(var c in nodes)nodes[c].v=null!=nodes[c].osdesc&&nodes[c].osdesc.toLowerCase().indexOf(d)>=0;else if(null!=u)for(var c in nodes)nodes[c].v=null!=nodes[c].intelamt&&(""==u||nodes[c].intelamt.state==u);else if(null!=r)for(var c in nodes)nodes[c].v=!1,nodes[c].wsc&&(1==r&&"OK"==nodes[c].wsc.antiVirus&&"OK"==nodes[c].wsc.autoUpdate&&"OK"==nodes[c].wsc.firewall?nodes[c].v=!0:(2!=r&&5!=r||"OK"==nodes[c].wsc.antiVirus)&&(3!=r&&5!=r||"OK"==nodes[c].wsc.autoUpdate)&&(4!=r&&5!=r||"OK"==nodes[c].wsc.firewall)||(nodes[c].v=!0));else if("*"==e)for(var c in nodes)nodes[c].v=1==stars[nodes[c]._id];else try{var m=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),g=new RegExp(m);for(var c in nodes)nodes[c].v=32768&features2?268435456&features2?g.test(nodes[c].name.toLowerCase())||g.test(meshes[nodes[c].meshid].name.toLowerCase())||null!=nodes[c].rnamel&&g.test(nodes[c].rnamel.toLowerCase()):g.test(nodes[c].name.toLowerCase())||null!=nodes[c].rnamel&&g.test(nodes[c].rnamel.toLowerCase()):268435456&features2?showRealNames?null!=nodes[c].rnamel&&g.test(nodes[c].rnamel.toLowerCase())||g.test(meshes[nodes[c].meshid].name.toLowerCase()):g.test(nodes[c].name.toLowerCase())||g.test(meshes[nodes[c].meshid].name.toLowerCase()):showRealNames?null!=nodes[c].rnamel&&g.test(nodes[c].rnamel.toLowerCase()):g.test(nodes[c].name.toLowerCase())}catch(e){for(var c in nodes)nodes[c].v=!0}if(t)for(var c in nodes)nodes[c].v=!nodes[c].v;if(Q("OnlineCheckBox").checked)for(var c in nodes)null!=nodes[c].conn&&0!=nodes[c].conn||(nodes[c].v=!1);mainUpdate(4)}var gotKeyPressEvent=!1;function ondeskkeypress(e,t){if(setSessionActivity(),desktop&&!xxdialogMode&&10==xxcurrentView&&1==currentDevicePanel){if(gotKeyPressEvent=!0,Q("softKeyboard").value="",null!=currentNode){var n=GetMeshRights(currentNode.meshid);if(0==!(8192&features2||4294967295!=n&&(!(8&n)||256&n)))return!1;if(1==!(4294967295==n||!(8&n)||256&n||!(4096&n))&&(1==e.altKey||1==e.ctrlKey||e.keyCode<32&&8!=e.keyCode&&13!=e.keyCode||e.keyCode>90))return!1}return desktop.m.handleKeys(e)}if(terminal&&!xxdialogMode&&10==xxcurrentView&&5==currentDevicePanel&&1!==t){if(1==e.altKey)return!0;gotKeyPressEvent=!0,Q("softKeyboard").value="";var a=0;return 0!=e.charCode?a=e.charCode:0!=e.keyCode&&(a=e.keyCode),0!=a&&("sshterminalrelay.ashx"==terminal.urlname?terminal.socket.send("~"+String.fromCharCode(a)):terminal.sendText(String.fromCharCode(a))),!1}}function ondeskkeydown(e,t){if(setSessionActivity(),desktop&&!xxdialogMode&&10==xxcurrentView&&1==currentDevicePanel){if(gotKeyPressEvent=!1,Q("softKeyboard").value="",null!=currentNode){var n=GetMeshRights(currentNode.meshid);if(0==!(8192&features2||4294967295!=n&&(!(8&n)||256&n)))return!1;if(1==!(4294967295==n||!(8&n)||256&n||!(4096&n))&&(1==e.altKey||1==e.ctrlKey||e.keyCode<32&&8!=e.keyCode&&13!=e.keyCode||e.keyCode>90))return!1}return desktop.m.handleKeyDown(e)}if(terminal&&!xxdialogMode&&10==xxcurrentView&&5==currentDevicePanel&&1!==t){if(1==e.altKey)return!0;Q("softKeyboard").value="",gotKeyPressEvent=!1;var a=0;0!=e.charCode?a=e.charCode:0!=e.keyCode&&(a=e.keyCode),8==a?"sshterminalrelay.ashx"==terminal.urlname?terminal.socket.send("~"+String.fromCharCode(a)):terminal.sendText(String.fromCharCode(a)):e.ctrlKey&&a>=64&&a<=95&&("sshterminalrelay.ashx"==terminal.urlname?terminal.socket.send("~"+String.fromCharCode(a-64)):terminal.sendText(String.fromCharCode(a-64)))}}function ondeskkeyup(e,t){if(setSessionActivity(),desktop&&!xxdialogMode&&10==xxcurrentView&&1==currentDevicePanel){var n=Q("softKeyboard").value;if(Q("softKeyboard").value="",null!=currentNode){var a=GetMeshRights(currentNode.meshid);if(0==!(8192&features2||4294967295!=a&&(!(8&a)||256&a)))return!1;if(1==!(4294967295==a||!(8&a)||256&a||!(4096&a))&&(1==e.altKey||1==e.ctrlKey||e.keyCode<32&&8!=e.keyCode&&13!=e.keyCode||e.keyCode>90))return!1}if(!(0==gotKeyPressEvent&&n.length>0&&desktop.m.SendKeyUnicode))return desktop.m.handleKeyUp(e);var i=n[n.length-1].charCodeAt(0);desktop.m.SendKeyUnicode(desktop.m.KeyAction.DOWN,i),desktop.m.SendKeyUnicode(desktop.m.KeyAction.UP,i)}if(terminal&&!xxdialogMode&&10==xxcurrentView&&5==currentDevicePanel&&0==gotKeyPressEvent&&1!==t){if(1==e.altKey)return!0;n=Q("softKeyboard").value;return Q("softKeyboard").value="","sshterminalrelay.ashx"==terminal.urlname?terminal.socket.send("~"+n):n&&terminal.sendText(n),!1}}var deviceHeaderCount,sort=0,deviceHeaderId=0,deviceHeaders={},showRealNames=!1,deviceHeaderTotal=0,deviceHeadersTitles=(deviceHeaders={},{});function updateDevices(){var e="",t=0,n=null,a=0,i={};for(var o in deviceHeaderId=0,deviceHeaderCount={},deviceHeaderTotal=0,deviceHeaders={},deviceHeadersTitles={},0==sort?nodes.sort(meshSort):1==sort?nodes.sort(powerSort):2==sort&&(1==showRealNames?nodes.sort(deviceHostSort):nodes.sort(deviceSort)),nodes)if(0!=nodes[o].v){if(0==sort){if(nodes.sort(meshSort),(meshes[nodes[o].meshid]?nodes[o].meshid:"*")!=n){deviceHeaderSet();var l="";null!=meshes[nodes[o].meshid]&&1==meshes[nodes[o].meshid].mtype&&(l="<span style=color:lightgray>, Yalnızca Intel&reg; AMT</span>"),null!=n&&(2==t&&(e+="<td><div style=width:301px></div></td>"),""!=e&&(e+="</tr></table>")),e+="<div class=DevSt style=padding-top:4px><span style=float:right>",meshes[nodes[o].meshid]?(e+='</span><span id=MxMESH style=cursor:pointer onclick=goForward("'+nodes[o].meshid+'")>'+EscapeHtml(meshes[nodes[o].meshid].name)+"</span>"+l+"<span id=DevxHeader"+deviceHeaderId+" style=color:lightgray></span></div>",n=nodes[o].meshid):(e+="</span><span id=MxMESH><i>Bireysel Cihazlar</i></span><span id=DevxHeader"+deviceHeaderId+" style=color:lightgray></span></div>",n="*"),i[n]=1,t=0}}else 1==sort?nodes[o].pwr!==n&&(deviceHeaderSet(),null!==n&&(2==t&&(e+="<td><div style=width:301px></div></td>"),""!=e&&(e+="</tr></table>")),e+="<div class=DevSt style=width:100%;padding-top:4px><span>"+PowerStateStr2(nodes[o].pwr)+"</span><span id=DevxHeader"+deviceHeaderId+" style=color:lightgray></span></div>",n=nodes[o].pwr,t=0):2==sort&&null==n&&(n="1");a++,e+="<div name=xxdevice onclick=goForward('"+nodes[o]._id+"') class=devList1 id='"+nodes[o]._id+"'></div>",deviceHeaderTotal++,void 0===deviceHeaderCount[nodes[o].state]?deviceHeaderCount[nodes[o].state]=1:deviceHeaderCount[nodes[o].state]++}if(""==e&&nodes.length>0&&""!=Q("SearchInput").value&&(e='<div style="margin:30px">Bu aramayla eşleşen cihaz yok.</div>'),0==sort&&""==Q("SearchInput").value)for(var o in meshes){var s=meshes[o];null==i[s._id]&&IsMeshViewable(s)&&(""!=n&&""!=e&&(e+="</tr></table>"),e+="<div><div colspan=3 class=DevSt><span style=float:right>",e+='</span><span id=MxMESH style=cursor:pointer onclick=goForward("'+s._id+'")>'+EscapeHtml(s.name)+"</span></div>",1==s.mtype&&(e+="<div style=padding:10px><i>Bu grupta Intel&reg; AMT cihazı yok"),s.mtype>1&&(e+="<div style=padding:10px><i>Bu grupta cihaz yok"),e+=".</i></div></div>",n=s._id,a++)}for(var o in 0==a?""!=Q("SearchInput").value||Q("OnlineCheckBox").checked?QH("xdevices",'<div style="margin-top:50px;text-align:center"><span style="font-size:30px">Cihaz yok</span><br /><br />Bu aramayla eşleşen cihaz yok. <a onclick=clearSearchInput() style=cursor:pointer>Arama filtresini temizle</a></div>'):QH("xdevices",'<div style="margin-top:50px;text-align:center"><span style="font-size:30px">Cihaz yok</span><br /><br />Cihaz eklemek için bu web sitesinin masaüstü sürümünü kullanın.</div>'):QH("xdevices",e),deviceHeaderSet(),deviceHeaders)QH(o,deviceHeaders[o]);for(var o in deviceHeadersTitles)Q(o).title=deviceHeadersTitles[o];onDevicesScrollEx()}var onDevicesTouchActive=!1,onDevicesScrollnagleTimer=null;function onDevicesScroll(){null==onDevicesScrollnagleTimer&&(onDevicesScrollnagleTimer=setTimeout(onDevicesScrollEx,250))}function onDeviceTouch(e){onDevicesTouchActive!=e&&(onDevicesTouchActive=e,0==e&&onDevicesScrollEx())}function onDevicesScrollEx(){var e=document.getElementsByName("xxdevice");onDevicesScrollnagleTimer=null;for(var t=0;t<e.length;t++){var n=getNodeFromId(e[t].id);if(null==n)break;updateDeviceViewHtml(e[t],n)}}function updateDeviceViewDevice(e){if(null!=e){var t=Q(e._id);null!=t&&""!=t.innerHTML&&updateDeviceViewHtml(t,e)}}function updateDeviceViewHtml(e,t){var n=Q("xdevices").scrollTop-250,a=Q("xdevices").scrollTop+Q("xdevices").clientHeight+250;if(e.offsetTop>=n&&e.offsetTop<a){var i=EscapeHtml(t.name);0==i.length&&(i="<i>Yok</i>"),null!=t.rname&&t.rname.length>0&&(i+=" / "+EscapeHtml(t.rname));var o=EscapeHtml(t.name);1==showRealNames&&null!=t.rname&&(o=EscapeHtml(t.rname)),0==o.length&&(o="<i>Yok</i>");var l="",s="";if(1==stars[t._id]&&(s+="<img class=deviceNotifyDotSub src=images/icon-star-notify-16.png width=16 height=16>"),null!=t.sessions&&(null!=t.sessions.msg&&(s+='<div style="width:16;height:16" class=deviceNotifyDotSub>'+Object.keys(t.sessions.msg).length+"</div>"),null==t.sessions.kvm&&null==t.sessions.terminal&&null==t.sessions.files&&null==t.sessions.tcp&&null==t.sessions.udp||(s+="<img class=deviceNotifyDotSub src=images/icon-relay-notify.png width=16 height=16>"),null!=t.sessions.help&&(s+="<img class=deviceNotifyDotSub src=images/icon-help-notify-16.png width=16 height=16>"),null!=t.sessions.battery)){var r=t.sessions.battery,d="";"ac"==r.state?d="Cihaz takılı":"dc"==r.state&&(d="Cihaz pille çalışıyor");var u="",c=-1;"number"==typeof r.level&&r.level>=0&&r.level<=100&&(u=r.level+"%",(c=Math.floor((r.level+10)/25)+1)>5&&(lvl=5),"ac"==r.state&&(100==r.level?c=11:c+=5)),c>0&&(l+='<div class="deviceBatterySmall deviceBatterySmall'+c+'" title="'+(null!=d?d+", "+u:u)+'"></div>')}""!=s&&(l+="<div class=deviceNotifyDot>"+s+"</div>");var p=t.icon,m=NodeStateStr(t);t.conn&&0!=t.conn||3==t.mtype||(p+=" gray"),e.innerHTML="<div>"+l+'<div class="i'+p+' devList2"></div><div class=devList3><div class=devList4><b>'+o+"</b></div><div class=devList5>"+m+"</div></div></div>"}else e.innerHTML=""}function showDeviceHelpRequests(e,t,n){if(n&&haltEvent(n),xxdialogMode&&!t)return!1;var a=null,i="";if(null==(a=null==e?currentNode:getNodeFromId(e))||null==a.sessions)return setDialogMode(0),!1;if(null!=a.sessions.help)for(var o in a.sessions.help)i+="<div style=margin-bottom:6px><b>"+EscapeHtml(o)+"</b></div><div style=margin-bottom:6px>"+EscapeHtml(a.sessions.help[o])+"</div>";return""!=i?setDialogMode(2,"Yardım talepleri - "+EscapeHtml(a.name),1,null,i,"HELPREQ-"+a._id):setDialogMode(0),!1}function showDeviceSessions(e,t,n){if(!(!0!==t&&xxdialogMode||null==currentNode)){var a=currentNode,i="";for(var o in a.sessions)if("kvm"==o&&null==a.sessions.multidesk)for(var l in i+="<u>Uzak Masaüstü</u>",a.sessions.kvm)if(l.startsWith("user/")){var s="";l!=userinfo._id&&4294967295!=GetNodeRights(a)||(s=' <a href=# onclick=\'return endDeviceSession("kvm", "'+encodeURIComponentEx(a._id)+'", "'+encodeURIComponentEx(l)+'")\' title="Bu oturumun bağlantısını kes" style=cursor:pointer><img src=images/trash.png border=0 height=10 width=10></a>'),i+=addHtmlValue4(getUserName(l),(1==a.sessions.kvm[l]?"1 oturum":nobreak(format("{0} oturum",a.sessions.kvm[l])))+s)}else"busy"==l&&(i+=addHtmlValue2("Aygıt meşgul",1==a.sessions.kvm[l]?"1 oturum":nobreak(format("{0} oturum",a.sessions.kvm[l]))));else if("multidesk"==o)for(var l in i+="<u>Uzak Masaüstü</u>",a.sessions.multidesk){s="";l!=userinfo._id&&4294967295!=GetNodeRights(a)||(s=' <a href=# onclick=\'return endDeviceSession("multidesk", "'+encodeURIComponentEx(a._id)+'", "'+encodeURIComponentEx(l)+'")\' title="Bu oturumun bağlantısını kes" style=cursor:pointer><img src=images/trash.png border=0 height=10 width=10></a>'),i+=addHtmlValue4(getUserName(l),(1==a.sessions.multidesk[l]?"1 oturum":nobreak(format("{0} oturum",a.sessions.multidesk[l])))+s)}else if("terminal"==o)for(var l in i+="<u>Komut Satırı</u>",a.sessions.terminal){s="";l!=userinfo._id&&4294967295!=GetNodeRights(a)||(s=' <a href=# onclick=\'return endDeviceSession("terminal", "'+encodeURIComponentEx(a._id)+'", "'+encodeURIComponentEx(l)+'")\' title="Bu oturumun bağlantısını kes" style=cursor:pointer><img src=images/trash.png border=0 height=10 width=10></a>'),i+=addHtmlValue4(getUserName(l),(1==a.sessions.terminal[l]?"1 oturum":nobreak(format("{0} oturum",a.sessions.terminal[l])))+s)}else if("files"==o)for(var l in i+="<u>Dosyalar</u>",a.sessions.files){s="";l!=userinfo._id&&4294967295!=GetNodeRights(a)||(s=' <a href=# onclick=\'return endDeviceSession("files", "'+encodeURIComponentEx(a._id)+'", "'+encodeURIComponentEx(l)+'")\' title="Bu oturumun bağlantısını kes" style=cursor:pointer><img src=images/trash.png border=0 height=10 width=10></a>'),i+=addHtmlValue4(getUserName(l),(1==a.sessions.files[l]?"1 oturum":nobreak(format("{0} oturum",a.sessions.files[l])))+s)}else if("tcp"==o)for(var l in i+="<u>TCP Yönlendirme</u>",a.sessions.tcp){s="";l!=userinfo._id&&4294967295!=GetNodeRights(a)||(s=' <a href=# onclick=\'return endDeviceSession("tcp", "'+encodeURIComponentEx(a._id)+'", "'+encodeURIComponentEx(l)+'")\' title="Bu oturumun bağlantısını kes" style=cursor:pointer><img src=images/trash.png border=0 height=10 width=10></a>'),i+=addHtmlValue4(getUserName(l),(1==a.sessions.tcp[l]?"1 oturum":nobreak(format("{0} oturum",a.sessions.tcp[l])))+s)}else if("udp"==o)for(var l in i+="<u>UDP Yönlendirme</u>",a.sessions.udp){s="";l!=userinfo._id&&4294967295!=GetNodeRights(a)||(s=' <a href=# onclick=\'return endDeviceSession("udp", "'+encodeURIComponentEx(a._id)+'", "'+encodeURIComponentEx(l)+'")\' title="Bu oturumun bağlantısını kes" style=cursor:pointer><img src=images/trash.png border=0 height=10 width=10></a>'),i+=addHtmlValue4(getUserName(l),(1==a.sessions.udp[l]?"1 oturum":nobreak(format("{0} oturum",a.sessions.udp[l])))+s)}""!=i?setDialogMode(2,"Oturumlar - "+EscapeHtml(a.name),1,null,i,"SESSIONS-"+a._id):setDialogMode(0)}}function endDeviceSession(e,t,n){var a=decodeURIComponent(n).split("/"),i=a[0]+"/"+a[1]+"/"+a[2],o=null;4==a.length&&a[3].startsWith("guest:")&&(o=atob(a[3].substring(6))),"multidesk"==e?meshserver.send({action:"endDesktopMultiplex",nodeid:decodeURIComponent(t),xuserid:i,guestname:o,guestname:o}):meshserver.send({action:"msg",type:"endtunnel",nodeid:decodeURIComponent(t),xuserid:i,guestname:o,guestname:o,protocol:e})}function showDeviceMessages(e,t,n){if(n&&haltEvent(n),xxdialogMode&&!t)return!1;var a=null,i="<div style=max-height:200px;width:100%;overflow-y:auto;overflow-x:hidden>",o=0;if(null==(a=null==e?currentNode:getNodeFromId(e))||null==a.sessions||null==a.sessions.msg)return setDialogMode(0),!1;for(var l in a.sessions.msg){var s=l,r=5;"string"==typeof a.sessions.msg[l].msg&&(s=a.sessions.msg[l].msg),"number"==typeof a.sessions.msg[l].icon&&(r=a.sessions.msg[l].icon),(r<1||r>9)&&(r=5),i+="<table style=width:100%><td style=width:24px><div class=NotifyIconSmall"+r+'></div><td><div style="border-radius:5px;background-color:#BBB;width:calc(100% - 18px);padding:8px">'+EscapeHtml(s)+"</div></table>",o++}return i+="</div>",o>0&&setDialogMode(2,"Agent Mesajları - "+EscapeHtml(a.name),1,null,i,"MESSAGES-"+a._id),!1}var powerStatetable=["","Açık","Uyku","Uyku","Uyku","Hazırda bekletme","Kapat","Mevcut","Kapalı"],powerStateStrings=["","Açık","Uyuyor","Uyuyor","Derin uyku","Hazırda bekletme","Soft-Off","Mevcut","Kapalı"],powerStateStrings2=["","Cihaz çalışıyor","Cihaz uyku durumunda (S1)","Cihaz uyku durumunda (S2)","Cihaz derin uyku durumunda (S3)","Cihaz hazırda bekletme modunda (S4)","Cihaz yumuşak kapalı durumda (S5)","Cihaz mevcut, ancak güç durumu belirlenemiyor","Cihaz kapalı"],powerColorTable=["#00000000","black","blue","blue","lightblue","blueviolet","darkgreen","lightseagreen","lightseagreen"];function NodeStateStr(e){var t=[];return e.state>0&&e.state<powerStatetable.length&&state.push(powerStatetable[e.state]),e.conn&&(1&e.conn&&t.push("<span>"+(4==e.mtype?"PDU"==e.porttype?"Değiştirmek":"IP-KVM":"Agent")+"</span>"),2&e.conn?t.push("<span>CIRA</span>"):4&e.conn&&t.push("<span>Intel&reg; AMT</span>"),8&e.conn&&t.push("<span>Yayın</span>"),16&e.conn&&t.push("<span>MQTT</span>")),null!=e.pwr&&0!=e.pwr&&t.push(powerStateStrings[e.pwr]),t.join(", ")}function PowerStateStr(e){return e<powerStatetable.length?powerStatetable[e]:""}function PowerStateStr2(e){return 0!=e&&e<powerStatetable.length?powerStatetable[e]:"Bilinmeyen"}function onSortSelectChange(e){sort=document.getElementById("sortselect").selectedIndex,e||putstore("sort",sort),mainUpdate(4)}function deviceHeaderSet(){if(0!=deviceHeaderId){deviceHeaders["DevxHeader"+deviceHeaderId]=", "+deviceHeaderTotal+" cihaz";var e="";for(var t in deviceHeaderCount)e.length>0&&(e+=", "),e+=deviceHeaderCount[t]+" "+PowerStateStr2(t);deviceHeadersTitles["DevxHeader"+deviceHeaderId]=e,deviceHeaderId++,deviceHeaderCount={},deviceHeaderTotal=0}else deviceHeaderId=1}var sortCollator=new Intl.Collator(void 0,{numeric:!0,sensitivity:"base"});function meshSort(e,t){var n=sortCollator.compare(e.meshnamel,t.meshnamel);return 0!=n||0!=(n=sortCollator.compare(e.meshid,t.meshid))?n:1==showRealNames?sortCollator.compare(e.rnamel,t.rnamel):sortCollator.compare(e.namel,t.namel)}function powerSort(e,t){var n=e.pwr?e.pwr:0,a=t.pwr?t.pwr:0;return n>a?-1:n<a?1:n==a?1==showRealNames?sortCollator.compare(e.rnamel,t.rnamel):sortCollator.compare(e.namel,t.namel):void 0}function deviceSort(e,t){return sortCollator.compare(e.namel,t.namel)}function deviceHostSort(e,t){return sortCollator.compare(e.rnamel,t.rnamel)}function refreshDevice(e){currentNode&&currentNode._id==e&&gotoDevice(e,xxcurrentView,!0)}var currentNode,currentDevicePanel=0,powerTimelineNode=null,powerTimelineReq=null,powerTimelineUpdate=null,powerTimeline=null;function getCurrentNode(){return currentNode}function gotoDevice(e,t,n){if(!0===userinfo.emailVerified||1!=serverinfo.emailcheck||4294967295==userinfo.siteadmin)if(!(262144&features)||1==userinfo.otpsecret||userinfo.otphkeys>0||userinfo.otpkeys>0||userinfo.otpduo>0||userinfo.otpdev>0||8388608&features&&1==userinfo.otpekey){var a=getNodeFromId(e);if(null!=a){var i=meshes[a.meshid],o=GetNodeRights(a),l=null==currentNode||currentNode._id!=e;if(!currentNode||currentNode._id!=a._id||1==n){if(currentNode=a,QV("p10deviceNotify",null!=currentNode.sessions&&(null!=a.sessions.kvm||null!=a.sessions.terminal||null!=a.sessions.files||null!=a.sessions.tcp||null!=a.sessions.udp)),QV("p10deviceStar",1==stars[currentNode._id]),QV("p10deviceHelp",null!=currentNode.sessions&&null!=currentNode.sessions.help),null!=currentNode.sessions&&null!=currentNode.sessions.msg?(QV("p10deviceMsg",!0),QH("p10deviceMsg",Object.keys(currentNode.sessions.msg).length)):QV("p10deviceMsg",!1),QV("p10deviceBattery",!1),null!=currentNode.sessions&&null!=currentNode.sessions.battery){var s=currentNode.sessions.battery,r="";"ac"==s.state&&(r="Cihaz takılı"),"dc"==s.state&&(r="Cihaz pille çalışıyor");var d="",u=-1;"number"==typeof s.level&&s.level>=0&&s.level<=100&&(d=s.level+"%",(u=Math.floor((s.level+10)/25)+1)>5&&(lvl=5),"ac"==s.state&&(100==s.level?u=11:u+=5)),u>0&&(Q("p10deviceBattery").title=null!=r?r+", "+d:d,QV("p10deviceBattery",!0),Q("p10deviceBattery").className="deviceBatteryLarge deviceBatteryLarge"+u)}else QV("p10deviceBattery",!1);var c=EscapeHtml(a.name);0==c.length&&(c="<i>Yok</i>"),4&o&&(c="<span onclick=showEditNodeValueDialog(0) style=cursor:pointer>"+c+"</span>"),QH("p10deviceName",c);var p="<table style=width:100%>";i&&(p+=addDeviceAttribute("<span>Grup</span>",'<a onclick=goForward("'+a.meshid+'") style=cursor:pointer>'+EscapeHtml(meshes[a.meshid].name)+"</a>")),null!=a.rname&&(p+=addDeviceAttribute("<span>İsim</span>","<span>"+EscapeHtml(a.rname)+"</span>")),(1&features||4==a.mtype)&&3!=a.mtype||(4&o?a.host?p+=addDeviceAttribute("Ana bilgisayar adı","<span onclick=showEditNodeValueDialog(1) style=cursor:pointer>"+EscapeHtml(a.host)+"</span>"):p+=addDeviceAttribute("Ana bilgisayar adı","<span onclick=showEditNodeValueDialog(1) style=cursor:pointer><i>Yok</i></span>"):p+=addDeviceAttribute("Ana bilgisayar adı",EscapeHtml(a.host)));var m=a.desc?EscapeHtml(a.desc):"<i>Yok</i>";if(p+=addDeviceAttribute("Açıklama",4&o?"<span onclick=showEditNodeValueDialog(2) style=cursor:pointer>"+m+"</span>":m),4==a.mtype&&(null!=a.portnum&&(p+=addDeviceAttribute("Port numarası",a.portnum)),null!=a.porttype&&(p+=addDeviceAttribute("Bağlantı Noktası Türü",a.porttype))),null!=a.agent&&null!=a.agent.id&&3==a.mtype)4==a.agent.id&&(p+=addDeviceAttribute("Cihaz tipi","pencereler")),6==a.agent.id&&(p+=addDeviceAttribute("Cihaz tipi","Linux")),29==a.agent.id&&(p+=addDeviceAttribute("Cihaz tipi","macOS"));else if(null!=a.agent&&null!=a.agent.id&&null!=a.agent.ver){var g="";g=a.agent.id<=agentsStr.length?agentsStr[a.agent.id]:agentsStr[0],0!=a.agent.ver&&(g+=" v"+a.agent.ver),14==a.agent.id&&(g=a.agent.core),!1===a.agent.root&&1&a.conn&&(g+=", Kısıtlı"),p+=addDeviceAttribute("Mesh Ajan",g)}if(null!=a.intelamt){g="";var f={0:nobreak("Etkinleştirilmedi (Ön)"),1:nobreak("Etkinleştirilmedi (İçinde)"),2:nobreak("Aktif")};if(null!=a.intelamt.ver&&null==a.intelamt.state?g+="<i>"+nobreak("Bilinmeyen Durum")+"</i>, v"+EscapeHtml(a.intelamt.ver):null==a.intelamt.ver&&2==a.intelamt.state?g+="<i>Aktif</i>":null==a.intelamt.ver||null==a.intelamt.state?g+="<i>Bilinmeyen Sürüm ve Durum</i>":(g+=f[a.intelamt.state],a.intelamt.flags&&(2&a.intelamt.flags?g=" <span>CCM</span>":4&a.intelamt.flags&&(g=" <span>ACM</span>")),g+=", v"+EscapeHtml(a.intelamt.ver)),2==a.intelamt.state){1==a.intelamt.tls&&(g+=', <span title="Intel&reg; AMT, TLS ağ güvenliğiyle kuruldu">TLS</span>');var h=!1;if(null==a.intelamt.user||""==a.intelamt.user)4&o?(g+=', <i style=color:#FF0000;cursor:pointer title="Intel&reg; AMT kimlik bilgilerini düzenleyin" onclick=editDeviceAmtSettings("'+a._id+'")>Kimlik Bilgisi Yok</i>',h=!0):g+=", <i style=color:#FF0000>Kimlik Bilgisi Yok</i>";else if(1&features2&&null!=a.intelamt.warn){var v=null;1&a.intelamt.warn&&(v="Geçersiz kimlik bilgileri"),8&a.intelamt.warn&&(v="Kimlik Bilgilerini Denemek"),null!=v&&(4&o?(g+=', <i style=color:#FF0000;cursor:pointer title="Intel&reg; AMT kimlik bilgilerini düzenleyin" onclick=editDeviceAmtSettings("'+a._id+'")>'+v+"</i>",h=!0):g+=", <i style=color:#FF0000>"+v+"</i>")}4&o&&!(1&features2)&&(h=!0),g+=" ",h&&(g+='<img src=images/link4.png height=10 width=10 title="Intel&reg; AMT kimlik bilgilerini düzenleyin" style=cursor:pointer onclick=editDeviceAmtSettings("'+a._id+'")>')}var k="Intel&reg; ME";"number"==typeof a.intelamt.sku&&(8&a.intelamt.sku?k="Intel&reg; AMT":16&a.intelamt.sku&&(k="Intel&reg; SM")),p+=addDeviceAttribute(k,g)}if(null!=a.agent&&null!=a.agent.tag&&"mailto:"!=a.agent.tag){var y=EscapeHtml(a.agent.tag);y.startsWith("mailto:")&&(y='<a href="'+y+'">'+y.substring(7)+"</a>"),p+=addDeviceAttribute("Agent Etiketi",y)}var b=a.conn;if(b&&b>1){var x=[];1&a.conn&&x.push("<span>"+(4==a.mtype?"PDU"==a.porttype?"Değiştirmek":"IP-KVM":"Agent")+"</span>"),2&a.conn?x.push("<span>Intel&reg; AMT CIRA</span>"):4&a.conn&&x.push("<span>Intel&reg; AMT</span>"),8&a.conn&&x.push("<span>Agent Yayını</span>"),16&a.conn&&x.push("<span>MQTT</span>"),p+=addDeviceAttribute("Bağlantı",x.join(", "))}var w="<i>Yok</i>";if(null!=a.tags)for(var S in w="",a.tags)w+="<span class=tagSpan>"+EscapeHtml(a.tags[S])+"</span> ";if(p+=addDeviceAttribute("Etiketler",4&o?"<span onclick=showEditNodeValueDialog(3) style=cursor:pointer;color:black>"+w+"</span>":"<span style=line-height:26px;color:black>"+w+"</span>"),null!=a.ssh||null!=a.rdp){var D=[];4&o?(null!=a.ssh&&D.push("<span onclick=showClearSshDialog(3) style=cursor:pointer>"+(1==a.ssh?"SSH-Kullanıcı+Pass":2==a.ssh?"SSH-Kullanıcı+Anahtarı+Pass":"SSH-Kullanıcı+Anahtarı")+' <img class=hoverButton src="images/link5.png" width=10 height=10 /></span>'),null!=a.rdp&&D.push('<span onclick=showClearRdpDialog(3) style=cursor:pointer>RDP <img class=hoverButton src="images/link5.png" width=10 height=10 /></span>')):(null!=a.ssh&&D.push(1==a.ssh?"SSH-Kullanıcı+Pass":2==a.ssh?"SSH-Kullanıcı+Anahtarı+Pass":"SSH-Kullanıcı+Anahtarı"),null!=a.rdp&&D.push("RDP")),p+=addDeviceAttribute("Kimlik bilgileri",D.join(", "))}p+="</table><br />",262220&o&&a.mtype<3&&(p+='<input type=button value="İşlemler" onclick=deviceActionFunction() />'),p+='<input type=button value="Notlar" onclick=showNotes('+!(128&o)+',"'+encodeURIComponent(a._id)+'") />',4==a.mtype&&1&b&&("PDU"==a.porttype?1==a.pwr?262144&o&&(p+='<input type=button value="Kapat" title="Kapat" onclick=setIpPduState(0) />'):8==a.pwr&&64&o&&(p+='<input type=button value="Aç" title="Aç" onclick=setIpPduState(1) />'):8&o&&(p+='<input type=button value="Uzaktan kumanda" title="Uzaktan kumanda" onclick=openIpKvmRemoteControl("'+encodeURIComponentEx(a._id)+'") />')),QH("p10html",p),3==a.mtype&&null!=a.agent&&a.agent.id>4&&512&features2&&(a.agent.caps=6),setupTerminal(),setupFiles(),16&o&&setupConsole(),p="<div style=float:right;font-size:x-small;margin-right:10px>",32768&o&&(p+='<a style=cursor:pointer onclick=p10showDeleteNodeDialog("'+a._id+'")>Cihazı Sil</a>'),p+="</div><div style=font-size:x-small>",0!=webRelayPort&&(p+='<a onclick=p10WebRouter("'+a._id+'",1,'+(a.httpport?a.httpport:80)+")>HTTP"+(a.httpport&&80!=a.httpport?"/"+a.httpport:"")+"</a>&nbsp;",p+='<a onclick=p10WebRouter("'+a._id+'",2,'+(a.httpsport?a.httpsport:443)+")>HTTPS"+(a.httpsport&&443!=a.httpsport?"/"+a.httpsport:"")+"</a>&nbsp;"),(1&b||3==a.mtype)&&a.agent&&8&o&&!(536870912&features)&&(p+='<a id=rfbLink onclick=p10rfb("'+a._id+'")>Web-VNC</a>&nbsp;'),(1&b||3==a.mtype)&&a.agent&&8&o&&!(1073741824&features)&&(p+='<a id=mstscLink onclick=p10mstsc("'+a._id+'")>Web-RDP</a>&nbsp;'),512&features2&&(1&b||3==a.mtype)&&a.agent&&8&o&&(p+='<a id=sshLink onclick=p10ssh("'+a._id+'")>Web-SSH</a>&nbsp;'),p+="</div><br>",QH("p10html3",p);var M=PowerStateStr(a.state);1&b&&(M.length>0&&(M+=", "),M+=4==a.mtype?"PDU"==a.porttype?"Değiştirmek":"IP-KVM":"Mesh Ajan"),2&b?(M.length>0&&(M+=", "),M+="Intel&reg; AMT bağlandı"):4&b&&(M.length>0&&(M+=", "),M+="Intel&reg; AMT algılandı"),16&b&&(M.length>0&&(M+=", "),M+="MQTT kanalı bağlı"),("PDU"==a.porttype||a.pwr>1&&7!=a.pwr)&&(M.length>0&&(M+=", "),M+=powerStateStrings[a.pwr]),QH("MainComputerState","<span style=font-size:12px>"+M+"</span>");var C=a.icon;a.conn&&0!=a.conn||3==a.mtype||(C+=" gray"),QH("MainComputerImage",'<div class="i'+C+'"></div>'),powerTimelineNode!=currentNode._id&&powerTimelineReq!=currentNode._id&&(QH("p10html2",""),powerTimelineReq=currentNode._id,meshserver.send({action:"powertimeline",nodeid:currentNode._id}),meshserver.send({action:"lastconnect",nodeid:currentNode._id}),meshserver.send({action:"getsysinfo",nodeid:currentNode._id}),meshserver.send({action:"getnetworkinfo",nodeid:currentNode._id}),QH("p10detailshtml","")),l&&(p11clearConsoleMsg(),p13clearConsoleMsg()),QV("p11DeskSessionSelector",!1),QH("p11DeskSessionSelector","")}setupDesktop(),t||(t=10),go(t),10==xxcurrentView&&setupDeviceMenu()}else goBack()}else setDialogMode(2,"Hesap Güvenliği",1,null,'İki faktörlü kimlik doğrulama etkinleştirilene kadar bir cihaza erişilemez. Bu, ekstra güvenlik için gereklidir. "Hesabım" a gidin ve "Hesap Güvenliği" bölümüne bakın.');else setDialogMode(2,"Hesap Güvenliği",1,null,'Bir e-posta adresi doğrulanana kadar bir cihaza erişilemiyor. Bu, şifre kurtarma için gereklidir. Bir e-posta adresini değiştirmek ve doğrulamak için "Hesabım" a gidin.')}function setIpPduState(e){0==e?setDialogMode(2,"Güç Çalışması",3,function(){meshserver.send({action:"poweraction",nodeids:[currentNode._id],actiontype:2})},"Güç kapatılsın mı?"):setDialogMode(2,"Güç Çalışması",3,function(){meshserver.send({action:"wakedevices",nodeids:[currentNode._id]})},"Güç açık mı?")}function openIpKvmRemoteControl(e){if(!xxdialogMode){var t=decodeURIComponent(e).split("/")[2];safeNewWindow("/ipkvm.ashx/"+t+"/","ipkvm:"+t)}}function deviceToastFunction(){xxdialogMode||setDialogMode(2,"Cihaz Tost",3,deviceToastFunctionEx,"<textarea id=d2devToast style=width:100%;height:80px;resize:none;overflow-y:scroll></textarea>")}function deviceToastFunctionEx(){meshserver.send({action:"toast",nodeids:[currentNode._id],title:"MeshCentral",msg:Q("d2devToast").value})}function setupDeviceMenu(e,t){var n=GetNodeRights(currentNode);null!=e&&(currentDevicePanel=e),QV("p10general",0==currentDevicePanel),QV("p10desktop",1==currentDevicePanel),QV("p10files",2==currentDevicePanel),QV("p10details",3==currentDevicePanel),QV("p10console",4==currentDevicePanel),QV("p10terminal",5==currentDevicePanel);var a=[];0!=currentDevicePanel&&a.push({n:"Genel",f:"setupDeviceMenu(0)"}),1==currentDevicePanel||null==currentNode||!(8&n||256&n)||4294967295!=n&&65536&n||!(null==currentNode.agent&&currentNode.intelamt&&("number"!=typeof currentNode.intelamt.sku||8&currentNode.intelamt.sku)||currentNode.agent&&1&currentNode.agent.caps)||a.push({n:"Masaüstü",f:"setupDeviceMenu(1)"}),5==currentDevicePanel||null==currentNode||!(8&n||256&n)||4294967295!=n&&512&n||!(null==currentNode.agent&&currentNode.intelamt&&("number"!=typeof currentNode.intelamt.sku||8&currentNode.intelamt.sku)||currentNode.agent&&2&currentNode.agent.caps)||a.push({n:"Komut Satırı",f:"setupDeviceMenu(5)"}),2!=currentDevicePanel&&null!=currentNode&&8&n&&(4294967295==n||!(1024&n))&&1!=currentNode.mtype&&currentNode.agent&&4&currentNode.agent.caps&&a.push({n:"Dosyalar",f:"setupDeviceMenu(2)"}),3!=currentDevicePanel&&null!=currentNode&&currentNode.mtype<3&&1048576&n&&a.push({n:"Ayrıntılar",f:"setupDeviceMenu(3)"}),4!=currentDevicePanel&&null!=currentNode&&16&n&&2==currentNode.mtype&&a.push({n:"Agent Komut Satırı",f:"setupDeviceMenu(4)"}),updateFooterMenu(a),updateCurrentUrl(),1==currentDevicePanel&&deskAdjust()}function deviceActionFunction(){if(!xxdialogMode){var e=GetNodeRights(currentNode),t=0,n="Bu cihazda gerçekleştirilecek bir işlem seçin.<br /><br />",a="<select id=d2deviceop style=float:right;width:170px onchange=deviceActionFunctionValidate()>",i="";null!=currentNode.agent&&14==currentNode.agent.id?1&currentNode.conn&&8&e&&(t++,a+="<option value=400>flaş</option>",a+="<option value=401>Titreşim</option>",i+="<div id=d2devicetimediv>"+addHtmlValue("Zaman","<select id=d2devicetime style=float:right;width:170px><option value=1000>1 saniye</option><option value=5000>5 saniye</option><option value=10000>10 saniye</option></select>")+"</div>"):(64&e&&(t++,a+="<option value=100>Uyandır</option>"),0!=currentNode.conn&&262144&e&&(t++,a+="<option value=4>Uyku</option><option value=3>Sıfırla</option><option value=2>Kapat</option>"),null!=currentNode.intelamt&&2==currentNode.intelamt.state&&6&currentNode.conn&&262144&e&&(t++,a+="<option value=310>Intel&reg; AMT Sıfırlama</option>",a+="<option value=308>Intel&reg; AMT Kapatma</option>"),null!=currentNode.intelamt&&2==currentNode.intelamt.state&&6&currentNode.conn&&64&e&&(t++,a+="<option value=302>Intel&reg; AMT Gücü açık</option>")),n+=addHtmlValue("İşlem",a+="</select>"),0==t&&(n="Bu cihaz için şu anda kullanılabilir eylem yok."),setDialogMode(2,"Cihaz İşlemi",0==t?2:3,deviceActionFunctionEx,n+i),t>0&&deviceActionFunctionValidate()}}function deviceActionFunctionValidate(){var e=Q("d2deviceop").value;try{QV("d2devicetimediv",400==e||401==e)}catch(e){}}function deviceActionFunctionEx(){var e=Q("d2deviceop").value;100==e?meshserver.send({action:"wakedevices",nodeids:[currentNode._id]}):103==e||104==e||106==e||107==e||(302==e?setDialogMode(2,"Intel&reg; AMT Güç Çalışması",3,function(){meshserver.send({action:"poweraction",nodeids:[currentNode._id],actiontype:parseInt(e)})},"Intel&reg; AMT gücü açık mı?"):308==e?setDialogMode(2,"Intel&reg; AMT Güç Çalışması",3,function(){meshserver.send({action:"poweraction",nodeids:[currentNode._id],actiontype:parseInt(e)})},"Perform Intel&reg; AMT power off?<br><br><b>NOTE: If there is an active AMT session, then power off command will be rejected, so you must disconnect from the AMT session first!</b>"):310==e?setDialogMode(2,"Intel&reg; AMT Güç Çalışması",3,function(){meshserver.send({action:"poweraction",nodeids:[currentNode._id],actiontype:parseInt(e)})},"Intel&reg; AMT sıfırlaması gerçekleştirilsin mi?"):400==e||401==e?meshserver.send({action:"poweraction",nodeids:[currentNode._id],actiontype:parseInt(e),time:parseInt(Q("d2devicetime").value)}):meshserver.send({action:"poweraction",nodeids:[currentNode._id],actiontype:parseInt(e)}))}function showNotes(e,t){if(!xxdialogMode){null==t&&(t=encodeURIComponentEx("p"+userinfo._id));var n="<textarea id=d2devNotes ro="+e+" noteid="+t+" readonly style=background-color:#fcf3cf;width:100%;height:200px;resize:none;overflow-y:scroll></textarea>";t.startsWith("node%2F%2F")&&(n+="<span style=font-size:10px>Cihaz grubu notları, diğer cihaz grubu yöneticileri tarafından görüntülenebilir ve değiştirilebilir.<span>"),setDialogMode(2,"Notlar",3,showNotesEx,n,t),meshserver.send({action:"getNotes",id:decodeURIComponent(t)})}}function showNotesEx(e,t){meshserver.send({action:"setNotes",id:decodeURIComponent(t),notes:encodeURIComponentEx(Q("d2devNotes").value)})}function deviceLockFunction(){null==xxdialogMode&&0!=xxdialogMode||null==desktop||1!=desktop.contype||setDialogMode(2,"Masaüstünü Kilitle",3,function(){null!=desktop&&1==desktop.contype&&desktop.sendCtrlMsg('{"ctrlChannel":"102938","type":"lock"}')},"Kullanıcı masaüstü kilitlensin mi?")}function deviceChat(e){xxdialogMode||setDialogMode(2,"Cihaz İşlemi",3,function(){var t="/messenger?id=meshmessenger/"+encodeURIComponentEx(currentNode._id)+"/"+encodeURIComponentEx(userinfo._id)+"&title="+currentNode.name;""!=serverinfo.domainsuffix&&(t="/"+serverinfo.domainsuffix+t),null!=authCookie&&""!=authCookie&&(t+="&auth="+authCookie),e&&1==e.shiftKey?safeNewWindow(t,"meshmessenger:"+currentNode._id):safeNewWindow(t,"meshmessenger:"+currentNode._id,"directories=no,titlebar=no,toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=400,height=560"),meshserver.send({action:"meshmessenger",nodeid:decodeURIComponent(currentNode._id)})},"Sohbet oturumu başlatılsın mı?")}function deviceUrlFunction(){xxdialogMode||(setDialogMode(2,"Cihazda Sayfayı Aç",3,deviceUrlFunctionEx,'<input id=d2devurl placeholder="http://server.com" style=width:100%;overflow-y:scroll onkeyup=deviceUrlFunctionValidate() onchange=deviceUrlFunctionValidate()></input>'),Q("d2devurl").focus(),deviceUrlFunctionValidate())}function deviceUrlFunctionValidate(){var e=Q("d2devurl").value.toLowerCase();QE("idx_dlgOkButton",e.startsWith("http://")&&e.length>7||e.startsWith("https://")&&e.length>8)}function deviceUrlFunctionEx(){meshserver.send({action:"msg",type:"openUrl",nodeid:currentNode._id,url:Q("d2devurl").value})}function runDeviceCmd(e){xxdialogMode||d2runCommandDialog({nodeids:[e?decodeURIComponent(e):currentNode._id]})}function d2runCommandDialog(e){var t=!1,n=!1,a=!1;for(var i in e.nodeids){var o=getNodeFromId(e.nodeids[i]);o.agent&&(24&~GetNodeRights(o)||(a=!0),isWindowsNode(o)?t=!0:n=!0)}if(1==t||1==n||1==a){var l={type:1,runAs:0,source:1,cmd:""};try{l=JSON.parse(getstore("runopt",l))}catch(e){}if(e.selectedFile){var s=e.selectedFile.name.toLowerCase();console.log("filename",s),s.endsWith(".bat")&&(l.type=1),s.endsWith(".ps1")&&(l.type=2),s.endsWith(".sh")&&(l.type=3),s.endsWith(".agentconsole")&&(l.type=4)}var r="";e.title&&(r+=e.title+"<br />"),r+="<select id=d2cmdtype onclick=d2runCommandValidate() style=width:100%;margin-bottom:4px;margin-top:4px>",1==t&&(r+="<option value=1"+(1==l.type?" selected":"")+">Windows Komut İstemi</option><option value=2"+(2==l.type?" selected":"")+">Windows PowerShell</option>"),1==n&&(r+="<option value=3"+(3==l.type?" selected":"")+">Linux / BSD / macOS Komut Kabuğu</option>"),1==a&&(r+="<option value=4"+(4==l.type?" selected":"")+">Agent Komut Satırı</option>"),r+="</select>",r+="<select id=d2cmduser style=width:100%;margin-bottom:4px><option value=0"+(0==l.runAs?" selected":"")+">Agent olarak çalıştır</option><option value=1"+(1==l.runAs?" selected":"")+">Kullanıcı yoksa aracı olarak çalıştır</option><option value=2"+(2==l.runAs?" selected":"")+">Kullanıcı olarak çalıştırılmalıdır</option></select>",null==e.selectedFile&&(r+="<select id=d2cmdsource onclick=d2runCommandValidate() style=width:100%;margin-bottom:4px><option value=0"+(0==l.source?" selected":"")+">Commands from text box</option><option value=1"+(1==l.source?" selected":"")+">Commands from file</option>",8&userinfo.siteadmin&&(r+="<option value=2"+(2==l.source?" selected":"")+">Commands from file on server</option>"),r+="</select><textarea id=d2runcmd onkeyup=d2runCommandValidate() style=background-color:#fcf3cf;width:100%;height:200px;resize:none;overflow-y:scroll>"+(l.cmd?EscapeHtml(decodeURIComponent(l.cmd)):"")+"</textarea>",r+="<div id=d2runfile style=display:none><input id=d2runfileex type=file onchange=d2runCommandValidate() id=d2localFile name=files onchange=d2runCommandValidate() /></div>",8&userinfo.siteadmin&&(r+='<div id=d2runsfile style=display:none><div id=d2serveraction valign=bottom><input type=button id=p2FolderUp disabled="disabled" onclick=d3folderup() value="Up" />&nbsp;<span id=p2CurrentFolder></span></div><div id=d2serverfiles></div></div>')),setDialogMode(2,"Komutları Çalıştır",3,d2groupActionFunctionRunCommands,r,e),null==e.selectedFile&&(Q("d2runcmd").focus(),8&userinfo.siteadmin&&(d3fileoptions={dialog:2,files:"d2serverfiles",folderup:"p2FolderUp",currentFolder:"p2CurrentFolder",func:null},d3updatefiles())),d2runCommandValidate()}}function d2runCommandValidate(){if(QV("d2cmduser",Q("d2cmdtype").value<4),null==xxdialogTag.selectedFile){QV("d2runcmd",0==Q("d2cmdsource").value),QV("d2runfile",1==Q("d2cmdsource").value),QV("d2runsfile",2==Q("d2cmdsource").value);var e=!1;0==Q("d2cmdsource").value&&Q("d2runcmd").value.length>0&&(e=!0),1==Q("d2cmdsource").value&&1==Q("d2runfileex").files.length&&(e=!0),2==Q("d2cmdsource").value&&(e=!1),QE("idx_dlgOkButton",e)}else QE("idx_dlgOkButton",!0)}function d2groupActionFunctionRunCommands(e,t){var n=3;try{n=parseInt(Q("d2cmdtype").value)}catch(e){}null==t.selectedFile&&putstore("runopt",JSON.stringify({type:n,runAs:parseInt(Q("d2cmduser").value),source:parseInt(Q("d2cmdsource").value),cmd:encodeURIComponent(Q("d2runcmd").value)}));var a={action:"runcommands",nodeids:t.nodeids,type:n,runAsUser:parseInt(Q("d2cmduser").value)};if(t.selectedFile)(i=new FileReader).onload=function(e){a.cmds=e.target.result,meshserver.send(a),t.func&&t.func()},i.readAsText(t.selectedFile);else if(0==Q("d2cmdsource").value)a.cmds=Q("d2runcmd").value,meshserver.send(a),t.func&&t.func();else if(1==Q("d2cmdsource").value){var i;(i=new FileReader).onload=function(e){a.cmds=e.target.result,meshserver.send(a),t.func&&t.func()},i.readAsText(Q("d2runfileex").files[0])}else if(2==Q("d2cmdsource").value){var o=d3getFileSel();if(1!=o.length)return;a.cmdpath=d3filetreelocation.join("/")+"/"+o[0],meshserver.send(a),t.func&&t.func()}}function updateDeviceTimeline(){2==meshserver.State&&null!=powerTimelineNode&&null!=powerTimelineUpdate&&null!=currentNode&&3!=currentNode.mtype&&powerTimelineNode==powerTimelineReq&&currentNode._id==powerTimelineNode&&powerTimelineUpdate<Date.now()&&(powerTimelineUpdate=null,meshserver.send({action:"powertimeline",nodeid:currentNode._id}))}function drawDeviceTimeline(){if(3!=currentNode.mtype&&"true"!==hidePowerTimeline){var e=null,t=Date.now();currentNode._id==powerTimelineNode&&(e=powerTimeline);var n=new Date;n.setHours(0,0,0,0);(n=new Date(n.getTime()-5184e5)).getTime();var a=[];if(null!=e&&e.length>1){a.push([0,e[1],e[0]]);for(var i=e[1],o=2;o<e.length;o+=2){var l=e[o],s=t;e.length>o+1&&(s=e[o+1]),a.push([i,i+s,l]),i+=s}}var r="",d=1,u=new Date,c=Q("masthead").offsetWidth-122;u.setHours(0,0,0,0);for(o=0;o<7;o++){var p="",m=u.getTime(),g=m+864e5;for(var f in a){var h=a[f];if(1==isTimeBlockInside(m,g,h[0],h[1])){var v=Math.max(m,h[0]),k=Math.min(Math.min(g,h[1]),t),y=Math.round((k-v)*c/864e5);y>0&&(p+="<div style=display:table-cell;width:"+y+"px;background-color:"+powerColor(h[2])+";height:16px></div>")}}r+="<tr style="+(d%2==0?"background-color:#DDD":"")+"><td><div>&nbsp;"+printDate(u)+"<div></div></div></td><td><div>"+p+"</div></td></tr>",++d,u=new Date(u.getFullYear(),u.getMonth(),u.getDate()-1)}QH("p10html2",'<table style="color:black;background-color:#EEE;border-color:#AAA;border-width:1px;border-style:solid;border-collapse:collapse;width:calc(100% - 18px);margin:9px" border=0 cellpadding=2 cellspacing=0><tbody><tr style=background-color:#AAAAAA;font-weight:bold><th scope=col style=text-align:center;width:90px>Gün</th><th scope=col style=text-align:center>Çalışma Durumu</th></tr>'+r+"</tbody></table>")}else QH("p10html2","<br />")}function powerColor(e){return e<powerColorTable.length?powerColorTable[e]:"yellow"}function isTimeBlockInside(e,t,n,a){return n<e&&a>t||(n>e&&n<t||a>e&&a<t)}function addDeviceAttribute(e,t){return"<tr><td style=width:100px;color:gray>"+e+"</td><td style=overflow:hidden>"+t+"</td></tr>"}function editDeviceAmtSettings(e,t){if(!xxdialogMode){var n="",a=getNodeFromId(e),i=3;4&GetNodeRights(a)&&(n+=addHtmlValue("Kullanıcı adı",'<input id=dp10username style=width:170px maxlength=32 autocomplete=nope placeholder="admin" onchange=validateDeviceAmtSettings() onkeyup=validateDeviceAmtSettings() />'),n+=addHtmlValue("Parola","<input id=dp10password type=password style=width:170px autocomplete=nope maxlength=32 onchange=validateDeviceAmtSettings() onkeyup=validateDeviceAmtSettings() />"),1&features2||(n+=addHtmlValue("Güvenlik","<select id=dp10tls style=width:176px><option value=0>TLS güvenliği yok</option><option value=1>TLS güvenliği gerekli</option></select>")),null!=a.intelamt.user&&""!=a.intelamt.user&&(i=7),setDialogMode(2,"Intel&reg; AMT kimlik bilgilerini düzenleyin",i,editDeviceAmtSettingsEx,n,{node:a,func:t}),null!=a.intelamt.user&&""!=a.intelamt.user?Q("dp10username").value=a.intelamt.user:Q("dp10username").value="admin",1&features2||(Q("dp10tls").value=a.intelamt.tls),validateDeviceAmtSettings())}}function validateDeviceAmtSettings(){QE("idx_dlgOkButton",passwordcheck(Q("dp10password").value))}function editDeviceAmtSettingsEx(e,t){if(2==e)meshserver.send({action:"changedevice",nodeid:t.node._id,intelamt:{user:"",pass:""}});else{var n=Q("dp10username").value;""==n&&(n="admin");var a=Q("dp10password").value;""==a&&(n="");var i={action:"changedevice",nodeid:t.node._id,intelamt:{user:n,pass:a}};1&features2||(i.intelamt.tls=parseInt(Q("dp10tls").value)),meshserver.send(i),t.func&&setTimeout(t.func,1e3)}}function p10showDeleteNodeDialog(e){xxdialogMode||(setDialogMode(2,"Cihazı Sil",3,p10showDeleteNodeDialogEx,format("{0} silinsin mi?",EscapeHtml(currentNode.name))+"<br /><br /><label><input id=p10check type=checkbox onchange=p10validateDeleteNodeDialog() />Onayla</label>",e),p10validateDeleteNodeDialog())}function p10validateDeleteNodeDialog(){QE("idx_dlgOkButton",Q("p10check").checked)}function p10showDeleteNodeDialogEx(e,t){meshserver.send({action:"removedevices",nodeids:[t]})}function p10WebRouter(e,t,n,a){var i=null,o=getNodeFromId(e);if(3==o.mtype){var l=meshes[o.meshid];l&&l.relayid&&(i=l.relayid,a=o.host)}var s=serverinfo.name;(-1==s.indexOf(".")||2&features)&&(s=window.location.hostname),""!=webRelayDns&&(s=webRelayDns);var r="https://"+s+":"+webRelayPort+"/control-redirect.ashx?n="+e+"&p="+n+"&appid="+t+"&c="+authRelayCookie;return null!=a&&(r+="&addr="+a),null!=i&&(r+="&relayid="+i),safeNewWindow(r,"WebRelay"),!1}function p10rfb(e,t){var n=getNodeFromId(e),a=null,i=meshes[n.meshid];null==t&&(t=null!=n.rfbport?n.rfbport:5900),3==n.mtype&&i&&i.relayid&&(e=i.relayid,a=n.host),meshserver.send({action:"getcookie",nodeid:e,tcpport:t,tcpaddr:a,tag:"novnc",name:i?i.name:null})}function p10mstsc(e,t){var n=getNodeFromId(e),a=meshes[n.meshid];null==t&&(t=null!=n.rdpport?n.rdpport:3389),meshserver.send({action:"getcookie",nodeid:e,tcpport:t,tag:"mstsc",name:a?a.name:null})}function p10ssh(e,t){var n=getNodeFromId(e),a=meshes[n.meshid];null==t&&(t=null!=n.sshport?n.sshport:22),meshserver.send({action:"getcookie",nodeid:e,tcpport:t,tag:"ssh",name:a?a.name:null})}function p10showiconselector(){if(!xxdialogMode&&4&GetNodeRights(currentNode)){setDialogMode(2,"Simge Seçimi",0,null,"<table align=center><td style=text-align:center><div style=display:inline-block class=i1 onclick=p10setIcon(1)></div><div style=display:inline-block class=i2 onclick=p10setIcon(2)></div><div style=display:inline-block class=i3 onclick=p10setIcon(3)></div><div style=display:inline-block class=i4 onclick=p10setIcon(4)></div><br /><div style=display:inline-block class=i5 onclick=p10setIcon(5)></div><div style=display:inline-block class=i6 onclick=p10setIcon(6)></div><div style=display:inline-block class=i7 onclick=p10setIcon(7)></div><div style=display:inline-block class=i8 onclick=p10setIcon(8)></div></table>"),QV("id_dialogclose",!0)}}function p10setIcon(e){setDialogMode(0),meshserver.send({action:"changedevice",nodeid:currentNode._id,icon:e})}function showClearSshDialog(){setDialogMode(2,"Cihazı Düzenle",3,showClearSshDialogEx,"SSH kimlik bilgileri temizlensin mi?")}function showClearSshDialogEx(e,t){meshserver.send({action:"changedevice",nodeid:currentNode._id,ssh:0})}function showClearRdpDialog(){setDialogMode(2,"Cihazı Düzenle",3,showClearRdpDialogEx,"RDP kimlik bilgileri temizlensin mi?")}function showClearRdpDialogEx(e,t){meshserver.send({action:"changedevice",nodeid:currentNode._id,rdp:0})}var desktop,desktopNode,showEditNodeValueDialog_modes=["Cihaz adı","Ana bilgisayar adı","Açıklama","Etiketler"],showEditNodeValueDialog_modes2=["name","host","desc","tags"],showEditNodeValueDialog_modes3=["","","","Grup1, Grup2, Grup3"];function showEditNodeValueDialog(e){if(!xxdialogMode){var t=addHtmlValue(showEditNodeValueDialog_modes[e],'<input id=dp10devicevalue style=width:170px maxlength=64 placeholder="'+showEditNodeValueDialog_modes3[e]+'" onchange=p10editdevicevalueValidate('+e+",event) onkeyup=p10editdevicevalueValidate("+e+",event) />");if(3==e){var n=[],a="";for(var i in nodes)if(nodes[i].tags)for(var o in nodes[i].tags)-1==n.indexOf(nodes[i].tags[o])&&n.push(nodes[i].tags[o]);if(n.length>0){for(var i in n.sort(),n)a+='<span style=padding:4px;background-color:#BBB;border-radius:3px;cursor:pointer onclick=showEditNodeValueDialogAddTag("'+encodeURIComponentEx(n[i])+'")>'+EscapeHtml(n[i])+"</span> ";t+="<div style=margin-top:8px;width:280px;line-height:26px;max-height:160px;overflow-y:auto>"+a+"</div>"}}setDialogMode(2,"Cihazı Düzenle",3,showEditNodeValueDialogEx,t,e);var l=currentNode[showEditNodeValueDialog_modes2[e]];null==l&&(l=""),Array.isArray(l)&&(l=l.join(", ")),Q("dp10devicevalue").value=l,p10editdevicevalueValidate(),Q("dp10devicevalue").focus()}}function showEditNodeValueDialogAddTag(e){var t=Q("dp10devicevalue").value.split(","),n=[];for(var a in t)n.push(t[a].trim());n.indexOf(e)>=0||(Q("dp10devicevalue").value+=(0==Q("dp10devicevalue").value.length?"":", ")+decodeURIComponent(e),setTimeout(function(){Q("dp10devicevalue").selectionStart=Q("dp10devicevalue").selectionEnd=9e4},0),p10editdevicevalueValidate())}function showEditNodeValueDialogEx(e,t){var n={action:"changedevice",nodeid:currentNode._id};n[showEditNodeValueDialog_modes2[t]]=Q("dp10devicevalue").value,meshserver.send(n)}function p10editdevicevalueValidate(e,t){var n=e>1||Q("dp10devicevalue").value.length>0;QE("idx_dlgOkButton",n),null!=t&&1==n&&13==t.keyCode&&dialogclose(1)}var desktopsettings={encoding:2,showfocus:!1,showmouse:!0,showcad:!0,quality:40,scaling:1024,framerate:50,autolock:!1,agentencoding:4};function setupDesktop(){desktopNode!=currentNode&&null!=desktop&&(desktop.Stop(),desktopNode=null,desktop=null),desktopNode==currentNode&&null!=desktop||(desktopNode=currentNode,Q("Desk").addEventListener("DOMMouseScroll",function(e){return dmousewheel(e)}),Q("Desk").addEventListener("mousewheel",function(e){return dmousewheel(e)})),desktopNode=currentNode,updateDesktopButtons(),Q("Desk").toBlob||QV("deskSaveBtn",!1)}function updateDesktopButtons(){meshes[currentNode.meshid];var e=0;null!=desktop&&(e=desktop.State);var t=GetNodeRights(currentNode);QV("disconnectbutton1",0!=e),QE("deskFullScreen",0!=e),QV("connectbutton1",0==e&&(8&t||256&t)&&null!=currentNode.agent&&1&currentNode.agent.caps),QV("connectbutton1h",0==e&&8&t&&null!=currentNode.intelamt&&2==currentNode.intelamt.state&&null!=currentNode.intelamt.ver&&(null==currentNode.intelamt.sku||"number"==typeof currentNode.intelamt.sku&&!!(8&currentNode.intelamt.sku))),QV("d7amtkvm",!(null==currentNode.intelamt||"number"==typeof currentNode.intelamt.sku&&16&currentNode.intelamt.sku||null==currentNode.intelamt.ver&&null!=currentNode.agent||0!=e&&2!=desktop.contype)),QV("d7meshkvm",null!=currentNode.agent&&1&currentNode.agent.caps&&(0==e||1==desktop.contype));var n=!!(1&currentNode.conn);QE("connectbutton1",n);var a=!!(6&currentNode.conn);QE("connectbutton1h",a),QV("DeskToastButton",!!(16384&t)&&currentNode.agent&&currentNode.agent.id<5&&8&t),QV("deskActionsBtn",8&t),Q("DeskControl").checked=!!(8&t),0==n&&QV("DeskTools",!1)}var agentConsoleMessages=["","Kullanıcının erişim izni vermesi bekleniyor ...","Reddedildi","Uzak terminal oturumu başlatılamadı, {0} ({1})","Zaman aşımı","Geçersiz ağ verileri alındı"];function formatAgentConsoleMessage(e,t,n){for(null==n&&(n=[]);n.length<3;)n.push("");return(t&&t<agentConsoleMessages.length?EscapeHtml(format(agentConsoleMessages[t],n[0],n[1],n[2])):EscapeHtml(e)).split("\n").join("<br />")+"<br /><br />"}function connectDesktop(e,t,n,a){if(setSessionActivity(),QV("p11DeskSessionSelector",!1),p11clearConsoleMsg(),null==desktop)if(desktopNode=currentNode,2==t){if(null==desktopNode.intelamt.user||""==desktopNode.intelamt.user)return void editDeviceAmtSettings(desktopNode._id,connectDesktop);(desktop=CreateAmtRedirect(CreateAmtRemoteDesktop("Desk"),authCookie)).debugmode=debugmode,desktop.onStateChanged=onDesktopStateChange,desktop.m.bpp=1==desktopsettings.encoding||3==desktopsettings.encoding?1:2,desktop.m.useZRLE=desktopsettings.encoding<3,desktop.m.showmouse=!0,desktop.m.onScreenSizeChange=function(e,t,n){fullscreen&&(QS("deskarea3").width=t*fullscreenzoom+"px",QS("deskarea3").height=n*fullscreenzoom+"px"),deskAdjust()},4==desktopNode.conn&&null!=desktopNode.intelamt&&1==desktopNode.intelamt.tls?desktop.Start(desktopNode._id,16995,"*","*",1):desktop.Start(desktopNode._id,16994,"*","*",0),desktop.contype=2}else null==t||1==t||3==t&&currentNode.agent.id>4?((desktop=CreateAgentRedirect(meshserver,CreateAgentRemoteDesktop("Desk"),serverPublicNamePort,authCookie,authRelayCookie,domainUrl)).debugmode=debugmode,desktop.m.debugmode=debugmode,desktop.attemptWebRTC=attemptWebRTC,desktop.webrtcconfig=webrtcconfiguration,desktop.options={},null!=n&&(desktop.options.tsid=n),null!=a&&(desktop.options.consent=a),1==desktopsettings.autolock&&(desktop.options.autolock=!0),desktop.onStateChanged=onDesktopStateChange,8192&features2&&(desktop.m.stopInput=!0),desktop.onConsoleMessageChange=function(){desktop.consoleMessage?(Q("p11DeskConsoleMsg").innerHTML+=formatAgentConsoleMessage(desktop.consoleMessage,desktop.consoleMessageId,desktop.consoleMessageArgs),QV("p11DeskConsoleMsg",!0),null!=p11DeskConsoleMsgTimer&&clearTimeout(p11DeskConsoleMsgTimer),desktop.consoleMessageTimeout&&(p11DeskConsoleMsgTimer=setTimeout(p11clearConsoleMsg,1e3*desktop.consoleMessageTimeout))):p11clearConsoleMsg()},desktop.m.ImageType=desktopsettings.agentencoding,desktop.m.CompressionLevel=desktopsettings.quality,desktop.m.ScalingLevel=desktopsettings.scaling,desktop.m.FrameRateTimer=desktopsettings.framerate,desktop.m.onDisplayinfo=deskDisplayInfo,desktop.m.onScreenSizeChange=function(e,t,n){fullscreen&&(QS("deskarea3").width=t*fullscreenzoom+"px",QS("deskarea3").height=n*fullscreenzoom+"px"),deskAdjust()},desktop.Start(desktopNode._id),desktop.contype=1):3==t&&meshserver.send({action:"msg",type:"userSessions",nodeid:currentNode._id,tag:a});else desktop.Stop(),desktopNode=desktop=null}function p11clearConsoleMsg(){QH("p11DeskConsoleMsg",""),QV("p11DeskConsoleMsg",!1),p11DeskConsoleMsgTimer&&(clearTimeout(p11DeskConsoleMsgTimer),p11DeskConsoleMsgTimer=null)}function p12clearConsoleMsg(){QH("p12TermConsoleMsg",""),QV("p12TermConsoleMsg",!1),p12TermConsoleMsgTimer&&(clearTimeout(p12TermConsoleMsgTimer),p12TermConsoleMsgTimer=null)}function p13clearConsoleMsg(){QH("p13FilesConsoleMsg",""),QV("p13FilesConsoleMsg",!1),p13FilesConsoleMsgTimer&&(clearTimeout(p13FilesConsoleMsgTimer),p13FilesConsoleMsgTimer=null)}function p12setConsoleMsg(e,t){e?(Q("p12TermConsoleMsg").innerHTML+=e,QV("p12TermConsoleMsg",!0),null!=p12TermConsoleMsgTimer&&clearTimeout(p12TermConsoleMsgTimer),t&&(p12TermConsoleMsgTimer=setTimeout(p12clearConsoleMsg,t))):p12clearConsoleMsg()}function p13setConsoleMsg(e,t){e?(Q("p13FilesConsoleMsg").innerHTML+=e,QV("p13FilesConsoleMsg",!0),null!=p13FilesConsoleMsgTimer&&clearTimeout(p13FilesConsoleMsgTimer),t&&(p13FilesConsoleMsgTimer=setTimeout(p13clearConsoleMsg,t))):p13clearConsoleMsg()}function onDesktopStateChange(e,t){var n=t;3==n&&2==e.contype&&n++;var a=StatusStrs[n];if(null!=desktop&&1==desktop.webRtcActive&&(a+=", WebRTC"),QH("deskstatus",a),0===t)desktop.Stop(),desktopNode=desktop=null,QV("DeskScreens",!1),1==fullscreen&&deskToggleFull();updateDesktopButtons(),deskAdjust(),setTimeout(deskAdjust,50)}function showDesktopSettings(){xxdialogMode||(applyDesktopSettings(),updateDesktopButtons(),setDialogMode(7,"Uzak Masaüstü Ayarları",3,showDesktopSettingsChanged))}function showDesktopSettingsChanged(){desktopsettings.encoding=d7desktopmode.value,desktopsettings.quality=d7bitmapquality.value,desktopsettings.scaling=d7bitmapscaling.value,desktopsettings.framerate=d7framelimiter.value,desktopsettings.autolock=d7deskAutoLock.checked,desktopsettings.agentencoding=d7encoding.value,localStorage.setItem("desktopsettings",JSON.stringify(desktopsettings)),applyDesktopSettings(),desktop&&(1==desktop.contype&&(0!=desktop.State&&desktop.m.SendCompressionLevel(desktopsettings.agentencoding,desktopsettings.quality,desktopsettings.scaling,desktopsettings.framerate),desktop.sendCtrlMsg('{"ctrlChannel":"102938","type":"autolock","value":'+desktopsettings.autolock+"}"),desktop.m.SendRefresh()),2==desktop.contype&&0!=desktop.State&&(desktop.Stop(),setTimeout(function(){connectDesktop(null,2)},50)))}function applyDesktopSettings(){var e="",t=512&features?[100,90,70,50,40,30,20,10,5,1]:[50,40,30,20,10,5,1];for(var n in t)e+="<option value="+t[n]+">"+t[n]+"%</option>";QH("d7bitmapquality",e),d7desktopmode.value=desktopsettings.encoding,d7bitmapquality.value=40,desktopsettings.agentencoding?d7encoding.value=desktopsettings.agentencoding:desktopsettings.agentencoding=4,t.indexOf(parseInt(desktopsettings.quality))>=0&&(d7bitmapquality.value=desktopsettings.quality),d7bitmapscaling.value=desktopsettings.scaling,desktopsettings.framerate&&(d7framelimiter.value=desktopsettings.framerate),null!=desktopsettings.autolock&&(d7deskAutoLock.checked=desktopsettings.autolock)}var keyboardShown=!1,keyboardShownTimer=null,fullScreenMode=!1;function toggleKeyboard(){xxdialogMode||(null!=keyboardShownTimer&&clearTimeout(keyboardShownTimer),keyboardShown?(Q("softKeyboard").blur(),keyboardShown=!1):(Q("softKeyboard").focus(),keyboardShown=!0),QV("deskkeybutton2a",fullscreen&&!keyboardShown),QV("deskkeybutton2b",fullscreen&&keyboardShown))}function keyboardFocusChange(){keyboardShownTimer=setTimeout(function(){keyboardShownTimer=null,keyboardShown=Q("softKeyboard")==document.activeElement,QV("deskkeybutton2a",fullscreen&&!keyboardShown),QV("deskkeybutton2b",fullscreen&&keyboardShown)},10)}function exitButton(){xxdialogMode||(QV("deskButtonMenu",!1),QV("termButtonMenu",!1),deskToggleFull())}function deskMenuButton(e){toggleMenu(!0),deskSendKeys(e)}function updateDeskShortcutKeys(){var e='<div class="menuButton" onclick="deskMenuButton(-1)">Özelleştirme</div>';for(var t in deskKeyboardShortcuts)e+='<div class="menuButton" onclick="deskMenuButton('+deskKeyboardShortcuts[t]+')">'+keyShortcutTotext(deskKeyboardShortcuts[t])+"</div>";QH("deskButtonMenu",e)}var keyStrings={8:"Silme",9:"Sekme",13:"Giriş",27:"Kaçmak",32:"Space",44:"Ekran görüntüsü",45:"Sokmak",46:"del",36:"Ev",35:"Son",32:"Espace",33:"Sayfa yukarı",34:"Sayfa Aşağı",37:"Sol",38:"Yukarı",39:"Doğru",40:"Aşağı",0:"Yok"};function keyShortcutTotext(e){var t=[];return 65536&e&&t.push("Vardiya"),131072&e&&t.push("Alt"),524288&e&&t.push("Ctrl"),1048576&e&&t.push("Galibiyet"),(e&=65535)>=112&&e<=123?t.push("F"+(e-111)):0!=e&&keyStrings[e]?t.push(keyStrings[e]):0!=e&&t.push(String.fromCharCode(e)),t.join(" + ")}function deskCustomizeKeys(){if(!xxdialogMode){var e='<div id=d2shortcuts style="width:100%;height:180px;padding:4px;overflow-y:auto;border:1px solid gray"></div><div style=width:100%;padding:5px>';for(var t in e+="<label><input id=d1kshift type=checkbox /> Vardiya</label><label> <input id=d1kalt type=checkbox /> Alt</label><label> <input id=d1kctrl type=checkbox /> Ctrl</label> <input id=d1kwin type=checkbox /> Galibiyet</label>",e+=" <select id=d2keySelect>",keyStrings)e+="<option value="+t+">"+keyStrings[t]+"</option>";for(t=1;t<=12;t++)e+="<option value="+(t+111)+">F"+t+"</option>";for(t=0;t<10;t++)e+="<option value="+(t+48)+">"+t+"</option>";for(t=0;t<26;t++)e+="<option value="+(t+65)+">"+String.fromCharCode(t+65)+"</option>";e+="</select> <input type=button value=Ekle onclick=addDeskCustomizeKey() /></div>",QH("p10dialog2",e),xxdialogMode=2,QV("p10dialog",!0),deskUpdateShortcutList()}}function deskCustomizeKeysEx(){QV("p10dialog",!1),xxdialogMode=0,putstore("deskKeyShortcuts",deskKeyboardShortcuts.join(",")),updateDeskShortcutKeys()}function restoreDeskCustomizeKey(){deskKeyboardShortcuts=[],putstore("deskKeyShortcuts",null);var e=getstore("deskKeyShortcuts","0x0A002E,0x100000,0x100028,0x100026,0x10004C,0x10004D,0x11004D,0x100052,0x020073,0x080057,0x020009,0x100025,0x100027").split(",");for(var t in e)""!=e[t]&&deskKeyboardShortcuts.push(parseInt(e[t]));updateDeskShortcutKeys(),deskUpdateShortcutList()}function deskUpdateShortcutList(){var e="";for(var t in deskKeyboardShortcuts){var n=keyShortcutTotext(deskKeyboardShortcuts[t]),a="";t!=deskKeyboardShortcuts.length-1&&(a+='<img width=8 height=8 style=float:right;cursor:pointer;padding:3px src="images/c2.png" onclick=deskCustomizeKeyDown('+deskKeyboardShortcuts[t]+")>"),0!=t&&(a+='<img width=8 height=8 style=float:right;cursor:pointer;padding:3px src="images/c3.png" onclick=deskCustomizeKeyUp('+deskKeyboardShortcuts[t]+")>"),e+='<div style="width:100%;background-color:#AAA;border-radius:4px;margin-bottom:4px;padding:4px;text-align:left;box-sizing:border-box" value='+deskKeyboardShortcuts[t]+">"+n+'<img width=10 height=10 style=float:right;cursor:pointer;padding:2px;margin-left:8px src="images/trash.png" onclick=removeDeskCustomizeKey('+deskKeyboardShortcuts[t]+")>"+a+"</div>"}""==e&&(e="<i>Tanımlanmış klavye kısayolu yok</i>"),QH("d2shortcuts",e)}function deskCustomizeKeyDown(e){var t=deskKeyboardShortcuts.indexOf(e),n=deskKeyboardShortcuts[t+1];deskKeyboardShortcuts[t+1]=deskKeyboardShortcuts[t],deskKeyboardShortcuts[t]=n,deskUpdateShortcutList()}function deskCustomizeKeyUp(e){var t=deskKeyboardShortcuts.indexOf(e),n=deskKeyboardShortcuts[t];deskKeyboardShortcuts[t]=deskKeyboardShortcuts[t-1],deskKeyboardShortcuts[t-1]=n,deskUpdateShortcutList()}function removeDeskCustomizeKey(e){var t=[];for(var n in deskKeyboardShortcuts)deskKeyboardShortcuts[n]!=e&&t.push(deskKeyboardShortcuts[n]);deskKeyboardShortcuts=t,deskUpdateShortcutList()}function addDeskCustomizeKey(){var e=parseInt(Q("d2keySelect").value);Q("d1kshift").checked&&(e|=65536),Q("d1kalt").checked&&(e|=131072),Q("d1kctrl").checked&&(e|=524288),Q("d1kwin").checked&&(e|=1048576),e>0&&-1==deskKeyboardShortcuts.indexOf(e)&&(deskKeyboardShortcuts.push(e),deskUpdateShortcutList())}function deskSendKeys(e){if(!xxdialogMode&&null!=desktop&&3==desktop.State)if(-1!=e)if(655406!=e){var t=(16711680&e)>>16,n=65535&e,a=[],i=[],o={8:65288,9:65289,13:65293,27:65307,45:65379,46:65535,36:65360,35:65367,33:65365,34:65366,37:65361,38:65362,39:65363,40:65364,112:65470,113:65471,114:65472,115:65473,116:65474,117:65475,118:65476,119:65477,120:65478,121:65479,122:65480,123:65481};if(2==desktop.contype){1&t&&(a.push([65505,1]),i.push([65505,0])),2&t&&(a.push([65513,1]),i.push([65513,0])),8&t&&(a.push([65507,1]),i.push([65507,0])),16&t&&(a.push([65511,1]),i.push([65511,0])),o[n]&&(n=o[n]),n>=65&&n<=90&&(n+=32),0!=n&&(a.push([n,1]),i.push([n,0])),i.reverse();for(var l=0;l<i.length;l++)a.push(i[l]);desktop.m.sendkey(a)}else{1&t&&(a.push([desktop.m.KeyAction.DOWN,16]),i.push([desktop.m.KeyAction.UP,16])),2&t&&(a.push([desktop.m.KeyAction.EXDOWN,18]),i.push([desktop.m.KeyAction.EXUP,18])),8&t&&(a.push([desktop.m.KeyAction.EXDOWN,17]),i.push([desktop.m.KeyAction.EXUP,17])),16&t&&(a.push([desktop.m.KeyAction.EXDOWN,91]),i.push([desktop.m.KeyAction.EXUP,91])),0!=n&&(a.push([desktop.m.KeyAction.DOWN,n]),i.push([desktop.m.KeyAction.UP,n])),i.reverse();for(l=0;l<i.length;l++)a.push(i[l]);desktop.m.SendKeyMsgKC(a)}}else desktop.m.sendcad();else deskCustomizeKeys()}function toggleMenu(e){xxdialogMode||(QV("deskButtonMenu",fullscreen&&!e&&1==currentDevicePanel),QV("termButtonMenu",fullscreen&&!e&&5==currentDevicePanel),QV("deskkeybutton3a",fullscreen&&e),QV("deskkeybutton3b",fullscreen&&!e))}function deskChangeMouseButton(e){xxdialogMode||null!=desktop&&(desktop.m.SwapMouse=!desktop.m.SwapMouse,QV("deskkeybutton4a",fullscreen&&!desktop.m.SwapMouse),QV("deskkeybutton4b",fullscreen&&desktop.m.SwapMouse))}function deskChangeFullscreenZoom(){if(!xxdialogMode){if(1==currentDevicePanel){if(null==desktop)return;fullscreenzoom=1==fullscreenzoom?.5:1,QV("deskkeybutton5a",fullscreen&&1==fullscreenzoom),QV("deskkeybutton5b",fullscreen&&1!=fullscreenzoom),QS("deskarea3").width=desktop.m.ScreenWidth*fullscreenzoom+"px",QS("deskarea3").height=desktop.m.ScreenHeight*fullscreenzoom+"px",deskAdjust()}if(5==currentDevicePanel){if(null==terminal)return;xterm.setOption("fontSize",15==xterm.getOption("fontSize")?10:15)}}}var terminalNode,filesNode,fullscreen=!1,fullscreenzoom=1;function deskToggleFull(){fullscreen=!fullscreen,QV("mastheadx",!fullscreen),QV("masthead",!fullscreen),QV("topbar",!fullscreen),QV("p11deviceNameHeader",!fullscreen),QV("footer",!fullscreen),QV("column_l_bottomgap",!fullscreen),QV("idx_deskFullBtn2",fullscreen),QV("deskFullBtn",!fullscreen),QV("p10deskTopTable",!fullscreen),QV("deskarea1",!fullscreen),QV("deskarea4",!fullscreen),QV("termarea1",!fullscreen),QV("termarea4",!fullscreen);var e=GetNodeRights(currentNode),t=!(8192&features2||14==currentNode.agent.id||4294967295!=e&&(!(8&e)||256&e||4096&e));QV("deskkeybutton1",fullscreen),1==currentDevicePanel&&(QS("deskkeybutton2a").top=QS("deskkeybutton2b").top="210px",QS("deskkeybutton5a").top=QS("deskkeybutton5b").top=t?"160px":"60px",QV("deskkeybutton2a",fullscreen&&t),QV("deskkeybutton2b",!1),QV("deskkeybutton3a",fullscreen&&t),QV("deskkeybutton3b",!1),QV("deskkeybutton4a",fullscreen&&t&&!desktop.m.SwapMouse),QV("deskkeybutton4b",fullscreen&&t&&desktop.m.SwapMouse),QV("deskkeybutton5a",fullscreen&&1==fullscreenzoom),QV("deskkeybutton5b",fullscreen&&1!=fullscreenzoom)),5==currentDevicePanel&&(QS("deskkeybutton2a").top=QS("deskkeybutton2b").top="110px",QV("deskkeybutton2a",fullscreen),QV("deskkeybutton2b",!1),QV("deskkeybutton3a",fullscreen),QV("deskkeybutton3b",!1),QV("deskkeybutton4a",!1),QV("deskkeybutton4b",!1),QV("deskkeybutton5a",!1),QV("deskkeybutton5a",!1)),fullscreen?(QS("DeskParent").height=null,QS("page_content").top="0px",QS("page_content").bottom="0px",1==currentDevicePanel&&(QS("p10desktop").top="0px",QS("p10desktop").overflow="scroll",QS("deskarea3").top="0px",QS("deskarea3").width=desktop.m.ScreenWidth*fullscreenzoom+"px",QS("deskarea3").height=desktop.m.ScreenHeight*fullscreenzoom+"px",QS("deskarea3")["padding-right"]="55px"),5==currentDevicePanel&&(QS("p10terminal").top="0px",QS("p10terminal").overflow="scroll",QS("termarea3").top="0px",QS("termarea3").bottom=null,QS("termarea3").right=null,QS("termarea3")["padding-right"]="55px",QS("termarea3").height="100%"),QS("body")["background-color"]="#000",QS("p10")["background-color"]="#000"):(QS("DeskParent").height="100%",QS("page_content").top="50px",QS("page_content").bottom="32px",1==currentDevicePanel&&(QS("p10desktop").top="55px",QS("p10desktop").overflow="hidden",QS("deskarea3").top="32px",QS("deskarea3").left=null,QS("deskarea3").width="100%",QS("deskarea3").height="calc(100% - 64px)",QS("deskarea3")["padding-right"]="",QS("DeskParent")["margin-top"]=null,QS("DeskParent")["margin-left"]=null),5==currentDevicePanel&&(QS("p10terminal").top="55px",QS("p10terminal").overflow="hidden",Q("p10terminal").scrollTop=0,Q("p10terminal").scrollLeft=0,QS("termarea3").top="32px",QS("termarea3").bottom="32px",QS("termarea3")["padding-right"]=null,QS("termarea3").height="calc(100% - 60px)"),QS("body")["background-color"]=nightMode?"#000":"#FFF",QS("p10")["background-color"]=null),1==currentDevicePanel&&deskAdjust()}function deskAdjust(){if(1==currentDevicePanel)if(fullscreen){QS("Desk")["margin-top"]=null,QS("Desk")["margin-bottom"]=null,QS("Desk").width="100%",QS("Desk").height="100%";var e=Q("p10desktop").clientHeight,t=Q("p10desktop").clientWidth,n=Q("deskarea3").clientHeight,a=Q("deskarea3").clientWidth-55;QS("deskarea3").top=e>n?(e-n)/2+"px":null,QS("deskarea3").left=t>a?(t-a)/2+"px":null}else{if((e=Q("DeskParent").clientHeight)/(t=Q("DeskParent").clientWidth)>(n=Q("Desk").height)/(a=Q("Desk").width)){var i=n*t/a+"px";QS("Desk").height=i,QS("Desk").width="100%"}else{var o=a*e/n+"px";QS("Desk").width=o,QS("Desk").height="100%"}QS("DeskParent").overflow="hidden";var l=(Q("DeskParent").clientHeight-Q("Desk").clientHeight)/2;QS("Desk")["margin-top"]=l+"px",QS("Desk")["margin-bottom"]=l+"px"}}function sendSpecialKeys(){xxdialogMode||null==desktop||3!=desktop.State||setDialogMode(3,"Özel Tuşlar",3,deskSendKeys)}function deskSaveImage(){if(setSessionActivity(),!xxdialogMode&&null!=desktop&&3==desktop.State){var e=new Date,t="Desktop-"+currentNode.name+"-"+e.getFullYear()+"-"+("0"+(e.getMonth()+1)).slice(-2)+"-"+("0"+e.getDate()).slice(-2)+"-"+("0"+e.getHours()).slice(-2)+"-"+("0"+e.getMinutes()).slice(-2);Q("Desk").toBlob(function(e){saveAs(e,t+".png")})}}function deskSelectScreens(){if(!xxdialogMode&&null!=desktop&&3==desktop.State){var e="",t=desktop.m.displays;for(var n in t)e+="<option value="+n+" "+(desktop.m.selectedDisplay==n?" selected":"")+">"+t[n]+"</option>";setDialogMode(2,"Ekran Seçimi",3,deskSelectScreensEx,e=addHtmlValue4("Ekran","<select style=width:100% id=deskdisplays>"+e+"</select>"))}}function deskSelectScreensEx(){null!=desktop&&3==desktop.State&&desktop.m.SetDisplay(parseInt(Q("deskdisplays").value))}function deskDisplayInfo(e,t,n,a){var i=0;for(var o in t)i++;QV("DeskScreens",i>1)}function dmousedown(e){setSessionActivity(),xxdialogMode||null==desktop||(fullscreen&&(e.addx=Q("p10desktop").scrollLeft*(1/fullscreenzoom),e.addy=Q("p10desktop").scrollTop*(1/fullscreenzoom)),desktop.m.mousedown(e))}function dmouseup(e){setSessionActivity(),xxdialogMode||null==desktop||(fullscreen&&(e.addx=Q("p10desktop").scrollLeft*(1/fullscreenzoom),e.addy=Q("p10desktop").scrollTop*(1/fullscreenzoom)),desktop.m.mouseup(e))}function dmousemove(e){setSessionActivity(),xxdialogMode||null==desktop||(fullscreen&&(e.addx=Q("p10desktop").scrollLeft*(1/fullscreenzoom),e.addy=Q("p10desktop").scrollTop*(1/fullscreenzoom)),desktop.m.mousemove(e))}function dmousewheel(e){return setSessionActivity(),!(xxdialogMode||null==desktop||!desktop.m.mousewheel)&&(fullscreen&&(e.addx=Q("p10desktop").scrollLeft*(1/fullscreenzoom),e.addy=Q("p10desktop").scrollTop*(1/fullscreenzoom)),desktop.m.mousewheel(e),haltEvent(e),!0)}function drotate(e){xxdialogMode||null==desktop||(desktop.m.setRotation(desktop.m.rotation+e),deskAdjust())}function setupTerminal(){terminalNode!=currentNode&&null!=terminal&&(terminal.Stop(),terminal=null),terminalNode=currentNode,updateTerminalButtons()}function updateTerminalButtons(){currentNode.agent;var e=null!=terminal&&0!=terminal.state;QE("termFullScreen",0!=e),3==terminalNode.mtype&&null!=terminalNode.agent&&terminalNode.agent.id>4&&512&features2&&(terminalNode.agent.caps=6),QV("disconnectbutton2span",1==e),QV("connectbutton2span",0==e&&null!=terminalNode.agent&&2&terminalNode.agent.caps&&3!=terminalNode.mtype),QV("connectbutton2sspan",0==e&&null!=terminalNode.agent&&2&terminalNode.agent.caps&&3!=terminalNode.agent.id);var t=!!(1&terminalNode.conn)||3==terminalNode.mtype;QE("connectbutton2",t),QE("connectbutton2s",t),QV("termActionsBtn",3!=terminalNode.mtype),QE("ctrlcbutton",e),QE("ctrlxbutton",e),QE("escbutton",e),1==e&&3!=terminal.contype||null==terminalNode.agent||3==terminalNode.agent.id||4==terminalNode.agent.id?QH("terminalCustomUpperRight",""):QH("terminalCustomUpperRight","<a style=cursor:pointer onclick=cmsshportaction(1,event)>"+format("SSH Bağlantı Noktası {0}",terminalNode.sshport?terminalNode.sshport:22)+"</a>")}function cmsshportaction(e){if(!xxdialogMode){setDialogMode(2,"SSH Bağlantısı",3,function(){var e=Q("d10sshport").value.length>0?parseInt(Q("d10sshport").value):22;meshserver.send({action:"changedevice",nodeid:currentNode._id,sshport:e})},'SSH uzak bağlantı noktası:<br /><br /><input type=text placeholder="22" inputmode="numeric" pattern="[0-9]*" onkeypress="return (event.keyCode == 8) || (event.charCode >= 48 && event.charCode <= 57)" maxlength=5 id=d10sshport type=text>',currentNode),Q("d10sshport").focus(),null!=currentNode.sshport&&(Q("d10sshport").value=currentNode.sshport)}}function onTerminalStateChange(e,t){var n=t;3==n&&2==e.contype&&n++;var a=StatusStrs[n];switch(1==terminal.webRtcActive&&(a+=", WebRTC"),QH("termstatus",a),t){case 0:xterm.dispose(),xterm=xtermfit=xtermimage=null,null!=terminal&&(terminal.Stop(),terminal=null);break;case 3:xterm.focus()}updateTerminalButtons()}function CreateRemoteTunnel(e,t){var n={protocol:1};return null!=t&&"number"==typeof t.protocol&&(n.protocol=t.protocol),n.onTunnelUpdate=e,n.xxStateChange=function(e){},n.ProcessBinaryData=function(e){n.onTunnelUpdate(e)},n.ProcessData=function(e){n.onTunnelUpdate(e)},n.terminalEmulation=1,n.fxEmulation=0,n.lineFeed="\r\n",n}function tunnelUpdate(e){null!=xterm&&(xterm.writeUtf8?"string"==typeof e?xterm.writeUtf8(e):xterm.writeUtf8(new Uint8Array(e)):"string"==typeof e?xterm.write(e):xterm.write(new Uint8Array(e)))}function sshTunnelAuthDialog(e,t){var n="";e.askkeypass?n+=addHtmlValue("Kimlik doğrulama","<select id=dp2authmethod style=width:150px onchange=sshAuthUpdate(event)><option value=3 selected>Saklanan Anahtar</option><option value=1>Kullanıcı adı Şifre</option><option value=2>Kullanıcı adı ve Anahtar</option></select>"):n+=addHtmlValue("Kimlik doğrulama","<select id=dp2authmethod style=width:150px onchange=sshAuthUpdate(event)><option value=1 selected>Kullanıcı adı Şifre</option><option value=2>Kullanıcı adı ve Anahtar</option></select>"),n+="<div id=d2userauth style=display:none>",n+=addHtmlValue("Kullanıcı adı","<input id=dp2user style=width:150px maxlength=64 autocomplete=off onkeyup=sshAuthUpdate(event) />"),n+="</div>",n+="<div id=d2passauth style=display:none>",n+=addHtmlValue("Parola","<input type=password id=dp2pass style=width:150px maxlength=64 autocomplete=off onkeyup=sshAuthUpdate(event) />"),4194304&features2||(n+="<label><input id=dp2keep type=checkbox>Kimlik bilgilerini hatırla</label>"),n+="</div><div id=d2keyauth style=display:none>",n+=addHtmlValue("Anahtar dosya","<input type=file id=dp2key style=width:150px maxlength=64 autocomplete=off onchange=sshAuthUpdate(event) /><div id=d2badkey style=font-size:x-small>Anahtar dosyası OpenSSH formatında olmalıdır.</div>"),n+=addHtmlValue("Anahtar Parola","<input type=password id=dp2keypass style=width:150px maxlength=64 autocomplete=off onkeyup=sshAuthUpdate(event) />"),4194304&features2||(n+="<label><input id=dp2keep1 type=checkbox onchange=sshAuthUpdate(event)>Kullanıcıyı ve anahtarı hatırla</label><br/>",n+="<label><input id=dp2keep2 type=checkbox>Şifre hatırlamak</label>"),n+="</div>",e.askkeypass&&(n+="<div id=d2keyauth2 style=display:none>",n+=addHtmlValue("Parola","<input type=password id=dp2keypass2 style=width:150px maxlength=64 autocomplete=off onkeyup=sshAuthUpdate(event) />"),n+="</div>"),setDialogMode(2,"Kimlik doğrulama",11,t,n,"ssh"),Q("dp2user").focus(),sshAuthUpdate(),setTimeout(sshAuthUpdate,50)}function sshTunnelUpdate(e){if("string"==typeof e)if("{"==e[0]){var t=JSON.parse(e);switch(t.action){case"sshauth":sshTunnelAuthDialog(t,sshConnectEx);break;case"sshautoauth":terminal.socket.send(JSON.stringify({action:"sshautoauth",cols:xterm.cols,rows:xterm.rows,width:Q("termarea3xdiv").offsetWidth,height:Q("termarea3xdiv").offsetHeight}));break;case"autherror":p12setConsoleMsg("Kimlik Doğrulama Hatası",5e3);break;case"sessionerror":p12setConsoleMsg("Oturum süresi doldu",5e3);break;case"sessiontimeout":p12setConsoleMsg("Oturum zaman aşımına uğradı",5e3)}}else"~"==e[0]&&(xterm.writeUtf8?xterm.writeUtf8(e.substring(1)):xterm.write(e.substring(1)))}function sshAuthUpdate(e){if(QV("d2userauth",3!=Q("dp2authmethod").value),QV("d2passauth",1==Q("dp2authmethod").value),QV("d2keyauth",2==Q("dp2authmethod").value),QV("d2keyauth2",3==Q("dp2authmethod").value),1==Q("dp2authmethod").value)QE("idx_dlgOkButton",Q("dp2user").value.length>0&&Q("dp2pass").value.length>0);else if(3==Q("dp2authmethod").value)QE("idx_dlgOkButton",Q("dp2keypass2").value.length>0);else{if(QE("idx_dlgOkButton",!1),4194304&features2||QE("dp2keep2",Q("dp2keep1").checked),1==(Q("dp2user").value.length>0&&null!=Q("dp2key").files&&1==Q("dp2key").files.length&&Q("dp2key").files[0].size<8e3)){var t=new FileReader;t.onload=function(e){var t=e.target.result.indexOf("-----BEGIN OPENSSH PRIVATE KEY-----")>=0&&e.target.result.indexOf("-----END OPENSSH PRIVATE KEY-----")>=0||e.target.result.indexOf("-----BEGIN RSA PRIVATE KEY-----")>=0&&e.target.result.indexOf("-----END RSA PRIVATE KEY-----")>=0;QE("idx_dlgOkButton",t),QS("d2badkey").color=t?"#000":"#F00"},t.readAsText(Q("dp2key").files[0])}}e&&13==e.keyCode&&e.target&&1==Q("dp2authmethod").value&&("dp2user"==e.target.id&&Q("dp2pass").focus(),"dp2pass"==e.target.id&&dialogclose(1))}function sshConnectEx(e){if(0==e)null!=terminal&&connectTerminal();else{var t=0;if(1==Q("dp2authmethod").value)4194304&features2||(t=Q("dp2keep").checked?1:0),terminal.socket.send(JSON.stringify({action:"sshauth",username:Q("dp2user").value,password:Q("dp2pass").value,keep:t,cols:xterm.cols,rows:xterm.rows,width:Q("termarea3xdiv").offsetWidth,height:Q("termarea3xdiv").offsetHeight}));else if(3==Q("dp2authmethod").value)terminal.socket.send(JSON.stringify({action:"sshkeyauth",keypass:Q("dp2keypass2").value,cols:xterm.cols,rows:xterm.rows,width:Q("termarea3xdiv").offsetWidth,height:Q("termarea3xdiv").offsetHeight}));else{4194304&features2||1==(t=Q("dp2keep1").checked?1:0)&&(t+=Q("dp2keep2").checked?1:0);var n=new FileReader,a=Q("dp2user").value,i=Q("dp2keypass").value;n.onload=function(e){terminal.socket.send(JSON.stringify({action:"sshauth",username:a,keypass:i,key:e.target.result,keep:t,cols:xterm.cols,rows:xterm.rows,width:Q("termarea3xdiv").offsetWidth,height:Q("termarea3xdiv").offsetHeight}))},n.readAsText(Q("dp2key").files[0])}}}function xTermSendResize(){xtermResizeTimer=null,null!=xterm&&null!=terminal&&null!=terminal.sendCtrlMsg&&("sshterminalrelay.ashx"==terminal.urlname?terminal.socket.send(JSON.stringify({action:"resize",cols:xterm.cols,rows:xterm.rows,width:Q("termarea3xdiv").offsetWidth,height:Q("termarea3xdiv").offsetHeight})):terminal.sendCtrlMsg(JSON.stringify({ctrlChannel:"102938",type:"termsize",cols:xterm.cols,rows:xterm.rows})))}function connectTerminal(e,t,n){if(p12clearConsoleMsg(),terminal)terminal.Stop(),terminal=null,fullscreen&&deskToggleFull();else{var a={protocol:null!=n&&"number"==typeof n.protocol?n.protocol:1};n&&n.requireLogin&&(a.requireLogin=!0),null!=serverinfo.linuxshell&&currentNode.agent.id>4&&("root"==serverinfo.linuxshell&&(a.protocol=1,delete a.requireLogin),"user"==serverinfo.linuxshell&&(a.protocol=8,delete a.requireLogin),"login"==serverinfo.linuxshell&&(a.protocol=1,a.requireLogin=!0)),QV("termarea3xdiv",!0),null!=xterm&&xterm.dispose(),xterm=new Terminal({allowProposedApi:!0}),xtermfit=new FitAddon.FitAddon,xtermimage=new ImageAddon.ImageAddon,xtermfit&&xterm.loadAddon(xtermfit),xterm.loadAddon(xtermimage),xterm.open(Q("termarea3xdiv")),xterm.onData(function(e){"sshterminalrelay.ashx"==terminal.urlname?terminal.socket.send("~"+e):terminal.sendText(e)}),xtermfit&&xtermfit.fit(),xterm.onResize(function(e){xtermResizeTimer&&clearTimeout(xtermResizeTimer),xtermResizeTimer=setTimeout(xTermSendResize,200)}),document.getElementsByClassName("xterm-helper-textarea")[0].onfocus=()=>{xterm.blur(),fullscreen||toggleKeyboard()},document.getElementsByClassName("xterm-viewport")[0].style.overflow="hidden",terminal=CreateAgentRedirect(meshserver,CreateRemoteTunnel(3==t?sshTunnelUpdate:tunnelUpdate,a),serverPublicNamePort,authCookie,authRelayCookie,domainUrl),3==t&&(terminal.urlname="sshterminalrelay.ashx"),terminal.debugmode=debugmode,terminal.m.debugmode=debugmode,terminal.options=a,terminal.options={cols:xterm.cols,rows:xterm.rows},a.requireLogin&&(terminal.options.requireLogin=!0),terminal.Start(terminalNode._id),terminal.onStateChanged=onTerminalStateChange,terminal.contype=t,terminal.attemptWebRTC=!1,terminal.onConsoleMessageChange=function(){p12setConsoleMsg(terminal.consoleMessage?formatAgentConsoleMessage(terminal.consoleMessage,terminal.consoleMessageId,terminal.consoleMessageArgs):null,terminal.consoleMessageTimeout)}}Q("connectbutton2").blur()}function termSendKey(e,t){terminal&&!xxdialogMode&&(null!=xterm?("sshterminalrelay.ashx"==terminal.urlname?terminal.socket.send("~"+String.fromCharCode(e)):terminal.sendText?terminal.sendText(String.fromCharCode(e)):terminal.send(String.fromCharCode(e)),xterm.focus()):null!=terminal&&(terminal.m.TermSendKey(e),Q(t).blur()))}function updateTermShortcutKeys(){for(var e="",t=64;t<=95;t++)e+='<div class="menuButton" style="width:70px" onclick="termMenuButton('+t+')">Ctrl +'+String.fromCharCode(t)+"</div>";QH("termButtonMenu",e)}function termMenuButton(e){toggleMenu(!0),"sshterminalrelay.ashx"==terminal.urlname?terminal.socket.send("~"+String.fromCharCode(e-64)):terminal.sendText(String.fromCharCode(e-64))}function setupFiles(){var e=filesNode==currentNode,t=!!(1&(filesNode=currentNode).conn)||3==filesNode.mtype;QE("p13Connect",t),QE("p13Connects",t),QV("p13Connect",null==files&&2==filesNode.mtype),QV("p13Connects",null==files&&null!=filesNode.agent&&3!=filesNode.agent.id&&4!=filesNode.agent.id),QV("p13Disconnect",null!=files),0!=e&&0!=t||!files||(files.Stop(),files=null),p13setActions()}function onFilesStateChange(e,t){setSessionActivity(),QV("p13Connect",0==t&&2==filesNode.mtype),QV("p13Connects",0==t&&null!=filesNode.agent&&3!=filesNode.agent.id&&4!=filesNode.agent.id),QV("p13Disconnect",0!=t);var n=StatusStrs[t];switch(3==t&&(2==files.contype&&(n+=", SFTP"),1==files.webRtcActive&&(n+=", WebRTC")),Q("p13Status").textContent=n,t){case 0:QH("p13files",""),p13filetree=null,p13filetreelocation=[],QH("p13currentpath",""),QE("p13FolderUp",!1),p13setActions(),null!=files&&(files.Stop(),files=null),null!=uploadFile&&(p13uploadFileTransferDone(),uploadFile=null);break;case 3:if(p13filetreelocation=[],p13targetpath="",files){var a=[];try{a=JSON.parse(getstore("_devFilePaths","[]"))}catch(e){}for(var i=0;i<a.length;i++)a[i].n==currentNode._id&&(p13targetpath=a[i].p);p13filetreelocation=p13targetpath.split("/"),files.sendText({action:"ls",reqid:1,path:p13targetpath})}}}function CreateRemoteFiles(e){var t={protocol:5};return t.onFileUpdate=e,t.xxStateChange=function(e){},t.ProcessData=function(e){t.onFileUpdate(e)},t}var autoConnectFilesTimer=null;function autoConnectFiles(e){null==autoConnectFilesTimer?autoConnectFilesTimer=setInterval(connectFiles,100):(clearInterval(autoConnectFilesTimer),autoConnectFilesTimer=null)}function connectFiles(e,t){p13clearConsoleMsg(),files?(files.Stop(),files=null):(files=CreateAgentRedirect(meshserver,CreateRemoteFiles(p13gotFiles),serverPublicNamePort,authCookie,authRelayCookie,domainUrl),2==t&&(files.urlname="sshfilesrelay.ashx"),files.contype=t,files.attemptWebRTC=attemptWebRTC,files.webrtcconfig=webrtcconfiguration,files.onStateChanged=onFilesStateChange,files.onConsoleMessageChange=function(){files.consoleMessage?(Q("p13FilesConsoleMsg").innerHTML+=formatAgentConsoleMessage(files.consoleMessage,files.consoleMessageId,files.consoleMessageArgs),QV("p13FilesConsoleMsg",!0),null!=p13FilesConsoleMsgTimer&&clearTimeout(p13FilesConsoleMsgTimer),files.consoleMessageTimeout&&(p13FilesConsoleMsgTimer=setTimeout(p13clearConsoleMsg,1e3*files.consoleMessageTimeout))):p13clearConsoleMsg()},files.Start(filesNode._id)),p13clipboard=p13clipboardFolder=null,p13clipboardCut=0,p13updateClipview()}var p13sortorder,p13filetree=null,p13targetpath=null,p13filetreelocation=[];function p13gotFiles(e){if(e.length>0&&123!=e.charCodeAt(0))p13gotDownloadBinaryData(e);else{try{e=JSON.parse(decode_utf8(e))}catch(t){e=JSON.parse(e)}if("download"!=e.action){switch(e.action){case"sshauth":sshTunnelAuthDialog(e,p13sshConnectEx);break;case"autherror":return void p13setConsoleMsg("Kimlik Doğrulama Hatası",5e3);case"connectionerror":return void p13setConsoleMsg("Bağlantı hatası",5e3);case"sessionerror":return void p13setConsoleMsg("Oturum süresi doldu",5e3);case"sessiontimeout":return void p13setConsoleMsg("Oturum zaman aşımına uğradı",5e3)}if(null!=e.action&&e.action.startsWith("upload"))p13gotUploadData(e);else if(null!=e.path)if(null==e.dir)""!=p13targetpath&&p13folderup();else if(e.path=e.path.replace(/\//g,"\\"),null!=p13filetree&&e.path==p13filetree.path){var t=p13getCheckedNames();p13filetree=e,p13updateFiles(t)}else{for(var n=e.path.replace(/\//g,"\\"),a=p13targetpath.replace(/\//g,"\\");n.length>0&&"\\"==n[0];)n=n.substring(1);for(;a.length>0&&"\\"==a[0];)a=a.substring(1);(n==a||"\\"==e.path&&""==p13targetpath)&&(p13filetree=e,p13updateFiles())}}else p13gotDownloadCommand(e)}}function p13sshConnectEx(e){if(0==e)null!=files&&connectFiles();else{var t=0;if(1==Q("dp2authmethod").value)4194304&features2||(t=Q("dp2keep").checked?1:0),files.socket.send(JSON.stringify({action:"sshauth",username:Q("dp2user").value,password:Q("dp2pass").value,keep:t}));else if(3==Q("dp2authmethod").value)files.socket.send(JSON.stringify({action:"sshkeyauth",keypass:Q("dp2keypass2").value}));else{4194304&features2||1==(t=Q("dp2keep1").checked?1:0)&&(t+=Q("dp2keep2").checked?1:0);var n=new FileReader,a=Q("dp2user").value,i=Q("dp2keypass").value;n.onload=function(e){files.socket.send(JSON.stringify({action:"sshauth",username:a,keypass:i,key:e.target.result,keep:t}))},n.readAsText(Q("dp2key").files[0])}}}function p13getCheckedNames(){for(var e=[],t=document.getElementsByName("fd"),n=0;n<t.length;n++)t[n].checked&&e.push(p13filetree.dir[t[n].value].n);return e}function p13updateFiles(e){var t="",n="",a="<a style=cursor:pointer;color:black onclick=p13folderup(0)>Kök</a>",i=p13filetree.path.split("\\");for(var o in p13filetreelocation=[],i)""!=i[o]&&p13filetreelocation.push(i[o]);for(var o in p13filetreelocation)a+=" / <a style=cursor:pointer;color:black onclick=p13folderup("+(parseInt(o)+1)+")>"+EscapeHtml(p13filetreelocation[o])+"</a>";var l=p13filetreelocation.join("/"),s=p13sort_files(p13filetree.dir);for(var o in s){var r,d=s[o],u=d.n;r=EscapeHtml(u);var c="";null!=d.s&&(c=getFileSizeStr(d.s));var p="";if(d.t<3){p="<div class=filelist file=999><input file=999 style=float:left name=fd class=fcb type=checkbox onchange=p13setActions() value='"+d.nx+"'>&nbsp;<span style=float:right></span><span title=\""+r+'"><div class=fileIcon'+d.t+'></div><a style=cursor:pointer onclick=p13folderset("'+encodeURIComponent(d.nx)+'")>'+r+"</a></span></div>"}else{var m=r;d.s>0&&(m='<a rel="noreferrer noopener" target="_blank" style=cursor:pointer onclick="p13downloadfile(\''+encodeURIComponent(l+"/"+u)+"','"+encodeURIComponent(u)+"',"+d.s+')">'+r+"</a>"),p="<div class=filelist file=3><input file=3 style=float:left name=fd class=fcb type=checkbox onchange=p13setActions() value='"+d.nx+"'>&nbsp;<span style=float:right;padding-right:4px>"+c+'</span><span title="'+r+'"><div class=fileIcon'+d.t+"></div>"+m+"</span></div>"}d.t<3?t+=p:n+=p}if(QH("p13files",t+n),QH("p13currentpath",a),QE("p13FolderUp",0!=p13filetreelocation.length),null!=e){var g=document.getElementsByName("fd");for(o=0;o<g.length;o++)e.indexOf(p13filetree.dir[g[o].value].n)>=0&&(g[o].checked=!0)}p13setActions()}function p13folderset(e){p13targetpath=joinPaths(p13filetree.path,p13filetree.dir[e].n).split("\\").join("/"),files&&(p13storeCurrentPath(p13targetpath),files.sendText({action:"ls",reqid:1,path:p13targetpath}))}function p13folderup(e){if(null==e)p13filetreelocation.pop();else for(;p13filetreelocation.length>e;)p13filetreelocation.pop();p13targetpath=p13filetreelocation.join("/"),files&&(p13storeCurrentPath(p13targetpath),files.sendText({action:"ls",reqid:1,path:p13targetpath}))}function p13storeCurrentPath(e){var t=[],n=-1;try{t=JSON.parse(getstore("_devFilePaths","[]"))}catch(e){}for(var a=0;a<t.length;a++)t[a].n==currentNode._id&&(n=a);for(n>=0&&t.splice(n,1),t.push({n:currentNode._id,p:e});t.length>40;)t.shift();putstore("_devFilePaths",JSON.stringify(t))}function p13sort_filename(e,t){return e.ln>t.ln?1*p13sortorder:e.ln<t.ln?-1*p13sortorder:0}function p13sort_timestamp(e,t){return e.d>t.d?1*p13sortorder:e.d<t.d?-1*p13sortorder:0}function p13sort_bysize(e,t){return e.s==t.s?p13sort_filename(e,t):(e.s-t.s)*p13sortorder}function p13sort_files(e){var t=[],n=Q("p13sortdropdown").value;for(var a in e)e[a].nx=a,null==e[a].s&&(e[a].s=0),null==e[a].n&&(e[a].n=a),e[a].ln=e[a].n.toLowerCase(),t.push(e[a]);return p13sortorder=1,n>3&&(p13sortorder=-1,n-=3),1==n?t.sort(p13sort_filename):2==n?t.sort(p13sort_bysize):3==n&&t.sort(p13sort_timestamp),t}function p13setActions(){var e=currentNode.agent&&14!=currentNode.agent.id;if(null==p13filetree)QE("p13DeleteFileButton",!1),QE("p13NewFolderButton",!1),QE("p13UploadButton",!1),QE("p13RenameFileButton",!1),QE("p13SelectAllButton",!1),Q("p13SelectAllButton").value="Hepsi",QE("p13RefreshButton",!1),QE("p13CutButton",!1),QE("p13CopyButton",!1),QE("p13PasteButton",!1);else{var t=p13getFileSelCount(),n=p13getFileCount(),a=p13getFileSelCount(!1),i=isWindowsNode(currentNode);QE("p13DeleteFileButton",e&&t>0&&(p13filetreelocation.length>0||0==i)),QE("p13NewFolderButton",e&&(p13filetreelocation.length>0||0==i)),QE("p13UploadButton",e&&(p13filetreelocation.length>0||0==i)),QE("p13RenameFileButton",e&&1==t&&(p13filetreelocation.length>0||0==i)),QE("p13SelectAllButton",n>0),Q("p13SelectAllButton").value=t>0?"Yok":"Hepsi",QE("p13RefreshButton",!0),QE("p13CutButton",e&&t>0&&t==a&&3!=currentNode.mtype&&(p13filetreelocation.length>0||0==i)),QE("p13CopyButton",e&&t>0&&t==a&&3!=currentNode.mtype&&(p13filetreelocation.length>0||0==i)),QE("p13PasteButton",e&&3!=currentNode.mtype&&(p13filetreelocation.length>0||0==i)&&null!=p13clipboard&&p13clipboard.length>0)}1==(null!=files&&0!=files.state)&&2!=files.contype||null==filesNode.agent||3==filesNode.agent.id||4==filesNode.agent.id?QH("filesCustomUpperRight",""):QH("filesCustomUpperRight","<a style=cursor:pointer onclick=cmsshportaction(1,event)>"+format("SSH Bağlantı Noktası {0}",filesNode.sshport?filesNode.sshport:22)+"</a>"),QV("filesActionsBtn",3!=filesNode.mtype)}function p13getFileSelCount(e){for(var t=0,n=document.getElementsByName("fd"),a=0;a<n.length;a++)!n[a].checked||0==e&&"3"!=n[a].attributes.file.value||t++;return t}function p13getFileSelDirCount(){for(var e=0,t=document.getElementsByName("fd"),n=0;n<t.length;n++)t[n].checked&&"999"==t[n].attributes.file.value&&e++;return e}function p13getFileCount(){return document.getElementsByName("fd").length}function p13selectallfile(){for(var e=0==p13getFileSelCount(),t=document.getElementsByName("fd"),n=0;n<t.length;n++)t[n].checked=e;p13setActions()}function p13createfolder(){setDialogMode(2,"Yeni dosya",3,p13createfolderEx,"<input type=text id=p13renameinput maxlength=64 onkeyup=p13fileNameCheck(event) style=width:100% />"),focusTextBox("p13renameinput"),p13fileNameCheck()}function p13createfolderEx(){files.sendText({action:"mkdir",reqid:1,path:p13filetreelocation.join("/")+"/"+Q("p13renameinput").value}),p13folderup(999)}function p13deletefile(){var e=p13getFileSelCount(),t=p13getFileSelDirCount()>0?"<br /><br /><label><input type=checkbox id=p13recdeleteinput>Yinelemeli silme</label><br>":"<input type=checkbox id=p13recdeleteinput style='display:none'>";setDialogMode(2,"Sil",3,p13deletefileEx,e>1?format("{0} seçili öğe silinsin mi?",e)+t:"Seçili öğe silinsin mi?"+t)}function p13deletefileEx(){for(var e=[],t=document.getElementsByName("fd"),n=0;n<t.length;n++)t[n].checked&&e.push(p13filetree.dir[t[n].value].n);files.sendText({action:"rm",reqid:1,path:p13filetreelocation.join("/"),delfiles:e,rec:Q("p13recdeleteinput").checked}),p13folderup(999)}function p13renamefile(){for(var e,t=document.getElementsByName("fd"),n=0;n<t.length;n++)t[n].checked&&(e=p13filetree.dir[t[n].value].n);setDialogMode(2,"Yeniden adlandır",3,p13renamefileEx,'<input type=text id=p13renameinput maxlength=64 onkeyup=p13fileNameCheck(event) style=width:100% value="'+e+'" />',{action:"rename",path:p13filetreelocation.join("/"),oldname:e}),focusTextBox("p13renameinput"),p13fileNameCheck()}function p13renamefileEx(e,t){t.newname=Q("p13renameinput").value,files.sendText(t),p13folderup(999)}function p13fileNameCheck(e){var t=isFilenameValid(Q("p13renameinput").value);QE("idx_dlgOkButton",t),1==t&&null!=e&&13==e.keyCode&&dialogclose(1)}function p13uploadFile(){setDialogMode(2,"Dosya gönder",3,p13uploadFileEx,"<input type=file name=files id=p13uploadinput style=width:100% multiple=multiple onchange=\"updateUploadDialogOk('p13uploadinput')\" />"),updateUploadDialogOk("p13uploadinput")}function p13uploadFileEx(){p13doUploadFiles(Q("p13uploadinput").files)}function p13viewfile(){for(var e=document.getElementsByName("fd"),t=0;t<e.length;t++)if(e[t].checked){p13filetree.dir[e[t].value].s<=204800?p13downloadfile(encodeURIComponent(p13filetreelocation.join("/")+"/"+p13filetree.dir[e[t].value].n),encodeURIComponent(p13filetree.dir[e[t].value].n),p13filetree.dir[e[t].value].s,"viewer"):messagebox("Dosya Düzenleyici","Yalnızca 200.000'den küçük dosyalar düzenlenebilir.");break}}var downloadFile,uploadFile,p13clipboard=null,p13clipboardFolder=null,p13clipboardCut=0;function p13copyFile(e){var t=document.getElementsByName("fd");p13clipboard=[],p13clipboardCut=e,p13clipboardFolder=p13targetpath;for(var n=0;n<t.length;n++)t[n].checked&&"3"==t[n].attributes.file.value&&p13clipboard.push(p13filetree.dir[t[n].value].n);p13updateClipview()}function p13pasteFile(){var e="";null!=p13clipboard&&p13clipboard.length>0&&(e=0==p13clipboardCut?p13clipboard.length>1?format("{0} girişin bu konuma kopyalanması onaylansın mı?",p13clipboard.length):format("1 girişin bu konuma kopyalanması onaylansın mı?"):p13clipboard.length>1?format("{0} girişin bu konuma taşınmasını onaylıyor musunuz?",p13clipboard.length):format("1 girişin bu konuma taşınmasını onaylıyor musunuz?")),setDialogMode(2,"Yapıştır",3,p13pasteFileEx,e)}function p13pasteFileEx(){files.sendText({action:0==p13clipboardCut?"copy":"move",reqid:1,scpath:p13clipboardFolder,dspath:p13targetpath,names:p13clipboard}),p13folderup(999),1==p13clipboardCut&&(p13clipboard=null,p13clipboardFolder=null,p13clipboardCut=0,p13updateClipview())}function p13updateClipview(){var e="";null!=p13clipboard&&p13clipboard.length>0&&(e=0==p13clipboardCut?p13clipboard.length>1?format('Kopyalamak için {0} girişi tutuyor, <a href=# onclick="return p13clearClip()" style=cursor:pointer>Açık</a>.',p13clipboard.length):format('Kopyalama için 1 giriş tutma, <a href=# onclick="return p13clearClip()" style=cursor:pointer>Açık</a>.'):p13clipboard.length>1?format('Taşımak için {0} girişi tutuyor, <a href=# onclick="return p13clearClip()" style=cursor:pointer>Açık</a>.',p13clipboard.length):format('Taşımak için 1 giriş tutma, <a href=# onclick="return p13clearClip()" style=cursor:pointer>Açık</a>.')),QH("p13bottomstatus",e),p13setActions()}function p13clearClip(){return p13clipboard=null,p13clipboardFolder=null,p13clipboardCut=0,p13updateClipview(),!1}function updateUploadDialogOk(e){QE("idx_dlgOkButton",""!=Q(e).value)}function getFileSelCount(e){for(var t=0,n=document.getElementsByName("fc"),a=0;a<n.length;a++)!n[a].checked||0==e&&"3"!=n[a].attributes.file.value||t++;return t}function getFileCount(){return document.getElementsByName("fc").length}function p13downloadfile(e,t,n){xxdialogMode||downloadFile||!files||(downloadFile={path:decodeURIComponent(e),file:decodeURIComponent(t),size:n,tsize:0,data:"",state:0,id:Math.random()},files.sendText({action:"download",sub:"start",id:downloadFile.id,path:downloadFile.path}),setDialogMode(2,"Dosyayı indir",10,p13downloadFileCancel,"<div>"+EscapeHtml(downloadFile.file)+"</div><br /><progress id=d2progressBar style=width:100% value=0 max="+n+" />"))}function p13downloadFileCancel(){setDialogMode(0),files.sendText({action:"download",sub:"cancel",id:downloadFile.id}),downloadFile=null}function p13gotDownloadCommand(e){null!=downloadFile&&e.id==downloadFile.id&&("start"==e.sub?(downloadFile.state=1,files.sendText({action:"download",sub:"startack",id:downloadFile.id})):"cancel"==e.sub&&(downloadFile=null,setDialogMode(0)))}function p13gotDownloadBinaryData(e){downloadFile&&0!=downloadFile.state&&(e.length>4&&(downloadFile.tsize+=e.length-4,downloadFile.data+=e.substring(4),Q("d2progressBar").value=downloadFile.tsize),1&ReadInt(e,0)?(saveAs(data2blob(downloadFile.data),downloadFile.file),downloadFile=null,setDialogMode(0)):files.sendText({action:"download",sub:"ack",id:downloadFile.id}))}function p13doUploadFiles(e){if(!xxdialogMode){var t=isWindowsNode(currentNode),n=[],a=0;for(var i in p13filetree.dir)t?n.push(p13filetree.dir[i].n.toLowerCase()):n.push(p13filetree.dir[i].n);for(i=0;i<e.length;i++)t?n.indexOf(e[i].name.toLowerCase())>=0&&a++:n.indexOf(e[i].name)>=0&&a++;0==a?p13uploadFileContinue(1,e):setDialogMode(2,"Dosya gönder",3,p13uploadFileContinue,format(1==a?"Yükleme 1 dosyanın üzerine yazacak. Devam et?":"Gönderme işlemi {0} dosyanın üzerine yazsın mı?",a),e)}}function p13uploadFileContinue(e,t){(uploadFile={}).xpath=p13filetreelocation.join("/"),uploadFile.xfiles=t,uploadFile.xfilePtr=-1,setDialogMode(2,"Dosya gönder",10,p13uploadFileCancel,"<div id=p13dfileName>Bağlanıyor...</div><br /><progress id=d2progressBar style=width:100% value=0 max=0 />"),p13uploadNextFile()}const byteToHex=[];for(var n=0;n<=255;++n){var hexOctet=n.toString(16).padStart(2,"0");byteToHex.push(hexOctet)}function arrayBufferToHex(e){return Array.prototype.map.call(new Uint8Array(e),e=>byteToHex[e]).join("")}function performHash(e,t){window.crypto.subtle.digest("SHA-384",e).then(function(e){t(arrayBufferToHex(e))},function(){t(null)})}function performHashOnFile(e,t){var n=new FileReader;n.onerror=function(e){t(null)},n.onload=function(){window.crypto.subtle.digest("SHA-384",n.result).then(function(e){t(arrayBufferToHex(e))},function(){t(null)})},n.readAsArrayBuffer(e)}function p13uploadNextFile(){if(uploadFile.xfilePtr++,uploadFile.xfiles.length>uploadFile.xfilePtr){uploadFile.xptr=0;var e=uploadFile.xfiles[uploadFile.xfilePtr];if(QH("p13dfileName",EscapeHtml(e.name)),Q("d2progressBar").max=e.size,Q("d2progressBar").value=0,null==e.xdata){uploadFile.xfile=e;var t=null;for(var n in p13filetree.dir)p13filetree.dir[n].n==e.name&&(t=p13filetree.dir[n]);null!=t&&t.s<=uploadFile.xfile.size?performHashOnFile(uploadFile.xfile,function(n){files.sendText(JSON.stringify({action:"uploadhash",reqid:uploadFile.xfilePtr,path:uploadFile.xpath,name:e.name,tag:{h:n.toUpperCase(),s:t.s,skip:t.s==uploadFile.xfile.size}}))}):files.sendText(JSON.stringify({action:"upload",reqid:uploadFile.xfilePtr,path:uploadFile.xpath,name:e.name,size:uploadFile.xfile.size}))}else uploadFile.xdata=e.xdata,files.sendText(JSON.stringify({action:"upload",reqid:uploadFile.xfilePtr,path:uploadFile.xpath,name:e.name,size:uploadFile.xdata.byteLength}))}else p13uploadFileTransferDone()}function p13uploadFileCancel(e,t){null!=uploadFile&&(files.sendText(JSON.stringify({action:"uploadcancel",reqid:uploadFile.xfilePtr})),uploadFile=null),p13uploadFileTransferDone()}function p13uploadFileTransferDone(){uploadFile=null,setDialogMode(0),p13folderup(9999)}function p13gotUploadData(e){if(null!=uploadFile&&parseInt(uploadFile.xfilePtr)==parseInt(e.reqid))switch(e.action){case"uploadstart":uploadFile.xdataPriming=8,p13uploadNextPart(!1);break;case"uploadack":p13uploadNextPart(!1);break;case"uploaddone":uploadFile.xfiles.length>uploadFile.xfilePtr+1?p13uploadNextFile():p13uploadFileTransferDone();break;case"uploaderror":p13uploadFileCancel();break;case"uploadhash":var t=uploadFile.xfiles[uploadFile.xfilePtr];t&&(e.tag.h===e.hash?e.tag.skip?p13uploadNextFile():(uploadFile.xptr=e.tag.s,files.sendText(JSON.stringify({action:"upload",reqid:uploadFile.xfilePtr,path:uploadFile.xpath,name:t.name,size:uploadFile.xfile.size,append:!0}))):files.sendText(JSON.stringify({action:"upload",reqid:uploadFile.xfilePtr,path:uploadFile.xpath,name:t.name,size:uploadFile.xfile.size,append:!1})))}}function p13uploadNextPart(e){if(uploadFile.xdata){var t=uploadFile.xdata,n=uploadFile.xptr;if(n>=t.byteLength)files.sendText(JSON.stringify({action:"uploaddone",reqid:uploadFile.xfilePtr}));else{if((o=uploadFile.xptr+(attemptWebRTC?16384:65536))>t.byteLength){if(1==e)return;o=t.byteLength}var a=new Uint8Array(t.slice(n,o));if(123==a[0]||0==a[0]){var i=new Uint8Array(o-n+1);i.set(a,1),files.send(i)}else files.send(a);uploadFile.xptr=o,Q("d2progressBar").value=o}}else if(uploadFile.xfile){if(null!=uploadFile.xreader)return;if(uploadFile.xptr>=uploadFile.xfile.size)return;var o;if((o=uploadFile.xptr+(attemptWebRTC?16384:65536))>uploadFile.xfile.size){if(1==e)return;o=uploadFile.xfile.size}uploadFile.xreader=new FileReader,uploadFile.xreader.onerror=function(e){console.log(e)},uploadFile.xreader.onload=function(){var e=uploadFile.xreader.result;if(delete uploadFile.xreader,null!=e){var t=new Uint8Array(e);if(123==t[0]||0==t[0]){var n=new Uint8Array(e.byteLength+1);n.set(t,1),files.send(n)}else files.send(t);uploadFile.xptr=o,Q("d2progressBar").value=o,uploadFile.xptr>=uploadFile.xfile.size?files.sendText(JSON.stringify({action:"uploaddone",reqid:uploadFile.xfilePtr})):uploadFile.xdataPriming>0&&(uploadFile.xdataPriming--,p13uploadNextPart(!0))}},uploadFile.xreader.readAsArrayBuffer(uploadFile.xfile.slice(uploadFile.xptr,o))}}var consoleNode,DeviceDetailsHardware=null,DeviceDetailsNetwork=null,DeviceDetailsNodeId=null;function updateDeviceDetails(e,t,n){if(null!=currentNode&&(null==e&&(e=currentNode),currentNode._id==e._id)){DeviceDetailsNodeId!=e._id&&(DeviceDetailsHardware=null,DeviceDetailsNetwork=null,DeviceDetailsNodeId=e._id),null!=t&&(DeviceDetailsHardware=t),null!=n&&(DeviceDetailsNetwork=n),null==(t=DeviceDetailsHardware)&&(t={}),null==(n=DeviceDetailsNetwork)&&(n={});var a=[],i={},o="";if(e.rname&&(o+=addDetailItem("İsim",EscapeHtml(e.rname),i)),t.windows&&t.windows.osinfo&&t.windows.osinfo.Description&&(o+=addDetailItem("Açıklama",EscapeHtml(t.windows.osinfo.Description),i)),e.osdesc&&(o+=addDetailItem("Sürüm",EscapeHtml(e.osdesc),i)),t.windows&&t.windows.osinfo){if((f=t.windows.osinfo).BuildRevision&&(o+=addDetailItem("Derleme numarası",EscapeHtml(f.BuildRevision),i)),f.OSArchitecture&&(f.OSArchitecture.startsWith("32")?o+=addDetailItem("Mimari","32-bit",i):f.OSArchitecture.startsWith("64")?o+=addDetailItem("Mimari","64-bit",i):o+=addDetailItem("Mimari",EscapeHtml(f.OSArchitecture),i)),f.LastBootUpTime){var l={year:parseInt(f.LastBootUpTime.substring(0,4)),month:parseInt(f.LastBootUpTime.substring(4,6))-1,day:parseInt(f.LastBootUpTime.substring(6,8)),hours:parseInt(f.LastBootUpTime.substring(8,10)),minutes:parseInt(f.LastBootUpTime.substring(10,12)),seconds:parseInt(f.LastBootUpTime.substring(12,14))};o+=addDetailItem("Last Boot Up Time",printDateTime(new Date(l.year,l.month,l.day,l.hours,l.minutes,l.seconds)))}f.Domain&&(o+=addDetailItem(f.PartOfDomain?"Alan adı":"Çalışma Grubu",EscapeHtml(f.Domain),i)),f.DomainState>0&&(o+=addDetailItem("Alan Durumu",domainStates[f.DomainState]?domainStates[f.DomainState]:"Bilinmeyen",i))}if(t.linux&&t.linux.LastBootUpTime){l={year:(s=new Date(t.linux.LastBootUpTime)).getFullYear(),month:s.getMonth(),day:s.getDate(),hours:s.getHours(),minutes:s.getMinutes(),seconds:s.getSeconds()};o+=addDetailItem("Last Boot Up Time",printDateTime(new Date(l.year,l.month,l.day,l.hours,l.minutes,l.seconds)))}if(t.darwin&&t.darwin.LastBootUpTime){var s;l={year:(s=new Date(1e3*t.darwin.LastBootUpTime)).getFullYear(),month:s.getMonth(),day:s.getDate(),hours:s.getHours(),minutes:s.getMinutes(),seconds:s.getSeconds()};o+=addDetailItem("Last Boot Up Time",printDateTime(new Date(l.year,l.month,l.day,l.hours,l.minutes,l.seconds)))}if(e.wsc){var r=[];null!=e.wsc.antiVirus&&("OK"==e.wsc.antiVirus?r.push("AV - <span style=color:green>Tamam</span>"):r.push("AV - <span style=color:red>KÖTÜ</span>")),null!=e.wsc.autoUpdate&&("OK"==e.wsc.autoUpdate?r.push("Güncelleme - <span style=color:green>Tamam</span>"):r.push("Güncelleme - <span style=color:red>KÖTÜ</span>")),null!=e.wsc.firewall&&("OK"==e.wsc.firewall?r.push("güvenlik duvarı - <span style=color:green>Tamam</span>"):r.push("güvenlik duvarı - <span style=color:red>KÖTÜ</span>")),o+=addDetailItem("Windows Güvenliği",r.join(", "))}if(e.defender){r=[];null!=e.defender.RealTimeProtection&&(1==e.defender.RealTimeProtection?r.push("RealTimeProtection - <span style=color:green>On</span>"):r.push("RealTimeProtection - <span style=color:red>Kapalı</span>")),null!=e.defender.TamperProtected&&(1==e.defender.TamperProtected?r.push("TamperProtection - <span style=color:green>On</span>"):r.push("TamperProtection - <span style=color:red>Kapalı</span>")),null!=e.defender.AntivirusSignatureVersion&&r.push("İmza Sürümü - <span style=color:green>"+EscapeHtml(e.defender.AntivirusSignatureVersion)+"</span>"),r.length>0&&(o+=addDetailItem("Windows Defender",r.join(", ")))}if(e.av&&e.av.length>0){r=[];for(var d in e.av)if(e.av[d].product){var u=EscapeHtml(e.av[d].product);!0!==e.av[d].enabled&&(u+=" - <span style=color:red>Devre dışı</span>"),!0!==e.av[d].updated&&(u+=" - <span style=color:red>Tarihi geçmiş</span>"),1==e.av[d].enabled&&1==e.av[d].updated&&(u+=" - <span style=color:green>Tamam</span>"),r.push(u)}o+=addDetailItem("Antivirüs",r.join("<br />"))}if(e.users&&e.users.length>0){var c=e.users.map(function(t,n){var a=e.upnusers&&e.upnusers[n],i=2&features3?e.users&&null!=e.users[n]?EscapeHtml(e.users[n]):null:null!=a?EscapeHtml(a):null,o=EscapeHtml(2&features3&&null!=a?a:t);return e.lusers&&e.lusers.indexOf(t)>=0?addKeyLinkConditional(o,i?i+" - Kilitli":"Kilitli",!0):i?"<span style=cursor:default title='"+i+"'>"+o+"</span>":o}).join(", ");o+=addDetailItem(e.users.length>1?"Aktif Kullanıcılar":"Aktif Kullanıcı",c)}if(e.idletime&&-1!=e.idletime&&(o+=addDetailItem("Boşta Kalma Süresi",printTimer(e.idletime))),""!=o&&a.push({name:"İşletim sistemi",html:o,img:"software"}),e.agent){o="";if(null!=e.agent&&null!=e.agent.id&&null!=e.agent.ver){var p="";p=e.agent.id<=agentsStr.length?agentsStr[e.agent.id]:agentsStr[0],0!=e.agent.ver&&(p+=" v"+e.agent.ver),14==e.agent.id&&(p=e.agent.core),o+=addDetailItem("Mesh Ajan",p)}if(e.firstconnect&&(o+=addDetailItem("İlk temsilci bağlantısı",printDateTime(new Date(e.firstconnect)))),1&e.conn?o+=addDetailItem("Son agent bağlantısı","Şimdi bağlandı"):e.lastconnect&&(o+=addDetailItem("Son agent bağlantısı",printDateTime(new Date(e.lastconnect)))),e.lastaddr){var m=e.lastaddr.split(":");m.length>2?o+=addDetailItem("Son agent adresi",e.lastaddr):isPrivateIP(e.lastaddr)?o+=addDetailItem("Son agent adresi",m[0]):o+=addDetailItem("Son agent adresi",'<a href="https://iplocation.com/?ip='+m[0]+'" rel="noreferrer noopener" target="MeshIPLoopup">'+m[0]+"</a>")}if(null!=t.agentvers&&t.agentvers.compileTime)try{var g=Date.parse(t.agentvers.compileTime);o+=addDetailItem("Derleme zamanı",printDateTime(new Date(g)))}catch(e){}null!=t.time&&(o+=addDetailItem("Son detay güncellemesi",printDateTime(new Date(t.time)))),""!=o&&a.push({name:"Mesh Ajan",html:o,img:"meshagent"})}if(t.mobile){o="";t.mobile.brand&&t.mobile.model&&(o+=addDetailItem("Modeli",EscapeHtml(t.mobile.brand+", "+t.mobile.model),i)),t.mobile.device&&(o+=addDetailItem("Cihaz",EscapeHtml(t.mobile.device),i)),t.mobile.bootloader&&(o+=addDetailItem("önyükleyici",EscapeHtml(t.mobile.bootloader),i)),t.mobile.id&&(o+=addDetailItem("Tanımlayıcı",EscapeHtml(t.mobile.id),i)),t.mobile.host&&(o+=addDetailItem("Ana bilgisayar adı",EscapeHtml(t.mobile.host),i)),t.mobile.androidapi&&t.mobile.androidrelease&&(o+=addDetailItem("Android Version",EscapeHtml(t.mobile.androidrelease+", API Level "+t.mobile.androidapi),i)),""!=o&&a.push({name:"Mobil cihaz",html:o,img:"mobile"})}if(null!=n.netif2){o="";for(var d in o+="<table style=width:100%>",n.netif2){var f=n.netif2[d];if(!(0==Array.isArray(f)||f.length<1||null==f[0]||"string"==typeof f[0].mac&&f[0].mac.startsWith("00:00:00:00"))){o+="<tr><td><div class=style10 style=border-radius:5px;padding:8px>",o+="<div style=margin-bottom:3px><b>"+EscapeHtml(d+(f[0].fqdn?", "+f[0].fqdn:""))+"</b></div>",f.desc&&(o+=addDetailItem("Açıklama",EscapeHtml(f.desc).split("(R)").join("&reg;"))),"string"==typeof f[0].mac&&(f[0].gatewaymac?o+=addDetailItem("MAC Katmanı",format("MAC: {0}, Ağ Geçidi: {1}",EscapeHtml(f[0].mac),EscapeHtml(f[0].gatewaymac))):o+=addDetailItem("MAC Katmanı",format("MAC: {0}",EscapeHtml(f[0].mac)))),"number"==typeof f[0].speed&&0x8000000000000000!=f[0].speed&&f[0].speed>0&&(o+=addDetailItem("Arayüz Hızı",format("{0}",getNetworkSpeed(f[0].speed))));for(var h=0;h<f.length;h++){var v=f[h],k=[];v.address&&k.push(format("IP: {0}",EscapeHtml(v.address))),v.netmask&&k.push(format("Maske: {0}",EscapeHtml(v.netmask))),v.gateway&&k.push(format("Ağ geçidi: {0}",EscapeHtml(v.gateway))),k.length>0&&("IPv4"==v.family&&(o+=addDetailItem("IPv4 Katmanı",k.join(","))),"IPv6"==v.family&&(o+=addDetailItem("IPv6 Katmanı",k.join(","))))}o+="</div></td></tr>"}}t.network&&t.network.dns&&(o+="<tr><td><div class=style10 style=border-radius:5px;padding:8px>",o+=addDetailItem("<b>DNS Servers</b>",t.network.dns.join(",")),o+="</div></td></tr>"),""!=(o+="</table>")&&a.push({name:"Ağ oluşturma",html:o,img:"networking"})}if(null!=e.intelamt){o="";o+=addDetailItem("Sürüm",e.intelamt.ver?"v"+EscapeHtml(e.intelamt.ver):"<i>Bilinmeyen</i>",i),o+=addDetailItem("Tanımlayıcı",e.intelamt.uuid?EscapeHtml(e.intelamt.uuid):"<i>Bilinmeyen</i>",i);var y={0:nobreak("Etkinleştirilmedi (Ön)"),1:nobreak("Etkinleştirilmedi (İçinde)"),2:nobreak("Aktif")},b="";2==e.intelamt.state&&e.intelamt.flags&&(2&e.intelamt.flags?b=", İstemci Kontrol Modu (CCM)":4&e.intelamt.flags&&(b=", Yönetici Kontrol Modu (ACM)")),o+=addDetailItem("Temel Hazırlık Durumu",(e.intelamt.state?y[e.intelamt.state]:"<i>Bilinmeyen</i>")+b,i),o+=addDetailItem("Güvenlik",1==e.intelamt.tls?"TLS kullanılarak güvenlik altına alındı":"TLS kurulmamış",i),""!=(o+=addDetailItem("Yönetici Kimlik Bilgileri",null==e.intelamt.user||""==e.intelamt.user||null!=e.intelamt.warn&&9&e.intelamt.warn?"Bilinmeyen":"Bilinen",i))&&("number"==typeof e.intelamt.sku&&16&e.intelamt.sku?a.push({name:"Intel&reg; Standart Yönetilebilirlik (Intel&reg; SM)",html:o,img:"amt"}):a.push({name:"Intel&reg; Aktif Yönetim Teknolojisi (Intel&reg; AMT)",html:o,img:"amt"}))}if(t.identifiers){o="";var x=t.identifiers;if(x.bios_vendor&&(o+=addDetailItem("Üretici",EscapeHtml(x.bios_vendor),i)),x.bios_version&&(o+=addDetailItem("Sürüm",EscapeHtml(x.bios_version),i)),x.bios_serial&&(o+=addDetailItem("Seri",EscapeHtml(x.bios_serial),i)),x.bios_mode&&(o+=addDetailItem("Mode",EscapeHtml(x.bios_mode),i)),""!=o&&a.push({name:"BIOS",html:o,img:"chip"}),o="",x.board_vendor&&(o+=addDetailItem("Üretici",EscapeHtml(x.board_vendor),i)),x.board_name&&(o+=addDetailItem("İsim",EscapeHtml(x.board_name),i)),x.board_serial&&""!=x.board_serial&&(o+=addDetailItem("Seri",EscapeHtml(x.board_serial),i)),x.board_version&&(o+=addDetailItem("Sürüm",EscapeHtml(x.board_version),i)),x.product_uuid&&(o+=addDetailItem("Tanımlayıcı",EscapeHtml(x.product_uuid),i)),x.cpu_name&&(o+=addDetailItem("İşlemci",EscapeHtml(x.cpu_name).split("(TM)").join("&trade;").split("(R)").join("&reg;"),i)),x.gpu_name)for(var d in x.gpu_name)o+=addDetailItem("GPU",EscapeHtml(x.gpu_name[d]).split("(TM)").join("&trade;").split("(R)").join("&reg;"),i);""!=o&&a.push({name:"Anakart",html:o,img:"motherboard"}),o="",x.chassis_manufacturer&&(o+=addDetailItem("Üretici",EscapeHtml(x.chassis_manufacturer),i)),x.product_name&&(o+=addDetailItem("Ürün Adı",EscapeHtml(x.product_name),i)),x.chassis_serial&&(o+=addDetailItem("Seri",EscapeHtml(x.chassis_serial),i)),x.chassis_assettag&&(o+=addDetailItem("Varlık Etiketi",EscapeHtml(x.chassis_assettag),i)),""!=o&&a.push({name:"Sistem",html:o,img:"system"})}if(t.tpm){o="";var w=t.tpm;w.SpecVersion&&(o+=addDetailItem("SpecVersion",parseFloat(EscapeHtml(w.SpecVersion)).toFixed(1),i)),w.ManufacturerId&&(o+=addDetailItem("Tanımlayıcı",EscapeHtml(w.ManufacturerId),i)),w.ManufacturerVersion&&(o+=addDetailItem("Sürüm",EscapeHtml(w.ManufacturerVersion),i)),null!=w.IsActivated&&(o+=addDetailItem("Aktif",w.IsActivated?"Yes":"No",i)),null!=w.IsEnabled&&(o+=addDetailItem("Etkin",w.IsEnabled?"Yes":"No",i)),null!=w.IsOwned&&(o+=addDetailItem("Sahip olunan",w.IsOwned?"Yes":"No",i)),""!=o&&a.push({name:"TPM",html:o,img:"tpm"})}if(t.battery){o="";for(var d in o+="<table style=width:100%>",t.battery){var S=t.battery[d];o+="<tr><td><div class=style10 style=border-radius:5px;padding:8px>",o+="<div style=margin-bottom:3px><b>"+EscapeHtml(S.DeviceName?S.DeviceName:"Bilinmeyen")+"</b></div>",S.CycleCount&&(o+=addDetailItem("Döngü Sayısı",EscapeHtml(S.CycleCount),i)),S.FullChargedCapacity&&(o+=addDetailItem("Tam Şarjlı Kapasite",format("{0} mWh",S.FullChargedCapacity),i)),S.EstimatedRuntime&&(o+=addDetailItem("Tahmini Çalışma Süresi",format("{0} dakika",Math.floor(S.EstimatedRuntime/60)),i)),S.Chemistry&&(o+=addDetailItem("Kimya",EscapeHtml(S.Chemistry),i)),S.DesignedCapacity&&(o+=addDetailItem("Tasarım Kapasitesi",format("{0} mWh",S.DesignedCapacity),i)),S.ManufactureDate&&(o+=addDetailItem("Üretim Tarihi",EscapeHtml(S.ManufactureDate),i)),S.ManufactureName&&(o+=addDetailItem("Üretim Adı",EscapeHtml(S.ManufactureName),i)),S.SerialNumber&&(o+=addDetailItem("Seri numarası",EscapeHtml(S.SerialNumber),i)),S.ChargeRate&&(o+=addDetailItem("Şarj Oranı",format("{0} mW",S.ChargeRate),i)),null!=S.Charging&&(o+=addDetailItem("Şarj etme",S.Charging?"Yes":"No",i)),S.DischargeRate&&(o+=addDetailItem("Deşarj Hızı",format("{0} mW",S.DischargeRate),i)),null!=S.Discharging&&(o+=addDetailItem("Boşaltma",S.Discharging?"Yes":"No",i)),S.RemainingCapacity&&(o+=addDetailItem("Kalan Kapasite",format("{0} mWh",S.RemainingCapacity),i)),S.Voltage&&(o+=addDetailItem("Gerilim",format("{0} V",S.Voltage/1e3),i)),S.Health&&(o+=addDetailItem("Sağlık",format("{0} %",S.Health),i)),S.BatteryCharge&&(o+=addDetailItem("Pil Şarjı",format("{0} %",S.BatteryCharge),i)),o+="</div>"}""!=(o+="</table>")&&a.push({name:"Pil",html:o,img:"battery"})}if(t.windows&&t.windows.memory&&t.windows.memory.length>0){o="";for(var d in t.windows.memory.sort(function(e,t){return e.BankLabel>t.BankLabel?1:e.BankLabel<t.BankLabel?-1:0}),o+="<table style=width:100%>",t.windows.memory){f=t.windows.memory[d];o+="<tr><td><div class=style10 style=border-radius:5px;padding:8px>",o+="<div style=margin-bottom:3px><b>"+EscapeHtml(f.BankLabel?f.BankLabel:f.DeviceLocator?f.DeviceLocator:"Unknown")+"</b></div>",f.Capacity&&f.Speed?o+=addDetailItem("Kapasite / Hız",format("{0} Mb, {1} Mhz",f.Capacity/1024/1024,f.Speed),i):f.Capacity&&(o+=addDetailItem("Kapasite",format("{0} Mb",f.Capacity/1024/1024),i)),f.PartNumber&&(o+=addDetailItem("Parça Numarası",EscapeHtml(f.Manufacturer&&"Undefined"!=f.Manufacturer?f.Manufacturer+", ":"")+EscapeHtml(f.PartNumber),i)),o+="</div>"}""!=(o+="</table>")&&a.push({name:"Bellek",html:o,img:"ram"})}if(t.linux&&t.linux.memory&&t.linux.memory.Memory_Device.length>0){o="";for(var d in t.linux.memory.Memory_Device.sort(function(e,t){return e.Locator>t.Locator?1:e.Locator<t.Locator?-1:0}),o+="<table style=width:100%>",t.linux.memory.Memory_Device){(f=t.linux.memory.Memory_Device[d]).Size&&"No Module Installed"==f.Size||(o+="<tr><td><div class=style10 style=border-radius:5px;padding:8px>",o+="<div style=margin-bottom:3px><b>"+EscapeHtml(f.Locator?f.Locator:"Unknown")+"</b></div>",f.Size&&f.Speed?o+=addDetailItem("Kapasite / Hız",format("{0}, {1}",f.Size,f.Speed),i):f.Size&&(o+=addDetailItem("Kapasite",format("{0}",f.Size),i)),f.PartNumber&&(o+=addDetailItem("Parça Numarası",EscapeHtml(f.Manufacturer&&"Undefined"!=f.Manufacturer?f.Manufacturer+", ":"")+EscapeHtml(f.PartNumber),i)),o+="</div>")}""!=(o+="</table>")&&a.push({name:"Bellek",html:o,img:"ram"})}if(t.darwin&&t.darwin.memory&&t.darwin.memory.length>0){o="";for(var d in o+="<table style=width:100%>",t.darwin.memory){(f=t.darwin.memory[d]).Size&&"No Module Installed"==f.Size||(o+="<tr><td><div class=style10 style=border-radius:5px;padding:8px>",o+="<div style=margin-bottom:3px><b>"+EscapeHtml(f.DeviceLocator?f.DeviceLocator:"Unknown")+"</b></div>",f.Size&&f.Speed?o+=addDetailItem("Kapasite / Hız",format("{0}, {1}",f.Size,f.Speed),i):f.Size&&(o+=addDetailItem("Kapasite",format("{0}",f.Size),i)),f.PartNumber&&(o+=addDetailItem("Parça Numarası",EscapeHtml(f.Manufacturer&&""!=f.Manufacturer?f.Manufacturer+", ":"")+EscapeHtml(f.PartNumber),i)),o+="</div>")}""!=(o+="</table>")&&a.push({name:"Bellek",html:o,img:"ram"})}if(t.identifiers&&x.storage_devices){o="";for(var d in x.storage_devices.sort(function(e,t){return e.Caption>t.Caption?1:e.Caption<t.Caption?-1:0}),o+="<table style=width:100%>",x.storage_devices){if((f=x.storage_devices[d]).Size){if(o+="<tr><td><div class=style10 style=border-radius:5px;padding:8px>",o+="<div style=margin-bottom:3px><b>"+EscapeHtml(f.Caption)+"</b></div>",f.Model&&f.Model!=f.Caption&&(o+=addDetailItem("Modeli",EscapeHtml(f.Model),i)),f.Size&&("string"==typeof f.Size&&parseInt(f.Size)==f.Size&&(f.Size=parseInt(f.Size)),"number"==typeof f.Size&&(o+=addDetailItem("Kapasite",format("{0} Mb",Math.floor(f.Size/1024/1024)),i)),"string"==typeof f.Size&&(o+=addDetailItem("Kapasite",EscapeHtml(f.Size),i))),t.windows&&t.windows.drives&&f.Model){const e=t.windows.drives.find(e=>e.Model===f.Model);e&&(o+=addDetailItem("Durum",EscapeHtml(e.Status),i))}o+="</div>"}}""!=(o+="</table>")&&a.push({name:"Depolama",html:o,img:"storage"})}if(t.windows&&t.windows.volumes){o="";for(var d in t.windows.volumes){if(o+="<tr><td><div class=style10 style=border-radius:5px;padding:8px>",o+="<div style=margin-bottom:3px><b>"+d+":"+(null==(f=t.windows.volumes[d]).name||""==f.name?"":" - "+EscapeHtml(f.name))+"</b></div>",f.size){var D=["Bytes","KB","MB","GB","TB"],Q=0===(h=parseInt(Math.floor(Math.log(Math.abs(f.size))/Math.log(1024)),10))?`${f.size} ${D[h]}`:`${(f.size/1024**h).toFixed(2)} ${D[h]}`;o+=addDetailItem("Kapasite",EscapeHtml(Q),i)}if(f.sizeremaining){D=["Bytes","KB","MB","GB","TB"],Q=0===(h=parseInt(Math.floor(Math.log(Math.abs(f.sizeremaining))/Math.log(1024)),10))?`${f.sizeremaining} ${D[h]}`:`${(f.sizeremaining/1024**h).toFixed(2)} ${D[h]}`;o+=addDetailItem("Kalan Kapasite",EscapeHtml(Q),i)}if(f.type)o+=addDetailItem("File System",(""!=(C=1==f.removable?"Removable":1==f.cdrom?"CD-ROM":"")?C+" / ":"")+("Unknown"==f.type?"Bilinmeyen":EscapeHtml(f.type)),i);if(f.protectionStatus||f.volumeStatus){var M=[];f.protectionStatus&&M.push("Etkin"),f.volumeStatus&&"FullyDecrypted"==f.volumeStatus&&M.push("Fully Decrypted"),f.volumeStatus&&"EncryptionInProgress"==f.volumeStatus&&M.push("Encryption In Progress"),f.volumeStatus&&"FullyEncrypted"==f.volumeStatus&&M.push("Fully Encrypted"),M=M.join(" - "),f.recoveryPassword&&(M+=addKeyLink("",'deviceDetailsShowBitlockerInfo("'+encodeURIComponentEx(d)+'","'+encodeURIComponentEx(f.identifier)+'","'+encodeURIComponentEx(f.recoveryPassword)+'")')),o+=addDetailItem("BitLocker",M,i)}o+="</div>"}""!=o&&a.push({name:"Storage Volumes",html:"<table style=width:100%>"+o+"</table>",img:"storage"})}if(t.linux&&t.linux.volumes){o="";for(var d in t.linux.volumes){if(!(f=t.linux.volumes[d]).mount_point.startsWith("/var/lib/docker/overlay2")){if(o+="<tr><td><div class=style10 style=border-radius:5px;padding:8px>",o+="<div style=margin-bottom:3px><b>"+f.mount_point+"</b></div>",f.size){D=["KB","MB","GB","TB"],Q=0===(h=parseInt(Math.floor(Math.log(Math.abs(f.size))/Math.log(1024)),10))?`${f.size} ${D[h]}`:`${(f.size/1024**h).toFixed(2)} ${D[h]}`;o+=addDetailItem("Kapasite",EscapeHtml(Q),i)}if(f.available){if(0==Math.abs(f.available))Q="0 KB";else D=["KB","MB","GB","TB"],Q=0===(h=parseInt(Math.floor(Math.log(Math.abs(f.available))/Math.log(1024)),10))?`${f.available} ${D[h]}`:`${(f.available/1024**h).toFixed(2)} ${D[h]}`;o+=addDetailItem("Kalan Kapasite",EscapeHtml(Q),i)}if(f.type)o+=addDetailItem("File System",(""!=(C=1==f.removable?"Removable":1==f.cdrom?"CD-ROM":"")?C+" / ":"")+("Unknown"==f.type?"Bilinmeyen":EscapeHtml(f.type)),i);o+="</div>"}}""!=o&&a.push({name:"Storage Volumes",html:"<table style=width:100%>"+o+"</table>",img:"storage"})}if(t.darwin&&t.darwin.volumes){o="";for(var d in t.darwin.volumes){if(!(f=t.darwin.volumes[d]).mount_point.startsWith("/var/lib/docker/overlay2")){var C;if(o+="<tr><td><div class=style10 style=border-radius:5px;padding:8px>",o+="<div style=margin-bottom:3px><b>"+f.mount_point+"</b></div>",f.size&&(o+=addDetailItem("Kapasite",EscapeHtml(f.size),i)),f.available&&(o+=addDetailItem("Kalan Kapasite",EscapeHtml(f.available),i)),f.type)o+=addDetailItem("File System",(""!=(C=1==f.removable?"Removable":1==f.cdrom?"CD-ROM":"")?C+" / ":"")+("Unknown"==f.type?"Bilinmeyen":EscapeHtml(f.type)),i);o+="</div>"}}""!=o&&a.push({name:"Storage Volumes",html:"<table style=width:100%>"+o+"</table>",img:"storage"})}o="";for(var d in a)null==a[d].img?o+="<div class=DevSt style=margin-bottom:3px;margin-left:4px><b>"+a[d].name+"</b></div><div style=margin-bottom:10px;margin-left:4px>"+a[d].html+"</div>":(o+="<table style=width:100%><tr>",o+="<td style=width:32px;vertical-align:top><img src=images/details/"+a[d].img+'32.png srcset="images/details/'+a[d].img+'64.png 2x" border=0 width=32 /></td>',o+="<td><div class=DevSt style=margin-bottom:3px;margin-left:4px><b>"+a[d].name+"</b></div><div style=margin-bottom:10px;margin-left:4px>"+a[d].html+"</div></td>",o+="</tr></table>");""==o?QH("p10detailshtml","Bu cihaz için bilgi yok."):QH("p10detailshtml",o)}}function deviceDetailsShowBitlockerInfo(e,t,n){if(xxdialogMode)return!1;var a="<div><p>Tanımlayıcı</p><p style=user-select:text;font-weight:bold>"+(t?decodeURIComponent(t):"Bilinmeyen")+"</p>";a+="<p>Recovery Password</p><p style=user-select:text;font-weight:bold>"+(n?decodeURIComponent(n):"Bilinmeyen")+"</p></div>",setDialogMode(2,decodeURIComponent(e)+": BitLocker Information",1,null,a,"")}function insertTextAtCursor(e,t){if(document.selection)e.focus(),sel=document.selection.createRange(),sel.text=t;else if(e.selectionStart||"0"==e.selectionStart){var n=e.selectionStart,a=e.selectionEnd;e.value=e.value.substring(0,n)+t+e.value.substring(a,e.value.length),e.setSelectionRange(a+1,a+1)}else e.value+=myValue}var consoleServerText="";function setupConsole(){var e=consoleNode==currentNode;meshes[(consoleNode=currentNode).meshid];if(16&GetNodeRights(currentNode)){null==consoleNode.consoleText&&(consoleNode.consoleText=""),0==e&&(QH("p15agentConsoleText",consoleNode.consoleText),Q("p15agentConsoleText").scrollTop=Q("p15agentConsoleText").scrollHeight);1&consoleNode.conn||consoleNode.conn;var t=1&consoleNode.conn?"Agent çevrimiçi":"Agent çevrimdışı";16&consoleNode.conn&&(t+=", MQTT çevrimiçi"),QH("p15statetext",t),QE("p15uploadCore",!!(1&consoleNode.conn)),QV("p15outputselecttd",!!(16&consoleNode.conn)||1==currentNode.pmt&&!!(2&features2)),QV("p15outputselect2",!!(16&consoleNode.conn)),QV("p15outputselect3",1==currentNode.pmt&&!!(2&features2));var n=Q("p15outputselect").value;16&consoleNode.conn||2!=n||(n=1,Q("p15outputselect").value=1),1==currentNode.pmt&&2&features2||3!=n||(n=1,Q("p15outputselect").value=1);var a=!1;1&consoleNode.conn&&1==n&&(a=!0),16&consoleNode.conn&&2==n&&(a=!0),1==currentNode.pmt&&2&features2&&3==n&&(a=!0),QE("p15consoleText",a)}else QH("p15statetext","Erişim reddedildi"),QE("p15consoleText",!1),QE("p15uploadCore",!1),QV("p15outputselecttd",!1);QV("devListToolbarViewIcons3",!!(1&consoleNode.conn))}function p15consoleClear(){QH("p15agentConsoleText",""),Q("id_p15consoleClear").blur(),consoleNode.consoleText=""}var currentMesh,consoleHistory=[];function p15consoleSend(e){if(!e||13==e.keyCode){var t=Q("p15consoleText").value,n="<div style=color:green>&gt; "+EscapeHtml(t)+"<br/></div>";if(16&consoleNode.conn&&2==Q("p15outputselect").value?(n="<div style=color:orange>MQTT&gt; "+EscapeHtml(t)+"<br/></div>",consoleNode.consoleText+=n,meshserver.send({action:"sendmqttmsg",topic:"console",nodeids:[consoleNode._id],msg:t})):1==consoleNode.pmt&&3==Q("p15outputselect").value&&2&features2?(n="<div style=color:violet>İTMEK&gt; "+EscapeHtml(t)+"<br/></div>",consoleNode.consoleText+=n,meshserver.send({action:"pushconsole",nodeid:consoleNode._id,console:t})):1&consoleNode.conn&&(consoleNode.consoleText+=n,meshserver.send({action:"msg",type:"console",nodeid:consoleNode._id,value:t})),Q("p15agentConsoleText").innerHTML+=n,Q("p15agentConsoleText").scrollTop=Q("p15agentConsoleText").scrollHeight,Q("p15consoleText").value="",t.length>0){var a=consoleHistory.indexOf(t);a>=0&&consoleHistory.splice(a,1),consoleHistory.unshift(t),consoleHistory.splice(10)}}}function p15consoleReceive(e,t,n){"serverconsole"===e?(t="<div>"+EscapeHtml(t)+"</div>",consoleServerText+=t,"server"==consoleNode&&(Q("p15agentConsoleText").innerHTML+=t,Q("p15agentConsoleText").scrollTop=Q("p15agentConsoleText").scrollHeight)):(t="MQTT"==n?"<div style=color:red>MQTT&gt; "+EscapeHtml(t)+"<br/></div>":"<div>"+EscapeHtml(t)+"</div>",null==e.consoleText?e.consoleText=t:e.consoleText+=t,consoleNode==e&&(Q("p15agentConsoleText").innerHTML+=t,Q("p15agentConsoleText").scrollTop=Q("p15agentConsoleText").scrollHeight))}function p15downloadConsoleText(){saveAs(new Blob([Q("p15agentConsoleText").innerText],{type:"application/octet-stream"}),"console.txt")}function p15uploadCore(e){if(!xxdialogMode)if(1==e.shiftKey)meshserver.send({action:"uploadagentcore",nodeid:consoleNode._id,type:"default"});else if(1==e.altKey)meshserver.send({action:"uploadagentcore",nodeid:consoleNode._id,type:"clear"});else if(1==e.ctrlKey)p15uploadCore2();else{setDialogMode(2,"Agent İşlemi Gerçekleştir",3,p15uploadCoreEx,addHtmlValue("İşlem","<select id=d3coreMode style=width:230px><option value=1>Varsayılan sunucu çekirdeğini gönderin</option><option value=2>Çekirdeği temizleyin</option><option value=3>Çekirdek dosya gönder</option><option value=4>Agent bağlantısını kes</option><option value=5>Agent bağlantısını zorla kes</option><option value=6>Kurtarma çekirdeğini gönder</option><option value=7>Küçük çekirdek yükleyin</option><option value=8>Restart agent service</option><option value=9>Aracı güncellemesini zorla</option></select>"))}}function p15uploadCoreEx(){1==Q("d3coreMode").value?meshserver.send({action:"uploadagentcore",nodeid:consoleNode._id,type:"default"}):2==Q("d3coreMode").value?meshserver.send({action:"uploadagentcore",nodeid:consoleNode._id,type:"clear"}):3==Q("d3coreMode").value?p15uploadCore2():4==Q("d3coreMode").value?meshserver.send({action:"agentdisconnect",nodeid:consoleNode._id,disconnectMode:1}):5==Q("d3coreMode").value?meshserver.send({action:"agentdisconnect",nodeid:consoleNode._id,disconnectMode:2}):6==Q("d3coreMode").value?meshserver.send({action:"uploadagentcore",nodeid:consoleNode._id,type:"recovery"}):7==Q("d3coreMode").value?meshserver.send({action:"uploadagentcore",nodeid:consoleNode._id,type:"tiny"}):8==Q("d3coreMode").value?meshserver.send({action:"msg",type:"console",nodeid:consoleNode._id,value:"service restart"}):9==Q("d3coreMode").value&&meshserver.send({action:"updateAgents",nodeids:[consoleNode._id]})}function p15uploadCore2(){xxdialogMode||(Q("d3localmodeform").action="uploadmeshcorefile.ashx",Q("d3auth").value=authCookie,Q("d3attrib").value=currentNode._id,setDialogMode(4,"Mesh Agent Çekirdeğini Gönder",3,p15uploadCoreEx2),d3init())}function p15uploadCoreEx2(){if(1==Q("d3uploadMode").value)Q("d3submit").click();else{var e=d3getFileSel();1==e.length&&meshserver.send({action:"uploadagentcore",nodeid:consoleNode._id,type:"custom",path:d3filetreelocation.join("/")+"/"+e[0]})}}function p20updateMesh(){if(null!=currentMesh){QH("p20meshName",EscapeHtml(currentMesh.name));var e=format("Bilinmeyen # {0}",currentMesh.mtype),t=GetMeshRights(currentMesh);1==currentMesh.mtype&&(e="Yalnızca Intel&reg; AMT, aracı yok"),2==currentMesh.mtype&&(e="Bir yazılım aracısı kullanılarak yönetilir"),3==currentMesh.mtype&&(e=null==currentMesh.relayid?"Yerel cihazlar, aracı yok":"Aracı aracılığıyla aktarılan hiçbir aracı cihazı yok"),4==currentMesh.mtype&&(e=null==currentMesh.relayid?"IP-KVM cihazı":"Aracı aracılığıyla aktarılan IP-KVM cihazı",1==currentMesh.kvm.model&&(e+=", Raritan KX III"));var n="";if(n+=addHtmlValue("İsim",addLinkConditional(EscapeHtml(currentMesh.name),"p20editmesh(1)",!!(1&t))),n+=addHtmlValue("Açıklama",addLinkConditional(currentMesh.desc&&""!=currentMesh.desc?EscapeHtml(currentMesh.desc):"<i>Yok</i>","p20editmesh(2)",!!(1&t))),n+=addHtmlValue("Yazı",e),(3==currentMesh.mtype||4==currentMesh.mtype)&&null!=currentMesh.relayid){var a="<i>Bilinmeyen</i>",i=getNodeFromId(currentMesh.relayid);null!=i&&(a=EscapeHtml(i.name)),n+=addHtmlValue("Röle Cihazı",addLinkConditional(a,"p20editmeshrelay()",!!(1&t)))}4==currentMesh.mtype&&(n+=addHtmlValue("Ana bilgisayar adı",currentMesh.kvm.host),n+=addHtmlValue("Kullanıcı adı",currentMesh.kvm.user)),n+='<br><input type=button value="Notlar" onclick=showNotes(false,"'+encodeURIComponent(currentMesh._id)+'") />',n+="<br style=clear:both><br>";var o=currentMesh.links[userinfo._id];o&&2&o.rights&&(n+="<div style=margin-bottom:6px;float:left;margin-right:10px><a onclick=p20showAddMeshUserDialog() style=cursor:pointer><img src=images/icon-addnew.png border=0 height=12 width=12> Kullanıcı Ekle</a></div>"),navigator.userAgent.toLowerCase().indexOf("android")>=0&&(n+="<div style=margin-bottom:6px;float:left;margin-right:10px><a onclick=p20installAndroidDialog() style=cursor:pointer><img src=images/icon-addnew.png border=0 height=12 width=12> Bu cihaza yükle</a></div>"),n+='<table style="color:black;background-color:#EEE;border-color:#AAA;border-width:1px;border-style:solid;border-collapse:collapse" border=0 cellpadding=2 cellspacing=0 width=100%><tbody><tr style=background-color:#AAAAAA;font-weight:bold><th scope=col style=text-align:left;width:430px>Kullanıcı Yetkileri</th></tr>';var l=1,s=[];for(var r in currentMesh.links){var d=r.split("/")[2];currentMesh.links[r].name&&(d=currentMesh.links[r].name),r==userinfo._id&&(d=userinfo.name),null!=usergroups&&null!=usergroups[r]&&(d=usergroups[r].name),s.push({id:r,name:d,rights:currentMesh.links[r].rights})}for(var r in s.sort(function(e,t){return e.name>t.name?1:e.name<t.name?-1:0}),s){var u="",c="Kısmi Haklar",p=s[r].rights,m=2;4294967295==p?c="Tam Yönetici":0==p&&(c="Hak Yok"),r!=userinfo._id&&(4294967295==t||2&t)&&(u='<a onclick=p20deleteUser(event,"'+encodeURIComponent(s[r].id)+'") style=cursor:pointer><img src=images/trash.png border=0 height=10 width=10></a>'),s[r].id.startsWith("ugrp/")&&(m=4),n+='<tr onclick=p20viewuser("'+encodeURIComponent(s[r].id)+'") style=height:32px;cursor:pointer'+(l%2==0?";background-color:#DDD":"")+"><td>",n+="<div style=float:right>"+u+"</div><div style=float:right;padding-right:4px>"+c+"</div><div class=m"+m+"></div><div>&nbsp;"+EscapeHtml(decodeURIComponent(s[r].name))+"<div></div></div>",n+="</td></tr>",++l}n+="</tbody></table>",4294967295==t&&(n+="<div style=font-size:small;text-align:right;margin-top:6px><span><a onclick=p20showDeleteMeshDialog() style=cursor:pointer>Grubu Sil</a></span></div>"),QH("p20info",n)}}function p20showDeleteMeshDialog(){if(xxdialogMode)return!1;var e=format("{0} grubunu silmek istediğinizden emin misiniz? Cihaz grubunun silinmesi, bu grup içindeki cihazlar hakkındaki tüm bilgileri de silecektir.",EscapeHtml(currentMesh.name))+"<br /><br />";return setDialogMode(2,"Grubu Sil",3,p20showDeleteMeshDialogEx,e+="<label><input id=p20check type=checkbox onchange=p20validateDeleteMeshDialog() />Onayla</label>"),p20validateDeleteMeshDialog(),!1}function p20validateDeleteMeshDialog(){QE("idx_dlgOkButton",Q("p20check").checked)}function p20showDeleteMeshDialogEx(e,t){meshserver.send({action:"deletemesh",meshid:currentMesh._id,meshname:currentMesh.name})}function p20editmeshrelay(){if(!xxdialogMode){var e=[];if(!(2&features))for(var t in nodes){var n=nodes[t];2==n.mtype&&null!=n.agent&&4294967295==GetNodeRights(n)&&e.push(n)}if(e.sort(nameSort),0==e.length)setDialogMode(2,"Cihaz Grubunu Düzenle",1,null,"Röle cihazı mevcut değil.");else{var a=[];for(var t in e)a.push('<option value="'+e[t]._id+'"'+(currentMesh.relayid==e[t]._id?" selected":"")+">"+EscapeHtml(e[t].name)+"</option>");setDialogMode(2,"Cihaz Grubunu Düzenle",3,p20editmeshrelayEx,addHtmlValue("Röle Cihazı","<div style=width:170px><select id=d2devrelay style=width:100%>"+a.join("")+"</select></div>"))}}}function p20editmeshrelayEx(){meshserver.send({action:"editmesh",meshid:currentMesh._id,relayid:Q("d2devrelay").value})}function p20editmesh(e){if(!xxdialogMode){var t=addHtmlValue("İsim","<input id=dp20meshname style=width:170px maxlength=32 onchange=p20editmeshValidate() onkeyup=p20editmeshValidate() />");setDialogMode(2,"Cihaz Grubunu Düzenle",3,p20editmeshEx,t+=addHtmlValue("Açıklama","<input id=dp20meshdesc style=width:170px maxlength=1024 onkeyup=p20editmeshValidate() />")),Q("dp20meshname").value=currentMesh.name,currentMesh.desc&&(Q("dp20meshdesc").value=currentMesh.desc),p20editmeshValidate(),2==e?Q("dp20meshdesc").focus():Q("dp20meshname").focus()}}function p20editmeshEx(){meshserver.send({action:"editmesh",meshid:currentMesh._id,meshname:Q("dp20meshname").value,desc:Q("dp20meshdesc").value})}function p20editmeshValidate(){QE("idx_dlgOkButton",Q("dp20meshname").value.length>0)}function p20installAndroidDialog(){if(!xxdialogMode){var e="<div style=text-align:center><p>MeshCentral Agent'ı Android cihazınıza yükleyin. Kurulduktan sonra, cihazınızı bu sunucuya bağlamak için eşleştirme bağlantısını tıklayın.</p>";e+='<p><a rel="noreferrer noopener" target=_blank href="https://play.google.com/store/apps/details?id=com.meshcentral.agent2"><img style=cursor:pointer src="images/google-play-140.png" width=140 srcset="images/google-play-280.png 2x" /></a></p>',e+='<p><a rel="noreferrer noopener" target=_blank href="https://www.amazon.co.uk/gp/product/B097Z4Q7SK/"><img style=cursor:pointer src="images/amazon-appstore-140.png"  width=140 srcset="images/amazon-appstore-280.png 2x" /></a></p>',e+='<p><a rel="noreferrer noopener" target=_blank href="meshagents?id=14'+(urlargs.key?"&key="+urlargs.key:"")+'" title="APK version of the MeshAgent">Android APK</a></p>',setDialogMode(2,"Android Kurulumu",1,null,e+='<p><a href="'+serverinfo.magenturl+","+serverinfo.agentCertHash+","+currentMesh._id.split("/")[2]+'"><b>Cihaz Eşleştirme Bağlantısı</b></a></p></div>')}}function p20showAddMeshUserDialog(){if(!xxdialogMode){var e=addHtmlValue("User ID","<input id=dp20username style=width:170px maxlength=256 onchange=p20validateAddMeshUserDialog() onkeyup=p20validateAddMeshUserDialog() />");e+='<div style="border:2px groove gray;background-color:white;max-height:120px;overflow-y:scroll">',e+="<label><input type=checkbox onchange=p20validateAddMeshUserDialog() id=p20fulladmin>Tam Yönetici</label><br>",e+="<label><input type=checkbox onchange=p20validateAddMeshUserDialog() id=p20editmesh>Cihaz Grubunu Düzenle</label><br>",e+="<label><input type=checkbox onchange=p20validateAddMeshUserDialog() id=p20manageusers>Cihaz Grubu Kullanıcılarını Yönetin</label><br>",e+="<label><input type=checkbox onchange=p20validateAddMeshUserDialog() id=p20managecomputers>Cihaz Grubu Bilgisayarlarını Yönetin</label><br>",e+="<label><input type=checkbox onchange=p20validateAddMeshUserDialog() id=p20remotecontrol>Uzaktan kumanda</label><br>",e+="<label><input type=checkbox onchange=p20validateAddMeshUserDialog() id=p20remoteview style=margin-left:12px>Yalnızca Uzaktan Görünüm</label><br>",e+="<label><input type=checkbox onchange=p20validateAddMeshUserDialog() id=p20remotelimitedinput style=margin-left:12px>Yalnızca Sınırlı Giriş</label><br>",e+="<label><input type=checkbox onchange=p20validateAddMeshUserDialog() id=p20noterminal style=margin-left:12px>Terminal Erişimi Yok</label><br>",e+="<label><input type=checkbox onchange=p20validateAddMeshUserDialog() id=p20nofiles style=margin-left:12px>Dosya Erişimi Yok</label><br>",e+="<label><input type=checkbox onchange=p20validateAddMeshUserDialog() id=p20noamt style=margin-left:12px>Intel&reg; AMT yok</label><br>",e+="<label><input type=checkbox onchange=p20validateAddMeshUserDialog() id=p20meshagentconsole>Mesh Aracı Komut Satırı</label><br>",e+="<label><input type=checkbox onchange=p20validateAddMeshUserDialog() id=p20meshserverfiles>Sunucu Dosyaları</label><br>",e+="<label><input type=checkbox onchange=p20validateAddMeshUserDialog() id=p20wakedevices>Cihazları Uyandır</label><br>",e+="<label><input type=checkbox onchange=p20validateAddMeshUserDialog() id=p20editnotes>Cihaz Notlarını Düzenle</label><br>",e+="<label><input type=checkbox onchange=p20validateAddMeshUserDialog() id=p20limitevents>Yalnızca Kendi Etkinlikleri Göster</label><br>",e+="<label><input type=checkbox onchange=p20validateAddMeshUserDialog() id=p20chatnotify>Sohbet ve Bildir</label><br>",e+="<label><input type=checkbox onchange=p20validateAddMeshUserDialog() id=p20uninstall>Agent'ı Kaldır</label><br>",e+="<label><input type=checkbox onchange=p20validateAddMeshUserDialog() id=p20commands>Uzaktan Komutlar</label><br>",e+="<label><input type=checkbox onchange=p20validateAddMeshUserDialog() id=p20resetoff>Sıfırla / Kapat</label><br>",setDialogMode(2,"Cihaz Grubuna Kullanıcı Ekle",3,p20showAddMeshUserDialogEx,e+="</div>"),p20validateAddMeshUserDialog(),Q("dp20username").focus()}}function p20validateAddMeshUserDialog(){var e=GetMeshRights(currentMesh),t=!Q("p20fulladmin").checked;QE("p20fulladmin",4294967295==e),QE("p20editmesh",t&&4294967295==e),QE("p20manageusers",t),QE("p20managecomputers",t),QE("p20remotecontrol",t),QE("p20meshagentconsole",t),QE("p20meshserverfiles",t),QE("p20wakedevices",t),QE("p20editnotes",t),QE("p20limitevents",t),QE("p20remoteview",t&&Q("p20remotecontrol").checked),QE("p20remotelimitedinput",t&&Q("p20remotecontrol").checked&&!Q("p20remoteview").checked),QE("p20noterminal",t&&Q("p20remotecontrol").checked),QE("p20nofiles",t&&Q("p20remotecontrol").checked),QE("p20noamt",t&&Q("p20remotecontrol").checked),QE("p20chatnotify",t),QE("p20uninstall",t),QE("p20commands",t),QE("p20resetoff",t)}function p20showAddMeshUserDialogEx(){var e=0;1==Q("p20fulladmin").checked?e=4294967295:(1==Q("p20editmesh").checked&&(e+=1),1==Q("p20manageusers").checked&&(e+=2),1==Q("p20managecomputers").checked&&(e+=4),1==Q("p20remotecontrol").checked&&(e+=8),1==Q("p20meshagentconsole").checked&&(e+=16),1==Q("p20meshserverfiles").checked&&(e+=32),1==Q("p20wakedevices").checked&&(e+=64),1==Q("p20editnotes").checked&&(e+=128),1==Q("p20remoteview").checked&&(e+=256),1==Q("p20noterminal").checked&&(e+=512),1==Q("p20nofiles").checked&&(e+=1024),1==Q("p20noamt").checked&&(e+=2048),1==Q("p20remotelimitedinput").checked&&(e+=4096),1==Q("p20limitevents").checked&&(e+=8192),1==Q("p20chatnotify").checked&&(e+=16384),1==Q("p20uninstall").checked&&(e+=32768),1==Q("p20commands").checked&&(e+=131072),1==Q("p20resetoff").checked&&(e+=262144));var t=Q("dp20username").value.split(","),n=[];for(var a in t)n.push(t[a].trim());meshserver.send({action:"addmeshuser",meshid:currentMesh._id,meshname:currentMesh.name,usernames:n,meshadmin:e})}function p20viewuser(e){if(!xxdialogMode){e=decodeURIComponent(e);var t=[],n=GetMeshRights(currentMesh),a=GetMeshRights(currentMesh,e);4294967295==a?t.push("Tam Yönetici"):(1&a&&t.push("Cihaz Grubunu Düzenle"),2&a&&t.push("Cihaz Grubu Kullanıcılarını Yönetin"),4&a&&t.push("Cihaz Grubu Bilgisayarlarını Yönetin"),8&a&&t.push("Uzaktan kumanda"),16&a&&t.push("Agent Komut Satırı"),32&a&&t.push("Sunucu Dosyaları"),64&a&&t.push("Cihazları Uyandır"),128&a&&t.push("Notları Düzenle"),256&a&&t.push("Yalnızca Uzaktan Görünüm"),512&a&&t.push("Terminal yok"),1024&a&&t.push("Dosya yok"),2048&a&&t.push("Intel&reg; AMT yok"),8&a&&4096&a&&!(256&a)&&t.push("Sınırlı Giriş"),8192&a&&t.push("Yalnızca Kendi Kendine Etkinlikler"),16384&a&&t.push("Sohbet ve Bildir"),32768&a&&t.push("Kaldır"),131072&a&&t.push("Komutlar"),262144&a&&t.push("Sıfırla / Kapat")),0==t.length&&t.push("Hak Yok");var i=1,o=e.split("/")[2];currentMesh.links[e].name&&(o=currentMesh.links[e].name);var l=addHtmlValue("Kullanıcı adı",EscapeHtml(o));o!=e.split("/")[2]&&(l+=addHtmlValue("Kullanıcı kimliği",EscapeHtml(e.split("/")[2]))),l+=addHtmlValue("İzinler",t.join(",")),userinfo._id!=e&&(4294967295==n||2&n&&4294967295!=a)&&(i+=4),setDialogMode(2,"Cihaz Grubu Kullanıcısı",i,p20viewuserEx,l,e)}}function p20viewuserEx(e,t){if(2==e){var n=t.split("/")[2];users&&users[t]&&(n=users[t].name),usergroups&&usergroups[t]&&(n=usergroups[t].name),userinfo._id==t&&(n=userinfo.name),setDialogMode(2,"Uzak Mesh Kullanıcısı",3,p20viewuserEx2,format("{0} kullanıcısının kaldırılmasını onaylıyor musunuz?",n),t)}}function p20deleteUser(e,t){haltEvent(e),p20viewuserEx(2,decodeURIComponent(t))}function p20viewuserEx2(e,t){meshserver.send({action:"removemeshuser",meshid:currentMesh._id,meshname:currentMesh.name,userid:t})}var notifications=[];function clickNotificationIcon(e){1==e?QV("notifiyBox",!0):0==e?QV("notifiyBox",!1):QV("notifiyBox","none"==QS("notifiyBox").display),drawNotifications()}function setNotificationCount(e){parseInt(Q("notificationCount").innerHTML)!=e&&(QH("notificationCount2",e),QV("notificationCount",e>0))}function drawNotifications(){var e=getstore("notifications",0),t="";if(0==notifications.length)t="<div style=margin:5px>Şu anda bildirim yok</div>";else for(var n in notifications){var a=notifications[n],i="",o=new Date(a.time),l=0;if(null!=a.title&&(i="<b>"+EscapeHtml(a.title)+"</b>: "),null!=a.nodeid){var s=getNodeFromId(a.nodeid);null!=s&&(l=s.icon,i=16&e?"<b>"+EscapeHtml(meshes[s.meshid].name)+" / "+EscapeHtml(s.name)+"</b>: ":"<b>"+EscapeHtml(s.name)+"</b>: ")}t+='<div title="'+format("{0} tarihinde gerçekleşti",printDateTime(o))+'" id="notifyx'+a.id+'" class=notification style="cursor:pointer;border-top:1px solid '+(""==t?"transparent":"orange")+'">',l&&(t+="<div class=j"+l+' onclick="notificationSelected('+a.id+')" style=margin:5px;float:left></div>'),t+='<div onclick="notificationDelete('+a.id+')" class=unselectable title="Bu bildirimi temizle" style=margin:5px;float:right;color:orange><b>X</b></div><div onclick="notificationSelected('+a.id+')" style=margin:5px>'+i+EscapeHtml(a.text)+"</div><div style=margin-left:5px;margin-bottom:5px;color:gray;font-size:10px>"+printDateTime(o)+"</div></div>"}var r="";notifications.length>1&&(r='<div id="notifyRemoveAll" onclick="deleteAllNotifications()" style="cursor:pointer;border-top:1px solid orange;margin:5px;color:orange;text-align:right;padding-right:3px">Hepsini temizle</div>'),QH("notifiyBox",'<div class=customScroll style="max-height:170px;overflow-y:auto;margin:5px">'+t+r+"</div>")}function notificationSelected(e,t){var n=-1;for(var a in notifications)notifications[a].id==e&&(n=a);-1!=n&&(notificationSelectedEx(notifications[n],e),t&&notifications[n]&&(notifications[n].notification&&(notifications[n].notification.close(),delete notifications[n].notification),notificationDelete(e)))}function notificationSelectedEx(e,t){null!=e.nodeid?"desktop"==e.tag?gotoDevice(e.nodeid,12):"terminal"==e.tag?gotoDevice(e.nodeid,11):"files"==e.tag?gotoDevice(e.nodeid,13):"intelamt"==e.tag?gotoDevice(e.nodeid,14):"console"==e.tag?gotoDevice(e.nodeid,15):gotoDevice(e.nodeid,10):"backupcodes"!=e.tag||xxdialogMode?null!=e.tag&&e.tag.startsWith("meshmessenger/")?(safeNewWindow("/messenger?id="+e.tag+"&title="+encodeURIComponentEx(e.username),e.tag.split("/")[2]),notificationDelete(t)):null!=e.url&&(safeNewWindow(e.url),notificationDelete(t)):(account_manageOtp(0),notificationDelete(t))}function notificationDelete(e){var t=-1,n=Q("notifyx"+e);if(null!=n){for(var a in notifications)notifications[a].id==e&&(t=a);if(-1!=t&&(meshserver.send({action:"intersession",subaction:"removeNotify",id:e}),notifications[t].notification&&(notifications[t].notification.close(),delete notifications[t].notification),notifications.splice(t,1),n.parentNode.removeChild(n),setNotificationCount(notifications.length),0==notifications.length&&QV("notifiyBox",!1),1==notifications.length&&QV("notifyRemoveAll",!1),notifications.length>0&&0==t)){var i=notifications[0];QS("notifyx"+i.id)["border-top"]="1px solid transparent"}}}function addNotification(e){if("number"==typeof e.titleid)try{e.title=[null,"Yeni hesap","Sunucu Sınırı","Güvenlik uyarısı","Hesap Ayarları","Cihaz Grubu","Davet Kodları"][e.titleid]}catch(e){}if("number"==typeof e.msgid)try{e.text=[null,"İzin reddedildi","Geçersiz kullanıcı adı","Geçersiz şifre","Geçersiz e-posta","Geçersiz alan","Geçersiz site izinleri","Kullanıcı zaten var","Bu modda kullanıcı eklenemiyor","Doğrulama istisnası","Hesap sınırına ulaşıldı.","Sohbet İsteği, Kabul etmek için buraya tıklayın.","Son girişten bu yana bu hesapta {0} başarısız giriş denemesi oldu.","E-posta adresi değiştirilemedi, başka bir hesap zaten kullanıyor: {0}.","E-posta gönderildi.","{0} kullanıcısı bulunamadı.","{0} kullanıcıları bulunamadı.","Hata, daha önce kullanılan parolaya geçilemiyor.","Hata, yaygın olarak kullanılan parolaya geçilemiyor.","Hata, şifre değiştirilmedi.","Şifre değişti.","Mevcut şifre doğru değil.",'Hata, davet kodu "{0}" zaten kullanılıyor.',"SMS ağ geçidi etkinleştirilmedi","Kullanıcı yönetimi hakları yok","Geçersiz SMS mesajı","Bu kullanıcı için telefon numarası yok","SMS başarıyla gönderildi.","SMS hatası","SMS hatası: {0}",'E-posta alan adı "{0}" izin verilmez. Yalnızca ({1}) izin verilir'][e.msgid],Array.isArray(e.args)&&(e.text=format(e.text,e.args[0],e.args[1],e.args[2],e.args[3],e.args[4],e.args[5]))}catch(e){}null==e.time&&(e.time=Date.now()),null==e.id&&(e.id=Math.random()),notifications.unshift(e),setNotificationCount(notifications.length),clickNotificationIcon(!0);var t=getstore("notifications",0);1&t&&Q("chimes").play();var n=null;if(Notification&&"granted"==Notification.permission){var a=e.text.split("&reg;").join("").split("<b>").join("").split("</b>").join("").split("<br />").join("\r\n");if(e.nodeid){var i=getNodeFromId(e.nodeid);i&&(n=16&t?new Notification(decodeURIComponent("{{{extitle}}}")+" - "+meshes[i.meshid].name+" - "+i.name,{tag:e.tag,body:a,icon:"/images/notify/icons128-"+i.icon+".png"}):new Notification(decodeURIComponent("{{{extitle}}}")+" - "+i.name,{tag:e.tag,body:a,icon:"/images/notify/icons128-"+i.icon+".png"}))}else{null==e.icon&&(e.icon=0);var o=e.title;o=null==o?"":" - "+e.title,n=new Notification(decodeURIComponent("{{{extitle}}}")+o,{tag:e.tag,body:a,icon:"/images/notify/icons128-"+e.icon+".png"})}n.id=e.id,n.xtag=e.tag,n.url=e.url,n.nodeid=e.nodeid,n.username=e.username,n.onclick=function(e){notificationSelected(e.target.id,!0)},e.notification=n}if("number"==typeof e.maxtime&&e.maxtime>0){var l=function e(){notificationDelete(e.xid)};l.xid=e.id,setTimeout(l,1e3*e.maxtime)}}function deleteAllNotifications(){notifications=[],setNotificationCount(0),drawNotifications(),QV("notifiyBox",!1)}var xxdialogMode,xxdialogFunc,xxdialogButtons,xxdialogTag,xxcurrentView=-1;function go(e){if(setSessionActivity(),!xxdialogMode&&xxcurrentView!=e){updateFooterMenu(),setDialogMode(0);for(var t=0;t<32;t++)QV("p"+t,t==e);xxcurrentView=e,updateCurrentUrl()}}function updateCurrentUrl(){if(!(268435456&features)&&xxcurrentView>0){var e="";for(var t in xxcurrentView>=10&&xxcurrentView<=19?null!=currentNode&&(e="?viewmode="+xxcurrentView+"&gotonode="+currentNode._id.split("/")[2]+(currentDevicePanel>0?"&panel="+currentDevicePanel:"")):xxcurrentView>=20&&xxcurrentView<=29?null!=currentMesh&&(e="?viewmode="+xxcurrentView+"&gotomesh="+currentMesh._id.split("/")[2]):xxcurrentView>1&&(e="?viewmode="+xxcurrentView),urlargs)e+=(""==e?"?":"&")+t+"="+urlargs[t];try{window.history.replaceState({},document.title,window.location.pathname+e)}catch(e){}}}function setDialogMode(e,t,n,a,i,o){setSessionActivity(),xxdialogMode=e,xxdialogFunc=a,xxdialogButtons=n,xxdialogTag=o,QE("idx_dlgOkButton",!0),QV("idx_dlgOkButton",1&n),QV("idx_dlgCancelButton",2&n),QV("id_dialogclose",2&n||8&n),QV("idx_dlgDeleteButton",4&n),QV("idx_dlgButtonBar",7&n),t&&QH("id_dialogtitle",t);for(var l=1;l<24;l++)QV("dialog"+l,l==e);QV("dialog",e),i&&(2==e?QH("id_dialogOptions",i):QH("id_dialogMessage",i))}function dialogclose(e){setSessionActivity();var t=xxdialogFunc,n=xxdialogButtons,a=xxdialogTag;setDialogMode(),(8&n||e)&&t&&t(e,a)}function removeUserRights(e,t){if(t!=userinfo._id||null==userinfo.removeRights)return e;var n=0,a=0;return 8&userinfo.removeRights&&(a+=8),65536&userinfo.removeRights&&(n+=65536),256&userinfo.removeRights&&(n+=256),512&userinfo.removeRights&&(n+=512),1024&userinfo.removeRights&&(n+=1024),16&userinfo.removeRights&&(a+=16),32768&userinfo.removeRights&&(a+=32768),131072&userinfo.removeRights&&(a+=131072),64&userinfo.removeRights&&(a+=64),262144&userinfo.removeRights&&(a+=262144),4294967295!=e?(e|=n,e&=4294967295-a):(e=2015471,e|=n,e&=4294967295-a),e}function GetMeshRights(e,t){if(null==e)return 0;if(null==t&&(t=userinfo._id),"string"==typeof e&&(e=meshes[e]),null==e||null==e.links)return 0;if(serverinfo.manageAllDeviceGroups&&t==userinfo._id)return removeUserRights(4294967295,t);var n=0,a=e.links[t];if(null!=a){if(4294967295==a.rights)return removeUserRights(4294967295,t);n=a.rights}var i=null;if(t==userinfo._id?i=userinfo:null!=users&&(i=users[t]),null!=i)for(var o in i.links)if(o.startsWith("ugrp/")&&null!=(a=e.links[o])){if(4294967295==a.rights)return removeUserRights(4294967295,t);n|=a.rights}return removeUserRights(n,t)}function IsMeshViewable(e,t){if(null==e)return!1;if(null==t&&(t=userinfo._id),"string"==typeof e&&(e=meshes[e]),null==e||null==e.links)return!1;if(null!=e.links[t])return!0;if(serverinfo.manageAllDeviceGroups&&t==userinfo._id)return!0;var n=null;if(t==userinfo._id?n=userinfo:null!=users&&(n=users[t]),null!=n)for(var a in n.links)if(a.startsWith("ugrp/")&&null!=e.links[a])return!0;return!1}function GetNodeRights(e,t){if(null==e)return 0;if(null==t&&(t=userinfo._id),"string"==typeof e&&null==(e=getNodeFromId(e)))return 0;var n=GetMeshRights(e.meshid,t);if(4294967295==n)return removeUserRights(n,t);if(null!=e.links&&null!=e.links[t]&&(n|=e.links[t].rights),null!=e.links&&null!=userinfo.links)for(var a in e.links)a.startsWith("ugrp/")&&null!=userinfo.links[a]&&null!=e.links[a].rights&&(n|=e.links[a].rights);return removeUserRights(n,t)}function IsNodeViewable(e,t){if(null==e)return!1;if(null==t&&(t=userinfo._id),"string"==typeof e&&null==(e=getNodeFromId(e)))return!1;if(IsMeshViewable(e.meshid,t))return!0;if(null!=e.links&&null!=e.links[t])return!0;if(null!=e.links&&null!=userinfo.links)for(var n in e.links)if(n.startsWith("ugrp/")&&null!=userinfo.links[n]&&null!=e.links[n].rights)return!0;return!1}function nameSort(e,t){var n=e.name.toLowerCase(),a=t.name.toLowerCase();return sortCollator.compare(n,a)}function getNodeAmtVersion(e){if(null==e||null==e.intelamt||"string"!=typeof e.intelamt.ver)return 0;var t=e.intelamt.ver.split(".");return t.length<2?0:parseInt(t[0])+parseInt(t[1])/100}function putstore(e,t){try{if("undefined"==typeof localStorage||localStorage.getItem(e)==t)return;null==t?localStorage.removeItem(e):localStorage.setItem(e,t)}catch(e){}if("_"!=e[0]){for(var n={},a=0,i=localStorage.length;a<i;++a){var o=localStorage.key(a);"_"!=o[0]&&(n[o]=localStorage.getItem(o))}meshserver.send({action:"userWebState",state:JSON.stringify(n)})}}function getstore(e,t){try{if("undefined"==typeof localStorage)return t;var n=localStorage.getItem(e);return null==n||null==n?t:n}catch(e){return t}}function center(){xtermfit&&xtermfit.fit(),onDevicesScroll(),QS("dialog").left=(getDocWidth()-300)/2+"px",deskAdjust(),null!=currentNode&&drawDeviceTimeline()}function messagebox(e,t){QH("id_dialogMessage",t),setDialogMode(1,e,1)}function statusbox(e,t){QH("id_dialogMessage",t),setDialogMode(1,e)}function getDocWidth(){return window.innerWidth?window.innerWidth:document.documentElement&&document.documentElement.clientWidth&&0!=document.documentElement.clientWidth?document.documentElement.clientWidth:document.getElementsByTagName("body")[0].clientWidth}function haltEvent(e){return e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation(),!1}function haltReturn(e){13==e.keyCode&&haltEvent(e)}function validateEmail(e){return/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e)}function reload(){window.location.href=window.location.href}function getNodeFromId(e){for(var t in nodes)if(nodes[t]._id==e)return nodes[t];return null}function addHtmlValue(e,t){return"<table><td style=width:120px>"+e+"<td><b>"+t+"</b></table>"}function addHtmlValue2(e,t){return"<div><div style=display:inline-block;float:right>"+t+"</div><div style=display:inline-block>"+e+"</div></div>"}function addHtmlValue4(e,t){return"<table style=width:100%><td style=width:120px>"+e+"<td style=text-align:right><b>"+t+"</b></table>"}function addLink(e,t){return"<a style=cursor:pointer;text-decoration:none onclick='"+t+"'>&diams; "+e+"</a>"}function addLinkConditional(e,t,n){return n?addLink(e,t):e}function addKeyLink(e,t){return"<span tabindex=0 style=cursor:pointer;text-decoration:none onclick="+t+" onkeypress=\"if (event.key=='Enter') { "+t+' } ">'+e+" <img class=hoverButton src=images/key16.png></span>"}function addKeyLinkConditional(e,t,n){return n?"<span title='"+t+"'>"+e+" <img class=hoverButton src=images/key16.png></span>":e}function passwordcheck(e){return/(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[!@#$%^&*()]).{8,}/.test(e)}function getFileSizeStr(e){return"number"!=typeof e&&(e=0),1==e?"1 bayt":format("{0} bytes",e)}function focusTextBox(e){setTimeout(function(){Q(e).selectionStart=Q(e).selectionEnd=65535,Q(e).focus()},0)}isFilenameValid=function(){var e=/^[^\\/:\*\?"<>\|]+$/,t=/^\./,n=/^(nul|prn|con|lpt[0-9]|com[0-9])(\.|$)/i;return function(a){return e.test(a)&&!t.test(a)&&!n.test(a)&&"."!=a[0]}}();function printDate(e){return e.toLocaleDateString(args.locale)}function printTime(e){return e.toLocaleTimeString(args.locale)}function printDateTime(e){return e.toLocaleString(args.locale)}function printTimer(e){return zeroPad(Math.floor(e/3600),2)+":"+zeroPad(Math.floor(e/60)%60,2)+":"+zeroPad(e%60,2)}function format(e){var t=Array.prototype.slice.call(arguments,1);return e.replace(/{(\d+)}/g,function(e,n){return void 0!==t[n]?t[n]:e})}function nobreak(e){return e.split(" ").join("&nbsp;")}function getUserName(e){var t=e.split("/"),n=t[0]+"/"+t[1]+"/"+t[2],a="";if(4==t.length&&t[3].startsWith("guest:")&&(a=" - "+decode_utf8(atob(t[3].substring(6)))),users&&null!=users[n])return null!=users[n].realname?users[n].realname+a:users[n].name+a;if(currentNode&&currentNode.links&&currentNode.links[e]&&null!=currentNode.links[e].name)return currentNode.links[e].name+a;if(e==userinfo._id)return userinfo.name+a;if(nodes)for(var i in nodes)if(nodes[i].links)for(var o in nodes[i].links)if(nodes[i].links[o].name&&o==e)return nodes[i].links[o].name+a;if(meshes)for(var i in meshes)if(meshes[i].links)for(var o in meshes[i].links)if(meshes[i].links[o].name&&o==e)return meshes[i].links[o].name+a;return t[2]+a}function addDetailItem(e,t,n){return"<table style=width:100%><td>"+nobreak(e)+"<td style=text-align:right>"+t+"</table>"}function isPrivateIP(e){return e.startsWith("10.")||e.startsWith("172.16.")||e.startsWith("192.168.")}function encodeURIComponentEx(e){return encodeURIComponent(e).replace(/'/g,"%27")}function safeNewWindow(e,t){var n=window.open(e,t,"noopener,noreferrer");n&&(n.opener=null)}function isWindowsNode(e){return 2==e.mtype&&null!=e.agent&&null!=e.agent.id&&[1,2,3,4,21,22,34,42,43].indexOf(e.agent.id)>=0}</script>