","",1);if(a){a=a.replace(/<(b)[^>]*>[^<]*(<\/b>)/i,"");de=a;$(_e).next("pre").replaceWith(a)}M.scrollTop(M[0].scrollHeight)}},false);return e},type:"POST",url:I+"?fetch-content=1",data:re,dataType:"text",cache:false,contentType:false,processData:false,complete:function(e){$(ce).removeClass("progressing");var t=e.status;e=e.responseText;if(!session.status(e)){return}var a=$.trim(Z)==="reboot",i=$.trim(Z)==="shutdown -h now";if(fe||t!==200||get_access_level()!==3&&(a||i)){var s=theme_language("shell_aborted");if(a){s="The system is rebooting.."}else if(i){s="The system has been powered off!"}var n=t!==200?extract_content(de,"
","",0)+(u.shell_request_interrupted?"\n^C":String()):s;if(de===false){n="Cannot establish connection to the host."}v.find("pre").append(""+h()+" "+Convert.htmlEscape(m.val())+" \n"+n+"\n");o(Z);l(_e,m,M);return}var r=h(),_=$(e).find("pre").length?$(e).find("pre"):$(e).filter("pre"),c=_.html().replace(/>>/g,">"+r+""),d=$(e).find('input[name="previous"][type="hidden"]').map(function(){return Convert.htmlEscape($(this).val())}).get();localStorage.setItem(v___server_hostname+"-"+"shell_commands",JSON.stringify(d));newPwd=$(e).find('input[name="pwd"]').val();v.find("pre").append(U?c.replace(new RegExp(Z,"g"),U):c);z.text(K?K:newPwd==z.attr("data-home")?"~":newPwd.split("/").filter(function(e){return $.trim(e)}).slice(-1)[0]).attr("data-pwd",Convert.htmlEscape(K?K:newPwd)).attr("title",Convert.htmlEscape(K?K:newPwd));if(Z==="cd .."&&newPwd==="/"){z.text("/")}l(_e,m,M)},error:function(e){}})}}}});b.on("click"+A+"","[data-shell-config]",function(){if(get_access_level()===3){return}$.ajax({type:"GET",url:v___location_prefix+"/"+"config.cgi"+"?shell",data:false,dataType:"text",success:function(e){if(!session.status(e)){return}var t=$(e).find(".ui_form"),a=t.find("table.sub_table_container"),i=v___location_prefix+"/"+"config_save.cgi";a.find("a").contents().unwrap();var s=a.find("tbody"),n=$(e).find("tr th.table-title b").text();theme_alert(n,'",false,"md","primary","cogs",'10 modal-shell-config" data-keyboard="false" data-backdrop="static',0);setTimeout(function(){$("[data-save-shell-config]").on("click",function(e){e.preventDefault();var t=$(this);if(t.hasClass("disabled")){return}var a=$(".modal-shell-config"),s=a.find("form").serialize();t.addClass("disabled").find("i").replaceWith(theme_spinner_small(false," "));$.ajax({type:"POST",url:i,data:s,dataType:"text",success:function(e){if(!session.status(e)){return}a.find('[data-dismiss="modal"]').trigger("click")},error:function(){}})})},300)}})}).on("click"+A+"",".-shell-port-close",function(){if(u()){d()}})},h=function(){return Convert.htmlEscape($(".-shell-port-type").text())};return{type:t,init:m,status:e,link:s,unlock:n,open:c,close:d,toggle:f,done:l,available:u,adjust:p,set:g}}();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=get_server_data("access-level"),i="right-side-tabs",s="body ."+i+"",n=""+i+"-fixed",r="data-slider-fixed";if(a!="0"){return}if(e){$(s+"-toggler").addClass("hidden");$(s).css("right","0px").addClass(n);if(settings_side_slider_enabled){get_server_data(r,"1")}}else{if(settings_side_slider_enabled){if(!t){$(s+"-toggler").removeClass("hidden opened").css("right","0")}else{$(s+"-toggler").removeClass("hidden").addClass("opened").css("right","300px")}}if(!t){$(s).css("right","-302px")}else{$(s).css("right","0px")}$(s).removeClass(n);get_server_data(r,"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",s="i.fa-bell",n="span.badge",r="hidden hidden-force",o=$("."+e+" .list-group-item:not(.no-notifications, .opacity-0_3)").length;plugins.favicon.set(o);if(o>0){$("."+e+"-"+i+" "+n+"").removeClass(r).text(o);$("#"+e+" ."+t+"").removeClass(r).text(o)}else{$("."+e+"-"+i+" "+n+"").addClass(r).text(0);$("#"+e+" ."+t+"").addClass(r).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),s=i.title,n=i.time,r=i.timestamp,o=i.message,l=i.readStatus,_=i.type,c=i.link;var d=n+"_"+s;if(_==="csf_deny"){d=n+"_"+s.replace(/\W/g,"")+o.replace(/\W/g,"")}$current_localData_notifications[d]=JSON.stringify({id:a,title:s,time:n,timestamp:r,message:o,readStatus:l,type:_,link:c});if($('.list-group-item[id="'+a+'"][data-type="'+_+'"]').length){$('.list-group-item[id="'+a+'"][data-type="'+_+'"] .list-group-item-heading small').text(moment.unix(n).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 s=JSON.parse(localStorage.getItem(v___server_hostname+"-"+"notifications_"+e+"_"+t));if(s){localStorage.setItem(v___server_hostname+"-"+"notifications_"+e+"_"+t,JSON.stringify({title:s.title,time:s.time,timestamp:s.timestamp,message:s.message,readStatus:a,type:s.type,link:s.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,s,n,r,o){var l=o&&(o.includes("http://")||o.includes("https://")||o.includes("ftp://")||o.includes("ftps://"))?' data-target="external"':"",_=l?"data-href":"href";$(".right-side-tabs .list-group").prepend('
"+theme_language("global_output_example")+": "+moment().format(config_portable_theme_locale_format_full)+'
">"+theme_language("global_output_example")+": "+moment().format(config_portable_theme_locale_format_long)+'
">"+theme_language("global_output_example")+": "+moment().format(config_portable_theme_locale_format_short)+'
">"+theme_language("global_output_example")+": "+moment().format(config_portable_theme_locale_format_time)+'
"> '+(!core.moduleAvailable("webmin")?"":'[\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}});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],l=n[2];if(!o){return}var s='',_=t.attr("href").indexOf("showpass.cgi")>-1,c=t.attr("href").indexOf("/locale")>-1;if(_){s=""}r=s+""+r+"";t.data("title",r);t.data("content",l);var d=String(),f=t.hasClass("btn-link");if(l&&(l.length>1024||l.includes("
")||l.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+"/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($(this).prev("input").css("height")=="28px"){$(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"]').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){$("body > div > div > div.panel-body > form > table:nth-child(4) > tbody > tr:nth-child(2) > td").css("display","table-cell");setTimeout(function(){$("a[href=\"javascript:hidden_opener('hiddendiv_adddest', 'hiddenopener_adddest')\"]").next().attr("style","").addClass("btn btn-tiny btn-default")},10)}$.each($('form[action="save_global.cgi"], form[action="save_iptables.cgi"], form[action="save_domain.cgi"],form[action="domain_setup.cgi"],form[action="mass_create.cgi"],form[action="save_roundrobin.cgi"],form[action="save_alert.cgi"], body.time form[action="apply.cgi"]'),function(){$(this).find(".col_header").removeClass("col_header")});if(check_location_resource("/virtual-server/edit_newchangelog.cgi")||check_location_resource("/server-manager/edit_newchangelog.cgi")||check_location_resource("/shell/")||check_location_resource("/shell/index.cgi")||check_location_resource("/server-manager/shell.cgi")){$("td.col_value.col_value").removeClass("col_header")}if(check_location_resource("/ldap-server/edit_ldif.cgi")){$("span > input.ui_opt_textbox").unwrap()}if(v___location_path==v___location_prefix+"/server-manager/gvnc.cgi"){$("body.server-manager p > ").css("height","100%").parent("p").attr("style","display: block; height: "+parseInt($(window).outerHeight()/1.4)+"px")}if(v___location_path==v___location_prefix+"/spam/edit_simple.cgi"||v___location_path==v___location_prefix+"/spam/edit_header.cgi"){var target=$(".ui_form .table-responsive table.table.table-striped.table-condensed.table-subtable > thead tr th:first-child"),container=$(".ui_form .table-responsive table.table.table-striped.table-condensed.table-subtable > thead tr th:last-child"),link=container.find("a");target.append(link);container.remove();target.find("a").addClass("table_title_links pull-right btn btn-xs btn-link btn-link-bordered btn-transparent").attr("style","position: absolute; right: 23px; margin-top: 5px !important;")}if(v___location_path==v___location_prefix+"/server-manager/edit_pass.cgi"&&$('form[action="save_pass.cgi"]').find('a[href*="edit_pass.cgi?"]:not(.btn)').length){var target=$(".ui_form .table-responsive table.table.table-striped.table-condensed.table-subtable > thead tr th:first-child"),container=$(".ui_form .table-responsive table.table.table-striped.table-condensed.table-subtable > thead tr th:last-child"),link=container.find("a");target.append(link);container.remove();target.find("a").addClass("table_title_links pull-right btn btn-info btn-tiny").attr("style","position: absolute; right: 20px; margin-top: 3px !important;")}$('.panel-default + a[href="/virtual-server/"]').attr("href",v___location_prefix+"/virtual-server/index.cgi");$('.panel-default + a[href="/server-manager/"]').attr("href",v___location_prefix+"/server-manager/index.cgi");if(v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"acl/"){$("body.acl > div > div > div.panel-body > form > div > table > tbody > tr > td > table > tbody > tr:nth-child(1) > td > table > tbody").attr("style","border: 0 !important");var $t__acl_title=$("br").next(".ui_grid_table.table-hardcoded").find("tbody").addClass("border-global-color").parent("table").prev("br").prev("b");$("br").next(".ui_grid_table.table-hardcoded").css("margin-bottom","3px");$.each($t__acl_title,function(e,t){if($(this).text()==""){$(this).next("br").remove();$(this).remove()}});$t__acl_title.attr("style","margin-bottom: -3px !important").next("br").remove()}if($('body[class*="bandwidth"]').length){$(".fa.fa-calendar.file_chooser_button_attached").attr("style","font-size: 11px; margin-top: 9px !important; pointer-events: none; margin-left: -27px !important;")}if(v___location_path==v___location_prefix+"/mysql/exec_form.cgi"||v___location_path==v___location_prefix+"/postgresql/exec_form.cgi"){$('select[name="old"], input[name="clear"], select[name="charset"]').removeClass("heighter-34").addClass("heighter-28");$('input[name="clear"]').attr("style","margin-bottom: 3px !important;");$('select[name="old"]').attr("style","margin-bottom: 3px !important; margin-right: 0 !important;")}if((v___location_file=="config.cgi"||v___location_file=="uconfig.cgi")&&(v___location_query=="mysql"||v___location_query=="postgresql")){$('input[name="style"]').parents("td.col_value").parent("tr").after('"+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(!$is_history_action&&core.curModule("custom")){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(!$is_history_action){$(".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")&&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("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.curModule("virtual-server")&&v___location_file=="edit_resel.cgi"||core.curModule("virtual-server")&&v___location_file=="edit_tmpl.cgi"&&v___location_query&&v___location_query.indexOf("editmode=webmin")>=0||core.curModule("virtual-server")&&v___location_file=="edit_tmpl.cgi"&&v___location_query&&v___location_query.indexOf("editmode=web&")>=0||core.curModule("virtual-server")&&v___location_file=="edit_tmpl.cgi"&&v___location_query&&v___location_query.indexOf("editmode=phpwrappers&")>=0||core.curModule("virtual-server")&&v___location_file=="edit_tmpl.cgi"&&v___location_query&&v___location_query.indexOf("editmode=autoconfig&")>=0||core.curModule("virtual-server")&&v___location_file=="edit_tmpl.cgi"&&v___location_query&&v___location_query.indexOf("editmode=virtualmin&")>=0||core.curModule("virtual-server")&&v___location_file=="edit_tmpl.cgi"&&v___location_query&&v___location_query.indexOf("editmode=plugins&")>=0||core.curModuleFile("cpan","download.cgi")||core.curModuleFile("virtual-server","edit_phpmode.cgi")||check_location_resource("/config.cgi?phpini")||$('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")}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(v___location_path===v___location_prefix+"/virtual-server/edit_tmpl.cgi"){embed_table_header_icon()}if(v___location_path===v___location_prefix+"/config.cgi"||v___location_path===v___location_prefix+"/uconfig.cgi"||v___location_path===v___location_prefix+"/mconfig.cgi"||v___location_path===v___location_prefix+"/tconfig.cgi"){embed_table_header_icon();setTimeout(function(){var e='body[data-uri*="/'+v___location_file+'"] form[action="'+v___location_file+'"]',t="autocomplete-suggestions",i=" .select2 + .end_submits",a=i+" > .btn-group > .dropdown-toggle",n=a+" + ul",r=n+" > li ",o=r+" > input";var l=function(){$(o).autocomplete({lookup:config_quick_access,minChars:0,appendTo:$(r),onSearchComplete:function(){var e=$(this).next("."+t+"");width=e.outerWidth()-20;parseInt(width)>0&&$(this).width(width)},onSelect:function(t){var i=$.Autocomplete.externalEvent;if(!$.isEmptyObject(i)){var n=i.keyCode?i.keyCode:i.which;if(i.ctrlKey||i.shiftKey||i.altKey||i.metaKey||n===20||n===32||n===33||n===34||n===35||n===36||n===37||n===38||n===39||n===40||n===45||n===46||n===112||n===113||n===114||n===115||n===116||n===117||n===118||n===119||n===120||n===121||n===122||n===123||n===144||n===145){return}}var r=v___location_file+"?module="+($(e).find('input[name="module"]').val()||"")+"§ion="+t.section+"&search="+($(this).val()||"");$(this).val("").blur();$(a).parent().trigger("click");$(this).autocomplete("dispose");get_pjax_content(r)},groupBy:"category",showNoSuggestionNotice:true,noSuggestionNotice:theme_language("global_no_results_found")})};$(a).parent().on("hidden.bs.dropdown",function(){$(o).val("").blur().trigger("input")});$(a).parent().on("shown.bs.dropdown",function(){var e=$(this);l();$(o).focus();$(o).on("keydown.configauto",function(e){if(!e.ctrlKey&&!e.altKey&&!e.shiftKey&&!e.metaKey){var i=$(this).next("."+t+"");if(i&&i.length){i[0].scrollTop=0}$(this).off("keydown.configauto")}});var a=$(i).prev().prev("select"),n=a.val();if(n){var r=a.find('option[value="'+n+'"]').text(),s=$(i).find("."+t+""),_=s.find("strong:contains("+r+")");if(_&&_.length){_[0].parentNode.parentNode.scrollTop=_[0].offsetTop}}$(o).off("keydown.cqa").on("keydown.cqa",function(t){if(t.keyCode==13){t.preventDefault()}if(t.keyCode==27){e.trigger("click")}})});var s=uri_parse_param("search");if(s){var _=$('.container-fluid td:contains("'+s+'")').last().parent();if(_&&_.length){_[0].scrollIntoView();setTimeout(function(){var e="vertical";_.find("td").first().addClass("faa-"+e+"-narrow animated animated-count-1");setTimeout(function(){var e=_.find("td").last().find('input:not([type="radio"]), input[type="radio"]:checked, textarea, select').first();if(e&&e.length){e[0].focus()}},740)},0)}}},101)}$("#content > .container-fluid > .panel > div.panel-body > p:last-child").each(function(){var e=$(this).text();if(e&&e.length){e=$.trim(e);if(!e){$(this).empty()}}});if(core.curModule("virtualmin-nginx")&&v___location_file=="edit_mime.cgi"&&v___location_query&&v___location_query.indexOf("search=")>=0){var $vm_nginx_scroll_to_add_new=$('#content .ui_checked_columns [name="name"]');if($vm_nginx_scroll_to_add_new.length){vars.page_user_inactive=0;setTimeout(function(){$vm_nginx_scroll_to_add_new[0].scrollIntoView({behavior:"auto",block:"center"});$vm_nginx_scroll_to_add_new[0].focus()},300)}}if(core.curModuleFile("virtual-server","edit_phpmode.cgi")){var cnt_str=".container-fluid",modes_sel_str=""+cnt_str+' [name="mode"]',curr_mode=$(""+modes_sel_str+":checked").val(),$modes=$(modes_sel_str);if(curr_mode&&$modes&&$modes.length){var $php_ver_select_row=$(""+cnt_str+' [name^="ver_"]').parents("td.col_value").parent();$modes.on("change",function(){var e=$(this).val();if(curr_mode.replace("fcgid","cgi")!==e.replace("fcgid","cgi")){$php_ver_select_row.hide()}else{$php_ver_select_row.show()}var t=$(""+cnt_str+" .ui_text_color");if(t.length){var i=t.parent("td").parent("tr");if(e==="fpm"){i.hide()}else{i.show()}}})}}var cnt_tbl_body="container-fluid .panel-body",ui_links_row="ui_links_row",not_data_table=":not(.dataTable)",only_child=":only-child",tbl_hardcoded="table-hardcoded:not(.ui_table_end_submit_right):not(.ui_buttons_table)",form_elem="form",table_cls_str="table:not([data-recursive_tree])",icn_row="icons-row",long_tbl_pref="long-table-";if(!core.curModuleFile("bind8","")&&!core.curModuleFile("bind8","index.cgi")&&!core.curModuleFile("postfix","sni.cgi")&&!core.curModuleFile("postfix","virtual.cgi")&&!core.curModuleFile("postfix","aliases.cgi")){tbl_hardcoded+=":not(.ui_grid_table):not(.ui_radio_table)"}var theTableToWrap=$("."+cnt_tbl_body+" > "+form_elem+" > ."+ui_links_row+" ~ ."+table_cls_str+""+not_data_table+","+"."+cnt_tbl_body+" > "+form_elem+" > ."+tbl_hardcoded+","+"."+cnt_tbl_body+" > ."+table_cls_str+""+only_child+","+"."+cnt_tbl_body+" > ."+icn_row+" ~ ."+tbl_hardcoded+","+"."+cnt_tbl_body+" > "+form_elem+" ~ ."+tbl_hardcoded+","+"."+cnt_tbl_body+" > ."+ui_links_row+" ~ ."+table_cls_str+""+not_data_table+"");if(theTableToWrap.length&&get_server_data("product")!=="usermin"){theTableToWrap.wrap('
'+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"]',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;get_pjax_content(v___location_directory)}}).on("click",".ui_multi_select_row select[multiple] option",function(e){var t=$(this).parent("select"),i=t.parent("td"),a=i.parent("tr"),n=i.index(),s="onclick",o="["+s+'*="multi_select_move"]';if(!e.ctrlKey&&!e.metaKey&&!e.shiftKey&&!e.altKey&&(n===0||n===2)){a.find("td:eq(1)").find(""+o+"["+s+'*="'+(n?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}).on("click",'#extended_sysinfo-1 .panel-collapse[aria-labelledby="status-virtual-server-1"] a:not(.ui_link)',function(e){e.preventDefault();var t=$(this),i=t.attr("href");if(t.hasClass("disabled")){return}t.addClass("disabled opacity-0_4");var a=t.find(".fa-refresh");if(a){a.addClass("fa-spin")}progress.start();$.ajax({type:"GET",url:i,data:false,statusCode:{200:function(){$.ajax({type:"GET",url:v___location_prefix+"/sysinfo.cgi",success:function(e){var t="#status-virtual-server-1-collapse",i=$(e).find(t).find(".panel-body");$('[data-dcontainer="1"]').find(t).find(".panel-body").replaceWith(i);progress.end()}})}}})}).on("click","[data-href-background]",function(e){e.preventDefault();var t=$(this).attr("data-href-background");progress.start();$.post(t,function(){plugins.slider.data.fetch();if(v___location_path&&v___location_path.indexOf("/sysinfo.cgi")>-1){page_refresh()}})}).on("click","#jsPanel-replacement-container > .jsPanel-replacement > .jsPanel-hdr",function(e){e.preventDefault();$(this).find(".jsPanel-btn-normalize").trigger("click")}).on("shown.bs.tab",'.nav.nav-tabs > li > a[data-toggle="tab"]',function(e){if(v___module===v___module_file_manager){return}$($.fn.dataTable.tables(true)).css("width","100%");$($.fn.dataTable.tables(true)).DataTable().columns.adjust();var t=$(e.target).attr("href");if(t){snippets.page.render_table_labels($(".tab-pane"+t+""))}}).on("shown.bs.collapse",".panel > .panel-collapse",function(){snippets.page.render_table_labels($(this))})};(function e(){if(get_server_data("navigation")&&browser.detect.internet_explorer()>5&&browser.detect.internet_explorer()<=11){setTimeout(function(){var e=""+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){get_pjax_content(v___location_prefix+"/sysinfo.cgi",["success",connection_modal_close]);vars.pjax.post_reboot=false}else{setTimeout(function(){connection_modal_close()},2e3)}},error:function(e){v___theme_connection_reestablish&&setTimeout(function(){connection_reestablish()},3e3)}})}function control_server_theme_temp_data(e,t,i,n,a,s){return $.ajax({type:"POST",url:v___location_prefix+"/index.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){control_server_theme_temp_data("set",e,t)}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_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_shortcuts(e){var t=e.keyCode?e.keyCode:e.which;if(Test.editing()||$(".modal-backdrop.in").length){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){var i=theme_shortcuts_modifier_unique(e);if(e.ctrlKey&&e.altKey&&e.metaKey&&e.shiftKey&&String.fromCharCode(e.which)=="R"){!theme.veiled(-1)&&theme_cache_clear()}if(get_access_level()===0&&e.ctrlKey&&e.altKey&&e.shiftKey&&String.fromCharCode(e.which)=="U"){!theme.veiled(-1)&&theme.update(e.metaKey?0:1)}if(!i){return true}if(!session.alive){e.preventDefault();return}if(e[settings_hotkey_toggle_modifier]){if(String.fromCharCode(e.which)=="1"&&settings_hotkey_custom_1_user){e.preventDefault();theme_shortcut_check(settings_hotkey_custom_1_user)&&get_pjax_content(v___location_prefix+settings_hotkey_custom_1_user)}if(String.fromCharCode(e.which)=="2"&&settings_hotkey_custom_2_user){e.preventDefault();theme_shortcut_check(settings_hotkey_custom_2_user)&&get_pjax_content(v___location_prefix+settings_hotkey_custom_2_user)}if(String.fromCharCode(e.which)=="3"&&settings_hotkey_custom_3_user){e.preventDefault();theme_shortcut_check(settings_hotkey_custom_3_user)&&get_pjax_content(v___location_prefix+settings_hotkey_custom_3_user)}if(String.fromCharCode(e.which)=="4"&&settings_hotkey_custom_4_user){e.preventDefault();theme_shortcut_check(settings_hotkey_custom_4_user)&&get_pjax_content(v___location_prefix+settings_hotkey_custom_4_user)}if(String.fromCharCode(e.which)=="5"&&settings_hotkey_custom_5_user){e.preventDefault();theme_shortcut_check(settings_hotkey_custom_5_user)&&get_pjax_content(v___location_prefix+settings_hotkey_custom_5_user)}if(String.fromCharCode(e.which)=="6"&&settings_hotkey_custom_6_user){e.preventDefault();theme_shortcut_check(settings_hotkey_custom_6_user)&&get_pjax_content(v___location_prefix+settings_hotkey_custom_6_user)}if(String.fromCharCode(e.which)=="7"&&settings_hotkey_custom_7_user){e.preventDefault();theme_shortcut_check(settings_hotkey_custom_7_user)&&get_pjax_content(v___location_prefix+settings_hotkey_custom_7_user)}if(String.fromCharCode(e.which)=="8"&&settings_hotkey_custom_8_user){e.preventDefault();theme_shortcut_check(settings_hotkey_custom_8_user)&&get_pjax_content(v___location_prefix+settings_hotkey_custom_8_user)}if(String.fromCharCode(e.which)=="9"&&settings_hotkey_custom_9_user){e.preventDefault();theme_shortcut_check(settings_hotkey_custom_9_user)&&get_pjax_content(v___location_prefix+settings_hotkey_custom_9_user)}if(String.fromCharCode(e.which).toLowerCase()==settings_hotkey_focus_search){e.preventDefault();$(".form-control.sidebar-search").focus()}if(String.fromCharCode(e.which).toLowerCase()==settings_hotkey_toggle_key_webmin){e.preventDefault();$('.switch-toggle input[id="open_webmin"]').trigger("click")}if(String.fromCharCode(e.which).toLowerCase()==settings_hotkey_toggle_key_virtualmin){e.preventDefault();$('.switch-toggle input[id="open_virtualmin"]').trigger("click")}if(String.fromCharCode(e.which).toLowerCase()==settings_hotkey_toggle_key_cloudmin){e.preventDefault();$('.switch-toggle input[id="open_cloudmin"]').trigger("click")}if(String.fromCharCode(e.which).toLowerCase()==settings_hotkey_toggle_key_usermin){e.preventDefault();$('.switch-toggle input[id="open_usermin"]').trigger("click")}if(String.fromCharCode(e.which).toLowerCase()==settings_hotkey_toggle_key_webmail){e.preventDefault();$('.switch-toggle input[id="open_webmail"]').trigger("click")}if(String.fromCharCode(e.which).toLowerCase()==settings_hotkey_toggle_key_night_mode){e.preventDefault();theme_toggle_night_mode()}if(String.fromCharCode(e.which).toLowerCase()==settings_hotkey_navigation&&window.matchMedia("(min-width: 1080px)").matches){e.preventDefault();$('aside [data-collapse-trigger="1"]').addClass("m").trigger("click")}if(String.fromCharCode(e.which).toLowerCase()==settings_hotkey_slider&&window.matchMedia("(min-width: 1366px)").matches){e.preventDefault();$('[data-trigger="side_slider_pinned"]').trigger("click")}if(String.fromCharCode(e.which).toLowerCase()==settings_hotkey_toggle_slider){e.preventDefault();$(".right-side-tabs-toggler:not(.hidden) .btn-menu-toggler").trigger("click")}if(String.fromCharCode(e.which).toLowerCase()==settings_hotkey_reload&&$('.user-links a[data-refresh="true"]')){e.preventDefault();page_refresh()}if(String.fromCharCode(e.which).toLowerCase()==settings_hotkey_shell2&&theme_shortcuts_modifier_unique(e)&&(core.moduleAvailable("shell")==1||plugins.shell.type())){e.preventDefault();if(plugins.shell.status()){plugins.shell.close()}else{plugins.shell.open()}return}if(String.fromCharCode(e.which).toLowerCase()==settings_hotkey_sysinfo){e.preventDefault();if(plugins.navigation.switch.dashboard.get()==true){plugins.navigation.switch.dashboard.set()}else{get_pjax_content(v___location_prefix+"/sysinfo.cgi")}}if(String.fromCharCode(e.which).toLowerCase()==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();$(".form-control.sidebar-search").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(get_server_data("level"))}}function theme_updating(){return theme_message_exists("themeUpgrade")}function theme_message_exists(e){return typeof window["Messenger_"+e]!="undefined"}function theme_message_dismiss(e){if(typeof window["Messenger_"+e]!="undefined"){window["Messenger_"+e].hide();delete window["Messenger_"+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",d=""+'","",1);if(a){a=a.replace(/<(b)[^>]*>[^<]*(<\/b>)/i,"");de=a;$(_e).next("pre").replaceWith(a)}M.scrollTop(M[0].scrollHeight)}},false);return e},type:"POST",url:I+"?fetch-content=1",data:re,dataType:"text",cache:false,contentType:false,processData:false,complete:function(e){$(ce).removeClass("progressing");var t=e.status;e=e.responseText;if(!session.status(e)){return}var a=$.trim(Z)==="reboot",i=$.trim(Z)==="shutdown -h now";if(fe||t!==200||get_access_level()!==3&&(a||i)){var s=theme_language("shell_aborted");if(a){s="The system is rebooting.."}else if(i){s="The system has been powered off!"}var n=t!==200?extract_content(de,"
","",0)+(u.shell_request_interrupted?"\n^C":String()):s;if(de===false){n="Cannot establish connection to the host."}v.find("pre").append(""+h()+" "+Convert.htmlEscape(m.val())+" \n"+n+"\n");o(Z);l(_e,m,M);return}var r=h(),_=$(e).find("pre").length?$(e).find("pre"):$(e).filter("pre"),c=_.html().replace(/>>/g,">"+r+""),d=$(e).find('input[name="previous"][type="hidden"]').map(function(){return Convert.htmlEscape($(this).val())}).get();localStorage.setItem(v___server_hostname+"-"+"shell_commands",JSON.stringify(d));newPwd=$(e).find('input[name="pwd"]').val();v.find("pre").append(U?c.replace(new RegExp(Z,"g"),U):c);z.text(K?K:newPwd==z.attr("data-home")?"~":newPwd.split("/").filter(function(e){return $.trim(e)}).slice(-1)[0]).attr("data-pwd",Convert.htmlEscape(K?K:newPwd)).attr("title",Convert.htmlEscape(K?K:newPwd));if(Z==="cd .."&&newPwd==="/"){z.text("/")}l(_e,m,M)},error:function(e){}})}}}});b.on("click"+A+"","[data-shell-config]",function(){if(get_access_level()===3){return}$.ajax({type:"GET",url:v___location_prefix+"/"+"config.cgi"+"?shell",data:false,dataType:"text",success:function(e){if(!session.status(e)){return}var t=$(e).find(".ui_form"),a=t.find("table.sub_table_container"),i=v___location_prefix+"/"+"config_save.cgi";a.find("a").contents().unwrap();var s=a.find("tbody"),n=$(e).find("tr th.table-title b").text();theme_alert(n,'",false,"md","primary","cogs",'10 modal-shell-config" data-keyboard="false" data-backdrop="static',0);setTimeout(function(){$("[data-save-shell-config]").on("click",function(e){e.preventDefault();var t=$(this);if(t.hasClass("disabled")){return}var a=$(".modal-shell-config"),s=a.find("form").serialize();t.addClass("disabled").find("i").replaceWith(theme_spinner_small(false," "));$.ajax({type:"POST",url:i,data:s,dataType:"text",success:function(e){if(!session.status(e)){return}a.find('[data-dismiss="modal"]').trigger("click")},error:function(){}})})},300)}})}).on("click"+A+"",".-shell-port-close",function(){if(u()){d()}})},h=function(){return Convert.htmlEscape($(".-shell-port-type").text())};return{type:t,init:m,status:e,link:s,unlock:n,open:c,close:d,toggle:f,done:l,available:u,adjust:p,set:g}}();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=get_server_data("access-level"),i="right-side-tabs",s="body ."+i+"",n=""+i+"-fixed",r="data-slider-fixed";if(a!="0"){return}if(e){$(s+"-toggler").addClass("hidden");$(s).css("right","0px").addClass(n);if(settings_side_slider_enabled){get_server_data(r,"1")}}else{if(settings_side_slider_enabled){if(!t){$(s+"-toggler").removeClass("hidden opened").css("right","0")}else{$(s+"-toggler").removeClass("hidden").addClass("opened").css("right","300px")}}if(!t){$(s).css("right","-302px")}else{$(s).css("right","0px")}$(s).removeClass(n);get_server_data(r,"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",s="i.fa-bell",n="span.badge",r="hidden hidden-force",o=$("."+e+" .list-group-item:not(.no-notifications, .opacity-0_3)").length;plugins.favicon.set(o);if(o>0){$("."+e+"-"+i+" "+n+"").removeClass(r).text(o);$("#"+e+" ."+t+"").removeClass(r).text(o)}else{$("."+e+"-"+i+" "+n+"").addClass(r).text(0);$("#"+e+" ."+t+"").addClass(r).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),s=i.title,n=i.time,r=i.timestamp,o=i.message,l=i.readStatus,_=i.type,c=i.link;var d=n+"_"+s;if(_==="csf_deny"){d=n+"_"+s.replace(/\W/g,"")+o.replace(/\W/g,"")}$current_localData_notifications[d]=JSON.stringify({id:a,title:s,time:n,timestamp:r,message:o,readStatus:l,type:_,link:c});if($('.list-group-item[id="'+a+'"][data-type="'+_+'"]').length){$('.list-group-item[id="'+a+'"][data-type="'+_+'"] .list-group-item-heading small').text(moment.unix(n).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 s=JSON.parse(localStorage.getItem(v___server_hostname+"-"+"notifications_"+e+"_"+t));if(s){localStorage.setItem(v___server_hostname+"-"+"notifications_"+e+"_"+t,JSON.stringify({title:s.title,time:s.time,timestamp:s.timestamp,message:s.message,readStatus:a,type:s.type,link:s.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,s,n,r,o){var l=o&&(o.includes("http://")||o.includes("https://")||o.includes("ftp://")||o.includes("ftps://"))?' data-target="external"':"",_=l?"data-href":"href";$(".right-side-tabs .list-group").prepend('
"+theme_language("global_output_example")+": "+moment().format(config_portable_theme_locale_format_full)+'
">"+theme_language("global_output_example")+": "+moment().format(config_portable_theme_locale_format_long)+'
">"+theme_language("global_output_example")+": "+moment().format(config_portable_theme_locale_format_short)+'
">"+theme_language("global_output_example")+": "+moment().format(config_portable_theme_locale_format_time)+'
"> '+(!core.moduleAvailable("webmin")?"":'[\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}});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],l=n[2];if(!o){return}var s='',_=t.attr("href").indexOf("showpass.cgi")>-1,c=t.attr("href").indexOf("/locale")>-1;if(_){s=""}r=s+""+r+"";t.data("title",r);t.data("content",l);var d=String(),f=t.hasClass("btn-link");if(l&&(l.length>1024||l.includes("
")||l.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+"/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($(this).prev("input").css("height")=="28px"){$(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"]').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){$("body > div > div > div.panel-body > form > table:nth-child(4) > tbody > tr:nth-child(2) > td").css("display","table-cell");setTimeout(function(){$("a[href=\"javascript:hidden_opener('hiddendiv_adddest', 'hiddenopener_adddest')\"]").next().attr("style","").addClass("btn btn-tiny btn-default")},10)}$.each($('form[action="save_global.cgi"], form[action="save_iptables.cgi"], form[action="save_domain.cgi"],form[action="domain_setup.cgi"],form[action="mass_create.cgi"],form[action="save_roundrobin.cgi"],form[action="save_alert.cgi"], body.time form[action="apply.cgi"]'),function(){$(this).find(".col_header").removeClass("col_header")});if(check_location_resource("/virtual-server/edit_newchangelog.cgi")||check_location_resource("/server-manager/edit_newchangelog.cgi")||check_location_resource("/shell/")||check_location_resource("/shell/index.cgi")||check_location_resource("/server-manager/shell.cgi")){$("td.col_value.col_value").removeClass("col_header")}if(check_location_resource("/ldap-server/edit_ldif.cgi")){$("span > input.ui_opt_textbox").unwrap()}if(v___location_path==v___location_prefix+"/server-manager/gvnc.cgi"){$("body.server-manager p > ").css("height","100%").parent("p").attr("style","display: block; height: "+parseInt($(window).outerHeight()/1.4)+"px")}if(v___location_path==v___location_prefix+"/spam/edit_simple.cgi"||v___location_path==v___location_prefix+"/spam/edit_header.cgi"){var target=$(".ui_form .table-responsive table.table.table-striped.table-condensed.table-subtable > thead tr th:first-child"),container=$(".ui_form .table-responsive table.table.table-striped.table-condensed.table-subtable > thead tr th:last-child"),link=container.find("a");target.append(link);container.remove();target.find("a").addClass("table_title_links pull-right btn btn-xs btn-link btn-link-bordered btn-transparent").attr("style","position: absolute; right: 23px; margin-top: 5px !important;")}if(v___location_path==v___location_prefix+"/server-manager/edit_pass.cgi"&&$('form[action="save_pass.cgi"]').find('a[href*="edit_pass.cgi?"]:not(.btn)').length){var target=$(".ui_form .table-responsive table.table.table-striped.table-condensed.table-subtable > thead tr th:first-child"),container=$(".ui_form .table-responsive table.table.table-striped.table-condensed.table-subtable > thead tr th:last-child"),link=container.find("a");target.append(link);container.remove();target.find("a").addClass("table_title_links pull-right btn btn-info btn-tiny").attr("style","position: absolute; right: 20px; margin-top: 3px !important;")}$('.panel-default + a[href="/virtual-server/"]').attr("href",v___location_prefix+"/virtual-server/index.cgi");$('.panel-default + a[href="/server-manager/"]').attr("href",v___location_prefix+"/server-manager/index.cgi");if(v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"acl/"){$("body.acl > div > div > div.panel-body > form > div > table > tbody > tr > td > table > tbody > tr:nth-child(1) > td > table > tbody").attr("style","border: 0 !important");var $t__acl_title=$("br").next(".ui_grid_table.table-hardcoded").find("tbody").addClass("border-global-color").parent("table").prev("br").prev("b");$("br").next(".ui_grid_table.table-hardcoded").css("margin-bottom","3px");$.each($t__acl_title,function(e,t){if($(this).text()==""){$(this).next("br").remove();$(this).remove()}});$t__acl_title.attr("style","margin-bottom: -3px !important").next("br").remove()}if($('body[class*="bandwidth"]').length){$(".fa.fa-calendar.file_chooser_button_attached").attr("style","font-size: 11px; margin-top: 9px !important; pointer-events: none; margin-left: -27px !important;")}if(v___location_path==v___location_prefix+"/mysql/exec_form.cgi"||v___location_path==v___location_prefix+"/postgresql/exec_form.cgi"){$('select[name="old"], input[name="clear"], select[name="charset"]').removeClass("heighter-34").addClass("heighter-28");$('input[name="clear"]').attr("style","margin-bottom: 3px !important;");$('select[name="old"]').attr("style","margin-bottom: 3px !important; margin-right: 0 !important;")}if((v___location_file=="config.cgi"||v___location_file=="uconfig.cgi")&&(v___location_query=="mysql"||v___location_query=="postgresql")){$('input[name="style"]').parents("td.col_value").parent("tr").after('"+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(!$is_history_action&&core.curModule("custom")){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(!$is_history_action){$(".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")&&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("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.curModule("virtual-server")&&v___location_file=="edit_resel.cgi"||core.curModule("virtual-server")&&v___location_file=="edit_tmpl.cgi"&&v___location_query&&v___location_query.indexOf("editmode=webmin")>=0||core.curModule("virtual-server")&&v___location_file=="edit_tmpl.cgi"&&v___location_query&&v___location_query.indexOf("editmode=web&")>=0||core.curModule("virtual-server")&&v___location_file=="edit_tmpl.cgi"&&v___location_query&&v___location_query.indexOf("editmode=phpwrappers&")>=0||core.curModule("virtual-server")&&v___location_file=="edit_tmpl.cgi"&&v___location_query&&v___location_query.indexOf("editmode=autoconfig&")>=0||core.curModule("virtual-server")&&v___location_file=="edit_tmpl.cgi"&&v___location_query&&v___location_query.indexOf("editmode=virtualmin&")>=0||core.curModule("virtual-server")&&v___location_file=="edit_tmpl.cgi"&&v___location_query&&v___location_query.indexOf("editmode=plugins&")>=0||core.curModuleFile("cpan","download.cgi")||core.curModuleFile("virtual-server","edit_phpmode.cgi")||check_location_resource("/config.cgi?phpini")||$('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")}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(v___location_path===v___location_prefix+"/virtual-server/edit_tmpl.cgi"){embed_table_header_icon()}if(v___location_path===v___location_prefix+"/config.cgi"||v___location_path===v___location_prefix+"/uconfig.cgi"||v___location_path===v___location_prefix+"/mconfig.cgi"||v___location_path===v___location_prefix+"/tconfig.cgi"){embed_table_header_icon();setTimeout(function(){var e='body[data-uri*="/'+v___location_file+'"] form[action="'+v___location_file+'"]',t="autocomplete-suggestions",i=" .select2 + .end_submits",a=i+" > .btn-group > .dropdown-toggle",n=a+" + ul",r=n+" > li ",o=r+" > input";var l=function(){$(o).autocomplete({lookup:config_quick_access,minChars:0,appendTo:$(r),onSearchComplete:function(){var e=$(this).next("."+t+"");width=e.outerWidth()-20;parseInt(width)>0&&$(this).width(width)},onSelect:function(t){var i=$.Autocomplete.externalEvent;if(!$.isEmptyObject(i)){var n=i.keyCode?i.keyCode:i.which;if(i.ctrlKey||i.shiftKey||i.altKey||i.metaKey||n===20||n===32||n===33||n===34||n===35||n===36||n===37||n===38||n===39||n===40||n===45||n===46||n===112||n===113||n===114||n===115||n===116||n===117||n===118||n===119||n===120||n===121||n===122||n===123||n===144||n===145){return}}var r=v___location_file+"?module="+($(e).find('input[name="module"]').val()||"")+"§ion="+t.section+"&search="+($(this).val()||"");$(this).val("").blur();$(a).parent().trigger("click");$(this).autocomplete("dispose");get_pjax_content(r)},groupBy:"category",showNoSuggestionNotice:true,noSuggestionNotice:theme_language("global_no_results_found")})};$(a).parent().on("hidden.bs.dropdown",function(){$(o).val("").blur().trigger("input")});$(a).parent().on("shown.bs.dropdown",function(){var e=$(this);l();$(o).focus();$(o).on("keydown.configauto",function(e){if(!e.ctrlKey&&!e.altKey&&!e.shiftKey&&!e.metaKey){var i=$(this).next("."+t+"");if(i&&i.length){i[0].scrollTop=0}$(this).off("keydown.configauto")}});var a=$(i).prev().prev("select"),n=a.val();if(n){var r=a.find('option[value="'+n+'"]').text(),s=$(i).find("."+t+""),_=s.find("strong:contains("+r+")");if(_&&_.length){_[0].parentNode.parentNode.scrollTop=_[0].offsetTop}}$(o).off("keydown.cqa").on("keydown.cqa",function(t){if(t.keyCode==13){t.preventDefault()}if(t.keyCode==27){e.trigger("click")}})});var s=uri_parse_param("search");if(s){var _=$('.container-fluid td:contains("'+s+'")').last().parent();if(_&&_.length){_[0].scrollIntoView();setTimeout(function(){var e="vertical";_.find("td").first().addClass("faa-"+e+"-narrow animated animated-count-1");setTimeout(function(){var e=_.find("td").last().find('input:not([type="radio"]), input[type="radio"]:checked, textarea, select').first();if(e&&e.length){e[0].focus()}},740)},0)}}},101)}$("#content > .container-fluid > .panel > div.panel-body > p:last-child").each(function(){var e=$(this).text();if(e&&e.length){e=$.trim(e);if(!e){$(this).empty()}}});if(core.curModule("virtualmin-nginx")&&v___location_file=="edit_mime.cgi"&&v___location_query&&v___location_query.indexOf("search=")>=0){var $vm_nginx_scroll_to_add_new=$('#content .ui_checked_columns [name="name"]');if($vm_nginx_scroll_to_add_new.length){vars.page_user_inactive=0;setTimeout(function(){$vm_nginx_scroll_to_add_new[0].scrollIntoView({behavior:"auto",block:"center"});$vm_nginx_scroll_to_add_new[0].focus()},300)}}if(core.curModuleFile("virtual-server","edit_phpmode.cgi")){var cnt_str=".container-fluid",modes_sel_str=""+cnt_str+' [name="mode"]',curr_mode=$(""+modes_sel_str+":checked").val(),$modes=$(modes_sel_str);if(curr_mode&&$modes&&$modes.length){var $php_ver_select_row=$(""+cnt_str+' [name^="ver_"]').parents("td.col_value").parent();$modes.on("change",function(){var e=$(this).val();if(curr_mode.replace("fcgid","cgi")!==e.replace("fcgid","cgi")){$php_ver_select_row.hide()}else{$php_ver_select_row.show()}var t=$(""+cnt_str+" .ui_text_color");if(t.length){var i=t.parent("td").parent("tr");if(e==="fpm"){i.hide()}else{i.show()}}})}}var cnt_tbl_body="container-fluid .panel-body",ui_links_row="ui_links_row",not_data_table=":not(.dataTable)",only_child=":only-child",tbl_hardcoded="table-hardcoded:not(.ui_table_end_submit_right):not(.ui_buttons_table)",form_elem="form",table_cls_str="table:not([data-recursive_tree])",icn_row="icons-row",long_tbl_pref="long-table-";if(!core.curModuleFile("bind8","")&&!core.curModuleFile("bind8","index.cgi")&&!core.curModuleFile("postfix","sni.cgi")&&!core.curModuleFile("postfix","virtual.cgi")&&!core.curModuleFile("postfix","aliases.cgi")){tbl_hardcoded+=":not(.ui_grid_table):not(.ui_radio_table)"}var theTableToWrap=$("."+cnt_tbl_body+" > "+form_elem+" > ."+ui_links_row+" ~ ."+table_cls_str+""+not_data_table+","+"."+cnt_tbl_body+" > "+form_elem+" > ."+tbl_hardcoded+","+"."+cnt_tbl_body+" > ."+table_cls_str+""+only_child+","+"."+cnt_tbl_body+" > ."+icn_row+" ~ ."+tbl_hardcoded+","+"."+cnt_tbl_body+" > "+form_elem+" ~ ."+tbl_hardcoded+","+"."+cnt_tbl_body+" > ."+ui_links_row+" ~ ."+table_cls_str+""+not_data_table+"");if(theTableToWrap.length&&get_server_data("product")!=="usermin"){theTableToWrap.wrap('
'+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"]',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;get_pjax_content(v___location_directory)}}).on("click",".ui_multi_select_row select[multiple] option",function(e){var t=$(this).parent("select"),i=t.parent("td"),a=i.parent("tr"),n=i.index(),s="onclick",o="["+s+'*="multi_select_move"]';if(!e.ctrlKey&&!e.metaKey&&!e.shiftKey&&!e.altKey&&(n===0||n===2)){a.find("td:eq(1)").find(""+o+"["+s+'*="'+(n?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}).on("click",'#extended_sysinfo-1 .panel-collapse[aria-labelledby="status-virtual-server-1"] a:not(.ui_link)',function(e){e.preventDefault();var t=$(this),i=t.attr("href");if(t.hasClass("disabled")){return}t.addClass("disabled opacity-0_4");var a=t.find(".fa-refresh");if(a){a.addClass("fa-spin")}progress.start();$.ajax({type:"GET",url:i,data:false,statusCode:{200:function(){$.ajax({type:"GET",url:v___location_prefix+"/sysinfo.cgi",success:function(e){var t="#status-virtual-server-1-collapse",i=$(e).find(t).find(".panel-body");$('[data-dcontainer="1"]').find(t).find(".panel-body").replaceWith(i);progress.end()}})}}})}).on("click","[data-href-background]",function(e){e.preventDefault();var t=$(this).attr("data-href-background");progress.start();$.post(t,function(){plugins.slider.data.fetch();if(v___location_path&&v___location_path.indexOf("/sysinfo.cgi")>-1){page_refresh()}})}).on("click","#jsPanel-replacement-container > .jsPanel-replacement > .jsPanel-hdr",function(e){e.preventDefault();$(this).find(".jsPanel-btn-normalize").trigger("click")}).on("shown.bs.tab",'.nav.nav-tabs > li > a[data-toggle="tab"]',function(e){if(v___module===v___module_file_manager){return}$($.fn.dataTable.tables(true)).css("width","100%");$($.fn.dataTable.tables(true)).DataTable().columns.adjust();var t=$(e.target).attr("href");if(t){snippets.page.render_table_labels($(".tab-pane"+t+""))}}).on("shown.bs.collapse",".panel > .panel-collapse",function(){snippets.page.render_table_labels($(this))})};(function e(){if(get_server_data("navigation")&&browser.detect.internet_explorer()>5&&browser.detect.internet_explorer()<=11){setTimeout(function(){var e=""+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){get_pjax_content(v___location_prefix+"/sysinfo.cgi",["success",connection_modal_close]);vars.pjax.post_reboot=false}else{setTimeout(function(){connection_modal_close()},2e3)}},error:function(e){v___theme_connection_reestablish&&setTimeout(function(){connection_reestablish()},3e3)}})}function control_server_theme_temp_data(e,t,i,n,a,s){return $.ajax({type:"POST",url:v___location_prefix+"/index.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){control_server_theme_temp_data("set",e,t)}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_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_shortcuts(e){var t=e.keyCode?e.keyCode:e.which;if(Test.editing()||$(".modal-backdrop.in").length){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){var i=theme_shortcuts_modifier_unique(e);if(e.ctrlKey&&e.altKey&&e.metaKey&&e.shiftKey&&String.fromCharCode(e.which)=="R"){!theme.veiled(-1)&&theme_cache_clear()}if(get_access_level()===0&&e.ctrlKey&&e.altKey&&e.shiftKey&&String.fromCharCode(e.which)=="U"){!theme.veiled(-1)&&theme.update(e.metaKey?0:1)}if(!i){return true}if(!session.alive){e.preventDefault();return}if(e[settings_hotkey_toggle_modifier]){if(String.fromCharCode(e.which)=="1"&&settings_hotkey_custom_1_user){e.preventDefault();theme_shortcut_check(settings_hotkey_custom_1_user)&&get_pjax_content(v___location_prefix+settings_hotkey_custom_1_user)}if(String.fromCharCode(e.which)=="2"&&settings_hotkey_custom_2_user){e.preventDefault();theme_shortcut_check(settings_hotkey_custom_2_user)&&get_pjax_content(v___location_prefix+settings_hotkey_custom_2_user)}if(String.fromCharCode(e.which)=="3"&&settings_hotkey_custom_3_user){e.preventDefault();theme_shortcut_check(settings_hotkey_custom_3_user)&&get_pjax_content(v___location_prefix+settings_hotkey_custom_3_user)}if(String.fromCharCode(e.which)=="4"&&settings_hotkey_custom_4_user){e.preventDefault();theme_shortcut_check(settings_hotkey_custom_4_user)&&get_pjax_content(v___location_prefix+settings_hotkey_custom_4_user)}if(String.fromCharCode(e.which)=="5"&&settings_hotkey_custom_5_user){e.preventDefault();theme_shortcut_check(settings_hotkey_custom_5_user)&&get_pjax_content(v___location_prefix+settings_hotkey_custom_5_user)}if(String.fromCharCode(e.which)=="6"&&settings_hotkey_custom_6_user){e.preventDefault();theme_shortcut_check(settings_hotkey_custom_6_user)&&get_pjax_content(v___location_prefix+settings_hotkey_custom_6_user)}if(String.fromCharCode(e.which)=="7"&&settings_hotkey_custom_7_user){e.preventDefault();theme_shortcut_check(settings_hotkey_custom_7_user)&&get_pjax_content(v___location_prefix+settings_hotkey_custom_7_user)}if(String.fromCharCode(e.which)=="8"&&settings_hotkey_custom_8_user){e.preventDefault();theme_shortcut_check(settings_hotkey_custom_8_user)&&get_pjax_content(v___location_prefix+settings_hotkey_custom_8_user)}if(String.fromCharCode(e.which)=="9"&&settings_hotkey_custom_9_user){e.preventDefault();theme_shortcut_check(settings_hotkey_custom_9_user)&&get_pjax_content(v___location_prefix+settings_hotkey_custom_9_user)}if(String.fromCharCode(e.which).toLowerCase()==settings_hotkey_focus_search){e.preventDefault();$(".form-control.sidebar-search").focus()}if(String.fromCharCode(e.which).toLowerCase()==settings_hotkey_toggle_key_webmin){e.preventDefault();$('.switch-toggle input[id="open_webmin"]').trigger("click")}if(String.fromCharCode(e.which).toLowerCase()==settings_hotkey_toggle_key_virtualmin){e.preventDefault();$('.switch-toggle input[id="open_virtualmin"]').trigger("click")}if(String.fromCharCode(e.which).toLowerCase()==settings_hotkey_toggle_key_cloudmin){e.preventDefault();$('.switch-toggle input[id="open_cloudmin"]').trigger("click")}if(String.fromCharCode(e.which).toLowerCase()==settings_hotkey_toggle_key_usermin){e.preventDefault();$('.switch-toggle input[id="open_usermin"]').trigger("click")}if(String.fromCharCode(e.which).toLowerCase()==settings_hotkey_toggle_key_webmail){e.preventDefault();$('.switch-toggle input[id="open_webmail"]').trigger("click")}if(String.fromCharCode(e.which).toLowerCase()==settings_hotkey_toggle_key_night_mode){e.preventDefault();theme_toggle_night_mode()}if(String.fromCharCode(e.which).toLowerCase()==settings_hotkey_navigation&&window.matchMedia("(min-width: 1080px)").matches){e.preventDefault();$('aside [data-collapse-trigger="1"]').addClass("m").trigger("click")}if(String.fromCharCode(e.which).toLowerCase()==settings_hotkey_slider&&window.matchMedia("(min-width: 1366px)").matches){e.preventDefault();$('[data-trigger="side_slider_pinned"]').trigger("click")}if(String.fromCharCode(e.which).toLowerCase()==settings_hotkey_toggle_slider){e.preventDefault();$(".right-side-tabs-toggler:not(.hidden) .btn-menu-toggler").trigger("click")}if(String.fromCharCode(e.which).toLowerCase()==settings_hotkey_reload&&$('.user-links a[data-refresh="true"]')){e.preventDefault();page_refresh()}if(String.fromCharCode(e.which).toLowerCase()==settings_hotkey_shell2&&theme_shortcuts_modifier_unique(e)&&(core.moduleAvailable("shell")==1||plugins.shell.type())){e.preventDefault();if(plugins.shell.status()){plugins.shell.close()}else{plugins.shell.open()}return}if(String.fromCharCode(e.which).toLowerCase()==settings_hotkey_sysinfo){e.preventDefault();if(plugins.navigation.switch.dashboard.get()==true){plugins.navigation.switch.dashboard.set()}else{get_pjax_content(v___location_prefix+"/sysinfo.cgi")}}if(String.fromCharCode(e.which).toLowerCase()==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();$(".form-control.sidebar-search").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(get_server_data("level"))}}function theme_updating(){return theme_message_exists("themeUpgrade")}function theme_message_exists(e){return typeof window["Messenger_"+e]!="undefined"}function theme_message_dismiss(e){if(typeof window["Messenger_"+e]!="undefined"){window["Messenger_"+e].hide();delete window["Messenger_"+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",d=""+'