"+" |
"+" |
\n"+t+""||e.endsWith(t)){e=e.replace(t,"Cannot run interactive commands in this shell.\n")}return e},_=function(e){e.val("");e.focus()},d=function(e){var t=$("body").find(".-shell-port-"),a=e&&e.startsWith("!")?e.replace(/^!/,""):false,i=t.find("input"),n="data-shell-host",s=t.find(".-shell-port-pwd").attr("data-pwd"),o=t.find("["+n+"]"),l=o.attr(n);if($t_uri_cloudmin){var c=$('aside [name="sid"] option:selected');current_host_name=c.attr("title")||c.text();o.text(current_host_name)}else{o.text(l)}r(false);if(a){i.val(a);var _=$.Event("keydown");_.which=13;i.trigger(_)}t.css("bottom","0vh").addClass("opened");h();u();setTimeout(function(){if(!a){focus();i.focus()}},20)},f=function(){var e=$("body").find(".-shell-port-"),t="command-shell-editor-spinner";e.css("bottom","100vh").removeClass("opened");$("."+t).remove();h(true)},p=function(e){var t=$(".-shell-port-container .-shell-port-cmd"),a="invisible";if(e){t.addClass(a)}else{t.removeClass(a)}},u=function(){if(core.moduleAvailable("shell")==1&&session.server.data("terminal")==="0"){var e=parseInt($("body").find(".-shell-port-cmd").width()),t=parseInt($("body").find(".-shell-port-prompt").width());$("body").find('.-shell-port- input[data-command="true"]').css("width",e-t-50+"px")}},g=function(){var e=t();if(core.moduleAvailable("shell")==1||e||session.server.data("terminal")==1){return 1}else{return 0}},m=function(e){var t=$("body").find(".-shell-port-"),a=t.find(".-shell-port-pwd"),i=a.attr("data-home");if(typeof e==="string"){e=Convert.uriDecodeComponent(e);var n=e&&e.endsWith("/")?e.slice(0,-1):e,s=n.split("/").pop();if(!s){s="/";e="/"}if(get_access_level()==2){e=get_user_home()+e}if(e===i){s="~"}e=Convert.htmlEscape(e);a.attr("data-pwd",e).attr("title",e).text(s)}},h=function(n){var s=$(document.body).find(".-shell-port-"),g='[data-command="true"]',m=s.find("input"+g+""),h=s.find("div[data-output]"),b=s.find(".-shell-port-container"),y=s.data("autocomplete"),x=$(window),k=".plugin-shell";if(n){x.off("keydown"+k+"");x.off("keyup"+k+"");b.off("click"+k+"");return}x.on("keydown"+k+"",function(t){var a=this,i=e(),n=$(".modal-shell-config:visible").length,o=String.fromCharCode(t.which).toLowerCase();if(t[settings_hotkey_toggle_modifier]&&o==settings_hotkey_shell2&&theme_shortcuts_modifier_unique(t)){t.preventDefault();if(i){f()}return}if((t.altKey||t.ctrlKey)&&String.fromCharCode(t.which).toLowerCase()=="l"){t.preventDefault()}if(typeof a.shell_request_interrupted==="undefined"){a.shell_request_interrupted=0}if(typeof this.last_pressed_times==="undefined"){this.last_pressed_times=0}else{this.last_pressed_times+=1}setTimeout(function(){a.last_pressed_times=0},vars.event.double_click_delay);if(o==="c"&&a.last_pressed_times>1&&t.ctrlKey&&!t.shiftKey&&!t.altKey&&!t.metaKey){a.shell_request_interrupted=1;typeof a.shell_request==="object"&&a.shell_request.state()==="pending"&&a.shell_request.abort();setTimeout(function(){a.shell_request_interrupted=0},1e3);return}var r=platform.detect()==="mac",l=r?t.metaKey:t.ctrlKey,c=r?t.ctrlKey:t.metaKey;if(this.searching||o==="r"&&l&&!t.shiftKey&&!t.altKey&&!c){t.preventDefault();if(typeof a.shell_request==="object"&&a.shell_request.state()==="pending"){return}var _=$(".-shell-port-type"),d=$('.-shell-port- input[data-command="true"]'),p="reverse-i-search",g="data-searching";b.scrollTop(b[0].scrollHeight);this.searching=1;run_search=function(e){var t=JSON.parse(localStorage.getItem(v___server_hostname+"-"+"shell_commands")),a=t.filter(function(t){return t.includes(e)});return $.unique(a).reverse()},update_search=function(e,i){if(!this.used_index||i){this.used_index=0}if(t.ctrlKey){if(o==="c"){cancel_search(1);return}if(o!=="r"){return}}if(JSON.stringify(e)==JSON.stringify(this.results)&&!i){if(t.shiftKey){--this.used_index}else{++this.used_index}}else{this.results=e}if(e.length<=this.used_index){this.used_index=0}if(this.used_index<0){this.used_index=e.length-this.used_index-2}var n=this.searching_shell_str_replaced.find("span["+g+"]"),s=n.text();var r=localStorage.getItem(v___server_hostname+"-"+"shell_command_last");if(!a.pre_searched&&r){if(r==="undefined"){r=String()}a.pre_searched=r}if(!s&&a.pre_searched){n.text(a.pre_searched);var l=run_search(a.pre_searched);update_search(l,0);return}if(!s||!e.length){failed_search();return}else{success_search()}if(e){d.val(Convert.htmlUnEscape(e[this.used_index]))}u()},failed_search=function(){var e=a.searching_shell_str_replaced.html();if(!e.includes("failed reverse")){a.searching_shell_str_replaced.html(e.replace(p,"failed "+p+""))}u();var t=new Audio("data:audio/ogg; codecs=opus;base64,T2dnUwACAAAAAAAAAAArS957AAAAAAff6O0BHgF2b3JiaXMAAAAAAkSsAAAAAAAAAO4CAAAAAAC4AU9nZ1MAAAAAAAAAAAAAK0veewEAAABiry0KEC3//////////////////3EDdm9yYmlzHQAAAFhpcGguT3JnIGxpYlZvcmJpcyBJIDIwMDcwNjIyAAAAAAEFdm9yYmlzK0JDVgEACAAAADFMIMWA0JBVAAAQAABgJCkOk2ZJKaWUoSh5mJRISSmllMUwiZiUicUYY4wxxhhjjDHGGGOMIDRkFQAABACAKAmOo+ZJas45ZxgnjnKgOWlOOKcgB4pR4DkJwvUmY26mtKZrbs4pJQgNWQUAAAIAQEghhRRSSCGFFGKIIYYYYoghhxxyyCGnnHIKKqigggoyyCCDTDLppJNOOumoo4466ii00EILLbTSSkwx1VZjrr0GXXxzzjnnnHPOOeecc84JQkNWAQAgAAAEQgYZZBBCCCGFFFKIKaaYcgoyyIDQkFUAACAAgAAAAABHkRRJsRTLsRzN0SRP8ixREzXRM0VTVE1VVVVVdV1XdmXXdnXXdn1ZmIVbuH1ZuIVb2IVd94VhGIZhGIZhGIZh+H3f933f930gNGQVACABAKAjOZbjKaIiGqLiOaIDhIasAgBkAAAEACAJkiIpkqNJpmZqrmmbtmirtm3LsizLsgyEhqwCAAABAAQAAAAAAKBpmqZpmqZpmqZpmqZpmqZpmqZpmmZZlmVZlmVZlmVZlmVZlmVZlmVZlmVZlmVZlmVZlmVZlmVZlmVZQGjIKgBAAgBAx3Ecx3EkRVIkx3IsBwgNWQUAyAAACABAUiz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EoooZRQSimllJRSSimVUkopJZRSSgkppZRSSqmUUkoppZRSUkoppZRSKaWUUkoppaSUUkoppVJKKaWUEkpJKaWUUkqllFBKKaWUUlJKKaWUSgqllFJKKaUAAKADBwCAACMqLcROM648AkcUMkxAhYasBABSAQAAQiillFJKKTWMUUoppZRSihyklFJKKaWUUkoppZRSSimVUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKAcDdFw6APhM2rI5wUjQWWGjISgAgFQAAMIYxxphyzjmllHPOOQadlEgp5yB0TkopPYQQQgidhJR6ByGEEEIpKfUYQyghlJRS67GGTjoIpbTUaw8hhJRaaqn3HjKoKKWSUu89tVBSainG3ntLJbPSWmu9595LKinG2nrvObeSUkwtFgBgEuEAgLhgw+oIJ0VjgYWGrAIAYgAACEMMQkgppZRSSinGGGOMMcYYY4wxxhhjjDHGGGOMMQEAgAkOAAABVrArs7Rqo7ipk7zog8AndMRmZMilVMzkRNAjNdRiJdihFdzgBWChISsBADIAAMRRrDXGXitiGISSaiwNQYxBibllxijlJObWKaWUk1hTyJRSzFmKJXRMKUYpphJCxpSkGGOMKXTSWs49t1RKCwAAgCAAwECEzAQCBVBgIAMADhASpACAwgJDx3AREJBLyCgwKBwTzkmnDQBAECIzRCJiMUhMqAaKiukAYHGBIR8AMjQ20i4uoMsAF3Rx14EQghCEIBYHUEACDk644Yk3POEGJ+gUlToQAAAAAAAIAHgAAEg2gIhoZuY4Ojw+QEJERkhKTE5QUlQEAAAAAAAQAD4AAJIVICKamTmODo8PkBCREZISkxOUFJUAAEAAAQAAAAAQQAACAgIAAAAAAAEAAAACAk9nZ1MAAEAUAAAAAAAAK0veewIAAABnj+O9HJeVV1dTVZqZlJWTVZOLl//3WFxXYJeV//8Y/+Tc/UxIYKVFdYLOWPcLKpEsrrEHETnXiqysLLNdS6y95/ef+7Vi79Z9zVZ919e44pxH0T+fHGONcSbr+Qza425fEvs1zysff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//P+eIvXbQx7tjr+el59oLl11Wgw2g4nryAWpMvErF6MYxEgAAAEwJPe9Xlt/pk++eZK/lHE9KfcTQ6+D852DtPkt3soWb7tNULn++n+/rOr38+vT5burg9vnpWHko+qXJvaGl+9vP93o7FLq5ua6Rw/j9PtDT+7w/77Pvz31xvP6Sy5d3J5yrcSkf0LVnPSvpkkuZpHTZwWTtI/nhR95ZHU1YL+UqYkfz8Zvvz6VUl+ulY8GcfSaul+vlPLXrvHz7t2n66YGpX24Xx50YKRUtDrd/70H9f49u1ktNvfQ+0xlnlPu359vTPX0iAyC13P+/f2etbH3lS5uk/92ltLqWdVkj4/patxUt4/j4XOAfSxhbsS8e/b/jm/zha1MBM8nfAr8vym/++MeV5himtKKsn853EtfX16WAXl97b76q5Mgun32iLMqAaaQvvrIAnpHmkqVjWCz0tg7H1F9e7tzNNBkZ9u37PaZf7OVnnsmKI/AuP7odx7ulcTweA84yr8uzDz3LXO6dyTPnqS2yd0bu34a/ns5WAniVgWZ5zWXcp425/7a1pQIA3pSGHse7tGdraQCoPAFuBOXJC0/88nTUywU=");t.play()},success_search=function(){var e=a.searching_shell_str_replaced.html();a.searching_shell_str_replaced.html(e.replace("failed "+p+"",p));u()},cancel_search=function(e){_.html(a.searching_shell_str);a.searching_shell_str=0;a.searching_shell_str_replaced=0;a.searching=0;if(e){d.val(String())}u()};if(!this.searching_shell_str){this.searching_shell_str=_.html()}if(!this.searching_shell_str_replaced){this.searching_shell_str_replaced=_.html("("+p+")`': ");u()}else{var x=this.searching_shell_str_replaced.find("span["+g+"]"),k=x.text();if(t.key&&t.key.length===1){var w=t.ctrlKey||t.altKey||t.metaKey?String():t.key,A=k+w;A&&(a.pre_searched=A,localStorage.setItem(v___server_hostname+"-"+"shell_command_last",A));x.text(A);var C=run_search(x.text());update_search(C,w)}}if(t.keyCode===8){var S=this.searching_shell_str_replaced.find("span["+g+"]"),I=S.text(),T=I.slice(0,-1);I&&(a.pre_searched=T,localStorage.setItem(v___server_hostname+"-"+"shell_command_last",A));S.text(T);var V=run_search(S.text());update_search(V,1);return}if(t.keyCode===9||t.keyCode===13||t.keyCode===27||t.keyCode===37||t.keyCode===38||t.keyCode===39||t.keyCode===40){cancel_search()}return}if(i&&t.keyCode===27&&!n){f();return}if(i&&t.keyCode===38){t.preventDefault()}if(i&&t.keyCode===9&&m.is(":focus")){t.preventDefault();if(!y){return}var E=":"+":"+":"+":",j=m.val().trim().split(/\s+(?!-)/),O=j.length,M=j[0]&&j[0].indexOf("-")===-1?0:1,z=j[1]&&j[1].indexOf(":")===-1?0:1,q=m.val().endsWith(" "),U=$.trim(j[0])==="service",Z=$.trim(j[0])==="systemctl",J=$.trim(j[0])&&$.trim(j[0]).startsWith("chown"),K=j.length===1&&m.val().length&&!M&&!q?"commands":U||Z?"services":J?"permissions":"lists";if(!$.trim(m.val()).length){return}var W=m.val(),R=s.find(".-shell-port-pwd"),D=R.attr("data-pwd");if(K==="services"){K=U?"service":"systemctl";if(K==="systemctl"&&j.length!==3){return}W=K=="service"?$.trim(j[1]):$.trim(j[2]);if($.trim(j[0])==="service"&&(j.length===2&&q||j.length===3)){if(j.length===3){W=E+$.trim(j[1])+E+$.trim(j[2])}else{W=E+$.trim(j[1])}}}if(J){if(O===1&&!q){m.val($.trim(j[0])+" ");return}if(!z||!$.trim(j[1])){K="users";W=$.trim(j[1])}else if(!q&&!j[2]){K="groups";W=$.trim($.trim(j[1]).split(":")[1])}else{K="lists";W=D+"/"+E+$.trim(j[2])}}if(K==="lists"&&!J){W=D+"/"+E+$.trim(j[1])+E+$.trim(j[0])+E+$.trim(j[2])}$.ajax({type:"POST",url:v___location_prefix+"/xhr.cgi?xhr-get_autocompletes=1&xhr-get_autocomplete_type="+K+"&xhr-get_autocomplete_string="+W+"",data:false,dataType:"json",success:function(e){var t=e.length;if(t===1){if(K==="service"||K==="systemctl"||K==="lists"){var a=$.trim(j[0]),i=$.trim(j[0])+" "+$.trim(j[1]);if(K==="lists"){if(a==="cd"&&e[0].endsWith("/")||a!=="cd"){if(a==="cd"||a==="cat"){m.val(a+" "+e[0])}else{if($.trim(j[2])){m.val(i+" "+e[0]+"")}else{m.val(a+" "+e[0]+"")}}}}else{if(a==="service"&&(j.length===2||j.length===3)){if(j.length===2){m.val(a+" "+e[0]+" ")}else if(j.length===3){m.val($.trim(j[0])+" "+$.trim(j[1])+" "+e[0])}}else if(a==="systemctl"&&j.length===3){m.val(a+" "+$.trim(j[1])+" "+e[0])}}}else{if(J){if(!z){m.val($.trim(j[0])+" "+e[0]+":")}else if(!q&&!j[2]){m.val($.trim(j[0])+" "+$.trim($.trim(j[1]).split(":")[0])+":"+e[0]+" ")}else{m.val($.trim(j[0])+" "+$.trim(j[1])+" "+e[0]+"")}}else{m.val(e[0]+" ")}}}else if(t>1){var n=""+v()+" "+Convert.htmlEscape(m.val())+""+"\n";h.find("pre").append(n);h.find("pre").append(Convert.htmlEscape(e.join("\n")+"\n"));b.scrollTop(b[0].scrollHeight)}setTimeout(function(){m.focus().mousedown()},10)},error:function(e){session.status(e.responseText)}})}}).on("keyup"+k+"",function(n){var g=this,b=e(),y=$(".modal-shell-config:visible").length;if(b&&!y){var x=0,k=0,w=0,A=$(".form-control.sidebar-search"),C=t(),S=$('select[name="sid"]').val(),I=0;var T=a();if(!T){return}if(b||A.is(":focus")){if(n.keyCode===8){vars.shell.history=0}}if(b){x=$.trim(m.val());k=1;w=1}else{x=A.val();k=typeof A.val()!="undefined";w=0}if((w||k&&(!x.trim()||x.trim().startsWith("!")))&&(n.keyCode==38||n.keyCode==40)){n.preventDefault();n.stopPropagation();typeof localStorage.getItem(v___server_hostname+"-"+"shell_commands")=="undefined"?localStorage.setItem(v___server_hostname+"-"+"shell_commands",JSON.stringify({})):false;var V=JSON.parse(localStorage.getItem(v___server_hostname+"-"+"shell_commands")),E=V?V.length:0;if(vars.shell.history===0&&!x&&n.keyCode==40){return}else if(vars.shell.history===0&&x&&n.keyCode==38){I=1;return}else{vars.shell.history=n.keyCode==40?++vars.shell.history:--vars.shell.history}if(vars.shell.history<0&&n.keyCode===38){vars.shell.history=E-1}else if(vars.shell.history>E){vars.shell.history=0}if(V&&V[vars.shell.history%E]){if(!$.isEmptyObject(V)&&(vars.shell.history==E&&n.keyCode===38||vars.shell.history==E&&n.keyCode===40||I)){if(b){m.val("").focus()}else{A.val("").focus()}vars.shell.history=0;return}if(b){var j=V[vars.shell.history%E].replace(/^!/,"");m.val(Convert.htmlUnEscape(j)).focus()}}return}else if(k&&x.trim().startsWith("!")&&n.keyCode==27){n.preventDefault();n.stopPropagation();A.val("").focus();return}if(k&&x.trim().startsWith("!")&&n.keyCode==13){A.addClass("_shell_form_");n.preventDefault();n.stopPropagation();if(core.moduleAvailable("shell")==1||C){m.val(x.trim().substring(1)).focus();d();var O=$.Event("keyup");O.keyCode=13;m.trigger(O)}}var M=s.find(".-shell-port-container"),z=s.find(".-shell-port-pwd"),q=z.attr("data-pwd"),U=$.trim(m.val()),Z=0,J=n.keyCode?n.keyCode:n.which,K=(n.altKey||n.ctrlKey)&&String.fromCharCode(n.which).toLowerCase()=="l";if(!m.is(":focus")&&!check_selected_text()){if(!n.ctrlKey&&!n.altKey&&!n.shiftKey&&!n.metaKey){m.val(m.val()+String.fromCharCode(n.which).toLowerCase())}m.focus()}if(U&&J===13||K){if(M.find("[data-searching]").length){return}if(core.moduleAvailable("shell")||C){if(vars.shell.processing===1){return}vars.shell.processing=1;if(U==="clear"||U==="reset"||U==="exit"||K){h.find("pre").html("");_(m);if(U=="exit"){f()}}if(U==="cd ~"){Z=U;U="cd "+z.attr("data-home")}var W=false;if(U==="cd /"){W="/"}if(U==="history -c"){localStorage.setItem(v___server_hostname+"-"+"shell_commands",JSON.stringify({}));var R=""+v()+" "+Convert.htmlEscape(U)+""+"\n";h.find("pre").append(R);_(m);M.scrollTop(M[0].scrollHeight);var D=o(T,C,null,q),P=new FormData($(D)[0]);$.ajax({type:"POST",url:T+"?fetch-content=1",data:P,dataType:"text",cache:false,contentType:false,processData:false,success:function(e){if(!session.status(e)){return}r(U);vars.shell.processing=0},error:function(e){}});return}else if($.trim(U).startsWith("history -d")){var N=U.split(" "),Q=N[2];if(Q&&Q.length&&Test.numeric(Q)){$.ajax({type:"POST",url:v___location_prefix+"/xhr.cgi?xhr-shell-pop="+Q+"&xhr-shell-cms="+C+"&xhr-shell-cmsid="+S,data:false,dataType:"text",cache:false,contentType:false,processData:false,success:function(e){if(e=="1"){var t=JSON.parse(localStorage.getItem(v___server_hostname+"-"+"shell_commands"));localStorage.setItem(v___server_hostname+"-"+"shell_commands",JSON.stringify(t.filter(function(e,t){return t!==parseInt(Q)-1})))}r(U)},error:function(e){}})}_(m);vars.shell.processing=0;return}else if(U.startsWith("history")){_(m);var L=JSON.parse(localStorage.getItem(v___server_hostname+"-"+"shell_commands")),G=L?L.length:0,X=G?G.toString().length:0,R=""+v()+" "+Convert.htmlEscape(U)+""+"\n";$.each($(L),function(e,t){var a=e.toString().length,n="";for(i=0;i
","",1);if(a){a=a.replace(/<(b)[^>]*>[^<]*(<\/b>)/i,"");a=c(a);fe=a;$(_e).next("pre").replaceWith(a)}M.scrollTop(M[0].scrollHeight)}},false);return e},type:"POST",url:T+"?fetch-content=1",data:re,dataType:"text",cache:false,contentType:false,processData:false,complete:function(e){$(de).removeClass("progressing");var t=e.status;e=e.responseText;if(!session.status(e)){return}var a=$.trim(U)==="reboot",i=$.trim(U)==="shutdown -h now";if(pe||t!==200||get_access_level()!==3&&(a||i)){var n=theme_language("shell_aborted");if(a){n="The system is rebooting.."}else if(i){n="The system has been powered off!"}var s=t!==200?extract_content(fe,"
","",0)+(g.shell_request_interrupted?"\n^C":String()):n;if(fe===false){s="Cannot establish connection to the host."}h.find("pre").append(""+v()+" "+Convert.htmlEscape(m.val())+" \n"+s+"\n");r(U);l(_e,m,M);return}var o=v(),_=$(e).find("pre").length?$(e).find("pre"):$(e).filter("pre"),d=_.html().replace(/>>/g,">"+o+""),f=$(e).find('input[name="previous"][type="hidden"]').map(function(){return Convert.htmlEscape($(this).val())}).get();localStorage.setItem(v___server_hostname+"-"+"shell_commands",JSON.stringify(f));var p=$(e).find('input[name="pwd"]').val();newPwd=p||q;d=c(d);if(!p){d+="\n"}h.find("pre").append(Z?d.replace(new RegExp(U,"g"),Z):d);z.text(W?W:newPwd==z.attr("data-home")?"~":newPwd.split("/").filter(function(e){return $.trim(e)}).slice(-1)[0]).attr("data-pwd",Convert.htmlEscape(W?W:newPwd)).attr("title",Convert.htmlEscape(W?W:newPwd));if(U==="cd .."&&newPwd==="/"){z.text("/")}l(_e,m,M)},error:function(e){}})}}}})},v=function(){return Convert.htmlEscape($(".-shell-port-type").text())};return{type:t,init:h,status:e,link:n,unlock:s,open:d,close:f,toggle:p,done:l,available:g,adjust:u,set:m}}();plugins.favicon=function(){var e=function(e){a.badge(e);titlenotifier.set(e);a.lastNum=e};var t=0;if(typeof a==="object"&&a.lastNum){t=a.lastNum}var a=new Favico({animation:"none"});e(t);return{set:e}}();plugins.slider=function(){var test_visibility=function(){if(settings_side_slider_fixed!==true||$(".mobile-menu-toggler:visible").length&&!vars.navigation.pinned||!$.support.spa||settings_side_slider_fixed===true&&window.matchMedia("(max-width: 1365px)").matches){set_visibility(0)}else{set_visibility(1)}},set_visibility=function(e,t){if(vars.slider.pinned===1&&!e&&$(".right-side-tabs i.fa2-collapse-right:visible").length){return}var a=session.server.data("access-level"),i="right-side-tabs",n="body ."+i+"",s=""+i+"-fixed",o="data-slider-fixed";if(a!="0"){return}if(e){$(n+"-toggler").addClass("hidden");$(n).css("right","0px").addClass(s);if(settings_side_slider_enabled){session.server.data(o,"1")}}else{if(settings_side_slider_enabled){if(!t){$(n+"-toggler").removeClass("hidden opened").css("right","0")}else{$(n+"-toggler").removeClass("hidden").addClass("opened").css("right","300px")}}if(!t){$(n).css("right","-302px")}else{$(n).css("right","0px")}$(n).removeClass(s);session.server.data(o,"0")}},display_badges=function(){if(!settings_side_slider_enabled||!settings_side_slider_notifications_enabled){return}var e="right-side-tabs",t="right-side-tab-notification-asterix",a="faa-ring faa-slow animated-hover",i="toggler button",n="i.fa-bell",s="span.badge",o="hidden hidden-force",r=$("."+e+" .list-group-item:not(.no-notifications, .opacity-0_3)").length;plugins.favicon.set(r);if(r>0){$("."+e+"-"+i+" "+s+"").removeClass(o).text(r);$("#"+e+" ."+t+"").removeClass(o).text(r)}else{$("."+e+"-"+i+" "+s+"").addClass(o).text(0);$("#"+e+" ."+t+"").addClass(o).text(0)}},check_notifications=function(){var $current_localData_notifications={};$.each(localStorage,function(e,t){if(typeof e=="string"&&e.indexOf("notifications_")>-1&&e.indexOf(v___server_hostname)>-1){var a=e.split("_")[1],i=JSON.parse(t),n=i.title,s=i.time,o=i.timestamp,r=i.message,l=i.readStatus,c=i.type,_=i.link;var d=s+"_"+n;if(c==="csf_deny"){d=s+"_"+n.replace(/\W/g,"")+r.replace(/\W/g,"")}$current_localData_notifications[d]=JSON.stringify({id:a,title:n,time:s,timestamp:o,message:r,readStatus:l,type:c,link:_});if($('.list-group-item[id="'+a+'"][data-type="'+c+'"]').length){$('.list-group-item[id="'+a+'"][data-type="'+c+'"] .list-group-item-heading small').text(dayjs.unix(s).fromNow())}}});var package_message_num=Object.values($current_localData_notifications).filter(function(e){return e.indexOf("package_message")>-1}).length,csf_remote_version_num=Object.values($current_localData_notifications).filter(function(e){return e.indexOf("csf_remote_version")>-1}).length,authentic_remote_version_num=Object.values($current_localData_notifications).filter(function(e){return e.indexOf("authentic_remote_version")>-1}).length,csf_title_num=Object.values($current_localData_notifications).filter(function(e){return e.indexOf("csf_title")>-1}).length;var keys=[];for(var key in $current_localData_notifications){if($current_localData_notifications.hasOwnProperty(key)){keys.push(key)}}$.each(keys.sort(),function(i,v){var vx=$current_localData_notifications[v],vxData=Test.json(vx);if(!vxData){return true}var $__id__=vxData.id,$__data__title=vxData.title,$__data__time=vxData.time,$__data__timestamp=vxData.timestamp,$__data__message=vxData.message,$__data__readStatus=vxData.readStatus,$__data__type=vxData.type,$__data__link=vxData.link;if($__data__type=="package_message"||$__data__type=="csf_remote_version"||$__data__type=="authentic_remote_version"||$__data__type=="csf_title"){var $__num=eval($__data__type+"_num");if(i+1<$__num){$__data__readStatus=1}}if(!$('.list-group-item[id="'+$__id__+'"][data-type="'+$__data__type+'"]').length){add_notification($__id__,$__data__title,$__data__time,$__data__timestamp,$__data__message,$__data__readStatus,$__data__type,$__data__link)}})},remove_all_notifications=function(){$.each(localStorage,function(e,t){if(typeof e=="string"&&e.indexOf("notifications_")>-1&&e.indexOf(v___server_hostname)>-1){delete localStorage[e]}})},mark_notification_read=function(e,t,a,i){var n=JSON.parse(localStorage.getItem(v___server_hostname+"-"+"notifications_"+e+"_"+t));if(n){localStorage.setItem(v___server_hostname+"-"+"notifications_"+e+"_"+t,JSON.stringify({title:n.title,time:n.time,timestamp:n.timestamp,message:n.message,readStatus:a,type:n.type,link:n.link}))}i&&display_badges()},mark_group_notifications_read=function(e){var t="";if(e){t='[data-type="'+e+'"]'}$(".right-side-tabs .list-group-item"+t+":not(.no-notifications)").each(function(){$(this).addClass("opacity-0_3");mark_notification_read($(this).attr("id"),$(this).data("type"),1,0)}).promise().done(function(){display_badges()})},add_notification=function(e,t,a,i,n,s,o,r){var l=r&&(r.includes("http://")||r.includes("https://")||r.includes("ftp://")||r.includes("ftps://"))?' data-target="external"':"",c=l?"data-href":"href";$(".right-side-tabs .list-group").prepend('
[\n]+<\/p>/gi,"
");e=e.replace(/
[\n]+
/gi,"
");e=e.replace(/�/gi,"");var t=$(e).filter(".ui_subheading").first().text(),i=$.parseHTML(e),a="";i=i.filter(function(e){if(e.nodeName&&e.nodeName.toLowerCase()!=="meta"&&e.nodeName.toLowerCase()!=="link"&&e.nodeName.toLowerCase()!=="title"&&e.nodeName.toLowerCase()!=="hr"&&e.nodeName.toLowerCase()!=="style"&&(e.nodeName.toLowerCase()!=="h3"&&e.className!=="ui_subheading")){e.outerHTML?a+=e.outerHTML:a+=$.trim(e.textContent)?""+$.trim(e.textContent)+"":$.trim(e.textContent);return e}});if(platform.detect()==="mac"){a=a.replaceAll("Ctrl +","⌘ +");a=a.replaceAll("Alt +","⌥ +")}return[t,i,a]};var a=t.attr("href").indexOf("showpass.cgi")>-1?v___location_directory_trail_slashed+t.attr("href"):t.attr("href");$.ajax({type:"POST",url:a,data:false,dataType:"text",success:function(e){if(!session.status(e)){return}var n=i(e),r=n[0],o=n[1],s=n[2];if(!o){return}var l=t.attr("href").indexOf("/file-manager")>-1,_='',c=t.attr("href").indexOf("showpass.cgi")>-1,d=t.attr("href").indexOf("/locale")>-1||l;if(c){_=""}r=_+""+r+"";t.data("title",r);t.data("content",s);var f=String(),p=t.hasClass("btn-link");if(s&&(s.length>1024||s.includes("
")||s.includes("
"+theme_language("virtual_server_scripts_desc")+"
")}if(v___location_path==v___location_prefix+"/virtual-server/edit_newscripts.cgi"){table_data_init($("#att_summary > table.table.table-striped.table-condensed"))}if(v___location_path==v___location_prefix+"/server-manager/index.cgi"||v___location_path==v___location_prefix+"/virtualmin-htpasswd/index.cgi"){table_data_init($("body form > table.table.table-striped.table-condensed"))}if($('body[class*="status"]').length&&!v___location_file&&!$('body[class*="smart-status"]').length||v___location_path==v___location_prefix+"/servers/"||v___location_path==v___location_prefix+"/servers/index.cgi"||v___location_path==v___location_prefix+"/webminlog/search.cgi"){table_data_init($("table.table-striped.table-condensed"))}if(core.curModule("smart-status")){$('select[name="drive"]').addClass("heighter-34");$('select[name="drive"] + .ui_form_end_submit').addClass("heighter-34")}if($('body[class*="ldap-useradmin"]').length){table_data_init($("form > table.table.table-striped.table-condensed"))}if(v___location_path==v___location_prefix+"/virtual-server/list_sched.cgi"){table_data_init($(".table.table-striped.table-hover.table-condensed"),false,false,{orderable:false,targets:[0,-1]})}if(v___location_path==v___location_prefix+"/virtual-server/edit_script.cgi"){const e=".container-fluid .opener_container",t=".container-fluid .table-responsive + .opener_table_style";$(e+" .table-hover").each(function(){try{table_data_init($(this))}catch(e){}});$(t+".table-hover").removeClass("table-hover").addClass("no-hover");const i=e+' form[action^="workbench.cgi"]',a='form[action="unscript_install.cgi"]';$(i+" .ui_form_end_submit").removeClass("btn-info").addClass("btn-default heighter-28").find("i").remove();$(i+" > select option:first-child").attr("disabled","disabled");$(a+' > [name="kit_form_login"]').on("click",function(){setTimeout(()=>{despinnerfy_button($(this))},vars.event.double_click_delay)});const n=$(i+' [name^="kit_form_login_"]');n.removeClass("btn-default").addClass("btn-link text-decoration-none cursor-alias pull-right pd-0 pd-rt-1").append(' ');n.on("click",function(){setTimeout(()=>{despinnerfy_button($(this))},vars.event.double_click_delay)})}if(v___location_path==v___location_prefix+"/servers/"||v___location_path==v___location_prefix+"/servers/index.cgi"){$(".ui_checked_columns td table tr td").find('a.ui_link[href*="edit_serv.cgi"]').addClass("margined-left-4 label label-sm label-primary hidden").html('');$(".ui_checked_columns").hover(function(){$(this).find("td table tr a.ui_link.label.hidden").removeClass("hidden")},function(){$(this).find("td table tr a.ui_link.label").addClass("hidden")})}$.each($('table.table.table-striped.table-condensed.dataTable.no-footer > thead > tr[role="row"]:first-child'),function(e,t){$(this).attr("style","border-top: 4px solid #f2f2f2 !important")});$.each($('button[onclick^="ifield"].btn.btn-default.ui_button'),function(){$(this).addClass("file_chooser_button_emulate")});$.each($(".file_chooser_button_emulate"),function(){if(!$(this).find(".fa-files-o").length){$(this).append('')}if(Math.round(parseFloat($(this).prev("input").css("height")))===28){$(this).addClass("heighter-28")}});$.each($("label > img"),function(e,t){$(this).attr("style","vertical-align: baseline !important")});$.each($('select[multiple][name="weekdays"]'),function(){$(this).parents('td[valign="top"], td[data-td-e]').attr("style","vertical-align: top !important");$(this).parents('table[width="100%"]').parents(".ui_radio_table.table-hardcoded").css("width","100%")});$.each($("label").find("br"),function(){$(this).parent("label").prev(".aradio, .acheckbox").attr("style","margin-left: 0 !important;");$(this).parent("label").next(".aradio, .acheckbox").attr("style","margin-left: 0 !important;")});$.each($(".table-responsive + .table-responsive + .table-hardcoded td"),function(){if($(this).find(".heighter-34").length){$.each($(".table-responsive + .table-responsive + .table-hardcoded td"),function(){$(this).find(".btn").addClass("heighter-34")})}});if(v___location_path==v___location_prefix+"/cpan/edit_mod.cgi"){$('.container-fluid form[action="download.cgi"]').next().next().next().find(".submitter.ui_submit").addClass("heighter-34")}if(core.curModuleFile("virtual-server","edit_script.cgi")){$('.container-fluid .ui_form button[name="stop"], .container-fluid .ui_form button[name="start"], .container-fluid .ui_form button[name="restart"]').addClass("heighter-34-force margined-right--4");$('.container-fluid .ui_form button[name="upgrade"]').addClass("margined-right--5")}if(v___location_path==v___location_prefix+"/cpan/"||v___location_path==v___location_prefix+"/cpan/index.cgi"){var cpan_button=$('input[name="cpan"]').next("button");if(cpan_button.length){cpan_button.html('').attr("style","width: 40px; height: 28px; vertical-align:middle !important; margin-top:2px; margin-bottom:2px;");cpan_button.attr("onclick",cpan_button.attr("onclick").replace("document.forms[0]","document.forms[1]"))}}if($("form").find(".icons-row:not(.inline-row)").length){$("form").find(".icons-row").addClass("_processed_"+(settings_right_table_links_type=="1"?" small":"")+"").css("border-top","1px solid #efefef").css("border-bottom","1px solid #efefef").find(".icons-container").addClass("icons-container-stretched")}if($(".ui_subheading + .ui_links_row ~ .icons-row:not(.inline-row)").length){$(".ui_subheading + .ui_links_row ~ .icons-row:not(.inline-row)").addClass("_processed_"+(settings_right_table_links_type=="1"?" small":"")+"").css("border-top","1px solid #efefef").css("border-bottom","1px solid #efefef").find(".icons-container").addClass("icons-container-stretched")}function __m_ico_row_tb(){$("body").find(".icons-row:not(._processed_):not(.inline-row)").css({"padding-top":"8px","padding-bottom":"8px"});$("body").find(".icons-row:not(._processed_):not(.inline-row)").css("border-top","1px solid #efefef").css("border-bottom","1px solid #efefef")}function __m_ico_row_t(){$("body").find(".icons-row:not(._processed_):not(.inline-row)").css({"padding-top":"18px"});$("body").find(".icons-row:not(._processed_):not(.inline-row)").css("border-top","1px solid #efefef")}if(v___location_path==v___location_prefix+"/lvm/"||v___location_path==v___location_prefix+"/lvm/index.cgi"||v___location_path==v___location_prefix+"/proftpd/virt_index.cgi"||v___location_path==v___location_prefix+"/dhcpd/"||v___location_path==v___location_prefix+"/dhcpd/index.cgi"||v___location_path==v___location_prefix+"/cluster-usermin/"||v___location_path==v___location_prefix+"/cluster-usermin/index.cgi"||v___location_path==v___location_prefix+"/bind8/"||v___location_path==v___location_prefix+"/bind8/index.cgi"||v___location_path==v___location_prefix+"/grub/"||v___location_path==v___location_prefix+"/grub/index.cgi"||v___location_path==v___location_prefix+"/cluster-software/"||v___location_path==v___location_prefix+"/cluster-software/index.cgi"||v___location_path==v___location_prefix+"/cluster-useradmin/edit_user.cgi"||v___location_path==v___location_prefix+"/cluster-useradmin/edit_group.cgi"||v___location_path==v___location_prefix+"/cluster-webmin/edit_mod.cgi"||v___location_path==v___location_prefix+"/cluster-usermin/edit_mod.cgi"||v___location_path==v___location_prefix+"/cluster-software/edit_pack.cgi"||v___location_path==v___location_prefix+"/cluster-useradmin/"||v___location_path==v___location_prefix+"/cluster-useradmin/index.cgi"||v___location_path==v___location_prefix+"/cluster-usermin/"||v___location_path==v___location_prefix+"/cluster-usermin/index.cgi"||v___location_path==v___location_prefix+"/cluster-webmin/"||v___location_path==v___location_prefix+"/cluster-webmin/index.cgi"){__m_ico_row_tb()}if(v___location_path==v___location_prefix+"/proftpd/"||v___location_path==v___location_prefix+"/proftpd/index.cgi"||v___location_path==v___location_prefix+"/mysql/"||v___location_path==v___location_prefix+"/mysql/index.cgi"||v___location_path==v___location_prefix+"/postgresql/"||v___location_path==v___location_prefix+"/postgresql/index.cgi"||v___location_path==v___location_prefix+"/bacula-backup/"||v___location_path==v___location_prefix+"/bacula-backup/index.cgi"){__m_ico_row_t()}$.each($(".row.icons-row.inline-row"),function(){$(this).find("a.icon_link").contents().filter(function(){return this.nodeType==3}).remove()});$.each($(".row.icons-row:not(.inline-row) .icons-container"),function(){$(this).removeAttr("data-title").removeAttr("data-toggle").removeAttr("data-placement").removeAttr("data-container")});if($("body").find(".icons-row > div.icons-container").length||$("body").find(".icons-row > div.small-icons-container").length){$.each($(".icons-row .hidden-forged-6"),function(){if($(this).find("input").is(":checked")){$(this).parents('div[class*="icons-container"]').addClass("highlighted")}});$.each($(".hidden-forged-7 > a"),function(){$(this).removeClass();if($(this).parents(".hidden-forged-7").hasClass("hidden-forged-7-small")){$(this).html(' ');$(this).parent().parent().prepend('')}else{$(this).html(' ');$(this).parent().parent().prepend('')}})}if(v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"virtualmin-registrar/"){$.each($("td > input "),function(){if($(this).parents("table.table-hardcoded").find('form[action="edit.cgi"]').length){$(this).css("margin-left","5px");$(this).parent("td").prev("td").find("select").css("margin-left","5px")}})}if(v___location_path==v___location_prefix+"/virtual-server/list_scripts.cgi"||v___location_path==v___location_prefix+"/virtual-server/edit_newscripts.cgi"){$('form[action="disable_scripts.cgi"] thead + thead tr th, form[action="disable_scripts.cgi"] tbody + thead tr th, form[action="script_form.cgi"] thead + thead tr th, form[action="script_form.cgi"] tbody + thead tr th').attr("colspan","5")}$.each($(".file_chooser_button_attached"),function(e,t){if($(this).prev('input[onclick*=".cgi"]')){$(this).prev('input[onclick*=".cgi"]').css("width","40px")}});if($t_uri_cloudmin&&(v___location_path==v___location_prefix+"/server-manager/add_form.cgi"||v___location_path==v___location_prefix+"/server-manager/scan_form.cgi")){$.each($("label"),function(){$(this).find("br").remove()})}if((v___location_path==v___location_prefix+"/mysql/view_table.cgi"||v___location_path==v___location_prefix+"/postgresql/view_table.cgi")&&$("td[data-td-e] > table.table-hardcoded")){var $tables=$(".container-fluid form .table.table-striped.table-hover.table-condensed");$tables.addClass("table-resizable").resizeableTableColumns(uri_parse_param("table",vars.source_request)||uri_parse_param("table",vars.source_request)||uri_parse_param("table",v___location_file+"?"+$(vars.previous_request.target).serialize()));if($tables.find(".ui_checked_checkbox").length){$tables.find("thead tr th:first-child").addClass("nonresizable")}var $___colspan=$(".container-fluid td[data-td-e] > table.table-hardcoded").parents("table").find("thead").find("tr").find("th").length;$(".container-fluid td[data-td-e] > table.table-hardcoded").parent("td[data-td-e]").attr("colspan",$___colspan).attr("style","padding: 1px !important;")}if(v___location_path==v___location_prefix+"/virtual-server/backup_form.cgi"&&v___location_href&&v___location_href.indexOf("?sched=")>-1){setTimeout(function(){var e=$("a[href=\"javascript:hidden_opener('hiddendiv_adddest', 'hiddenopener_adddest')\"]");e.next().attr("style","").addClass("btn btn-tiny btn-default margined-bottom-10");e.one("click",function(t){e.next("br").replaceWith('"+e+"",5,"success","textarea_to_clipboard")}});if(core.curModuleFile("mailbox","list_addresses.cgi")){$('.container-fluid textarea[name="members"] ~ .btn.btn-success.ui_form_end_submit').removeClass("btn-success").addClass("btn-default btn-block margined-top--5 btn--save-grp").find(".fa").remove()}if(core.curModule("custom")){var custom_file_edit_mode=core.curModuleFile("custom","view.cgi");if(!pjax_popstate){var custom_cmd_main_container_main=".ui_grid_row > .ui_grid_cell > .ui_form > .table-responsive > .table-subtable > tbody > tr > td > .sub_table_container",custom_cmd_main_container=""+custom_cmd_main_container_main+" > tbody";$(""+custom_cmd_main_container+' > tr:nth-child(1) > td[colspan="2"]').each(function(){if(!$(this).find(".ui_form_end_submit").length){$(this).addClass("no-contents padded-a-3").parent("tr").addClass("no-contents")}});var $has_icon=$(".sub_table_container td:last-child.col_value.col_header > .ui_form_end_submit");if(!$has_icon.find("i.fa").length&&!$has_icon.parents(".ui_grid_cell").length){$has_icon.addClass("heighter-28")}var custom_sub_table=".custom table.ui_grid_table .ui_grid_row .sub_table_container";var $col_head=$(""+custom_sub_table+" tr");$.each($col_head,function(){if(!$(this).find(".ui_form_end_submit").length){$(this).find(".col_header.col_value").removeClass()}});$.each($(custom_sub_table),function(){var e=$(this).find("tr"),t=e.find("input:not(:hidden):not(.hidden), textarea, select").length;if(t>=1){$(this).addClass("dense");e.find("td.col_label").addClass("w-auto");e.find('td.col_value:not([colspan="2"])').find("button.ui_form_end_submit").addClass("btn-tiny").parent("td").prev("td.col_label").addClass("vertical-align-middle");e.addClass("no-contents")}});if(v___location_file==="form.cgi"){$(".sub_table_container").find(".ui_form_end_submit").addClass("heighter-28").prepend(' ').parent("td").prev("td.col_label").addClass("vertical-align-middle")}if(custom_file_edit_mode){var detach_button_html=''+''+"";$("#headln2l .btn-group").append(detach_button_html)}}if(custom_file_edit_mode){$("#headln2l .btn-group [data-external-detach-custom-file]").on("click",function(e){e.preventDefault();var t=$("#headln2c").find("[data-main_title] + [data-sub_title] > tt").text();t&&edit_file_from_full_path(t)})}}if(!pjax_popstate){$(".chooser_button").each(function(){var e=$(this).prev("input[name], textarea");if(!e.length){e=$(this).prev("span").find(".ui_opt_textbox");if(e.length){e=e.unwrap()}}else{if(!e.attr("class")&&Math.round(e.outerHeight(true))>=32){e.css({marginTop:1,marginBottom:1})}}$(this).add(e).wrapAll('')})}var vs_str_="virtual-server",sm_str_="server-manager",vm_nginx_="virtualmin-nginx";if(core.curModuleFile(vs_str_,"edit_newchroot.cgi")||core.curModuleFile(vs_str_,"edit_newglobal.cgi")||core.curModuleFile(vs_str_,"edit_newlinks.cgi")||core.curModuleFile(vs_str_,"edit_newshells.cgi")||core.curModuleFile(vs_str_,"view_backuplog.cgi")||core.curModuleFile(vm_nginx_,"edit_logs.cgi")||core.curModuleFile(vm_nginx_,"edit_srewrite.cgi")||core.curModuleFile(vm_nginx_,"edit_saccess.cgi")||core.curModuleFile(vm_nginx_,"edit_sproxy.cgi")||core.curModuleFile(vm_nginx_,"edit_fcgi.cgi")||core.curModuleFile(vs_str_,"edit_phpver.cgi")||core.curModuleFile(vs_str_,"edit_spf.cgi")||core.curModuleFile(vs_str_,"ratelimit.cgi")||core.curModuleFile(vs_str_,"edit_newfields.cgi")||core.curModuleFile(sm_str_,"edit_docker.cgi")||core.curModuleFile(sm_str_,"edit_vserver.cgi")||core.curModuleFile(sm_str_,"edit_zone.cgi")||core.curModuleFile(sm_str_,"edit_openvz.cgi")||core.curModuleFile(sm_str_,"list_locations.cgi")||core.curModuleFile(sm_str_,"edit_lxc.cgi")||core.curModuleFile(sm_str_,"list_ips.cgi")||core.curModuleFile("acl","edit_unix.cgi")||core.curModuleFile("squid","edit_cachemgr.cgi")||core.curModuleFile("spam","edit_white.cgi")||core.curModuleFile("fsdump","edit_dump.cgi")||core.curModuleFile("mysql","backup_form.cgi")||core.curModuleFile("mysql","table_form.cgi")||core.curModuleFile("postgresql","backup_form.cgi")||core.curModuleFile("webmin","edit_bind.cgi")||core.curModuleFile("usermin","edit_bind.cgi")||core.curModuleFile("procmail","edit_recipe.cgi")||core.curModuleFile("usermin","edit_logout.cgi")||core.curModuleFile("net","list_routes.cgi")||core.curModuleFile("cron","edit_cron.cgi")||core.curModuleFile("cluster-copy","edit.cgi")||core.curModuleFile("cluster-cron","edit.cgi")||core.curModuleFile("webalizer","edit_log.cgi")||core.curModuleFile("apache","edit_global.cgi")||core.curModuleFile("logrotate","edit_sched.cgi")||core.curModuleFile("fetchmail","edit_cron.cgi")||core.curModuleFile(vs_str_,"edit_bucket.cgi")||core.curModuleFile("sshd","edit_net.cgi")||core.curModuleFile("fail2ban","edit_jail.cgi")||core.curModuleFile("webmin","edit_advanced.cgi")||core.curModuleFile("webmin","edit_web.cgi")||core.curModuleFile("usermin","edit_web.cgi")||core.curModuleFile("webmin","edit_os.cgi")||core.curModuleFile("usermin","edit_os.cgi")||core.curModuleFile("webmin","edit_descs.cgi")||core.curModuleFile("usermin","edit_descs.cgi")||core.curModuleFile("virtualmin-init","edit_tmpl.cgi")||core.curModuleFile("ssh","edit_host.cgi")||core.curModuleFile("syslog","edit_log.cgi")||core.curModuleFile("mysql","newdb_form.cgi")||core.curModuleFile("ldap-server","acl_form.cgi")||core.curModuleFile("ldap-client","edit_server.cgi")||core.curModuleFile("squid","edit_ports.cgi")||core.curModuleFile("squid","edit_logs.cgi")||core.curModuleFile("squid","edit_cache.cgi")||core.curModuleFile("virtualmin-nginx","edit_server.cgi")||core.curModuleFile("spam","edit_simple.cgi")||core.curModuleFile("spam","edit_report.cgi")||core.curModuleFile("spam","edit_header.cgi")||core.curModule("virtual-server")&&v___location_file=="edit_resel.cgi"||core.curModule("virtual-server")&&v___location_file=="edit_tmpl.cgi"||core.curModuleFile("cpan","download.cgi")||core.curModuleFile("virtual-server","edit_phpmode.cgi")||core.curModuleFile("net","edit_bifc.cgi")||core.curModuleFile("net","edit_aifc.cgi")||check_location_resource("/config.cgi?phpini")||check_location_resource("/config.cgi?module=phpini",1)||$('body[class*="bind8"]').length&&v___location_file||$('body[class*="status"]').length&&v___location_file=="edit_mon.cgi"||$('body[class*="custom"]').length&&v___location_file=="edit_sql.cgi"||$('body[class*="custom"]').length&&v___location_file=="edit_cmd.cgi"||$('body[class*="custom"]').length&&v___location_file=="edit_file.cgi"){$(".table:not(.opener_table_style):not(.dataTable)").removeClass("table-hover").addClass("no-hover");if(core.curModule("virtual-server")&&v___location_file=="edit_tmpl.cgi"){$(".table:not(.opener_table_style):not(.dataTable) > tbody > tr > td > table > tbody > tr > td > table").addClass("w-100p-f")}}theme_ui_opt_select(3);if(core.curModuleFile("apache","edit_mods.cgi")){var mpm_targets='.iawobject[value^="mpm_"]';$(mpm_targets).on("click",function(){$(mpm_targets+":checked").not(this).trigger("click")})}snippets.page.render_table_labels($(".container-fluid > .panel > .panel-body"));$(".ui_grid_cell:first-child > .btn-group.ui_links_row").parent().addClass("ui_grid_cell_auto");$(".ui_radio_table > tbody > tr > td > textarea").each(function(){$(this).parent("td").prev("td").addClass("vertical-align-middle")});if(core.curModuleFile("acl","edit_user.cgi")){$('.container-fluid form[action="save_user.cgi"] input[name="twofactor"]').prev().removeClass().addClass("btn btn-xxs btn-success margined-left-5 pd-bt-2").attr("type","submit")}if(!pjax_popstate&&v___location_path===v___location_prefix+"/virtual-server/edit_tmpl.cgi"){embed_table_header_icon();var server_template_filter_dropdown_spinner=theme_spinner_small(false,!v___theme_night_mode?"dark smaller2":" "),server_template_filter_dropdown_tooltip_text=theme_language("tooltip_virtualmin_templates_filter_generating"),server_template_filter_dropdown_tooltip_data_toggle_str='data-toggle="tooltip"',server_template_filter_dropdown_html=""+"
'+Convert.htmlEscape(t)+"
"),10,"success","newGeneratedPassword")})()}).on("click",".messenger-message .messenger-message-inner tt",function(){if(check_selected_text()){return}theme_copy_to_clipboard($(this).text());plugins.messenger.post(''+theme_language("filemanager_copying_successful"),2,"success","newClipboardCopied")}).on("keydown",'form[action*="save_log.cgi"] input[name="filter"], form[action*="save_log.cgi"] input[name="lines"], form[action*="view_log.cgi"] input[name="filter"], form[action*="view_log.cgi"] input[name="lines"]',function(e){if(e.keyCode==13){e.preventDefault();var t=$("button.ui_submit.ui_form_end_submit");t.first().trigger("click");t.addClass("disabled")}}).on("click",'button, input[type="submit"], a',function(e){v___page_activeElement=this}).on("click","._c__op_d",function(e){if($(e.target).is(this)){var t=$(this).find(".opener_trigger").first()[0];t&&t.click()}}).on("click",'form[action*="save_user.cgi"] button[name="but_switch"], a[href*="virtual-server/switch_user.cgi"]',function(){v___theme_reload=1}).on("click",'[href*="javascript:history"]',function(e){if(v___theme_content_history){e.preventDefault();e.stopPropagation();v___theme_content_history=0;plugins.pjax.page.link.get(v___location_directory)}}).on("click dblclick",".ui_multi_select_row select[multiple] option",function(e){if(!settings_multiselect_on_click&&e.type!=="dblclick"){return}if(settings_multiselect_on_click&&e.type==="dblclick"){return}this.selected=true;var t=$(this).parent("select"),n=t.parent("td"),a=n.parent("tr"),i=n.index(),s="onclick",r="["+s+'*="multi_select_move"]';if(!e.ctrlKey&&!e.metaKey&&!e.shiftKey&&!e.altKey&&(i===0||i===2)){a.find("td:eq(1)").find(""+r+"["+s+'*="'+(i?0:1)+'"]').trigger("click")}}).on("click",'.container-fluid a[href], .container-fluid button, .container-fluid input[type="button"], .right-side-tabs a[href], .right-side-tabs button, .right-side-tabs input[type="button"], .right-side-tabs .info-container .graph-container-fw, .right-side-tabs-dismiss i, .favorites-menu li a',function(){v___blocked_navigation=0;plugins.navigation.detectAllowed=true}).on("click","#content #system-status .panel-heading ._support_ticket_cnt",function(){var e=plugins.dashboard.system_info("markdown","allow-private-data"),t=function(e){var t="\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\x3c!---\n",n=session.server.data("hostname"),a=n?""+n+" system information":"System information";t+="BELOW TEXT CONTAINS YOUR SYSTEM INFORMATION AND SHOULD BE LEFT INTACT\n";t+="--\x3e\n";t+="\n"+theme_language("browser_warning")+"
";theme_alert(theme_language("global_warning"),e,false,"md","danger",false,"10 modal-ie-warning",0)},2e3);if(!String.prototype.endsWith){String.prototype.endsWith=function(e,t){var i=this.toString();if(typeof t!=="number"||!isFinite(t)||Math.floor(t)!==t||t>i.length){t=i.length}t-=e.length;var n=i.lastIndexOf(e,t);return n!==-1&&n===t}}if(!String.prototype.startsWith){if(!String.prototype.startsWith){String.prototype.startsWith=function(e,t){t=t||0;return this.indexOf(e,t)===t}}}}})();function addmodule(e){adduser(e);return false}function addgroup(e){adduser(e);return false}function adduser(e){$v__mpp__g_olt=0;$('.mppopup input[data-role="tagsinput"]').tagsinput("add",e);setTimeout(function(){if(!v__mpp__ml_t__e){$(".mppopup_filter_input").val("");$(".mppopup_filter_input").focus().trigger("keyup")}v__mpp__ml_t__e=0},440);return false}function addinterface(e){adduser(e);return false}function parentdir(e){if(e&&e.length>1&&e.endsWith("/")){e=e.replace(/\/$/,"")}fileclick(e,"1");$v__mpp__g_gp=1}function fileclick(e,t){$v__mpp__g_ol=e;$v__mpp__g_olt=t}function select(e,t){$data_mppopup_value.val(e);return false}function filter_match(e,t,i){t="";i=i||false;var n=function(e){e=e||false;var n=$(".mppopup table tbody tr");if(n.length>0){for(var a=0;a"+theme_language("connection_success_details")+"
");if(vars.pjax.post_reboot){plugins.pjax.page.link.get(v___location_prefix+"/"+vars.pages.dashboard+"",["success",connection_modal_close]);vars.pjax.post_reboot=false;vars.previous_request=String()}else{setTimeout(function(){connection_modal_close()},300)}},error:function(){v___theme_connection_reestablish&&setTimeout(function(){connection_reestablish()},1e3)}})}function control_server_theme_temp_data(e,t,i,n,a,s){return $.ajax({type:"POST",url:v___location_prefix+"/xhr.cgi?xhr-theme_temp_data=1&xhr-theme_temp_data_action="+e+"&xhr-theme_temp_data_name="+t+"&xhr-theme_temp_data_value="+(i?Convert.uriEncodeComponent(i):i)+"&xhr-theme_temp_data_keep="+n+"",data:false,dataType:"text",success:function(e){if(!session.status(e)){return}if(typeof a==="function"&&(!e.length||e.length&&s===1)){a()}},error:function(e){}})}function get_server_theme_temp_data(e,t,i,n){return control_server_theme_temp_data("get",e,false,t,i,n)}function set_server_theme_temp_data(e,t,i,n,a){control_server_theme_temp_data("set",e,t,i,n,a)}function page_control_header(){var e=".header",t="#headln2l",i="#headln2c",n=$(""+e+" "+t+""),a=$(""+e+" "+i+"");if(matchMedia("(max-width: 767px)").matches){if(n.next().is(i)){var s=a.detach();n.before(s)}}else{if(a.next().is(t)){var s=a.detach();n.after(s)}}}function page_display(){var e=$("body"),t=$("body").find(".container-fluid"),i=$("head");t.css({opacity:1,"pointer-events":"auto"});e.css("overflow","auto");i.find("#__tmp_no_overflow").remove()}function page_remove_progress(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:0;despinnerfy_buttons(e);setTimeout(function(){get_server_theme_temp_data("redirected",0)},100);setTimeout(function(){progress.end()},600)}function page_adjust(e,t){if(typeof $.injectCSS=="function"){$("style[data-persist]").remove();t?t="translate("+t+"px, 0px) !important":t=false;$.injectCSS({"#sidebar":{left:-e+"px",width:e+"px",transform:t},".switch-toggle":{width:e+"px"},".__page":{"margin-left":e+"px !important"},".autocomplete-suggestions":{"min-width":e-23+"px !important"},".__logo":{width:e+"px","max-width":e+"px"},"#jsPanel-replacement-container":{left:($.support.spa?settings_leftmenu_width-1:-2)+"px"}});if($("aside select").length&&core.curModuleFile("webmin","edit_themes.cgi")&&!$.browser.mobile){$("aside select[data-autocomplete-title]").attr("style","width:"+(e-24)+"px; margin-top: 0 !important");plugins.navigation.select.load()}}}function theme_modal_dismiss(){$(".modal.in").find("[data-dismiss]").trigger("click")}function theme_shortcut_check(e){if(!e.endsWith("/")){e+="/"}if(!e.startsWith("/")){e="/"+e}if(core.moduleAvailable(URI(e).directory().replace(/\//g,""))){return true}else{return false}}function theme_shortcuts_generate(e){var t,i=theme_shortcuts_modifier_name();if(e==="conf"){var n=settings_hotkey_open_module_config_privileged,a=n==="dot"?".":n==="comma"?",":n;t="("+i+" + "+a.toString().toUpperCase()+")"}else{t="("+i+" + "+e.toString().toUpperCase()+")"}return t}function theme_shortcuts_modifier_name(e){var t,i=e||settings_hotkey_toggle_modifier,n=platform.detect()==="mac";if(n){if(i==="ctrlKey"){t="⌃"}else if(i==="altKey"){t="⌥"}else if(i==="shiftKey"){t="⇧"}else if(i==="metaKey"){t="⌘"}}else{if(i==="ctrlKey"){t="Ctrl"}else if(i==="altKey"){t="Alt"}else if(i==="shiftKey"){t="⇧"}else if(i==="metaKey"){t="Meta"}}return t}function theme_shortcuts_modifier_unique(e){var t=["ctrlKey","altKey","shiftKey","metaKey"],i=t.indexOf(settings_hotkey_toggle_modifier),n=false;t.splice(i,1);t.map(function(t){if(e[t]&&!n){n=true}});return!n}function theme_modifiers_replace_for_mac(e,t,i){if(e&&platform.detect()==="mac"){if(t&&i){e=e.replaceAll(t,i)}e=e.replaceAll("Ctrl","⌃");e=e.replaceAll("Alt","⌥");e=e.replaceAll("Meta","⌘");e=e.replaceAll(" + "," ")}return e}function theme_shortcuts(e){var t=e.keyCode?e.keyCode:e.which,i=String.fromCharCode(e.which).toLowerCase(),n=String.fromCharCode(e.which);if(!settings_hotkeys_active){return}if(e.ctrlKey&&e.altKey&&i===settings_hotkey_duplicate_window_privileged){set_server_theme_temp_data("goto",link_type_convert(v___location_href,1),0,function(){theme_open_new_tab(v___location_href)},1)}if(Test.editing()||$(".modal-backdrop.in").length||$(".__page").hasClass("single-page")){return}if(e.altKey){if(e.which===37||e.which===39){let t="ui_link_pagination",i="disabled",n=$("."+t+"_left:not(."+i+"):visible"),a=$("."+t+"_right:not(."+i+"):visible");if(e.which===37&&n.length){n.click()}else if(e.which===39&&a.length){a.click()}}}if(e.which===settings_hotkey_theme_help_keycode){theme.help.show();e.preventDefault();return}if(vars.page_interaction===0){if(t===8&&e.shiftKey){window.history.forward();return}else if(t===8){window.history.back();return}}if(settings_hotkeys_active){const t=theme_shortcuts_modifier_unique(e),r='aside input[name="search"]',o=$(r+":visible").length&&isElemInView($(r)[0]);if(e.ctrlKey&&e.altKey&&e.metaKey&&e.shiftKey&&n=="R"){!theme.veiled(-1)&&theme_cache_clear(false,1)}if(get_access_level()===0&&session.server.data("upgrade")==1&&e.ctrlKey&&e.altKey&&e.shiftKey&&e.metaKey&&n=="U"){!theme.veiled(-1)&&theme.update(0)}if(i==settings_hotkey_open_module_config_privileged||settings_hotkey_open_module_config_privileged==="dot"&&e.which===190||settings_hotkey_open_module_config_privileged==="comma"&&e.which===188){e.preventDefault();if(vars.events.keypressed.shift){$('aside .user-links a[href*="config.cgi"]').trigger("click")}else{$('.container-fluid > .panel > .panel-heading a[href*="config.cgi"]').trigger("click")}}if(!t){return true}if(!session.alive){e.preventDefault();return}if(e[settings_hotkey_toggle_modifier]){if((e.which===37||e.which===39)&&v___location_file&&(v___location_file.toString().includes("config.cgi")||v___location_file.toString().includes("edit_tmpl.cgi"))){var a=$('.container-fluid .ui_form[action*="config.cgi"], .container-fluid .ui_form[action*="edit_tmpl.cgi"]'),s=function(e){return'button[name="'+e+'"]:not(.disabled)'};a.find(e.which===37?s("nprev"):s("nnext")).trigger("click")}if(n=="1"&&settings_hotkey_custom_1_user){e.preventDefault();theme_shortcut_check(settings_hotkey_custom_1_user)&&plugins.pjax.page.link.get(v___location_prefix+settings_hotkey_custom_1_user)}if(n=="2"&&settings_hotkey_custom_2_user){e.preventDefault();theme_shortcut_check(settings_hotkey_custom_2_user)&&plugins.pjax.page.link.get(v___location_prefix+settings_hotkey_custom_2_user)}if(n=="3"&&settings_hotkey_custom_3_user){e.preventDefault();theme_shortcut_check(settings_hotkey_custom_3_user)&&plugins.pjax.page.link.get(v___location_prefix+settings_hotkey_custom_3_user)}if(n=="4"&&settings_hotkey_custom_4_user){e.preventDefault();theme_shortcut_check(settings_hotkey_custom_4_user)&&plugins.pjax.page.link.get(v___location_prefix+settings_hotkey_custom_4_user)}if(n=="5"&&settings_hotkey_custom_5_user){e.preventDefault();theme_shortcut_check(settings_hotkey_custom_5_user)&&plugins.pjax.page.link.get(v___location_prefix+settings_hotkey_custom_5_user)}if(n=="6"&&settings_hotkey_custom_6_user){e.preventDefault();theme_shortcut_check(settings_hotkey_custom_6_user)&&plugins.pjax.page.link.get(v___location_prefix+settings_hotkey_custom_6_user)}if(n=="7"&&settings_hotkey_custom_7_user){e.preventDefault();theme_shortcut_check(settings_hotkey_custom_7_user)&&plugins.pjax.page.link.get(v___location_prefix+settings_hotkey_custom_7_user)}if(n=="8"&&settings_hotkey_custom_8_user){e.preventDefault();theme_shortcut_check(settings_hotkey_custom_8_user)&&plugins.pjax.page.link.get(v___location_prefix+settings_hotkey_custom_8_user)}if(n=="9"&&settings_hotkey_custom_9_user){e.preventDefault();theme_shortcut_check(settings_hotkey_custom_9_user)&&plugins.pjax.page.link.get(v___location_prefix+settings_hotkey_custom_9_user)}if(i==settings_hotkey_focus_search){e.preventDefault();o&&$(r).focus()}if(i==settings_hotkey_toggle_key_webmin){e.preventDefault();$('.switch-toggle input[id="open_webmin"]').trigger("click")}if(i==settings_hotkey_toggle_key_virtualmin){e.preventDefault();$('.switch-toggle input[id="open_virtualmin"]').trigger("click")}if(i==settings_hotkey_toggle_key_cloudmin){e.preventDefault();$('.switch-toggle input[id="open_cloudmin"]').trigger("click")}if(i==settings_hotkey_toggle_key_usermin){e.preventDefault();$('.switch-toggle input[id="open_usermin"]').trigger("click")}if(i==settings_hotkey_toggle_key_webmail){e.preventDefault();$('.switch-toggle input[id="open_webmail"]').trigger("click")}if(i==settings_hotkey_toggle_key_night_mode){e.preventDefault();theme_toggle_night_mode()}if(i==settings_hotkey_navigation&&window.matchMedia("(min-width: 1080px)").matches){e.preventDefault();$('aside [data-collapse-trigger="1"]').addClass("m").trigger("click")}else if(i==settings_hotkey_navigation){$(".mobile-menu-toggler:visible").trigger("click")}if(i==settings_hotkey_slider&&window.matchMedia("(min-width: 1366px)").matches){e.preventDefault();$('[data-trigger="side_slider_pinned"]').trigger("click")}else if(i==settings_hotkey_slider){$(".right-side-tabs-toggler:visible").trigger("click")}if(i==settings_hotkey_toggle_slider){e.preventDefault();$(".right-side-tabs-toggler:not(.hidden) .btn-menu-toggler").trigger("click")}if(i==settings_hotkey_reload){e.preventDefault();page_refresh()}const t=settings_hotkey_logout_dbl==="["?"BracketLeft":settings_hotkey_logout_dbl==="]"?"BracketRight":settings_hotkey_logout_dbl===";"?"Semicolon":settings_hotkey_logout_dbl==="'"?"Quote":settings_hotkey_logout_dbl==="/"?"Slash":settings_hotkey_logout_dbl;if(i==t||e.code===t){e.preventDefault();vars.events.delayedFn=setTimeout(function(){vars.events.delayed=0},vars.event.double_click_delay);if(vars.events.delayed++){$("aside .user-link.__logout-link").click();vars.events.delayed=0;clearTimeout(vars.events.delayedFn)}}if((i==settings_hotkey_shell||i==settings_hotkey_shell2)&&theme_shortcuts_modifier_unique(e)&&plugins.shell.available()){e.preventDefault();if(session.server.data("terminal")==1){if(plugins.shell.status()){plugins.terminal.close()}else{plugins.terminal.open()}}else{if(plugins.shell.status()){plugins.shell.close()}else{plugins.shell.open()}}return}if(i==settings_hotkey_sysinfo){e.preventDefault();if(plugins.navigation.switch.dashboard.get()==true){plugins.navigation.switch.dashboard.set()}else{plugins.pjax.page.link.get(v___location_prefix+"/"+vars.pages.dashboard+"")}}if(i==settings_hotkey_favorites){e.preventDefault();if($(".favorites-menu-outer").css("left")!="0px"){$(".user-link.favorites").trigger("click")}else{$(".favorites-menu-outer").removeClass("hover")}}}else{if(e.keyCode===191){e.preventDefault();o&&$(r).focus()}}return false}}function sysinfo_replace_dismiss_buttons(){var e=$('#system-status [onclick*="webmin/hide.cgi?id"], #right-side-tabs [onclick*="webmin/hide.cgi?id"], [data-referrer^="announce"] [onclick*="webmin/hide.cgi?id"]');$.each(e,function(){var e=$(this).attr("onclick"),t=$(this).text();if($(this).is("input")){t=$(this).val()}$(this).before(' '+t+"");$(this).remove()});var t=$('#system-status [onclick*="window.open"][onclick*="_new"], #right-side-tabs [onclick*="window.open"][onclick*="_new"], [data-referrer^="announce"] [onclick*="window.open"][onclick*="_new"]');$.each(t,function(){var e=$(this).attr("onclick"),t=$(this).text();if($(this).is("input")){t=$(this).val()}var i="btn-primary",n=e.split('"')[1],a="fa fa-fw fa-external-link";if(n.includes("pa"+"t"+"r"+"eo"+"n")){a="fa2 fa-fw fa2-kiss-wink-heart-bold";i="btn-success"}$(this).before(' '+t+"");$(this).remove()})}function get_access_level(){if(vars.level!=""&&vars.level!==-1){return parseInt(vars.level)}else{return parseInt(session.server.data("level"))}}function theme_updating(){return theme_message_exists("themeUpgrade")}function theme_message_exists(e){return plugins.messenger.toast.get(e)}function theme_message_dismiss(e){return plugins.messenger.toast.hide(e)}function theme_message_and_unlock(e,t){var i=arguments.length>2&&arguments[2]!==undefined?arguments[2]:1;var n=arguments.length>3&&arguments[3]!==undefined?arguments[3]:String();var a=arguments.length>4&&arguments[4]!==undefined?arguments[4]:"info";var s=arguments.length>5&&arguments[5]!==undefined?arguments[5]:3;var r=arguments.length>6&&arguments[6]!==undefined?arguments[6]:0;plugins.messenger.post(''+theme_language(""+t)+" ",s,a,n,r);setTimeout(function(){page_remove_progress(i)},600)}function theme_alert(e,t,i,n,a,s,r,o){typeof i==="undefined"||i==false?i=false:false;typeof n==="undefined"||n==false?n="md":false;typeof a==="undefined"||a==false?a="danger":false;typeof s==="undefined"||s==false?s="exclamation-triangle":false;typeof r==="undefined"||r==false?r="7":false;typeof o==="undefined"||o==false?o=false:false;var l=$.isArray(i)?i:[false,false],_="modal-global-notification",c=""+'[\n]+<\/p>/gi,"
");e=e.replace(/
[\n]+
/gi,"
");e=e.replace(/�/gi,"");var t=$(e).filter(".ui_subheading").first().text(),i=$.parseHTML(e),a="";i=i.filter(function(e){if(e.nodeName&&e.nodeName.toLowerCase()!=="meta"&&e.nodeName.toLowerCase()!=="link"&&e.nodeName.toLowerCase()!=="title"&&e.nodeName.toLowerCase()!=="hr"&&e.nodeName.toLowerCase()!=="style"&&(e.nodeName.toLowerCase()!=="h3"&&e.className!=="ui_subheading")){e.outerHTML?a+=e.outerHTML:a+=$.trim(e.textContent)?""+$.trim(e.textContent)+"":$.trim(e.textContent);return e}});if(platform.detect()==="mac"){a=a.replaceAll("Ctrl +","⌘ +");a=a.replaceAll("Alt +","⌥ +")}return[t,i,a]};var a=t.attr("href").indexOf("showpass.cgi")>-1?v___location_directory_trail_slashed+t.attr("href"):t.attr("href");$.ajax({type:"POST",url:a,data:false,dataType:"text",success:function(e){if(!session.status(e)){return}var n=i(e),r=n[0],o=n[1],s=n[2];if(!o){return}var l=t.attr("href").indexOf("/file-manager")>-1,_='',c=t.attr("href").indexOf("showpass.cgi")>-1,d=t.attr("href").indexOf("/locale")>-1||l;if(c){_=""}r=_+""+r+"";t.data("title",r);t.data("content",s);var f=String(),p=t.hasClass("btn-link");if(s&&(s.length>1024||s.includes("
")||s.includes("
"+theme_language("virtual_server_scripts_desc")+"
")}if(v___location_path==v___location_prefix+"/virtual-server/edit_newscripts.cgi"){table_data_init($("#att_summary > table.table.table-striped.table-condensed"))}if(v___location_path==v___location_prefix+"/server-manager/index.cgi"||v___location_path==v___location_prefix+"/virtualmin-htpasswd/index.cgi"){table_data_init($("body form > table.table.table-striped.table-condensed"))}if($('body[class*="status"]').length&&!v___location_file&&!$('body[class*="smart-status"]').length||v___location_path==v___location_prefix+"/servers/"||v___location_path==v___location_prefix+"/servers/index.cgi"||v___location_path==v___location_prefix+"/webminlog/search.cgi"){table_data_init($("table.table-striped.table-condensed"))}if(core.curModule("smart-status")){$('select[name="drive"]').addClass("heighter-34");$('select[name="drive"] + .ui_form_end_submit').addClass("heighter-34")}if($('body[class*="ldap-useradmin"]').length){table_data_init($("form > table.table.table-striped.table-condensed"))}if(v___location_path==v___location_prefix+"/virtual-server/list_sched.cgi"){table_data_init($(".table.table-striped.table-hover.table-condensed"),false,false,{orderable:false,targets:[0,-1]})}if(v___location_path==v___location_prefix+"/virtual-server/edit_script.cgi"){const e=".container-fluid .opener_container",t=".container-fluid .table-responsive + .opener_table_style";$(e+" .table-hover").each(function(){try{table_data_init($(this))}catch(e){}});$(t+".table-hover").removeClass("table-hover").addClass("no-hover");const i=e+' form[action^="workbench.cgi"]',a='form[action="unscript_install.cgi"]';$(i+" .ui_form_end_submit").removeClass("btn-info").addClass("btn-default heighter-28").find("i").remove();$(i+' [name^="kit_setup_"]').addClass("btn btn-default btn-tiny bg-transparent").removeClass("heighter-28");$(i+" > select option:first-child").attr("disabled","disabled");$(a+' > [name="kit_form_login"]').on("click",function(){setTimeout(()=>{despinnerfy_button($(this))},vars.event.double_click_delay)});const n=$(i+' [name^="kit_form_login_"]');n.removeClass("btn-default").addClass("btn-link text-decoration-none cursor-alias pull-right pd-0 pd-rt-1").append(' ');n.on("click",function(){setTimeout(()=>{despinnerfy_button($(this))},vars.event.double_click_delay)})}if(v___location_path==v___location_prefix+"/servers/"||v___location_path==v___location_prefix+"/servers/index.cgi"){$(".ui_checked_columns td table tr td").find('a.ui_link[href*="edit_serv.cgi"]').addClass("margined-left-4 label label-sm label-primary hidden").html('');$(".ui_checked_columns").hover(function(){$(this).find("td table tr a.ui_link.label.hidden").removeClass("hidden")},function(){$(this).find("td table tr a.ui_link.label").addClass("hidden")})}$.each($('table.table.table-striped.table-condensed.dataTable.no-footer > thead > tr[role="row"]:first-child'),function(e,t){$(this).attr("style","border-top: 4px solid #f2f2f2 !important")});$.each($('button[onclick^="ifield"].btn.btn-default.ui_button'),function(){$(this).addClass("file_chooser_button_emulate")});$.each($(".file_chooser_button_emulate"),function(){if(!$(this).find(".fa-files-o").length){$(this).append('')}if(Math.round(parseFloat($(this).prev("input").css("height")))===28){$(this).addClass("heighter-28")}});$.each($("label > img"),function(e,t){$(this).attr("style","vertical-align: baseline !important")});$.each($('select[multiple][name="weekdays"]'),function(){$(this).parents('td[valign="top"], td[data-td-e]').attr("style","vertical-align: top !important");$(this).parents('table[width="100%"]').parents(".ui_radio_table.table-hardcoded").css("width","100%")});$.each($("label").find("br"),function(){$(this).parent("label").prev(".aradio, .acheckbox").attr("style","margin-left: 0 !important;");$(this).parent("label").next(".aradio, .acheckbox").attr("style","margin-left: 0 !important;")});$.each($(".table-responsive + .table-responsive + .table-hardcoded td"),function(){if($(this).find(".heighter-34").length){$.each($(".table-responsive + .table-responsive + .table-hardcoded td"),function(){$(this).find(".btn").addClass("heighter-34")})}});if(v___location_path==v___location_prefix+"/cpan/edit_mod.cgi"){$('.container-fluid form[action="download.cgi"]').next().next().next().find(".submitter.ui_submit").addClass("heighter-34")}if(core.curModuleFile("virtual-server","edit_script.cgi")){$('.container-fluid .ui_form button[name="stop"], .container-fluid .ui_form button[name="start"], .container-fluid .ui_form button[name="restart"]').addClass("heighter-34-force margined-right--4");$('.container-fluid .ui_form button[name="upgrade"]').addClass("margined-right--5")}if(v___location_path==v___location_prefix+"/cpan/"||v___location_path==v___location_prefix+"/cpan/index.cgi"){var cpan_button=$('input[name="cpan"]').next("button");if(cpan_button.length){cpan_button.html('').attr("style","width: 40px; height: 28px; vertical-align:middle !important; margin-top:2px; margin-bottom:2px;");cpan_button.attr("onclick",cpan_button.attr("onclick").replace("document.forms[0]","document.forms[1]"))}}if($("form").find(".icons-row:not(.inline-row)").length){$("form").find(".icons-row").addClass("_processed_"+(settings_right_table_links_type=="1"?" small":"")+"").css("border-top","1px solid #efefef").css("border-bottom","1px solid #efefef").find(".icons-container").addClass("icons-container-stretched")}if($(".ui_subheading + .ui_links_row ~ .icons-row:not(.inline-row)").length){$(".ui_subheading + .ui_links_row ~ .icons-row:not(.inline-row)").addClass("_processed_"+(settings_right_table_links_type=="1"?" small":"")+"").css("border-top","1px solid #efefef").css("border-bottom","1px solid #efefef").find(".icons-container").addClass("icons-container-stretched")}function __m_ico_row_tb(){$("body").find(".icons-row:not(._processed_):not(.inline-row)").css({"padding-top":"8px","padding-bottom":"8px"});$("body").find(".icons-row:not(._processed_):not(.inline-row)").css("border-top","1px solid #efefef").css("border-bottom","1px solid #efefef")}function __m_ico_row_t(){$("body").find(".icons-row:not(._processed_):not(.inline-row)").css({"padding-top":"18px"});$("body").find(".icons-row:not(._processed_):not(.inline-row)").css("border-top","1px solid #efefef")}if(v___location_path==v___location_prefix+"/lvm/"||v___location_path==v___location_prefix+"/lvm/index.cgi"||v___location_path==v___location_prefix+"/proftpd/virt_index.cgi"||v___location_path==v___location_prefix+"/dhcpd/"||v___location_path==v___location_prefix+"/dhcpd/index.cgi"||v___location_path==v___location_prefix+"/cluster-usermin/"||v___location_path==v___location_prefix+"/cluster-usermin/index.cgi"||v___location_path==v___location_prefix+"/bind8/"||v___location_path==v___location_prefix+"/bind8/index.cgi"||v___location_path==v___location_prefix+"/grub/"||v___location_path==v___location_prefix+"/grub/index.cgi"||v___location_path==v___location_prefix+"/cluster-software/"||v___location_path==v___location_prefix+"/cluster-software/index.cgi"||v___location_path==v___location_prefix+"/cluster-useradmin/edit_user.cgi"||v___location_path==v___location_prefix+"/cluster-useradmin/edit_group.cgi"||v___location_path==v___location_prefix+"/cluster-webmin/edit_mod.cgi"||v___location_path==v___location_prefix+"/cluster-usermin/edit_mod.cgi"||v___location_path==v___location_prefix+"/cluster-software/edit_pack.cgi"||v___location_path==v___location_prefix+"/cluster-useradmin/"||v___location_path==v___location_prefix+"/cluster-useradmin/index.cgi"||v___location_path==v___location_prefix+"/cluster-usermin/"||v___location_path==v___location_prefix+"/cluster-usermin/index.cgi"||v___location_path==v___location_prefix+"/cluster-webmin/"||v___location_path==v___location_prefix+"/cluster-webmin/index.cgi"){__m_ico_row_tb()}if(v___location_path==v___location_prefix+"/proftpd/"||v___location_path==v___location_prefix+"/proftpd/index.cgi"||v___location_path==v___location_prefix+"/mysql/"||v___location_path==v___location_prefix+"/mysql/index.cgi"||v___location_path==v___location_prefix+"/postgresql/"||v___location_path==v___location_prefix+"/postgresql/index.cgi"||v___location_path==v___location_prefix+"/bacula-backup/"||v___location_path==v___location_prefix+"/bacula-backup/index.cgi"){__m_ico_row_t()}$.each($(".row.icons-row.inline-row"),function(){$(this).find("a.icon_link").contents().filter(function(){return this.nodeType==3}).remove()});$.each($(".row.icons-row:not(.inline-row) .icons-container"),function(){$(this).removeAttr("data-title").removeAttr("data-toggle").removeAttr("data-placement").removeAttr("data-container")});if($("body").find(".icons-row > div.icons-container").length||$("body").find(".icons-row > div.small-icons-container").length){$.each($(".icons-row .hidden-forged-6"),function(){if($(this).find("input").is(":checked")){$(this).parents('div[class*="icons-container"]').addClass("highlighted")}});$.each($(".hidden-forged-7 > a"),function(){$(this).removeClass();if($(this).parents(".hidden-forged-7").hasClass("hidden-forged-7-small")){$(this).html(' ');$(this).parent().parent().prepend('')}else{$(this).html(' ');$(this).parent().parent().prepend('')}})}if(v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"virtualmin-registrar/"){$.each($("td > input "),function(){if($(this).parents("table.table-hardcoded").find('form[action="edit.cgi"]').length){$(this).css("margin-left","5px");$(this).parent("td").prev("td").find("select").css("margin-left","5px")}})}if(v___location_path==v___location_prefix+"/virtual-server/list_scripts.cgi"||v___location_path==v___location_prefix+"/virtual-server/edit_newscripts.cgi"){$('form[action="disable_scripts.cgi"] thead + thead tr th, form[action="disable_scripts.cgi"] tbody + thead tr th, form[action="script_form.cgi"] thead + thead tr th, form[action="script_form.cgi"] tbody + thead tr th').attr("colspan","5")}$.each($(".file_chooser_button_attached"),function(e,t){if($(this).prev('input[onclick*=".cgi"]')){$(this).prev('input[onclick*=".cgi"]').css("width","40px")}});if($t_uri_cloudmin&&(v___location_path==v___location_prefix+"/server-manager/add_form.cgi"||v___location_path==v___location_prefix+"/server-manager/scan_form.cgi")){$.each($("label"),function(){$(this).find("br").remove()})}if((v___location_path==v___location_prefix+"/mysql/view_table.cgi"||v___location_path==v___location_prefix+"/postgresql/view_table.cgi")&&$("td[data-td-e] > table.table-hardcoded")){var $tables=$(".container-fluid form .table.table-striped.table-hover.table-condensed");$tables.addClass("table-resizable").resizeableTableColumns(uri_parse_param("table",vars.source_request)||uri_parse_param("table",vars.source_request)||uri_parse_param("table",v___location_file+"?"+$(vars.previous_request.target).serialize()));if($tables.find(".ui_checked_checkbox").length){$tables.find("thead tr th:first-child").addClass("nonresizable")}var $___colspan=$(".container-fluid td[data-td-e] > table.table-hardcoded").parents("table").find("thead").find("tr").find("th").length;$(".container-fluid td[data-td-e] > table.table-hardcoded").parent("td[data-td-e]").attr("colspan",$___colspan).attr("style","padding: 1px !important;")}if(v___location_path==v___location_prefix+"/virtual-server/backup_form.cgi"&&v___location_href&&v___location_href.indexOf("?sched=")>-1){setTimeout(function(){var e=$("a[href=\"javascript:hidden_opener('hiddendiv_adddest', 'hiddenopener_adddest')\"]");e.next().attr("style","").addClass("btn btn-tiny btn-default margined-bottom-10");e.one("click",function(t){e.next("br").replaceWith('"+e+"",5,"success","textarea_to_clipboard")}});if(core.curModuleFile("mailbox","list_addresses.cgi")){$('.container-fluid textarea[name="members"] ~ .btn.btn-success.ui_form_end_submit').removeClass("btn-success").addClass("btn-default btn-block margined-top--5 btn--save-grp").find(".fa").remove()}if(core.curModule("custom")){var custom_file_edit_mode=core.curModuleFile("custom","view.cgi");if(!pjax_popstate){var custom_cmd_main_container_main=".ui_grid_row > .ui_grid_cell > .ui_form > .table-responsive > .table-subtable > tbody > tr > td > .sub_table_container",custom_cmd_main_container=""+custom_cmd_main_container_main+" > tbody";$(""+custom_cmd_main_container+' > tr:nth-child(1) > td[colspan="2"]').each(function(){if(!$(this).find(".ui_form_end_submit").length){$(this).addClass("no-contents padded-a-3").parent("tr").addClass("no-contents")}});var $has_icon=$(".sub_table_container td:last-child.col_value.col_header > .ui_form_end_submit");if(!$has_icon.find("i.fa").length&&!$has_icon.parents(".ui_grid_cell").length){$has_icon.addClass("heighter-28")}var custom_sub_table=".custom table.ui_grid_table .ui_grid_row .sub_table_container";var $col_head=$(""+custom_sub_table+" tr");$.each($col_head,function(){if(!$(this).find(".ui_form_end_submit").length){$(this).find(".col_header.col_value").removeClass()}});$.each($(custom_sub_table),function(){var e=$(this).find("tr"),t=e.find("input:not(:hidden):not(.hidden), textarea, select").length;if(t>=1){$(this).addClass("dense");e.find("td.col_label").addClass("w-auto");e.find('td.col_value:not([colspan="2"])').find("button.ui_form_end_submit").addClass("btn-tiny").parent("td").prev("td.col_label").addClass("vertical-align-middle");e.addClass("no-contents")}});if(v___location_file==="form.cgi"){$(".sub_table_container").find(".ui_form_end_submit").addClass("heighter-28").prepend(' ').parent("td").prev("td.col_label").addClass("vertical-align-middle")}if(custom_file_edit_mode){var detach_button_html=''+''+"";$("#headln2l .btn-group").append(detach_button_html)}}if(custom_file_edit_mode){$("#headln2l .btn-group [data-external-detach-custom-file]").on("click",function(e){e.preventDefault();var t=$("#headln2c").find("[data-main_title] + [data-sub_title] > tt").text();t&&edit_file_from_full_path(t)})}}if(!pjax_popstate){$(".chooser_button").each(function(){var e=$(this).prev("input[name], textarea");if(!e.length){e=$(this).prev("span").find(".ui_opt_textbox");if(e.length){e=e.unwrap()}}else{if(!e.attr("class")&&Math.round(e.outerHeight(true))>=32){e.css({marginTop:1,marginBottom:1})}}$(this).add(e).wrapAll('')})}var vs_str_="virtual-server",sm_str_="server-manager",vm_nginx_="virtualmin-nginx";if(core.curModuleFile(vs_str_,"edit_newchroot.cgi")||core.curModuleFile(vs_str_,"edit_newglobal.cgi")||core.curModuleFile(vs_str_,"edit_newlinks.cgi")||core.curModuleFile(vs_str_,"edit_newshells.cgi")||core.curModuleFile(vs_str_,"view_backuplog.cgi")||core.curModuleFile(vm_nginx_,"edit_logs.cgi")||core.curModuleFile(vm_nginx_,"edit_srewrite.cgi")||core.curModuleFile(vm_nginx_,"edit_saccess.cgi")||core.curModuleFile(vm_nginx_,"edit_sproxy.cgi")||core.curModuleFile(vm_nginx_,"edit_fcgi.cgi")||core.curModuleFile(vs_str_,"edit_phpver.cgi")||core.curModuleFile(vs_str_,"edit_spf.cgi")||core.curModuleFile(vs_str_,"ratelimit.cgi")||core.curModuleFile(vs_str_,"edit_newfields.cgi")||core.curModuleFile(sm_str_,"edit_docker.cgi")||core.curModuleFile(sm_str_,"edit_vserver.cgi")||core.curModuleFile(sm_str_,"edit_zone.cgi")||core.curModuleFile(sm_str_,"edit_openvz.cgi")||core.curModuleFile(sm_str_,"list_locations.cgi")||core.curModuleFile(sm_str_,"edit_lxc.cgi")||core.curModuleFile(sm_str_,"list_ips.cgi")||core.curModuleFile("acl","edit_unix.cgi")||core.curModuleFile("squid","edit_cachemgr.cgi")||core.curModuleFile("spam","edit_white.cgi")||core.curModuleFile("fsdump","edit_dump.cgi")||core.curModuleFile("mysql","backup_form.cgi")||core.curModuleFile("mysql","table_form.cgi")||core.curModuleFile("postgresql","backup_form.cgi")||core.curModuleFile("webmin","edit_bind.cgi")||core.curModuleFile("usermin","edit_bind.cgi")||core.curModuleFile("procmail","edit_recipe.cgi")||core.curModuleFile("usermin","edit_logout.cgi")||core.curModuleFile("net","list_routes.cgi")||core.curModuleFile("cron","edit_cron.cgi")||core.curModuleFile("cluster-copy","edit.cgi")||core.curModuleFile("cluster-cron","edit.cgi")||core.curModuleFile("webalizer","edit_log.cgi")||core.curModuleFile("apache","edit_global.cgi")||core.curModuleFile("logrotate","edit_sched.cgi")||core.curModuleFile("fetchmail","edit_cron.cgi")||core.curModuleFile(vs_str_,"edit_bucket.cgi")||core.curModuleFile("sshd","edit_net.cgi")||core.curModuleFile("fail2ban","edit_jail.cgi")||core.curModuleFile("webmin","edit_advanced.cgi")||core.curModuleFile("webmin","edit_web.cgi")||core.curModuleFile("usermin","edit_web.cgi")||core.curModuleFile("webmin","edit_os.cgi")||core.curModuleFile("usermin","edit_os.cgi")||core.curModuleFile("webmin","edit_descs.cgi")||core.curModuleFile("usermin","edit_descs.cgi")||core.curModuleFile("virtualmin-init","edit_tmpl.cgi")||core.curModuleFile("ssh","edit_host.cgi")||core.curModuleFile("syslog","edit_log.cgi")||core.curModuleFile("mysql","newdb_form.cgi")||core.curModuleFile("ldap-server","acl_form.cgi")||core.curModuleFile("ldap-client","edit_server.cgi")||core.curModuleFile("squid","edit_ports.cgi")||core.curModuleFile("squid","edit_logs.cgi")||core.curModuleFile("squid","edit_cache.cgi")||core.curModuleFile("virtualmin-nginx","edit_server.cgi")||core.curModuleFile("spam","edit_simple.cgi")||core.curModuleFile("spam","edit_report.cgi")||core.curModuleFile("spam","edit_header.cgi")||core.curModule("virtual-server")&&v___location_file=="edit_resel.cgi"||core.curModule("virtual-server")&&v___location_file=="edit_tmpl.cgi"||core.curModuleFile("cpan","download.cgi")||core.curModuleFile("virtual-server","edit_phpmode.cgi")||core.curModuleFile("net","edit_bifc.cgi")||core.curModuleFile("net","edit_aifc.cgi")||check_location_resource("/config.cgi?phpini")||check_location_resource("/config.cgi?module=phpini",1)||$('body[class*="bind8"]').length&&v___location_file||$('body[class*="status"]').length&&v___location_file=="edit_mon.cgi"||$('body[class*="custom"]').length&&v___location_file=="edit_sql.cgi"||$('body[class*="custom"]').length&&v___location_file=="edit_cmd.cgi"||$('body[class*="custom"]').length&&v___location_file=="edit_file.cgi"){$(".table:not(.opener_table_style):not(.dataTable)").removeClass("table-hover").addClass("no-hover");if(core.curModule("virtual-server")&&v___location_file=="edit_tmpl.cgi"){$(".table:not(.opener_table_style):not(.dataTable) > tbody > tr > td > table > tbody > tr > td > table").addClass("w-100p-f")}}theme_ui_opt_select(3);if(core.curModuleFile("apache","edit_mods.cgi")){var mpm_targets='.iawobject[value^="mpm_"]';$(mpm_targets).on("click",function(){$(mpm_targets+":checked").not(this).trigger("click")})}snippets.page.render_table_labels($(".container-fluid > .panel > .panel-body"));$(".ui_grid_cell:first-child > .btn-group.ui_links_row").parent().addClass("ui_grid_cell_auto");$(".ui_radio_table > tbody > tr > td > textarea").each(function(){$(this).parent("td").prev("td").addClass("vertical-align-middle")});if(core.curModuleFile("acl","edit_user.cgi")){$('.container-fluid form[action="save_user.cgi"] input[name="twofactor"]').prev().removeClass().addClass("btn btn-xxs btn-success margined-left-5 pd-bt-2").attr("type","submit")}if(!pjax_popstate&&v___location_path===v___location_prefix+"/virtual-server/edit_tmpl.cgi"){embed_table_header_icon();var server_template_filter_dropdown_spinner=theme_spinner_small(false,!v___theme_night_mode?"dark smaller2":" "),server_template_filter_dropdown_tooltip_text=theme_language("tooltip_virtualmin_templates_filter_generating"),server_template_filter_dropdown_tooltip_data_toggle_str='data-toggle="tooltip"',server_template_filter_dropdown_html=""+"
'+Convert.htmlEscape(t)+"
"),10,"success","newGeneratedPassword")})()}).on("click",".messenger-message .messenger-message-inner tt",function(){if(check_selected_text()){return}theme_copy_to_clipboard($(this).text());plugins.messenger.post(''+theme_language("filemanager_copying_successful"),2,"success","newClipboardCopied")}).on("keydown",'form[action*="save_log.cgi"] input[name="filter"], form[action*="save_log.cgi"] input[name="lines"], form[action*="view_log.cgi"] input[name="filter"], form[action*="view_log.cgi"] input[name="lines"]',function(e){if(e.keyCode==13){e.preventDefault();var t=$("button.ui_submit.ui_form_end_submit");t.first().trigger("click");t.addClass("disabled")}}).on("click",'button, input[type="submit"], a',function(e){v___page_activeElement=this}).on("click","._c__op_d",function(e){if($(e.target).is(this)){var t=$(this).find(".opener_trigger").first()[0];t&&t.click()}}).on("click",'form[action*="save_user.cgi"] button[name="but_switch"], a[href*="virtual-server/switch_user.cgi"]',function(){v___theme_reload=1}).on("click",'[href*="javascript:history"]',function(e){if(v___theme_content_history){e.preventDefault();e.stopPropagation();v___theme_content_history=0;plugins.pjax.page.link.get(v___location_directory)}}).on("click dblclick",".ui_multi_select_row select[multiple] option",function(e){if(!settings_multiselect_on_click&&e.type!=="dblclick"){return}if(settings_multiselect_on_click&&e.type==="dblclick"){return}this.selected=true;var t=$(this).parent("select"),n=t.parent("td"),a=n.parent("tr"),i=n.index(),s="onclick",r="["+s+'*="multi_select_move"]';if(!e.ctrlKey&&!e.metaKey&&!e.shiftKey&&!e.altKey&&(i===0||i===2)){a.find("td:eq(1)").find(""+r+"["+s+'*="'+(i?0:1)+'"]').trigger("click")}}).on("click",'.container-fluid a[href], .container-fluid button, .container-fluid input[type="button"], .right-side-tabs a[href], .right-side-tabs button, .right-side-tabs input[type="button"], .right-side-tabs .info-container .graph-container-fw, .right-side-tabs-dismiss i, .favorites-menu li a',function(){v___blocked_navigation=0;plugins.navigation.detectAllowed=true}).on("click","#content #system-status .panel-heading ._support_ticket_cnt",function(){var e=plugins.dashboard.system_info("markdown","allow-private-data"),t=function(e){var t="\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\x3c!---\n",n=session.server.data("hostname"),a=n?""+n+" system information":"System information";t+="BELOW TEXT CONTAINS YOUR SYSTEM INFORMATION AND SHOULD BE LEFT INTACT\n";t+="--\x3e\n";t+="\n"+theme_language("browser_warning")+"
";theme_alert(theme_language("global_warning"),e,false,"md","danger",false,"10 modal-ie-warning",0)},2e3);if(!String.prototype.endsWith){String.prototype.endsWith=function(e,t){var i=this.toString();if(typeof t!=="number"||!isFinite(t)||Math.floor(t)!==t||t>i.length){t=i.length}t-=e.length;var n=i.lastIndexOf(e,t);return n!==-1&&n===t}}if(!String.prototype.startsWith){if(!String.prototype.startsWith){String.prototype.startsWith=function(e,t){t=t||0;return this.indexOf(e,t)===t}}}}})();function addmodule(e){adduser(e);return false}function addgroup(e){adduser(e);return false}function adduser(e){$v__mpp__g_olt=0;$('.mppopup input[data-role="tagsinput"]').tagsinput("add",e);setTimeout(function(){if(!v__mpp__ml_t__e){$(".mppopup_filter_input").val("");$(".mppopup_filter_input").focus().trigger("keyup")}v__mpp__ml_t__e=0},440);return false}function addinterface(e){adduser(e);return false}function parentdir(e){if(e&&e.length>1&&e.endsWith("/")){e=e.replace(/\/$/,"")}fileclick(e,"1");$v__mpp__g_gp=1}function fileclick(e,t){$v__mpp__g_ol=e;$v__mpp__g_olt=t}function select(e,t){$data_mppopup_value.val(e);return false}function filter_match(e,t,i){t="";i=i||false;var n=function(e){e=e||false;var n=$(".mppopup table tbody tr");if(n.length>0){for(var a=0;a"+theme_language("connection_success_details")+"
");if(vars.pjax.post_reboot){plugins.pjax.page.link.get(v___location_prefix+"/"+vars.pages.dashboard+"",["success",connection_modal_close]);vars.pjax.post_reboot=false;vars.previous_request=String()}else{setTimeout(function(){connection_modal_close()},300)}},error:function(){v___theme_connection_reestablish&&setTimeout(function(){connection_reestablish()},1e3)}})}function control_server_theme_temp_data(e,t,i,n,a,s){return $.ajax({type:"POST",url:v___location_prefix+"/xhr.cgi?xhr-theme_temp_data=1&xhr-theme_temp_data_action="+e+"&xhr-theme_temp_data_name="+t+"&xhr-theme_temp_data_value="+(i?Convert.uriEncodeComponent(i):i)+"&xhr-theme_temp_data_keep="+n+"",data:false,dataType:"text",success:function(e){if(!session.status(e)){return}if(typeof a==="function"&&(!e.length||e.length&&s===1)){a()}},error:function(e){}})}function get_server_theme_temp_data(e,t,i,n){return control_server_theme_temp_data("get",e,false,t,i,n)}function set_server_theme_temp_data(e,t,i,n,a){control_server_theme_temp_data("set",e,t,i,n,a)}function page_control_header(){var e=".header",t="#headln2l",i="#headln2c",n=$(""+e+" "+t+""),a=$(""+e+" "+i+"");if(matchMedia("(max-width: 767px)").matches){if(n.next().is(i)){var s=a.detach();n.before(s)}}else{if(a.next().is(t)){var s=a.detach();n.after(s)}}}function page_display(){var e=$("body"),t=$("body").find(".container-fluid"),i=$("head");t.css({opacity:1,"pointer-events":"auto"});e.css("overflow","auto");i.find("#__tmp_no_overflow").remove()}function page_remove_progress(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:0;despinnerfy_buttons(e);setTimeout(function(){get_server_theme_temp_data("redirected",0)},100);setTimeout(function(){progress.end()},600)}function page_adjust(e,t){if(typeof $.injectCSS=="function"){$("style[data-persist]").remove();t?t="translate("+t+"px, 0px) !important":t=false;$.injectCSS({"#sidebar":{left:-e+"px",width:e+"px",transform:t},".switch-toggle":{width:e+"px"},".__page":{"margin-left":e+"px !important"},".autocomplete-suggestions":{"min-width":e-23+"px !important"},".__logo":{width:e+"px","max-width":e+"px"},"#jsPanel-replacement-container":{left:($.support.spa?settings_leftmenu_width-1:-2)+"px"}});if($("aside select").length&&core.curModuleFile("webmin","edit_themes.cgi")&&!$.browser.mobile){$("aside select[data-autocomplete-title]").attr("style","width:"+(e-24)+"px; margin-top: 0 !important");plugins.navigation.select.load()}}}function theme_modal_dismiss(){$(".modal.in").find("[data-dismiss]").trigger("click")}function theme_shortcut_check(e){if(!e.endsWith("/")){e+="/"}if(!e.startsWith("/")){e="/"+e}if(core.moduleAvailable(URI(e).directory().replace(/\//g,""))){return true}else{return false}}function theme_shortcuts_generate(e){var t,i=theme_shortcuts_modifier_name();if(e==="conf"){var n=settings_hotkey_open_module_config_privileged,a=n==="dot"?".":n==="comma"?",":n;t="("+i+" + "+a.toString().toUpperCase()+")"}else{t="("+i+" + "+e.toString().toUpperCase()+")"}return t}function theme_shortcuts_modifier_name(e){var t,i=e||settings_hotkey_toggle_modifier,n=platform.detect()==="mac";if(n){if(i==="ctrlKey"){t="⌃"}else if(i==="altKey"){t="⌥"}else if(i==="shiftKey"){t="⇧"}else if(i==="metaKey"){t="⌘"}}else{if(i==="ctrlKey"){t="Ctrl"}else if(i==="altKey"){t="Alt"}else if(i==="shiftKey"){t="⇧"}else if(i==="metaKey"){t="Meta"}}return t}function theme_shortcuts_modifier_unique(e){var t=["ctrlKey","altKey","shiftKey","metaKey"],i=t.indexOf(settings_hotkey_toggle_modifier),n=false;t.splice(i,1);t.map(function(t){if(e[t]&&!n){n=true}});return!n}function theme_modifiers_replace_for_mac(e,t,i){if(e&&platform.detect()==="mac"){if(t&&i){e=e.replaceAll(t,i)}e=e.replaceAll("Ctrl","⌃");e=e.replaceAll("Alt","⌥");e=e.replaceAll("Meta","⌘");e=e.replaceAll(" + "," ")}return e}function theme_shortcuts(e){var t=e.keyCode?e.keyCode:e.which,i=String.fromCharCode(e.which).toLowerCase(),n=String.fromCharCode(e.which);if(!settings_hotkeys_active){return}if(e.ctrlKey&&e.altKey&&i===settings_hotkey_duplicate_window_privileged){set_server_theme_temp_data("goto",link_type_convert(v___location_href,1),0,function(){theme_open_new_tab(v___location_href)},1)}if(Test.editing()||$(".modal-backdrop.in").length||$(".__page").hasClass("single-page")){return}if(e.altKey){if(e.which===37||e.which===39){let t="ui_link_pagination",i="disabled",n=$("."+t+"_left:not(."+i+"):visible"),a=$("."+t+"_right:not(."+i+"):visible");if(e.which===37&&n.length){n.click()}else if(e.which===39&&a.length){a.click()}}}if(e.which===settings_hotkey_theme_help_keycode){theme.help.show();e.preventDefault();return}if(vars.page_interaction===0){if(t===8&&e.shiftKey){window.history.forward();return}else if(t===8){window.history.back();return}}if(settings_hotkeys_active){const t=theme_shortcuts_modifier_unique(e),r='aside input[name="search"]',o=$(r+":visible").length&&isElemInView($(r)[0]);if(e.ctrlKey&&e.altKey&&e.metaKey&&e.shiftKey&&n=="R"){!theme.veiled(-1)&&theme_cache_clear(false,1)}if(get_access_level()===0&&session.server.data("upgrade")==1&&e.ctrlKey&&e.altKey&&e.shiftKey&&e.metaKey&&n=="U"){!theme.veiled(-1)&&theme.update(0)}if(i==settings_hotkey_open_module_config_privileged||settings_hotkey_open_module_config_privileged==="dot"&&e.which===190||settings_hotkey_open_module_config_privileged==="comma"&&e.which===188){e.preventDefault();if(vars.events.keypressed.shift){$('aside .user-links a[href*="config.cgi"]').trigger("click")}else{$('.container-fluid > .panel > .panel-heading a[href*="config.cgi"]').trigger("click")}}if(!t){return true}if(!session.alive){e.preventDefault();return}if(e[settings_hotkey_toggle_modifier]){if((e.which===37||e.which===39)&&v___location_file&&(v___location_file.toString().includes("config.cgi")||v___location_file.toString().includes("edit_tmpl.cgi"))){var a=$('.container-fluid .ui_form[action*="config.cgi"], .container-fluid .ui_form[action*="edit_tmpl.cgi"]'),s=function(e){return'button[name="'+e+'"]:not(.disabled)'};a.find(e.which===37?s("nprev"):s("nnext")).trigger("click")}if(n=="1"&&settings_hotkey_custom_1_user){e.preventDefault();theme_shortcut_check(settings_hotkey_custom_1_user)&&plugins.pjax.page.link.get(v___location_prefix+settings_hotkey_custom_1_user)}if(n=="2"&&settings_hotkey_custom_2_user){e.preventDefault();theme_shortcut_check(settings_hotkey_custom_2_user)&&plugins.pjax.page.link.get(v___location_prefix+settings_hotkey_custom_2_user)}if(n=="3"&&settings_hotkey_custom_3_user){e.preventDefault();theme_shortcut_check(settings_hotkey_custom_3_user)&&plugins.pjax.page.link.get(v___location_prefix+settings_hotkey_custom_3_user)}if(n=="4"&&settings_hotkey_custom_4_user){e.preventDefault();theme_shortcut_check(settings_hotkey_custom_4_user)&&plugins.pjax.page.link.get(v___location_prefix+settings_hotkey_custom_4_user)}if(n=="5"&&settings_hotkey_custom_5_user){e.preventDefault();theme_shortcut_check(settings_hotkey_custom_5_user)&&plugins.pjax.page.link.get(v___location_prefix+settings_hotkey_custom_5_user)}if(n=="6"&&settings_hotkey_custom_6_user){e.preventDefault();theme_shortcut_check(settings_hotkey_custom_6_user)&&plugins.pjax.page.link.get(v___location_prefix+settings_hotkey_custom_6_user)}if(n=="7"&&settings_hotkey_custom_7_user){e.preventDefault();theme_shortcut_check(settings_hotkey_custom_7_user)&&plugins.pjax.page.link.get(v___location_prefix+settings_hotkey_custom_7_user)}if(n=="8"&&settings_hotkey_custom_8_user){e.preventDefault();theme_shortcut_check(settings_hotkey_custom_8_user)&&plugins.pjax.page.link.get(v___location_prefix+settings_hotkey_custom_8_user)}if(n=="9"&&settings_hotkey_custom_9_user){e.preventDefault();theme_shortcut_check(settings_hotkey_custom_9_user)&&plugins.pjax.page.link.get(v___location_prefix+settings_hotkey_custom_9_user)}if(i==settings_hotkey_focus_search){e.preventDefault();o&&$(r).focus()}if(i==settings_hotkey_toggle_key_webmin){e.preventDefault();$('.switch-toggle input[id="open_webmin"]').trigger("click")}if(i==settings_hotkey_toggle_key_virtualmin){e.preventDefault();$('.switch-toggle input[id="open_virtualmin"]').trigger("click")}if(i==settings_hotkey_toggle_key_cloudmin){e.preventDefault();$('.switch-toggle input[id="open_cloudmin"]').trigger("click")}if(i==settings_hotkey_toggle_key_usermin){e.preventDefault();$('.switch-toggle input[id="open_usermin"]').trigger("click")}if(i==settings_hotkey_toggle_key_webmail){e.preventDefault();$('.switch-toggle input[id="open_webmail"]').trigger("click")}if(i==settings_hotkey_toggle_key_night_mode){e.preventDefault();theme_toggle_night_mode()}if(i==settings_hotkey_navigation&&window.matchMedia("(min-width: 1080px)").matches){e.preventDefault();$('aside [data-collapse-trigger="1"]').addClass("m").trigger("click")}else if(i==settings_hotkey_navigation){$(".mobile-menu-toggler:visible").trigger("click")}if(i==settings_hotkey_slider&&window.matchMedia("(min-width: 1366px)").matches){e.preventDefault();$('[data-trigger="side_slider_pinned"]').trigger("click")}else if(i==settings_hotkey_slider){$(".right-side-tabs-toggler:visible").trigger("click")}if(i==settings_hotkey_toggle_slider){e.preventDefault();$(".right-side-tabs-toggler:not(.hidden) .btn-menu-toggler").trigger("click")}if(i==settings_hotkey_reload){e.preventDefault();page_refresh()}const t=settings_hotkey_logout_dbl==="["?"BracketLeft":settings_hotkey_logout_dbl==="]"?"BracketRight":settings_hotkey_logout_dbl===";"?"Semicolon":settings_hotkey_logout_dbl==="'"?"Quote":settings_hotkey_logout_dbl==="/"?"Slash":settings_hotkey_logout_dbl;if(i==t||e.code===t){e.preventDefault();vars.events.delayedFn=setTimeout(function(){vars.events.delayed=0},vars.event.double_click_delay);if(vars.events.delayed++){$("aside .user-link.__logout-link").click();vars.events.delayed=0;clearTimeout(vars.events.delayedFn)}}if((i==settings_hotkey_shell||i==settings_hotkey_shell2)&&theme_shortcuts_modifier_unique(e)&&plugins.shell.available()){e.preventDefault();if(session.server.data("terminal")==1){if(plugins.shell.status()){plugins.terminal.close()}else{plugins.terminal.open()}}else{if(plugins.shell.status()){plugins.shell.close()}else{plugins.shell.open()}}return}if(i==settings_hotkey_sysinfo){e.preventDefault();if(plugins.navigation.switch.dashboard.get()==true){plugins.navigation.switch.dashboard.set()}else{plugins.pjax.page.link.get(v___location_prefix+"/"+vars.pages.dashboard+"")}}if(i==settings_hotkey_favorites){e.preventDefault();if($(".favorites-menu-outer").css("left")!="0px"){$(".user-link.favorites").trigger("click")}else{$(".favorites-menu-outer").removeClass("hover")}}}else{if(e.keyCode===191){e.preventDefault();o&&$(r).focus()}}return false}}function sysinfo_replace_dismiss_buttons(){var e=$('#system-status [onclick*="webmin/hide.cgi?id"], #right-side-tabs [onclick*="webmin/hide.cgi?id"], [data-referrer^="announce"] [onclick*="webmin/hide.cgi?id"]');$.each(e,function(){var e=$(this).attr("onclick"),t=$(this).text();if($(this).is("input")){t=$(this).val()}$(this).before(' '+t+"");$(this).remove()});var t=$('#system-status [onclick*="window.open"][onclick*="_new"], #right-side-tabs [onclick*="window.open"][onclick*="_new"], [data-referrer^="announce"] [onclick*="window.open"][onclick*="_new"]');$.each(t,function(){var e=$(this).attr("onclick"),t=$(this).text();if($(this).is("input")){t=$(this).val()}var i="btn-primary",n=e.split('"')[1],a="fa fa-fw fa-external-link";if(n.includes("pa"+"t"+"r"+"eo"+"n")){a="fa2 fa-fw fa2-kiss-wink-heart-bold";i="btn-success"}$(this).before(' '+t+"");$(this).remove()})}function get_access_level(){if(vars.level!=""&&vars.level!==-1){return parseInt(vars.level)}else{return parseInt(session.server.data("level"))}}function theme_updating(){return theme_message_exists("themeUpgrade")}function theme_message_exists(e){return plugins.messenger.toast.get(e)}function theme_message_dismiss(e){return plugins.messenger.toast.hide(e)}function theme_message_and_unlock(e,t){var i=arguments.length>2&&arguments[2]!==undefined?arguments[2]:1;var n=arguments.length>3&&arguments[3]!==undefined?arguments[3]:String();var a=arguments.length>4&&arguments[4]!==undefined?arguments[4]:"info";var s=arguments.length>5&&arguments[5]!==undefined?arguments[5]:3;var r=arguments.length>6&&arguments[6]!==undefined?arguments[6]:0;plugins.messenger.post(''+theme_language(""+t)+" ",s,a,n,r);setTimeout(function(){page_remove_progress(i)},600)}function theme_alert(e,t,i,n,a,s,r,o){typeof i==="undefined"||i==false?i=false:false;typeof n==="undefined"||n==false?n="md":false;typeof a==="undefined"||a==false?a="danger":false;typeof s==="undefined"||s==false?s="exclamation-triangle":false;typeof r==="undefined"||r==false?r="7":false;typeof o==="undefined"||o==false?o=false:false;var l=$.isArray(i)?i:[false,false],_="modal-global-notification",c=""+'