diff --git a/unauthenticated/js/bundle.min.js b/unauthenticated/js/bundle.min.js index 90b8a8f2f..a2e3e9895 100644 --- a/unauthenticated/js/bundle.min.js +++ b/unauthenticated/js/bundle.min.js @@ -194,16 +194,16 @@ function(t,e){"object"==typeof module&&module.exports?module.exports=e():"functi * Copyright Ilia Rostovtsev * Licensed under MIT (https://github.com/qooob/authentic-theme/blob/master/LICENSE) */ -const browser={detect:{internet_explorer:function(){var e=0,t=/MSIE (\d+\.\d+);/.test(navigator.userAgent),a=!!navigator.userAgent.match(/Trident\/7.0/),n=navigator.userAgent.indexOf("rv:11.0");return t&&(e=new Number(RegExp.$1)),-1!=navigator.appVersion.indexOf("MSIE 10")&&(e=10),a&&-1!=n&&(e=11),e},safari:function(e){var t=window.navigator.userAgent,a=!(!t.match(/iPad/i)&&!t.match(/iPhone/i)||!t.match(/WebKit/i)||t.match(/CriOS/i)||t.match(/OPiOS/i)),n=navigator.vendor&&navigator.vendor.indexOf("Apple")>-1&&navigator.userAgent&&!navigator.userAgent.match("CriOS");return e?a:n}},storage:{size:function(e){var t=new String,a=e?"MB":"KB";for(var n in window.localStorage)window.localStorage.hasOwnProperty(n)&&(t+=window.localStorage[n]);return t?((3+16*t.length/8192)/(e?1024:1)).toFixed(2)+" "+a:"Empty (0 "+a+")"}}},Convert={arrFlip:function(e){var t,a={};for(t in e)e.hasOwnProperty(t)&&(a[e[t]]=t);return a},uriDecodeComponent:function(e,t){var a,n,r,i=new String,o=0;if(void 0===t&&(t=0),a=e?e.split(/(%(?:d0|d1)%.{2})/):[],$.isEmptyObject(a))return e;for(n=a.length;o":">",'"':""","'":"'","=":"="};return String(e).replace(/[&<>"'=]/g,function(e){return t[e]})},htmlUnEscape:function(e){var t=[["amp","&"],["apos","'"],["#x27","'"],["#x2F","/"],["#39","'"],["#47","/"],["#61","="],["lt","<"],["gt",">"],["nbsp"," "],["quot",'"']];if(e)for(var a=0,n=t.length;a").html(e).text()},pathnamePopLast:function(e){var t,a=~e.indexOf("%2F")?"%2F":"/",n=e.split(a);return n.pop(),t=n.join(a),t?t:"/"},strUpFirst:function(e){return e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()},strUpInitial:function(e){return e.length?this.strUpFirst(e.toLowerCase()):e}},Core={var:{page_user_inactive:1,language_strings:0,available_modules:0,slider_pinned:-1,level:-1},fnExtend:function(e,t){window[e]=function(e){return function(){e(),t()}}(window[e])},linkSameOrigin:function(e){return e.attr("href")&&(e.attr("href").match("^http:")||e.attr("href").match("^https:")||e.attr("href").match("^ftp:")||e.attr("href").match("^ftps:"))&&URI(e.attr("href")).hostname()!=v___location_hostname||e.attr("data-href")&&(e.attr("data-href").match("^http:")||e.attr("data-href").match("^https:")||e.attr("data-href").match("^ftp:")||e.attr("data-href").match("^ftps:"))&&URI(e.attr("data-href")).hostname()!=v___location_hostname?0:1},moduleAvailable:function(e){var t=Core.var.available_modules;return t=t?t:get_server_data("available-modules"),void 0!=get_server_data(e)?Test.true(get_server_data(e)):$.inArray(e,t)>-1},curModuleFileQuery:function(e,t,a){return $('body[class*="'+e+'"]').length&&v___location_file==t&&v___location_query&&v___location_query.indexOf(a)!==-1},curModuleFile:function(e,t){return $('body[class*="'+e+'"]').length&&v___location_file==t},curModule:function(e){return $('body[class*="'+e+'"]').length}},HTML={bottom_progress:function(e,t,a){return'
'+(a?'
':"")+'
'+(a?"":"1%")+(a?'':"")+'
'},label:{temperature:function(e,t){var a="bg-semi-transparent";return t?e<=30?a:e>30&&e<=60?a:e>60&&e<=80?"bg-warning":e>80?"bg-danger":"":e<=86?a:e>86&&e<=140?a:e>140&&e<=176?"bg-warning":e>176?"bg-danger":""},rpm:function(e){return e<=2*rpmFactor?bg_semi_tr:e>2*rpmFactor&&e<=3*rpmFactor?bg_semi_tr:e>3*rpmFactor&&e<=4*rpmFactor?bg_warn:e>4*rpmFactor?bg_danger:""}},template:{accordion:function(e,t,a,n){for(var r='
',i=0;i
'+a[i]+"
"}return r+=""},page_content_preloader:function(e){return'
 '+e+'
'},reauthenticate:function(e){var t=Test.strContains(get_server_data("webprefix"),"servers/link.cgi")?1:0;return'

'+theme_language("theme_xhred_session_expired")+"

"+theme_language("theme_xhred_session_expired_details")+'
"}}},load={script:function($script,$css,callBack){var head=$("head"),body=$("body"),callBack="object"==typeof callBack&&callBack,css=(0===$css?$script:$css)+"."+v___source_type+".css?"+v___theme_version_plain,js=$script+"."+v___source_type+".js?"+v___theme_version_plain;Test.arrContains(o___gotten_scripts,js)||($css&&head.append(''),$.getScript(js,function(data,textStatus,jqxhr){o___gotten_scripts.push(js),callBack&&$.each(callBack,function(i2,v2){eval(v2)})}))}},page={handle:{content:{preloader:function(e){var t=this,a=$("#content"),n=$(".container-fluid"),r=$(".container-fluid-loading"),i=$("span[data-main_title]").text(),o=HTML.template.page_content_preloader(i);if(e===-1)return a.hasClass("progressing");r.length?(r.remove(),n.removeClass("invisible"),a.removeClass("progressing"),setTimeout(function(){progress.progress()&&progress.end()},100)):(a.addClass("progressing").prepend(o),n.addClass("invisible")),e&&setTimeout(function(){t.preloader()},e)}}},render:{content:{filter:{init:function(e){var t=this,a="container-fluid .nav.nav-tabs",n=$(".__page .dataTables_filter"),r=$(".__page .panel-filter"),i=".panel-filter .panel.panel-default",o=$("body");(n.length||r.length)&&setTimeout(function(){$(".btn-filter-top-right").length||$(".btn-accordion-filter").length||($("#headln2r .btn-group a").addClass("pull-left").attr("style",""),$("#headln2r .btn-group").prepend(''+(e?'':""))),$(".btn-filter-gl").data("title",theme_language("theme_xhred_datatable_filter")),$(".btn-toggle-accordions").data("title",theme_language("theme_xhred_toggle_accordions")),settings_button_tooltip&&$(".btn-group").tooltip({selector:'a[data-toggle="tooltip"][data-skip]',container:"body",delay:{show:800,hide:30}}),t.clear(),$("."+a).length&&(e&&o.on("hide.bs.tab",'a[data-toggle="tab"]',function(e){t.clear()}),o.on("shown.bs.tab",'a[data-toggle="tab"]',function(e){var n=$(e.target).parent(".active");n.data("filter-value")?$(".dataTable-mirror").val(n.data("filter-value")).trigger("keyup"):$(".dataTable-mirror").val("").trigger("keyup"),t.visibility("btn-filter-top-right","btn-accordion-filter","btn-toggle-accordions",a)})),o.undelegate(i,"shown.bs.collapse.config hidden.bs.collapse.config"),o.on("shown.bs.collapse.config hidden.bs.collapse.config",i,function(e){setTimeout(function(){var e=$(".container-fluid").find(".btn-toggle-accordions").find("i");r.find(".panel-collapse").length===r.find(".panel-collapse.in").length?e.addClass("fa-toggle-switch text-light"):e.removeClass("fa-toggle-switch text-light")},10)});var n=$(".btn-toggle-accordions");if(e)$(r).find('a[data-toggle="collapse"]').on("click",function(e){$.trim($(".dataTable-mirror").val()).length&&page.render.content.filter.clear(),e.originalEvent&&$(".btn-toggle-accordions").find("i").removeClass("fa-toggle-switch text-light")});else{$(".dataTables_filter").hide()}$(".filter_mirror_clear").mousedown(function(e){$(e.target).is(".filter_mirror_clear")&&t.clear()}),$(".btn-filter-top-right, .btn-accordion-filter").click(function(e){!$(e.target).is("input")&&$(this).find("label").slideToggle(300,function(){$(this).find("input").focus()})}),n.click(function(e){var a=$(this).find(".fa"),n=$(this).find(".fa-toggle-switch").length?1:0,r=$(".__page .panel-filter:visible");0===n?(r.find(".panel-collapse.in").length,r.find(".panel-collapse").length,r.find(".panel-collapse:not(.in)").filter(function(){$(this).removeData("bs.collapse").collapse({parent:!0,toggle:!1}).collapse("show").removeData("bs.collapse")})):r.find(".panel-collapse.in").filter(function(){"true"!==$(this).attr("aria-static")&&$(this).collapse("hide")}),a.toggleClass("fa-toggle-switch text-light"),void 0!==e.originalEvent&&$(".btn-accordion-filter input").val().length&&t.clear()}),$(".dataTable-mirror").keydown(function(e){76==e.keyCode&&e.ctrlKey&&(e.preventDefault(),e.stopPropagation(),t.clear())}).keyup(function(t){var r=$(this).val(),o=$(".__page .panel-filter:visible");if(e)if(r){$.support.transition&&($.support.transition=!1),n.find(".fa-toggle-switch-off:not(.fa-toggle-switch)").trigger("click"),o.find(".panel tr:not([data-empty-row]):not(.hidden-skip)").addClass("hidden-forged");var s=o.find('.panel tbody tr:containsi("'+r+'")');s.removeClass("hidden-forged"),$.each($(i=" .hidden-dependent-skip"),function(e){$(this).hasClass("hidden-forged")?$(this).nextAll(".hidden-skip").addClass("hidden-forged"):$(this).nextAll(".hidden-skip").removeClass("hidden-forged")});var l=$(".__page .panel-filter:visible");$.each(l.find(".panel"),function(){var e=$(this).find("tr").first().find("td").length;rows=$(this).find("tbody").find("tr:not([data-empty-row])"),hidden_rows=$(this).find("tbody tr:not([data-empty-row]):hidden");var t=$(this).find("tbody tr[data-empty-row]");rows.length===hidden_rows.length?t.length?$(this).find("tbody").find("var[data-query-str]").text(r):$(this).find("tbody").append(''+theme_language("theme_xhred_filter_content_no_matches_query").replace("%str",""+r+"")+""):t.remove()})}else n.find(".fa-toggle-switch").trigger("click"),o.find(".panel tr").removeClass("hidden-forged"),o.find(".panel tr[data-empty-row]").remove(),!$.support.transition&&($.support.transition={end:"webkitTransitionEnd"});else{$("."+a).length?($(".nav-tabs li.active").data("filter-value",r),$(".active .dataTables_filter input").val(r).trigger("keyup")):$(".dataTables_filter input").val(r).trigger("keyup")}var d=".btn-filter-top-right span, .btn-accordion-filter span",c=".btn-filter-top-right i, .btn-accordion-filter i";$.trim($(this).val()).length>0?($(d).removeClass("text-lighter"),$(c).addClass("text-danger")):($(d).addClass("text-lighter"),$(c).removeClass("text-danger"))}),$(".btn-filter-top-right input, .btn-accordion-filter input").blur(function(e){$(this).parent("label").slideToggle(0)}),t.visibility("btn-filter-top-right","btn-accordion-filter","btn-toggle-accordions",a)},0)},visibility:function(e,t,a,n){var r=$("."+e+", ."+t+", ."+a);$("."+n).length&&($(".active .dataTables_filter").length||$(".active #conf-_-gr").length)||!$("."+n).length&&($(".dataTables_filter").length||$("#conf-_-gr").length)?r.show():r.hide()},clear:function(){var e=$(".btn-filter-top-right .dataTable-mirror, .btn-accordion-filter .dataTable-mirror"),t=$(".btn-filter-top-right input, .btn-accordion-filter input");e.val("").trigger("keyup"),t.is(":visible")&&t.trigger("blur"),$(".panel-filter").find("tr[data-empty-row]").remove(),!$.support.transition&&($.support.transition={end:"webkitTransitionEnd"})}}},module_config:function(e){var t=v___page_container.find(".table-title:visible"),a=t.parents(".table:visible"),n=a.parent("div.table-responsive:visible"),r=a.find("tbody > tr > td > table:visible"),i=0,o=1;$.each(r.find("tr"),function(e,t){var a=$(this);a.find(".col_header").length?(i+=1,a.attr("tj",i+":0")):a.attr("tj",i+":1")}).promise().done(function(){var t=$('tr[tj$=":0"]').map(function(){return $.trim($(this).text())});0===t.length&&(t.push(theme_language("theme_xhred_config_configurable_options")),o=0);for(var r=[],i=1;i tr[tj="0:1"]'),l='';l+=s.map(function(){return this.outerHTML}).get().join("\n"),l+="
",r[i-1]=l}var d="conf-_-gr";n.replaceWith(HTML.template.accordion(d,t,r,o?e:[2])),page.render.content.filter.init(1),$(".container-fluid > .panel > .panel-body").on("hide.bs.collapse show.bs.collapse","#"+d,function(){$(".module-help .close-popover-trigger").trigger("click")})})}}},pjax={clear:{modules:function(e){"csf"===v___module&&"function"==typeof __c_____undel&&__c_____undel(e.url),v___module===v___module_file_manager&&"function"==typeof __f_____undel&&(Test.strContains(e.url,v___module_file_manager+"/config.cgi")||Test.strContains(e.url,v___module_file_manager+"/index.cgi")||Test.strContains(e.url,"save_config.cgi")||(jsPanel.closeChildpanels("body"),__f_____undel())),"mysql"!==v___module&&"postgresql"!==v___module||"function"!=typeof __sql_____undel||__sql_____undel(),"syslog"===v___module&&"number"==typeof refreshTimer&&clearInterval(refreshTimer)}}},progress_percent={body:"body",control:function(e,t,a,n){var r=this;$(r.body).find(".bottom_progresses").length||$(r.body).append('
');var i=$(r.body).find(".bottom_progresses");if(!i.find('div[data-progress-id="'+e+'"]').length){if(i.append(HTML.bottom_progress(e,t,n)),n||i.find(".bottom_progress_horizontal").length){i=$(r.body).find(".bottom_progresses");var o=i.find('.bottom_progress:not(".bottom_progress_horizontal")').addClass("no-animation").detach();i.prepend(o)}i.find('div[data-progress-id="'+e+'"]').find(".bottom_progress_cancel").one("click",function(){var e=$(this).parent(),t=e.data("progress-id");e.find(".bottom_progress_level").removeClass("success").addClass("danger"),$(this).remove(),setTimeout(function(){e.remove(),0===i.find("div[data-progress-id]").length&&i.remove()},1e3),window["progress_id_ref_"+t].abort(),n&&window["progress_id_ref_"+t+"_tracker"].abort()})}var s=i.find('div[data-progress-id="'+e+'"]');if(s.find(".bottom_progress_level").css("height",a+"%"),n){var l=s.find(".bottom_progress_overlay"),d=".bottom_progress_";s.find(d+"filename").html(''+Convert.htmlEscape(Convert.textTruncate(n[0],24))).attr("title",Convert.htmlEscape(n[0])),l.find(d+"data").text(n[1]),l.find(d+"percent").text(n[2]+"%")}else s.find(".bottom_progress_overlay").text(a+"%");100==a&&(s.find(".bottom_progress_cancel").remove(),setTimeout(function(){s.remove(),0===i.find("div[data-progress-id]").length&&i.remove()},1e3))}},progress={target:"body",element:"top-aprogress",progress:function(){return!settings_hide_top_loader},start:function(){var e=this;setTimeout(function(){e.progress()&&!$(e.target).find("."+e.element).length&&$(e.target).append('
')},100)},end:function(){0===v___theme_progress?$(this.target).find("."+this.element).remove():setTimeout(function(){v___theme_progress=0},0)}},session={reauthenticate:{start:function(){var e=this,t=e.target;!$("."+t).length&&$.ajax({type:"GET",url:v___location_prefix+"/index.cgi",data:!1,dataType:"text",success:function(a){var n=Test.strContains(a,v___page_signin_form+" pam_");if(!Test.strContains(a,v___page_signin_banner)){var r=$(a).find('input[name="twofactor"]').length,i=e.lock_targets,o=e.lock_type,s=$("body").find(".-shell-port-"),l='',d=$(a).find("._logo_welcome > img").attr("src");$(i).addClass(o),$("body").append(HTML.template.reauthenticate(t)),navigation_render_end(),navigation_detect(),reset_switch_position(),despinnerfy_buttons(),theme_shell_unlock(),theme_shell_close(s),r||$("."+t).find("[data-container-twofactor]").remove(),d&&$("."+t).append(""),$("."+t).find("form").on("submit",function(e){function r(e,a,n,r){if(a){var i="theme_xhred_session_failed"===theme_language(a,1)?theme_language("theme_xhred_session_failed_password"):a;i.endsWith(".")||(i+="."),i=i.replace(/\n/gm,""),p.text(i).addClass("text-danger").removeClass("loading-dots"),d.removeClass("disabled btn-transparent").addClass("btn-success");var o=$(r).find(".alert[data-twofactor]"),s=o.length?$("."+t).find('input[name="twofactor"]'):$("."+t).find('input:not([name="user"]):not([name="twofactor"])');s.addClass("faa-horizontal animated"),s[0].focus(),setTimeout(function(){s.removeClass("faa-horizontal animated")},1e3)}else e&&!n&&(p.text(theme_language("theme_xhred_signing_success")).removeClass("text-danger").removeClass("loading-dots").addClass("text-success"),c.removeClass("fa-lock").addClass("fa-unlock fa-rotate-180 fa-flip-horizontal"),f.text(theme_language("theme_xhred_session_unlocked")),v___available_session=1,setTimeout(function(){session.reauthenticate.end()},1800))}if(e.preventDefault(),e.stopImmediatePropagation(),n){$("."+t).find('form input[name="user"]').attr("name","answer").val(get_server_data("user"))}var i=$(a).find("form").append(l),o=i.attr("action"),s=$("."+t).find("form").serialize(),d=$("."+t).find("[data-submit]"),c=$("."+t+"-header-icon i"),f=$("."+t+"-header-title h3"),p=$("."+t+"-header-title small");d.hasClass("disabled")||(p.text(theme_language("theme_xhred_signing_in")+"").removeClass("text-danger").addClass("loading-dots"),d.addClass("disabled btn-transparent").removeClass("btn-success"),$.ajax({type:"GET",url:o,data:s,dataType:"text",success:function(e){var a=$(e).find(".switch-toggle").text().length,i=$(e).find(".alert span").text(),s=i.length;if(n){var d=$(e).find("form").append(l),c=(d.find('input[name="answer"]').val($("."+t).find('input[type="password"]').val()),d.serialize());$.ajax({type:"GET",url:o,data:c,dataType:"text",success:function(e){a=$(e).find(".switch-toggle").text().length,i=$(e).find(".alert span").text(),s=i.length,r(a,i,s,e)}})}else r(a,i,s,e)}}))})}}})},end:function(){v___available_session=1,$("."+this.target).remove(),$(this.lock_targets).removeClass(this.lock_type)},target:"session-reauthenticate",lock_targets:"aside, aside .navigation, .form-control.sidebar-search, .container-fluid, .right-side-tabs, .right-side-tabs-toggler",lock_type:"pointer-events-none bg-filter-blur2-grayscale75-opacity75 disabled"}},Test={true:function(e){return!/^(false|0)$/i.test(e)&&!!e},false:function(e){return/^(false|0)$/i.test(e)||!e},numeric:function(e){return Number(parseFloat(e))==e},string:function(e){return"string"==typeof e||e instanceof String?1:0},strContains:function(e,t){return"string"==typeof e&&!!~e.indexOf(t)},arrContains:function(e,t,a){return void 0===a&&(a=0),e=$.inArray(t,e),a?e:-1=n},occurrences:function(e,t,a){if(e+="",t+="",t.length<=0)return e.length+1;for(var n=0,r=0,i=a?1:t.length;;){if(!((r=e.indexOf(t,r))>=0))break;++n,r+=i}return n},editing:function(){return $("input:focus").length||$("textarea:focus").length||$('[contenteditable="true"]:focus').length}},time={tictac:function(e){var t="convertible-timestamp-full",a=$("[data-"+t+"]");a.parent().contents().filter(function(){return 3===this.nodeType}).remove(),a.data(t,parseInt(a.data(t))+1),"undefined"!=typeof moment&&a.text(moment.unix(a.data(t)).format(config_portable_theme_locale_format_full)),!e&&setInterval(this.tictac,1e3)},localize:function(){$.each($("x-md-d").add("x-md-t"),function(e,t){var a=t.tagName.endsWith("-d".toUpperCase())?1:0,n=t.outerHTML.indexOf(";1")>-1?1:0,r=t.outerHTML.indexOf(";2")>-1?1:0,i=$(t).text(),o=a?i.split(";")[0]:i,s=config_portable_theme_locale_format_short,l=config_portable_theme_locale_format_long,d=moment.unix(o).format("l"),d=d.indexOf("/")>-1?"/":d.indexOf("-")>-1?"-":".",c=moment.unix(o).format("LT"),f=r?moment.unix(o).format("YYYY["+d+"]MM["+d+"]DD")+" "+c:moment.unix(o).format(n?l?l:"LL":s?s:"L");$(this).replaceWith(a?"-1?' data-placement="auto top" data-container="body" data-toggle="tooltip" data-title="'+moment.unix(o).fromNow()+'"':"")+">"+f+"":c)})}},theme={update:function(e,t){function a(){n.removeClass("pointer-events-none bg-filter-blur-grayscale-opacity50")}var n=$(".container-fluid").add($("aside")).add($("#right-side-tabs")).add($(".right-side-tabs-toggler")),r=1===e?"-release":"-beta";n.addClass("pointer-events-none bg-filter-blur-grayscale-opacity50"),set_onbeforeunload_status(1,0),theme_messenger(''+theme_language("theme_xhred_git_patch_initiated")+" "+theme_language("theme_xhred_global_please_wait")+'   ',1800,"info","themeUpgrade",0),$.ajax({type:"POST",url:v___location_prefix+"/index.cgi?xhr-update=1&xhr-update-type="+r+"&xhr-update-force="+t,data:!1,dataType:"json",success:function(e){if(Test.strContains(e,v___page_signin_form))return void(v___available_session=0);e[0]&&e[0].success?(theme_messenger(''+e[0].success,4,"success","themeUpgrade"),slider_mark_group_notifications_read("authentic_remote_version"),set_server_tmp_var("goto",v___location_prefix+"/sysinfo.cgi"),setTimeout(function(){theme_reload()},2e3)):e[0]&&e[0].no_git?(theme_messenger(''+e[0].no_git,20,"warning","themeUpgrade"),a()):e[0]&&e[0].incompatible?(theme_messenger(''+e[0].incompatible,120,"error","themeUpgrade"),a()):(theme_messenger(''+theme_language("theme_xhred_git_patch_update"),20,"error","themeUpgrade"),a())},error:function(e){theme_messenger(''+theme_language("theme_xhred_git_patch_update"),20,"error","themeUpgrade"),a()},complete:function(e){set_onbeforeunload_status(0,0)}})},version:function(){return v___theme_version},visibility:function(e){0===v___theme_visibility_check&&(v___theme_visibility_check=1,0===e||"object"==typeof stats&&stats.general.enable(),setTimeout(function(){v___theme_visibility_check=0},0))}},quirks={active_element:function(){return document.activeElement&&$(document.activeElement).is("body")?v___page_activeElement:document.activeElement}},regex={matches:function(e,t,a,n){a||(a=1);for(var r,i=[];r=t.exec(e);)i.push(r[a]);return n&&(i=i.slice(-1)[0]),i}},XHR={headers:function(e){return[e.getAllResponseHeaders(),e.getResponseHeader("content-type"),e.getResponseHeader("content-disposition")]},download:function(e,t,a,n){var r,i,o,s;if(n||(headers=this.headers(e),r=headers[2],i=headers[1],o=r&&r.toLowerCase().indexOf("attachment")!==-1,s=i&&i.toLowerCase().indexOf("application/")!==-1),n||o||s){v___theme_progress=1,t&&t.abort();var l,d,c,f;if(n)f=e;else{var p=i?i:"application/octet-stream",g=$(a.target),_=g.is("form");_&&(l=Test.strContains(g.attr("enctype"),"multipart/form-data"),d=l?new FormData(g[0]):g.serialize()),c=[_,g,_?a.target.action:a.url,!!_&&d]}var u=new XMLHttpRequest;u.open(n?"GET":get_pjax_type(c[1]?c[1]:c[2]),n?f:c[2]),u.responseType="blob",u.send(!(n||!c[0])&&c[3]),u.onload=function(e){if(200==this.status){var t=e.target.responseURL;if(t=t?t.substring(t.lastIndexOf("/")+1):"backup",o){var a=/filename[^;=\n]*=((['"]).*?\2|[^;\n]*)/,n=a.exec(r);null!=n&&n[1]&&(t=n[1].replace(/['"]/g,""))}var i=new Blob([this.response],{type:p}),s=document.createElement("a");s.style="display: none",document.body.appendChild(s);var l=window.URL.createObjectURL(i);s.href=l,s.download=t,s.click(),window.URL.revokeObjectURL(l),setTimeout(function(){s.remove()},100)}};var h=0,m=parseInt(1e7*Math.random());window["progress_id_ref_"+m]=u,u.addEventListener("progress",function(e){if(e.lengthComputable){var t=Math.round(100*e.loaded/e.total);progress_percent.control(m,"success",t)}0===h&&(setTimeout(function(){page_remove_progress()},1500),h++)},!1)}return n||o||s}};function addmodule(e,t){return adduser(e,t),!1}function addgroup(e,t){return adduser(e,t),!1}function adduser(e,t){return $v__mpp__g_olt=0,$('.mppopup input[data-role="tagsinput"]').tagsinput("add",e),setTimeout(function(){v__mpp__ml_t__e||($(".mppopup_filter_input").val(""),$(".mppopup_filter_input").focus().trigger("keyup")),v__mpp__ml_t__e=0},440),!1}function parentdir(e){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){return $data_mppopup_value.val(e),!1}function filter_match(e,t,i){t="",i=i||!1;var a=function(e){e=e||!1;var a=$(".mppopup table tbody tr");if(a.length>0)for(var n=0;n0)for(var s=0;s]*>/gi,""),""!==l&&(l=l.toLowerCase(),l.match(e.toLowerCase())&&(n[s].style.display=""))}}}else a(!0)}function tab_action(e,t){document.forms[0]&&document.forms[0][e]&&(document.forms[0][e].value=t)}function hidden_opener(e,t){0===$("#"+e).parent(".opener_container").length&&$("#"+e).wrapAll('
'),$("#"+e).hasClass("opener_shown")?($("#"+e).parent(".opener_container").prev(".opener_extra_container.opener_extra_container_style").find(".opener_extra_container_a_style").removeClass("opener_container_opened").addClass("opener_container_closed"),$("#"+e).parent(".opener_container").prev("p").find(".opener_extra_container_a_style").removeClass("opener_container_opened").addClass("opener_container_closed"),$("#"+e).parent(".opener_container").parent("tr").prev("tr").find("td a:nth-child(1)").removeClass("opener_container_opened").addClass("opener_container_closed"),$("#"+e).parent(".opener_container").show().find("#"+e).slideUp($settings_animation_tabs_slide_time,function(){$("#"+e).removeClass("opener_shown").addClass("opener_hidden").parent('.opener_container:not(".opener_sub_container")').hide(),$("#"+e).parent(".opener_sub_container").removeClass("margined-top")})):($("#"+e).parent(".opener_container").prev(".opener_extra_container.opener_extra_container_style").find(".opener_extra_container_a_style").addClass("opener_container_opened").removeClass("opener_container_closed"),$("#"+e).parent(".opener_container").prev("p").find(".opener_extra_container_a_style").addClass("opener_container_opened").removeClass("opener_container_closed"),$("#"+e).parent(".opener_container").parent("tr").prev("tr").find("td a:nth-child(1)").addClass("opener_container_opened").removeClass("opener_container_closed"),$("#"+e).slideUp(0).removeClass("opener_hidden").addClass("opener_shown").parent(".opener_container").slideDown($settings_animation_tabs_slide_time).find(".opener_shown").slideDown($settings_animation_tabs_slide_time),$("#"+e).parent(".opener_sub_container").addClass("margined-top"))}function select_mode(e){var t=$("aside form").length;for(i=0;i-1?0:1)?e.serialize():new FormData(e[0])}function page_extended(){return"settings-upload.cgi"===v___location_file||"settings-upload_save.cgi"===v___location_file||"settings-editor_read.cgi"===v___location_file||"settings-editor_write.cgi"===v___location_file||"settings-favorites_save.cgi"===v___location_file?1:0}function check_bundle(e){(Test.strContains(e,"mysql")||Test.strContains(e,"postgresql"))&&get_bundle_sql(),Test.strContains(e,v___module_file_manager)&&get_bundle_file_manager(),Test.strContains(e,"csf")&&get_bundle_csf()}function get_bundle_csf(){var e=$("head"),t=v___server_extensions_path+"/csf/csf."+v___source_type+".css?"+v___theme_version_plain,i=v___server_extensions_path+"/csf/csf."+v___source_type+".js?"+v___theme_version_plain;Test.arrContains(o___gotten_scripts,i)||(e.append(''),$.getScript(""+i,function(e,t,a){o___gotten_scripts.push(i)}))}function get_bundle_file_manager(e){var t=($("head"),v___server_extensions_path+"/file-manager/file-manager."+v___source_type+".js?"+v___theme_version_plain);Test.arrContains(o___gotten_scripts,t)||$.getScript(""+t,function(i,a,n){o___gotten_scripts.push(t),e&&___f__tw()})}function get_bundle_sql(){var e=($("head"),v___server_extensions_path+"/sql."+v___source_type+".js?"+v___theme_version_plain);Test.arrContains(o___gotten_scripts,e)||$.getScript(""+e,function(t,i,a){o___gotten_scripts.push(e)})}function theme_open_new_tab(e,t){1!==t&&(e=Test.strContains(e,v___location_origin)?e:v___location_origin+(e.startsWith("/")?e:"/"+e)),$("body").append(''),$("#theme_open_new_tab").simulateUserClick().remove()}function theme_to_new_tab(){$.each($('a[href*="virtualmin-awstats/view.cgi?config="], .virtualmin-awstats a[href*="view.cgi?config="] '),function(){$(this).addClass("--to-new-tab")})}function theme_reload(){window.location.href=location.origin+v___location_prefix}function theme_update_notice(e){0===$("#update_notice").length&&$.ajax({type:"POST",url:v___location_prefix+"/index.cgi?xhr-get_update_notice=1",success:function(t){if(Test.strContains(t,v___page_signin_form))return void(v___available_session=0);$("body").prepend(t);var i=$("#update_notice");e&&i.addClass("r"),i.modal("show")},error:function(e){}})}function theme_inject_tooltip(e,t,i,a,n){var s=v___initial_load?3e3:0,_=e;return e=theme_language(e)||e,t||(t="body"),i||(i="auto top"),a||(a="tooltip"),n||(n=600),s&&setTimeout(function(){var e=$('[data-target-tooltip-callback="'+_+'"]');e.attr("data-title",theme_language(_)),e.tooltip({container:t,placement:i,delay:{show:n,hide:20}})},s),' data-container="'+t+'" data-placement="'+i+'" data-toggle="'+a+'" data-title="'+e+'"'}function theme_title_generate(){if(v___available_navigation){var e=$("#headln2c span[data-main_title]").text()||$('.panel-heading font[size="+2"]').text();if($('li.sub_active a[href*="'+v___module_file_manager+'"]').length){var t=v___module_file_manager;$('body[class*="'+t+'"] .active form input#path').val()?document.title=Convert.uriDecodeComponent($('body[class*="'+t+'"] .active form input#path').val())+" - "+$("li.sub_active a").text()+" — "+v___title_initial:document.title=$("li.sub_active a").text()+" — "+v___title_initial}else if(($t_uri_virtualmin||$t_uri_cloudmin)&&$("aside select option:checked").text()&&$("aside select option:checked").text().length)if(e&&e.length){var i=$("#webmin_search_form").parent("li").prevAll();i.has(".sub_active, .current-large").length?document.title=$("aside select option:checked").text()+" - "+e+" — "+v___title_initial:document.title=e+" — "+v___title_initial}else document.title=get_navigation_module_name()+" — "+v___title_initial;else $t_uri_webmail?e&&e.length?document.title=e+" - Mail — "+v___title_initial:document.title=get_navigation_module_name()+" — "+v___title_initial:e&&e.length?document.title=e+" — "+v___title_initial:document.title=v___title_initial;var a=$(".right-side-tabs .list-group-item:not(.no-notifications, .opacity-0_3)").length;settings_side_slider_enabled&&settings_side_slider_notifications_enabled?titlenotifier.set(a):titlenotifier.set(0)}}function navigation_clear(){var e=".navigation";$(e+" li.has-sub").removeClass("sub_active"),$(e+" > li:not('.has-sub')").removeClass("sub_active").find("span.current-large").remove(),$(e+" > li > ul.sub > li").removeClass("sub_active").find("span.current").remove(),$(e+" > li.has-sub").removeClass("active"),$(e+" > li > ul.sub").hide(),$(e+" > li > a > i.fa.fa-folder-open-o").removeClass("fa-folder-open-o")}function navigation_detect(e,t){if(Test.arrContains(["webmin_search.cgi"],v___location_file))return void navigation_clear();if(!v___blocked_navigation){if(void 0===t){var i=1,a=$('.navigation a[href*="'+v___location_path+'"]:not([data-parent-hidden]):first');$('.navigation a[href^="'+v___location_resource+'"]:not([data-parent-hidden]):first').length?(e=v___location_resource,i=0):Test.strContains(v___location_file,"cgi")&&a.length&&(e=a.attr("href"),i=0,"save_log.cgi"===v___location_file&&Test.strContains(v___location_query,"error")&&Test.strContains(e,"_log")&&(Test.strContains(e,"file=")||Test.strContains(e,"extra="))&&(e=$('.navigation a[href*="'+v___location_path+'"][href*="error"]:not([data-parent-hidden]):first').attr("href")));var e=e?e.replace("/edit_users.cgi","/list_users.cgi").replace("/edit_user.cgi","/list_users.cgi").replace("/edit_alias.cgi","/list_aliases.cgi").replace("/edit_database.cgi","/list_databases.cgi").replace("/save_database.cgi","/list_databases.cgi").replace("/edit_script.cgi","/list_scripts.cgi").replace("/script_form.cgi","/list_scripts.cgi"):e;!i||"config.cgi"!==v___location_file&&"uconfig.cgi"!==v___location_file||(e=$t_uri_virtualmin?v___location_prefix+"/config.cgi?virtual-server":$t_uri_cloudmin?v___location_prefix+"/config.cgi?server-manager":v___location_prefix+"/"+v___location_query+"/");var n=$t_uri_webmin||$t_uri_usermin;if(!e&&n)if(Test.strContains(v___location_file,".cgi")&&!Test.strContains(v___location_file,"sysinfo.cgi"))e=v___location_path.replace(v___location_file,""),page_extended()&&(e=v___location_prefix+"/webmin/");else if(!e){var s=new RegExp("^"+v___location_prefix,"i");e=get_server_data("data-uri").replace(s,"").split("/").filter(function(e){return 0!==e.length})[0],e=v___location_prefix+"/"+e}targeted_menu_link=$('.navigation a[href^="'+e+'"]:not([data-parent-hidden]):first'),targeted_menu_link.length&&navigation_clear()}else targeted_menu_link=$('.navigation a[href^="'+e+'"]:not([data-parent-hidden]):first'),targeted_menu_link.length&&navigation_clear();targeted_menu_link.parent("li:not(.menu-exclude):not(.user-link)").addClass("sub_active").append('').parent("ul.sub").show().parent("li:not(.menu-exclude):not(.user-link)").prev("li").addClass("active")}}function navigation_render_start(){$(".mCSB_container, .mCSB_dragger").css("top","0"),!$("#_menu_loader").length&&$("body ul.navigation").before(''),setTimeout(function(){$("#loader-close-sm").removeClass("hidden"),$("#loader-close-sm i").trigger("click")},4200),$("body aside .mCSB_scrollTools, body ul.navigation, body ul.user-links").css("visibility","hidden"),$("aside ul.user-html").addClass("invisible")}function navigation_render_end(){$("aside ul.user-html").removeClass("invisible"),$("body aside .mCSB_scrollTools, body ul.navigation, body ul.user-links").css("visibility","visible"),$("#_menu_loader").remove(),navigation_init_select(),navigation_select_label(),bind_sameorigin(1),theme_to_new_tab()}function navigation_display(){"none"==$("aside").css("transform")&&"1"!=$("html").attr("data-navigation-collapsed")&&($("aside").transition({x:settings_leftmenu_width},2.5*$settings_animation_left_slide_time,function(){$(".__logo")&&"none"==$(".__logo").css("transform")&&!$(".mobile-menu-toggler:visible").length&&$(".__logo").transition({y:"-140px"},1.5*$settings_animation_left_slide_time)}),setTimeout(function(){$(".switch-toggle").css("display","table")},1))}function navigation_hide(){var e="mobile-menu-toggler",t=$(quirks.active_element()).is('input[name="settings_navigation_always_collapse"]');"function"==typeof jQuery().transition&&$("."+e+":visible").length&&$("."+e).attr("style")&&$("."+e).attr("style").indexOf("ease")==-1&&($(".__logo")&&$(".__logo").transition({y:0},1.5*$settings_animation_left_slide_time),$("aside, ."+e).transition({x:0},t?0:$settings_animation_left_slide_time,function(){$("."+e).removeClass("selected").find("button").removeClass("btn-primary").addClass("btn-primary"),$(".switch-toggle").css("display","none"),$("aside").addClass("hidden-xs")}))}function navigation_init_select(){$(".form-control.sidebar-search").is(":focus")||$.each($("aside select > option"),function(){var e=$(this).text().match(/^\s{0,4}/)[0].length,t=$(this).text();settings_leftmenu_vm_cm_dropdown_icons&&(4===e&&t.indexOf("↱")===-1?$(this).html("    ↱ "+t.replace(/\s/g,"")):2===e&&t.indexOf("↴")===-1&&$(this).html("  ↴ "+t.replace(/\s/g,"")))}).promise().done(function(){var e=$("aside select");e.removeAttr("id"),e.length&&(e.removeAttr("onchange disabled"),!!e.data("select2")&&e.select2("destroy"),e.unbind("select2:select"),e.select2({minimumResultsForSearch:$.browser.mobile?-1:5}),setTimeout(function(){var t=e.data("select2");t&&(t.open(),t.close())},1),e.on("select2:select",function(e){"dom"===e.currentTarget.name?(get_navigation_menu_virtualmin(e.currentTarget.value),get_default_virtualmin_content(e.currentTarget.value)):"sid"===e.currentTarget.name&&(get_navigation_menu_cloudmin(e.currentTarget.value),get_default_cloudmin_content(e.currentTarget.value))}),e.on("select2:open",function(e){$.each($("select > option"),function(){if($(this).attr("style")&&$(this).attr("style").indexOf("italic")>-1){var e=$(this);setTimeout(function(){$("body").find('li[id$="'+e.attr("value")+'"]').attr("style","color: #"+(v___theme_night_mode_enabled?"9a5150":"e97471")+" !important;")},1)}})}),1===$("aside select option").length&&($(".select2 span").css("cursor","default"),$(".select2 .select2-selection__arrow").remove(),e.on("select2:open",function(){$(".select2-container .select2-dropdown").css("opacity","0")})),$.each($("aside select > option"),function(){$(this).attr("style")&&$(this).attr("style").indexOf("italic")>-1&&$(".select2-selection > .select2-selection__rendered").text().trim()==$(this).text().trim()&&$(".select2-selection > .select2-selection__rendered").attr("style","color: #"+(v___theme_night_mode_enabled?"9a5150":"e97471")+" !important;")}))})}function navigation_links(){setTimeout(function(){$("a[href]"+($__theme_event_deselectors+$__theme_default_deselectors)+':not(.--to-new-tab):not([href*="/file/"]):not([href*="history.cgi"])').each(function(){location.hostname!==this.hostname&&this.hostname.length||$(this).parents(".popover-content").length||$(this).attr("href",navigation_trigger($(this).attr("href"),2))})},400)}function navigation_trigger(e,t){return e&&(e=e.replace(/([?&])(_pjax|_)=[^&]*/g,"")),1===t&&(e=e.replace("?"+$__theme_navigation,"").replace("&"+$__theme_navigation,"")),2===t&&(Test.strContains(e,$__theme_navigation)||(e=Test.strContains(e,"?")?e+"&"+$__theme_navigation:e+"?"+$__theme_navigation)),e}function navigation_init_autocomplete(e,t){if("c"!=e||($(".autocomplete-suggestions").remove(),$(".form-control.sidebar-search").removeAttr("disabled"),$(".form-control.sidebar-search").autocomplete("dispose"),$(".form-control.sidebar-search").val(""),!t)){var i={};$.each($('li:not(.menu-exclude):not(.user-link) > ul[id^="global_"].sub > li:not(.menu-exclude):not(.user-link) > a'),function(e,t){i[("/"==$(this).attr("href").substring(0,1)?"":"/")+$(this).attr("href")]=$.trim($(this).text())}),$('li > a[target="page"][data-href="/virtual-server/index.cgi"], li:not(.menu-exclude):not(.user-link) > a[target="page"][data-href="/sysinfo.cgi"], li:not(.menu-exclude):not(.user-link) > a[target="page"][data-href="/virtual-server/pro/history.cgi"], li:not(.menu-exclude):not(.user-link) > a[target="page"][data-href="/mailbox/list_folders.cgi"], li:not(.menu-exclude):not(.user-link) > a[target="page"][data-href="/mailbox/list_ifolders.cgi"], li:not(.menu-exclude):not(.user-link) > a[target="page"][data-href="/mailbox/list_addresses.cgi"], li:not(.menu-exclude):not(.user-link) > a[target="page"][data-href="/filter/edit_forward.cgi"], li:not(.menu-exclude):not(.user-link) > a[target="page"][data-href="/filter/edit_auto.cgi"], li:not(.menu-exclude):not(.user-link) > a[target="page"][data-href="/filter/edit_auto.cgi"], li:not(.menu-exclude):not(.user-link) > a[target="page"][data-href="/filter/"], li:not(.menu-exclude):not(.user-link) > a[target="page"][data-href="/mailbox/edit_sig.cgi"]').each(function(e,t){i[$(this).attr("data-href")]=$.trim($(this).text())});var a=$.map(i,function(e,t){if("undefined"!=t)return{value:e,url:t,data:{category:get_navigation_module_name()}}}),n={};v___location_path!=v___location_prefix+"/custom/"&&v___location_path!=v___location_prefix+"/custom/index.cgi"&&v___location_path!=v___location_prefix+"/backup-config/"&&v___location_path!=v___location_prefix+"/backup-config/index.cgi"&&v___location_path!=v___location_prefix+"/usermin/"&&v___location_path!=v___location_prefix+"/usermin/index.cgi"&&v___location_path!=v___location_prefix+"/webmin/"&&v___location_path!=v___location_prefix+"/webmin/index.cgi"&&v___location_path!=v___location_prefix+"/acl/"&&v___location_path!=v___location_prefix+"/acl/index.cgi"&&v___location_path!=v___location_prefix+"/init/"&&v___location_path!=v___location_prefix+"/init/index.cgi"&&v___location_path!=v___location_prefix+"/mount/"&&v___location_path!=v___location_prefix+"/mount/index.cgi"&&v___location_path!=v___location_prefix+"/quota/"&&v___location_path!=v___location_prefix+"/quota/index.cgi"&&v___location_path!=v___location_prefix+"/fsdump/"&&v___location_path!=v___location_prefix+"/fsdump/index.cgi"&&v___location_path!=v___location_prefix+"/inittab/"&&v___location_path!=v___location_prefix+"/inittab/index.cgi"&&v___location_path!=v___location_prefix+"/logrotate/"&&v___location_path!=v___location_prefix+"/logrotate/index.cgi"&&v___location_path!=v___location_prefix+"/mailcap/"&&v___location_path!=v___location_prefix+"/mailcap/index.cgi"&&v___location_path!=v___location_prefix+"/pam/"&&v___location_path!=v___location_prefix+"/pam/index.cgi"&&v___location_path!=v___location_prefix+"/proc/"&&v___location_path!=v___location_prefix+"/proc/index_tree.cgi"&&v___location_path!=v___location_prefix+"/proc/index_user.cgi"&&v___location_path!=v___location_prefix+"/proc/index_size.cgi"&&v___location_path!=v___location_prefix+"/proc/index_cpu.cgi"&&v___location_path!=v___location_prefix+"/proc/index_tree.cgi"&&v___location_path!=v___location_prefix+"/proc/index_search.cgi"&&v___location_path!=v___location_prefix+"/cron/"&&v___location_path!=v___location_prefix+"/cron/index.cgi"&&v___location_path!=v___location_prefix+"/syslog/"&&v___location_path!=v___location_prefix+"/syslog/index.cgi"&&v___location_path!=v___location_prefix+"/useradmin/"&&v___location_path!=v___location_prefix+"/useradmin/index.cgi"&&v___location_path!=v___location_prefix+"/apache/"&&v___location_path!=v___location_prefix+"/apache/index.cgi"&&v___location_path!=v___location_prefix+"/bind8/"&&v___location_path!=v___location_prefix+"/bind8/index.cgi"&&v___location_path!=v___location_prefix+"/dhcpd/"&&v___location_path!=v___location_prefix+"/dhcpd/index.cgi"&&v___location_path!=v___location_prefix+"/dovecot/"&&v___location_path!=v___location_prefix+"/dovecot/index.cgi"&&v___location_path!=v___location_prefix+"/ldap-server/"&&v___location_path!=v___location_prefix+"/ldap-server/index.cgi"&&v___location_path!=v___location_prefix+"/virtualmin-nginx/"&&v___location_path!=v___location_prefix+"/virtualmin-nginx/index.cgi"&&v___location_path!=v___location_prefix+"/fetchmail/"&&v___location_path!=v___location_prefix+"/fetchmail/index.cgi"&&v___location_path!=v___location_prefix+"/mysql/"&&v___location_path!=v___location_prefix+"/mysql/index.cgi"&&v___location_path!=v___location_prefix+"/mysql/edit_dbase.cgi"&&v___location_path!=v___location_prefix+"/postgresql/"&&v___location_path!=v___location_prefix+"/postgresql/index.cgi"&&v___location_path!=v___location_prefix+"/postgresql/edit_dbase.cgi"&&v___location_path!=v___location_prefix+"/postfix/"&&v___location_path!=v___location_prefix+"/postfix/index.cgi"&&v___location_path!=v___location_prefix+"/procmail/"&&v___location_path!=v___location_prefix+"/procmail/index.cgi"&&v___location_path!=v___location_prefix+"/proftpd/"&&v___location_path!=v___location_prefix+"/proftpd/index.cgi"&&v___location_path!=v___location_prefix+"/mailboxes/"&&v___location_path!=v___location_prefix+"/mailboxes/index.cgi"&&v___location_path!=v___location_prefix+"/mailboxes/list_mail.cgi"&&v___location_path!=v___location_prefix+"/mailbox/"&&v___location_path!=v___location_prefix+"/mailbox/index.cgi"&&v___location_path!=v___location_prefix+"/samba/"&&v___location_path!=v___location_prefix+"/samba/index.cgi"&&v___location_path!=v___location_prefix+"/spam/"&&v___location_path!=v___location_prefix+"/spam/index.cgi"&&v___location_path!=v___location_prefix+"/squid/"&&v___location_path!=v___location_prefix+"/squid/index.cgi"&&v___location_path!=v___location_prefix+"/sshd/"&&v___location_path!=v___location_prefix+"/sshd/index.cgi"&&v___location_path!=v___location_prefix+"/webalizer/"&&v___location_path!=v___location_prefix+"/webalizer/index.cgi"&&v___location_path!=v___location_prefix+"/cpan/"&&v___location_path!=v___location_prefix+"/cpan/index.cgi"&&v___location_path!=v___location_prefix+"/htaccess-htpasswd/"&&v___location_path!=v___location_prefix+"/htaccess-htpasswd/index.cgi"&&v___location_path!=v___location_prefix+"/status/"&&v___location_path!=v___location_prefix+"/status/index.cgi"&&v___location_path!=v___location_prefix+"/net/"&&v___location_path!=v___location_prefix+"/net/index.cgi"&&v___location_path!=v___location_prefix+"/tcpwrappers/"&&v___location_path!=v___location_prefix+"/tcpwrappers/index.cgi"&&v___location_path!=v___location_prefix+"/fdisk/"&&v___location_path!=v___location_prefix+"/fdisk/index.cgi"&&v___location_path!=v___location_prefix+"/fail2ban/"&&v___location_path!=v___location_prefix+"/fail2ban/index.cgi"&&v___location_path!=v___location_prefix+"/nis/"&&v___location_path!=v___location_prefix+"/nis/index.cgi"&&v___location_path!=v___location_prefix+"/passwd/"&&v___location_path!=v___location_prefix+"/passwd/index.cgi"||$($(".container-fluid .panel-body a[href]:not([href*='javascript'],[href*='list_users.cgi?dom'],[href*='edit_hdparm.cgi?disk'],[href*='blink.cgi?disk'],[href*='smart-status/index.cgi?drive'],[href*='help.cgi'],[href*='edit_user.cgi?new='],[href*='edit_user.cgi?idx='],[href*='edit_recipe.cgi'],[href*='up.cgi'],[href*='down.cgi'],[href*='virt_index.cgi'],[href*='save_log.cgi'],[href*='backup.cgi'],[href*='activate.cgi'],[href*='#'])")).each(function(e,t){v___location_path==v___location_prefix+"/syslog/"||v___location_path==v___location_prefix+"/syslog/index.cgi"?n["/"+v___location_path_lead_unslashed+$(this).parent("td").next("td.td_tag").next("td.td_tag").next("td.td_tag").find("a").attr("href")]=$.trim($(this).text()):(v___location_path==v___location_prefix+"/backup-config/"||v___location_path==v___location_prefix+"/backup-config/index.cgi"?$description=$.trim($(this).parent("td").next("td.td_tag").next("td.td_tag").text()):v___location_path==v___location_prefix+"/mount/"||v___location_path==v___location_prefix+"/mount/index.cgi"||v___location_path==v___location_prefix+"/quota/"||v___location_path==v___location_prefix+"/quota/index.cgi"?$description=$.trim($(this).parent("td").next("td.td_tag").next("td.td_tag").text()):v___location_path==v___location_prefix+"/fsdump/"||v___location_path==v___location_prefix+"/fsdump/index.cgi"?$description=$.trim($(this).parents("td").next("td").next("td").next("td").find("label").find("tt").find("tt").text()):v___location_path==v___location_prefix+"/proc/"||v___location_path==v___location_prefix+"/proc/index_tree.cgi"||v___location_path==v___location_prefix+"/proc/index_user.cgi"||v___location_path==v___location_prefix+"/proc/index_size.cgi"||v___location_path==v___location_prefix+"/proc/index_cpu.cgi"||v___location_path==v___location_prefix+"/proc/index_tree.cgi"||v___location_path==v___location_prefix+"/proc/index_search.cgi"?v___location_path==v___location_prefix+"/proc/index_size.cgi"||v___location_path==v___location_prefix+"/proc/index_cpu.cgi"?$description=$.trim($(this).parent("td").next("td.td_tag").text())+" — "+$.trim($(this).parent("td").next("td.td_tag").next("td.td_tag").text())+" - "+$.trim($(this).parents("td").next("td").next("td").next("td").text()):v___location_path==v___location_prefix+"/proc/index_search.cgi"?$description=$.trim($(this).parent("td").next("td.td_tag").text())+" — "+$.trim($(this).parent("td").next("td.td_tag").next("td.td_tag").text())+" - "+$.trim($(this).parents("td").next("td").next("td").next("td").next("td").text()):$description=$.trim($(this).parent("td").next("td.td_tag").text())+" — "+$.trim($(this).parents("td").next("td").next("td").next("td").text()):v___location_path==v___location_prefix+"/useradmin/"||v___location_path==v___location_prefix+"/useradmin/index.cgi"?$description=$.trim($(this).parents("td").next("td").find("label").text())+" — "+$(this).text()+":"+$.trim($(this).parents("td").next("td").next("td").find("label").text())+" - "+$.trim($(this).parents("td").next("td").next("td").next("td").next("td").find("label").text())+", "+$.trim($(this).parents("td").next("td").next("td").next("td").next("td").next("td").find("label").text()):v___location_path==v___location_prefix+"/mailboxes/list_mail.cgi"||v___location_path==v___location_prefix+"/mailbox/"||v___location_path==v___location_prefix+"/mailbox/index.cgi"?$description=$.trim($(this).parents("td").next("td").next("td").next("td").find("label").text())+" — "+$.trim($(this).parents("td").next("td").find("label").text())+" ["+$.trim($(this).parents("td").next("td").next("td").find("label").text())+"]":v___location_path==v___location_prefix+"/cpan/"||v___location_path==v___location_prefix+"/cpan/index.cgi"?$description=$.trim($(this).parents("td").next("td").next("td").find("label").text()):v___location_path==v___location_prefix+"/fdisk/"||v___location_path==v___location_prefix+"/fdisk/index.cgi"?$description=$.trim($(this).parent("td").next("td.td_tag").text())+" - "+$.trim($(this).parent("td").next("td.td_tag").next("td.td_tag").text()):$description=$.trim($(this).parent("td").next("td.td_tag").text()),$description?$_description=!0:$_description=!1,n[("/"==$(this).attr("href").substring(0,1)?"":"/")+v___location_directory_unslashed_trail_slashed+$(this).attr("href")]=$.trim($(this).text())+($_description?" (":"")+$description+($_description?")":""))});var s=$.map(n,function(e,t){if("undefined"!=t)return{value:e,url:t,data:{category:get_module_title()}}}),_={};$.each($('li:not(.menu-exclude):not(.user-link) > ul.sub:not([id^="global_"]) > li:not(.menu-exclude):not(.user-link) > a'),function(e,t){_[("/"==$(this).attr("href").substring(0,1)?"":"/")+$(this).attr("href")]=$.trim($(this).text())}),$('li:not(.menu-exclude):not(.user-link) > a[target="page"]:not([data-href="/acl/edit_user.cgi"],[data-href="/virtual-server/index.cgi"],[data-href="/sysinfo.cgi"],[data-href="/virtual-server/pro/history.cgi"], [data-href="/mailbox/list_folders.cgi"], [data-href="/mailbox/list_ifolders.cgi"], [data-href="/mailbox/list_addresses.cgi"], [data-href="/filter/edit_forward.cgi"], [data-href="/filter/edit_auto.cgi"], [data-href="/filter/edit_auto.cgi"], [data-href="/filter/"], [data-href="/mailbox/edit_sig.cgi"])').each(function(e,t){$t_uri_usermin||navigation_dashboard_switch_available()||(_[$(this).attr("data-href")]=$.trim($(this).text()))});var o=$.map(_,function(e,t){if("undefined"!=t&&!Test.strContains(t,"/shell")&&!Test.strContains(t,"shell=1"))return{value:e,url:t,data:{category:$("aside .select2-selection__rendered").text()?''+$("aside .select2-selection__rendered").clone().children().remove().end().text()+"":get_navigation_module_name()}}}),r={};$("aside select option").each(function(){r[$(this).val()+":::"+$(this).parent("select").attr("name")]=$.trim($(this).text())});var l=$.map(r,function(e,t){if("undefined"!=t)return{value:e,url:t,data:{category:$("aside select").data("autocomplete-title")}}}),c=l.concat(s).concat(o).concat(a);$(".form-control.sidebar-search").on("keydown",function(e){34!=e.keyCode&&33!=e.keyCode&&20!=e.keyCode&&17!=e.keyCode&&16!=e.keyCode&&9!=e.keyCode||(e.preventDefault(),e.stopPropagation())}),$(".form-control.sidebar-search").autocomplete({lookup:c,onSelect:function(e){if(navigation_dashboard_switch_available()===!0&&$t_uri_dashboard&&2!=get_access_level()&&4!=get_access_level()&&set_switch_position("webmin"),$(this).val("").blur(),navigation_hide(),"/"==e.url.substring(0,1)){var t=$("body").find('a[href="'+e.url+'"]').attr("target");if(t&&"_parent"==t);else{var i=e.url.indexOf(v___location_prefix)>-1?e.url:v___location_prefix+e.url;if(Test.strContains(v___location_prefix,v___target_servers_index)&&i&&i.endsWith("/servers/"))return;get_onbeforeunload_status()?(event.preventDefault(),get_onbeforeunload_message([],{href:i})):get_pjax_content(i,["reference"])}}else e.url&&e.url.indexOf(":::")>-1&&(navigation_render_start(),$("select").val(e.url.split(":::")[0]).trigger("change").trigger("select2:select"))},groupBy:"category"})}}function navigation_update(e){if(!get_onbeforeunload_status()){var e=void 0===e||e==-1||""==e?$("aside select").val():e,t=$t_uri_virtualmin?"virtualmin":$t_uri_cloudmin?"cloudmin":$t_uri_usermin?"usermin":$t_uri_webmin?"webmin":"mail";"webmin"==t?(set_switch_position("webmin"),get_navigation_menu_webmin("webmin")):"virtualmin"==t?(set_switch_position("virtualmin"),get_navigation_menu_virtualmin(e)):"cloudmin"==t?(set_switch_position("cloudmin"),get_navigation_menu_cloudmin(e)):"usermin"==t?(set_switch_position("usermin"),get_navigation_menu_webmin("usermin")):"mail"==t&&(set_switch_position("webmail"),get_navigation_menu_webmin("webmail"))}}function navigation_select_label(){if($t_uri_cloudmin&&$("aside").find("li.menu-container.menu-status.hidden").find("font").length>0){var e=$("aside").find("li.menu-container.menu-status.hidden").find("font"),t=e.text(),i=e.attr("color");i=i&&(i.indexOf("00ff00")||i.indexOf("008800")||i.indexOf("00aa00"))?"success":i&&(i.indexOf("ff6600")||i.indexOf("ff00ff")||i.indexOf("ff22ff")||i.indexOf("ff44ff"))?"warning":i&&(i.indexOf("ff0000")||i.indexOf("ff1100")||i.indexOf("aa0000")||i.indexOf("ff2200")||i.indexOf("ff4400"))?"danger":"info","Virtualmin"==t&&(t="VM"),setTimeout(function(){var e=$("aside .select2-selection__rendered");if(!e.find(".menu-status-label").length){e.append(''+t+"");var a=$("aside .select2-selection__rendered .menu-status-label");a.animate({opacity:1},500),a.on("mouseover",function(){$(this).removeClass("bg-light-grey")}).on("mouseout",function(){$(this).addClass("bg-light-grey")}),e.on("mouseover",function(){$(this).find(".menu-status-label").removeClass("bg-light-grey")}).on("mouseout",function(){$(this).find(".menu-status-label").addClass("bg-light-grey")})}},300)}}function navigation_form_control(e){var t=$("aside select");e?$.each($("aside").find("forms"),function(){$(this).replaceTagName("form")}).promise().done(function(){navigation_init_select()}):(!!t.data("select2")&&t.select2("destroy"),$.each($("aside").find("form"),function(){$(this).replaceTagName("forms")}))}function navigation_filter_reset(){ +const browser={detect:{internet_explorer:function(){var e=0,t=/MSIE (\d+\.\d+);/.test(navigator.userAgent),a=!!navigator.userAgent.match(/Trident\/7.0/),n=navigator.userAgent.indexOf("rv:11.0");return t&&(e=new Number(RegExp.$1)),-1!=navigator.appVersion.indexOf("MSIE 10")&&(e=10),a&&-1!=n&&(e=11),e},safari:function(e){var t=window.navigator.userAgent,a=!(!t.match(/iPad/i)&&!t.match(/iPhone/i)||!t.match(/WebKit/i)||t.match(/CriOS/i)||t.match(/OPiOS/i)),n=navigator.vendor&&navigator.vendor.indexOf("Apple")>-1&&navigator.userAgent&&!navigator.userAgent.match("CriOS");return e?a:n}},storage:{size:function(e){var t=new String,a=e?"MB":"KB";for(var n in window.localStorage)window.localStorage.hasOwnProperty(n)&&(t+=window.localStorage[n]);return t?((3+16*t.length/8192)/(e?1024:1)).toFixed(2)+" "+a:"Empty (0 "+a+")"}}},Convert={arrFlip:function(e){var t,a={};for(t in e)e.hasOwnProperty(t)&&(a[e[t]]=t);return a},uriDecodeComponent:function(e,t){var a,n,r,i=new String,o=0;if(void 0===t&&(t=0),a=e?e.split(/(%(?:d0|d1)%.{2})/):[],$.isEmptyObject(a))return e;for(n=a.length;o":">",'"':""","'":"'","=":"="};return String(e).replace(/[&<>"'=]/g,function(e){return t[e]})},htmlUnEscape:function(e){var t=[["amp","&"],["apos","'"],["#x27","'"],["#x2F","/"],["#39","'"],["#47","/"],["#61","="],["lt","<"],["gt",">"],["nbsp"," "],["quot",'"']];if(e)for(var a=0,n=t.length;a").html(e).text()},pathnamePopLast:function(e){var t,a=~e.indexOf("%2F")?"%2F":"/",n=e.split(a);return n.pop(),t=n.join(a),t?t:"/"},strUpFirst:function(e){return e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()},strUpInitial:function(e){return e.length?this.strUpFirst(e.toLowerCase()):e}},Core={var:{page_user_inactive:1,language_strings:0,available_modules:0,slider_pinned:-1,level:-1},get_global_vars:function(e){for(var t=[],a=window,n=0;n-1},curModuleFileQuery:function(e,t,a){return $('body[class*="'+e+'"]').length&&v___location_file==t&&v___location_query&&v___location_query.indexOf(a)!==-1},curModuleFile:function(e,t){return $('body[class*="'+e+'"]').length&&v___location_file==t},curModule:function(e){return $('body[class*="'+e+'"]').length}},HTML={bottom_progress:function(e,t,a){return'
'+(a?'
':"")+'
'+(a?"":"1%")+(a?'':"")+'
'},label:{temperature:function(e,t){var a="bg-semi-transparent";return t?e<=30?a:e>30&&e<=60?a:e>60&&e<=80?"bg-warning":e>80?"bg-danger":"":e<=86?a:e>86&&e<=140?a:e>140&&e<=176?"bg-warning":e>176?"bg-danger":""},rpm:function(e){return e<=2*rpmFactor?bg_semi_tr:e>2*rpmFactor&&e<=3*rpmFactor?bg_semi_tr:e>3*rpmFactor&&e<=4*rpmFactor?bg_warn:e>4*rpmFactor?bg_danger:""}},template:{accordion:function(e,t,a,n){for(var r='
',i=0;i
'+a[i]+"
"}return r+=""},page_content_preloader:function(e){return'
 '+e+'
'},reauthenticate:function(e){var t=Test.strContains(get_server_data("webprefix"),"servers/link.cgi")?1:0;return'

'+theme_language("theme_xhred_session_expired")+"

"+theme_language("theme_xhred_session_expired_details")+'
"}}},load={script:function($script,$css,callBack){var head=$("head"),body=$("body"),callBack="object"==typeof callBack&&callBack,css=(0===$css?$script:$css)+"."+v___source_type+".css?"+v___theme_version_plain,js=$script+"."+v___source_type+".js?"+v___theme_version_plain;Test.arrContains(o___gotten_scripts,js)||($css&&head.append(''),$.getScript(js,function(data,textStatus,jqxhr){o___gotten_scripts.push(js),callBack&&$.each(callBack,function(i2,v2){eval(v2)})}))}},page={handle:{content:{preloader:function(e){var t=this,a=$("#content"),n=$(".container-fluid"),r=$(".container-fluid-loading"),i=$("span[data-main_title]").text(),o=HTML.template.page_content_preloader(i);if(e===-1)return a.hasClass("progressing");r.length?(r.remove(),n.removeClass("invisible"),a.removeClass("progressing"),setTimeout(function(){progress.progress()&&progress.end()},100)):(a.addClass("progressing").prepend(o),n.addClass("invisible")),e&&setTimeout(function(){t.preloader()},e)}}},render:{content:{filter:{init:function(e){var t=this,a="container-fluid .nav.nav-tabs",n=$(".__page .dataTables_filter"),r=$(".__page .panel-filter"),i=".panel-filter .panel.panel-default",o=$("body");(n.length||r.length)&&setTimeout(function(){$(".btn-filter-top-right").length||$(".btn-accordion-filter").length||($("#headln2r .btn-group a").addClass("pull-left").attr("style",""),$("#headln2r .btn-group").prepend(''+(e?'':""))),$(".btn-filter-gl").data("title",theme_language("theme_xhred_datatable_filter")),$(".btn-toggle-accordions").data("title",theme_language("theme_xhred_toggle_accordions")),settings_button_tooltip&&$(".btn-group").tooltip({selector:'a[data-toggle="tooltip"][data-skip]',container:"body",delay:{show:800,hide:30}}),t.clear(),$("."+a).length&&(e&&o.on("hide.bs.tab",'a[data-toggle="tab"]',function(e){t.clear()}),o.on("shown.bs.tab",'a[data-toggle="tab"]',function(e){var n=$(e.target).parent(".active");n.data("filter-value")?$(".dataTable-mirror").val(n.data("filter-value")).trigger("keyup"):$(".dataTable-mirror").val("").trigger("keyup"),t.visibility("btn-filter-top-right","btn-accordion-filter","btn-toggle-accordions",a)})),o.undelegate(i,"shown.bs.collapse.config hidden.bs.collapse.config"),o.on("shown.bs.collapse.config hidden.bs.collapse.config",i,function(e){setTimeout(function(){var e=$(".container-fluid").find(".btn-toggle-accordions").find("i");r.find(".panel-collapse").length===r.find(".panel-collapse.in").length?e.addClass("fa-toggle-switch text-light"):e.removeClass("fa-toggle-switch text-light")},10)});var n=$(".btn-toggle-accordions");if(e)$(r).find('a[data-toggle="collapse"]').on("click",function(e){$.trim($(".dataTable-mirror").val()).length&&page.render.content.filter.clear(),e.originalEvent&&$(".btn-toggle-accordions").find("i").removeClass("fa-toggle-switch text-light")});else{$(".dataTables_filter").hide()}$(".filter_mirror_clear").mousedown(function(e){$(e.target).is(".filter_mirror_clear")&&t.clear()}),$(".btn-filter-top-right, .btn-accordion-filter").click(function(e){!$(e.target).is("input")&&$(this).find("label").slideToggle(300,function(){$(this).find("input").focus()})}),n.click(function(e){var a=$(this).find(".fa"),n=$(this).find(".fa-toggle-switch").length?1:0,r=$(".__page .panel-filter:visible");0===n?(r.find(".panel-collapse.in").length,r.find(".panel-collapse").length,r.find(".panel-collapse:not(.in)").filter(function(){$(this).removeData("bs.collapse").collapse({parent:!0,toggle:!1}).collapse("show").removeData("bs.collapse")})):r.find(".panel-collapse.in").filter(function(){"true"!==$(this).attr("aria-static")&&$(this).collapse("hide")}),a.toggleClass("fa-toggle-switch text-light"),void 0!==e.originalEvent&&$(".btn-accordion-filter input").val().length&&t.clear()}),$(".dataTable-mirror").keydown(function(e){76==e.keyCode&&e.ctrlKey&&(e.preventDefault(),e.stopPropagation(),t.clear())}).keyup(function(t){var r=$(this).val(),o=$(".__page .panel-filter:visible");if(e)if(r){$.support.transition&&($.support.transition=!1),n.find(".fa-toggle-switch-off:not(.fa-toggle-switch)").trigger("click"),o.find(".panel tr:not([data-empty-row]):not(.hidden-skip)").addClass("hidden-forged");var s=o.find('.panel tbody tr:containsi("'+r+'")');s.removeClass("hidden-forged"),$.each($(i=" .hidden-dependent-skip"),function(e){$(this).hasClass("hidden-forged")?$(this).nextAll(".hidden-skip").addClass("hidden-forged"):$(this).nextAll(".hidden-skip").removeClass("hidden-forged")});var l=$(".__page .panel-filter:visible");$.each(l.find(".panel"),function(){var e=$(this).find("tr").first().find("td").length;rows=$(this).find("tbody").find("tr:not([data-empty-row])"),hidden_rows=$(this).find("tbody tr:not([data-empty-row]):hidden");var t=$(this).find("tbody tr[data-empty-row]");rows.length===hidden_rows.length?t.length?$(this).find("tbody").find("var[data-query-str]").text(r):$(this).find("tbody").append(''+theme_language("theme_xhred_filter_content_no_matches_query").replace("%str",""+r+"")+""):t.remove()})}else n.find(".fa-toggle-switch").trigger("click"),o.find(".panel tr").removeClass("hidden-forged"),o.find(".panel tr[data-empty-row]").remove(),!$.support.transition&&($.support.transition={end:"webkitTransitionEnd"});else{$("."+a).length?($(".nav-tabs li.active").data("filter-value",r),$(".active .dataTables_filter input").val(r).trigger("keyup")):$(".dataTables_filter input").val(r).trigger("keyup")}var d=".btn-filter-top-right span, .btn-accordion-filter span",c=".btn-filter-top-right i, .btn-accordion-filter i";$.trim($(this).val()).length>0?($(d).removeClass("text-lighter"),$(c).addClass("text-danger")):($(d).addClass("text-lighter"),$(c).removeClass("text-danger"))}),$(".btn-filter-top-right input, .btn-accordion-filter input").blur(function(e){$(this).parent("label").slideToggle(0)}),t.visibility("btn-filter-top-right","btn-accordion-filter","btn-toggle-accordions",a)},0)},visibility:function(e,t,a,n){var r=$("."+e+", ."+t+", ."+a);$("."+n).length&&($(".active .dataTables_filter").length||$(".active #conf-_-gr").length)||!$("."+n).length&&($(".dataTables_filter").length||$("#conf-_-gr").length)?r.show():r.hide()},clear:function(){var e=$(".btn-filter-top-right .dataTable-mirror, .btn-accordion-filter .dataTable-mirror"),t=$(".btn-filter-top-right input, .btn-accordion-filter input");e.val("").trigger("keyup"),t.is(":visible")&&t.trigger("blur"),$(".panel-filter").find("tr[data-empty-row]").remove(),!$.support.transition&&($.support.transition={end:"webkitTransitionEnd"})}}},module_config:function(e){var t=v___page_container.find(".table-title:visible"),a=t.parents(".table:visible"),n=a.parent("div.table-responsive:visible"),r=a.find("tbody > tr > td > table:visible"),i=0,o=1;$.each(r.find("tr"),function(e,t){var a=$(this);a.find(".col_header").length?(i+=1,a.attr("tj",i+":0")):a.attr("tj",i+":1")}).promise().done(function(){var t=$('tr[tj$=":0"]').map(function(){return $.trim($(this).text())});0===t.length&&(t.push(theme_language("theme_xhred_config_configurable_options")),o=0);for(var r=[],i=1;i tr[tj="0:1"]'),l='';l+=s.map(function(){return this.outerHTML}).get().join("\n"),l+="
",r[i-1]=l}var d="conf-_-gr";n.replaceWith(HTML.template.accordion(d,t,r,o?e:[2])),page.render.content.filter.init(1),$(".container-fluid > .panel > .panel-body").on("hide.bs.collapse show.bs.collapse","#"+d,function(){$(".module-help .close-popover-trigger").trigger("click")})})}}},pjax={clear:{modules:function(e){"csf"===v___module&&"function"==typeof __c_____undel&&__c_____undel(e.url),v___module===v___module_file_manager&&"function"==typeof __f_____undel&&(Test.strContains(e.url,v___module_file_manager+"/config.cgi")||Test.strContains(e.url,v___module_file_manager+"/index.cgi")||Test.strContains(e.url,"save_config.cgi")||(jsPanel.closeChildpanels("body"),__f_____undel())),"mysql"!==v___module&&"postgresql"!==v___module||"function"!=typeof __sql_____undel||__sql_____undel(),"syslog"===v___module&&"number"==typeof refreshTimer&&clearInterval(refreshTimer)}}},progress_percent={body:"body",control:function(e,t,a,n){var r=this;$(r.body).find(".bottom_progresses").length||$(r.body).append('
');var i=$(r.body).find(".bottom_progresses");if(!i.find('div[data-progress-id="'+e+'"]').length){if(i.append(HTML.bottom_progress(e,t,n)),n||i.find(".bottom_progress_horizontal").length){i=$(r.body).find(".bottom_progresses");var o=i.find('.bottom_progress:not(".bottom_progress_horizontal")').addClass("no-animation").detach();i.prepend(o)}i.find('div[data-progress-id="'+e+'"]').find(".bottom_progress_cancel").one("click",function(){var e=$(this).parent(),t=e.data("progress-id");e.find(".bottom_progress_level").removeClass("success").addClass("danger"),$(this).remove(),setTimeout(function(){e.remove(),0===i.find("div[data-progress-id]").length&&i.remove()},1e3),window["progress_id_ref_"+t].abort(),n&&window["progress_id_ref_"+t+"_tracker"].abort()})}var s=i.find('div[data-progress-id="'+e+'"]');if(s.find(".bottom_progress_level").css("height",a+"%"),n){var l=s.find(".bottom_progress_overlay"),d=".bottom_progress_";s.find(d+"filename").html(''+Convert.htmlEscape(Convert.textTruncate(n[0],24))).attr("title",Convert.htmlEscape(n[0])),l.find(d+"data").text(n[1]),l.find(d+"percent").text(n[2]+"%")}else s.find(".bottom_progress_overlay").text(a+"%");100==a&&(s.find(".bottom_progress_cancel").remove(),setTimeout(function(){s.remove(),0===i.find("div[data-progress-id]").length&&i.remove()},1e3))}},progress={target:"body",element:"top-aprogress",progress:function(){return!settings_hide_top_loader},start:function(){var e=this;setTimeout(function(){e.progress()&&!$(e.target).find("."+e.element).length&&$(e.target).append('
')},100)},end:function(){0===v___theme_progress?$(this.target).find("."+this.element).remove():setTimeout(function(){v___theme_progress=0},0)}},session={reauthenticate:{start:function(){var e=this,t=e.target;!$("."+t).length&&$.ajax({type:"GET",url:v___location_prefix+"/index.cgi",data:!1,dataType:"text",success:function(a){var n=Test.strContains(a,v___page_signin_form+" pam_");if(!Test.strContains(a,v___page_signin_banner)){var r=$(a).find('input[name="twofactor"]').length,i=e.lock_targets,o=e.lock_type,s=$("body").find(".-shell-port-"),l='',d=$(a).find("._logo_welcome > img").attr("src");$(i).addClass(o),$("body").append(HTML.template.reauthenticate(t)),navigation_render_end(),navigation_detect(),reset_switch_position(),despinnerfy_buttons(),theme_shell_unlock(),theme_shell_close(s),r||$("."+t).find("[data-container-twofactor]").remove(),d&&$("."+t).append(""),$("."+t).find("form").on("submit",function(e){function r(e,a,n,r){if(a){var i="theme_xhred_session_failed"===theme_language(a,1)?theme_language("theme_xhred_session_failed_password"):a;i.endsWith(".")||(i+="."),i=i.replace(/\n/gm,""),p.text(i).addClass("text-danger").removeClass("loading-dots"),d.removeClass("disabled btn-transparent").addClass("btn-success");var o=$(r).find(".alert[data-twofactor]"),s=o.length?$("."+t).find('input[name="twofactor"]'):$("."+t).find('input:not([name="user"]):not([name="twofactor"])');s.addClass("faa-horizontal animated"),s[0].focus(),setTimeout(function(){s.removeClass("faa-horizontal animated")},1e3)}else e&&!n&&(p.text(theme_language("theme_xhred_signing_success")).removeClass("text-danger").removeClass("loading-dots").addClass("text-success"),c.removeClass("fa-lock").addClass("fa-unlock fa-rotate-180 fa-flip-horizontal"),f.text(theme_language("theme_xhred_session_unlocked")),v___available_session=1,setTimeout(function(){session.reauthenticate.end()},1800))}if(e.preventDefault(),e.stopImmediatePropagation(),n){$("."+t).find('form input[name="user"]').attr("name","answer").val(get_server_data("user"))}var i=$(a).find("form").append(l),o=i.attr("action"),s=$("."+t).find("form").serialize(),d=$("."+t).find("[data-submit]"),c=$("."+t+"-header-icon i"),f=$("."+t+"-header-title h3"),p=$("."+t+"-header-title small");d.hasClass("disabled")||(p.text(theme_language("theme_xhred_signing_in")+"").removeClass("text-danger").addClass("loading-dots"),d.addClass("disabled btn-transparent").removeClass("btn-success"),$.ajax({type:"GET",url:o,data:s,dataType:"text",success:function(e){var a=$(e).find(".switch-toggle").text().length,i=$(e).find(".alert span").text(),s=i.length;if(n){var d=$(e).find("form").append(l),c=(d.find('input[name="answer"]').val($("."+t).find('input[type="password"]').val()),d.serialize());$.ajax({type:"GET",url:o,data:c,dataType:"text",success:function(e){a=$(e).find(".switch-toggle").text().length,i=$(e).find(".alert span").text(),s=i.length,r(a,i,s,e)}})}else r(a,i,s,e)}}))})}}})},end:function(){v___available_session=1,$("."+this.target).remove(),$(this.lock_targets).removeClass(this.lock_type)},target:"session-reauthenticate",lock_targets:"aside, aside .navigation, .form-control.sidebar-search, .container-fluid, .right-side-tabs, .right-side-tabs-toggler",lock_type:"pointer-events-none bg-filter-blur2-grayscale75-opacity75 disabled"}},Test={true:function(e){return!/^(false|0)$/i.test(e)&&!!e},false:function(e){return/^(false|0)$/i.test(e)||!e},numeric:function(e){return Number(parseFloat(e))==e},string:function(e){return"string"==typeof e||e instanceof String?1:0},strContains:function(e,t){return"string"==typeof e&&!!~e.indexOf(t)},arrContains:function(e,t,a){return void 0===a&&(a=0),e=$.inArray(t,e),a?e:-1=n},occurrences:function(e,t,a){if(e+="",t+="",t.length<=0)return e.length+1;for(var n=0,r=0,i=a?1:t.length;;){if(!((r=e.indexOf(t,r))>=0))break;++n,r+=i}return n},editing:function(){return $("input:focus").length||$("textarea:focus").length||$('[contenteditable="true"]:focus').length}},time={tictac:function(e){var t="convertible-timestamp-full",a=$("[data-"+t+"]");a.parent().contents().filter(function(){return 3===this.nodeType}).remove(),a.data(t,parseInt(a.data(t))+1),"undefined"!=typeof moment&&a.text(moment.unix(a.data(t)).format(config_portable_theme_locale_format_full)),!e&&setInterval(this.tictac,1e3)},localize:function(){$.each($("x-md-d").add("x-md-t"),function(e,t){var a=t.tagName.endsWith("-d".toUpperCase())?1:0,n=t.outerHTML.indexOf(";1")>-1?1:0,r=t.outerHTML.indexOf(";2")>-1?1:0,i=$(t).text(),o=a?i.split(";")[0]:i,s=config_portable_theme_locale_format_short,l=config_portable_theme_locale_format_long,d=moment.unix(o).format("l"),d=d.indexOf("/")>-1?"/":d.indexOf("-")>-1?"-":".",c=moment.unix(o).format("LT"),f=r?moment.unix(o).format("YYYY["+d+"]MM["+d+"]DD")+" "+c:moment.unix(o).format(n?l?l:"LL":s?s:"L");$(this).replaceWith(a?"-1?' data-placement="auto top" data-container="body" data-toggle="tooltip" data-title="'+moment.unix(o).fromNow()+'"':"")+">"+f+"":c)})}},theme={update:function(e,t){function a(){n.removeClass("pointer-events-none bg-filter-blur-grayscale-opacity50")}var n=$(".container-fluid").add($("aside")).add($("#right-side-tabs")).add($(".right-side-tabs-toggler")),r=1===e?"-release":"-beta";n.addClass("pointer-events-none bg-filter-blur-grayscale-opacity50"),set_onbeforeunload_status(1,0),theme_messenger(''+theme_language("theme_xhred_git_patch_initiated")+" "+theme_language("theme_xhred_global_please_wait")+'   ',1800,"info","themeUpgrade",0),$.ajax({type:"POST",url:v___location_prefix+"/index.cgi?xhr-update=1&xhr-update-type="+r+"&xhr-update-force="+t,data:!1,dataType:"json",success:function(e){if(Test.strContains(e,v___page_signin_form))return void(v___available_session=0);e[0]&&e[0].success?(theme_messenger(''+e[0].success,4,"success","themeUpgrade"),slider_mark_group_notifications_read("authentic_remote_version"),set_server_tmp_var("goto",v___location_prefix+"/sysinfo.cgi"),setTimeout(function(){theme_reload()},2e3)):e[0]&&e[0].no_git?(theme_messenger(''+e[0].no_git,20,"warning","themeUpgrade"),a()):e[0]&&e[0].incompatible?(theme_messenger(''+e[0].incompatible,120,"error","themeUpgrade"),a()):(theme_messenger(''+theme_language("theme_xhred_git_patch_update"),20,"error","themeUpgrade"),a())},error:function(e){theme_messenger(''+theme_language("theme_xhred_git_patch_update"),20,"error","themeUpgrade"),a()},complete:function(e){set_onbeforeunload_status(0,0)}})},version:function(){return v___theme_version},visibility:function(e){0===v___theme_visibility_check&&(v___theme_visibility_check=1,0===e||"object"==typeof stats&&stats.general.enable(),setTimeout(function(){v___theme_visibility_check=0},0))}},quirks={active_element:function(){return document.activeElement&&$(document.activeElement).is("body")?v___page_activeElement:document.activeElement}},regex={matches:function(e,t,a,n){a||(a=1);for(var r,i=[];r=t.exec(e);)i.push(r[a]);return n&&(i=i.slice(-1)[0]),i}},XHR={headers:function(e){return[e.getAllResponseHeaders(),e.getResponseHeader("content-type"),e.getResponseHeader("content-disposition")]},download:function(e,t,a,n){var r,i,o,s;if(n||(headers=this.headers(e),r=headers[2],i=headers[1],o=r&&r.toLowerCase().indexOf("attachment")!==-1,s=i&&i.toLowerCase().indexOf("application/")!==-1),n||o||s){v___theme_progress=1,t&&t.abort();var l,d,c,f;if(n)f=e;else{var p=i?i:"application/octet-stream",g=$(a.target),_=g.is("form");_&&(l=Test.strContains(g.attr("enctype"),"multipart/form-data"),d=l?new FormData(g[0]):g.serialize()),c=[_,g,_?a.target.action:a.url,!!_&&d]}var u=new XMLHttpRequest;u.open(n?"GET":get_pjax_type(c[1]?c[1]:c[2]),n?f:c[2]),u.responseType="blob",u.send(!(n||!c[0])&&c[3]),u.onload=function(e){if(200==this.status){var t=e.target.responseURL;if(t=t?t.substring(t.lastIndexOf("/")+1):"backup",o){var a=/filename[^;=\n]*=((['"]).*?\2|[^;\n]*)/,n=a.exec(r);null!=n&&n[1]&&(t=n[1].replace(/['"]/g,""))}var i=new Blob([this.response],{type:p}),s=document.createElement("a");s.style="display: none",document.body.appendChild(s);var l=window.URL.createObjectURL(i);s.href=l,s.download=t,s.click(),window.URL.revokeObjectURL(l),setTimeout(function(){s.remove()},100)}};var h=0,m=parseInt(1e7*Math.random());window["progress_id_ref_"+m]=u,u.addEventListener("progress",function(e){if(e.lengthComputable){var t=Math.round(100*e.loaded/e.total);progress_percent.control(m,"success",t)}0===h&&(setTimeout(function(){page_remove_progress()},1500),h++)},!1)}return n||o||s}};function addmodule(e,t){return adduser(e,t),!1}function addgroup(e,t){return adduser(e,t),!1}function adduser(e,t){return $v__mpp__g_olt=0,$('.mppopup input[data-role="tagsinput"]').tagsinput("add",e),setTimeout(function(){v__mpp__ml_t__e||($(".mppopup_filter_input").val(""),$(".mppopup_filter_input").focus().trigger("keyup")),v__mpp__ml_t__e=0},440),!1}function parentdir(e){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){return $data_mppopup_value.val(e),!1}function filter_match(e,t,i){t="",i=i||!1;var a=function(e){e=e||!1;var a=$(".mppopup table tbody tr");if(a.length>0)for(var n=0;n0)for(var s=0;s]*>/gi,""),""!==l&&(l=l.toLowerCase(),l.match(e.toLowerCase())&&(n[s].style.display=""))}}}else a(!0)}function tab_action(e,t){document.forms[0]&&document.forms[0][e]&&(document.forms[0][e].value=t)}function hidden_opener(e,t){0===$("#"+e).parent(".opener_container").length&&$("#"+e).wrapAll('
'),$("#"+e).hasClass("opener_shown")?($("#"+e).parent(".opener_container").prev(".opener_extra_container.opener_extra_container_style").find(".opener_extra_container_a_style").removeClass("opener_container_opened").addClass("opener_container_closed"),$("#"+e).parent(".opener_container").prev("p").find(".opener_extra_container_a_style").removeClass("opener_container_opened").addClass("opener_container_closed"),$("#"+e).parent(".opener_container").parent("tr").prev("tr").find("td a:nth-child(1)").removeClass("opener_container_opened").addClass("opener_container_closed"),$("#"+e).parent(".opener_container").show().find("#"+e).slideUp($settings_animation_tabs_slide_time,function(){$("#"+e).removeClass("opener_shown").addClass("opener_hidden").parent('.opener_container:not(".opener_sub_container")').hide(),$("#"+e).parent(".opener_sub_container").removeClass("margined-top")})):($("#"+e).parent(".opener_container").prev(".opener_extra_container.opener_extra_container_style").find(".opener_extra_container_a_style").addClass("opener_container_opened").removeClass("opener_container_closed"),$("#"+e).parent(".opener_container").prev("p").find(".opener_extra_container_a_style").addClass("opener_container_opened").removeClass("opener_container_closed"),$("#"+e).parent(".opener_container").parent("tr").prev("tr").find("td a:nth-child(1)").addClass("opener_container_opened").removeClass("opener_container_closed"),$("#"+e).slideUp(0).removeClass("opener_hidden").addClass("opener_shown").parent(".opener_container").slideDown($settings_animation_tabs_slide_time).find(".opener_shown").slideDown($settings_animation_tabs_slide_time),$("#"+e).parent(".opener_sub_container").addClass("margined-top"))}function select_mode(e){var t=$("aside form").length;for(i=0;i-1?0:1)?e.serialize():new FormData(e[0])}function page_extended(){return"settings-upload.cgi"===v___location_file||"settings-upload_save.cgi"===v___location_file||"settings-editor_read.cgi"===v___location_file||"settings-editor_write.cgi"===v___location_file||"settings-favorites_save.cgi"===v___location_file?1:0}function check_bundle(e){(Test.strContains(e,"mysql")||Test.strContains(e,"postgresql"))&&get_bundle_sql(),Test.strContains(e,v___module_file_manager)&&get_bundle_file_manager(),Test.strContains(e,"csf")&&get_bundle_csf()}function get_bundle_csf(){var e=$("head"),t=v___server_extensions_path+"/csf/csf."+v___source_type+".css?"+v___theme_version_plain,i=v___server_extensions_path+"/csf/csf."+v___source_type+".js?"+v___theme_version_plain;Test.arrContains(o___gotten_scripts,i)||(e.append(''),$.getScript(""+i,function(e,t,a){o___gotten_scripts.push(i)}))}function get_bundle_file_manager(e){var t=($("head"),v___server_extensions_path+"/file-manager/file-manager."+v___source_type+".js?"+v___theme_version_plain);Test.arrContains(o___gotten_scripts,t)||$.getScript(""+t,function(i,a,n){o___gotten_scripts.push(t),e&&___f__tw()})}function get_bundle_sql(){var e=($("head"),v___server_extensions_path+"/sql."+v___source_type+".js?"+v___theme_version_plain);Test.arrContains(o___gotten_scripts,e)||$.getScript(""+e,function(t,i,a){o___gotten_scripts.push(e)})}function theme_open_new_tab(e,t){1!==t&&(e=Test.strContains(e,v___location_origin)?e:v___location_origin+(e.startsWith("/")?e:"/"+e)),$("body").append(''),$("#theme_open_new_tab").simulateUserClick().remove()}function theme_to_new_tab(){$.each($('a[href*="virtualmin-awstats/view.cgi?config="], .virtualmin-awstats a[href*="view.cgi?config="] '),function(){$(this).addClass("--to-new-tab")})}function theme_reload(){window.location.href=location.origin+v___location_prefix}function theme_update_notice(e){0===$("#update_notice").length&&$.ajax({type:"POST",url:v___location_prefix+"/index.cgi?xhr-get_update_notice=1",success:function(t){if(Test.strContains(t,v___page_signin_form))return void(v___available_session=0);$("body").prepend(t);var i=$("#update_notice");e&&i.addClass("r"),i.modal("show")},error:function(e){}})}function theme_inject_tooltip(e,t,i,a,n){var s=v___initial_load?3e3:0,_=e;return e=theme_language(e)||e,t||(t="body"),i||(i="auto top"),a||(a="tooltip"),n||(n=600),s&&setTimeout(function(){var e=$('[data-target-tooltip-callback="'+_+'"]');e.attr("data-title",theme_language(_)),e.tooltip({container:t,placement:i,delay:{show:n,hide:20}})},s),' data-container="'+t+'" data-placement="'+i+'" data-toggle="'+a+'" data-title="'+e+'"'}function theme_title_generate(){if(v___available_navigation){var e=$("#headln2c span[data-main_title]").text()||$('.panel-heading font[size="+2"]').text();if($('li.sub_active a[href*="'+v___module_file_manager+'"]').length){var t=v___module_file_manager;$('body[class*="'+t+'"] .active form input#path').val()?document.title=Convert.uriDecodeComponent($('body[class*="'+t+'"] .active form input#path').val())+" - "+$("li.sub_active a").text()+" — "+v___title_initial:document.title=$("li.sub_active a").text()+" — "+v___title_initial}else if(($t_uri_virtualmin||$t_uri_cloudmin)&&$("aside select option:checked").text()&&$("aside select option:checked").text().length)if(e&&e.length){var i=$("#webmin_search_form").parent("li").prevAll();i.has(".sub_active, .current-large").length?document.title=$("aside select option:checked").text()+" - "+e+" — "+v___title_initial:document.title=e+" — "+v___title_initial}else document.title=get_navigation_module_name()+" — "+v___title_initial;else $t_uri_webmail?e&&e.length?document.title=e+" - Mail — "+v___title_initial:document.title=get_navigation_module_name()+" — "+v___title_initial:e&&e.length?document.title=e+" — "+v___title_initial:document.title=v___title_initial;var a=$(".right-side-tabs .list-group-item:not(.no-notifications, .opacity-0_3)").length;settings_side_slider_enabled&&settings_side_slider_notifications_enabled?titlenotifier.set(a):titlenotifier.set(0)}}function navigation_clear(){var e=".navigation";$(e+" li.has-sub").removeClass("sub_active"),$(e+" > li:not('.has-sub')").removeClass("sub_active").find("span.current-large").remove(),$(e+" > li > ul.sub > li").removeClass("sub_active").find("span.current").remove(),$(e+" > li.has-sub").removeClass("active"),$(e+" > li > ul.sub").hide(),$(e+" > li > a > i.fa.fa-folder-open-o").removeClass("fa-folder-open-o")}function navigation_detect(e,t){if(Test.arrContains(["webmin_search.cgi"],v___location_file))return void navigation_clear();if(!v___blocked_navigation){if(void 0===t){var i=1,a=$('.navigation a[href*="'+v___location_path+'"]:not([data-parent-hidden]):first');$('.navigation a[href^="'+v___location_resource+'"]:not([data-parent-hidden]):first').length?(e=v___location_resource,i=0):Test.strContains(v___location_file,"cgi")&&a.length&&(e=a.attr("href"),i=0,"save_log.cgi"===v___location_file&&Test.strContains(v___location_query,"error")&&Test.strContains(e,"_log")&&(Test.strContains(e,"file=")||Test.strContains(e,"extra="))&&(e=$('.navigation a[href*="'+v___location_path+'"][href*="error"]:not([data-parent-hidden]):first').attr("href")));var e=e?e.replace("/edit_users.cgi","/list_users.cgi").replace("/edit_user.cgi","/list_users.cgi").replace("/edit_alias.cgi","/list_aliases.cgi").replace("/edit_database.cgi","/list_databases.cgi").replace("/save_database.cgi","/list_databases.cgi").replace("/edit_script.cgi","/list_scripts.cgi").replace("/script_form.cgi","/list_scripts.cgi"):e;!i||"config.cgi"!==v___location_file&&"uconfig.cgi"!==v___location_file||(e=$t_uri_virtualmin?v___location_prefix+"/config.cgi?virtual-server":$t_uri_cloudmin?v___location_prefix+"/config.cgi?server-manager":v___location_prefix+"/"+v___location_query+"/");var n=$t_uri_webmin||$t_uri_usermin;if(!e&&n)if(Test.strContains(v___location_file,".cgi")&&!Test.strContains(v___location_file,"sysinfo.cgi"))e=v___location_path.replace(v___location_file,""),page_extended()&&(e=v___location_prefix+"/webmin/");else if(!e){var s=new RegExp("^"+v___location_prefix,"i");e=get_server_data("data-uri").replace(s,"").split("/").filter(function(e){return 0!==e.length})[0],e=v___location_prefix+"/"+e}targeted_menu_link=$('.navigation a[href^="'+e+'"]:not([data-parent-hidden]):first'),targeted_menu_link.length&&navigation_clear()}else targeted_menu_link=$('.navigation a[href^="'+e+'"]:not([data-parent-hidden]):first'),targeted_menu_link.length&&navigation_clear();targeted_menu_link.parent("li:not(.menu-exclude):not(.user-link)").addClass("sub_active").append('').parent("ul.sub").show().parent("li:not(.menu-exclude):not(.user-link)").prev("li").addClass("active")}}function navigation_render_start(){$(".mCSB_container, .mCSB_dragger").css("top","0"),!$("#_menu_loader").length&&$("body ul.navigation").before(''),setTimeout(function(){$("#loader-close-sm").removeClass("hidden"),$("#loader-close-sm i").trigger("click")},4200),$("body aside .mCSB_scrollTools, body ul.navigation, body ul.user-links").css("visibility","hidden"),$("aside ul.user-html").addClass("invisible")}function navigation_render_end(){$("aside ul.user-html").removeClass("invisible"),$("body aside .mCSB_scrollTools, body ul.navigation, body ul.user-links").css("visibility","visible"),$("#_menu_loader").remove(),navigation_init_select(),navigation_select_label(),bind_sameorigin(1),theme_to_new_tab()}function navigation_display(){"none"==$("aside").css("transform")&&"1"!=$("html").attr("data-navigation-collapsed")&&($("aside").transition({x:settings_leftmenu_width},2.5*$settings_animation_left_slide_time,function(){$(".__logo")&&"none"==$(".__logo").css("transform")&&!$(".mobile-menu-toggler:visible").length&&$(".__logo").transition({y:"-140px"},1.5*$settings_animation_left_slide_time)}),setTimeout(function(){$(".switch-toggle").css("display","table")},1))}function navigation_hide(){var e="mobile-menu-toggler",t=$(quirks.active_element()).is('input[name="settings_navigation_always_collapse"]');"function"==typeof jQuery().transition&&$("."+e+":visible").length&&$("."+e).attr("style")&&$("."+e).attr("style").indexOf("ease")==-1&&($(".__logo")&&$(".__logo").transition({y:0},1.5*$settings_animation_left_slide_time),$("aside, ."+e).transition({x:0},t?0:$settings_animation_left_slide_time,function(){$("."+e).removeClass("selected").find("button").removeClass("btn-primary").addClass("btn-primary"),$(".switch-toggle").css("display","none"),$("aside").addClass("hidden-xs")}))}function navigation_init_select(){$(".form-control.sidebar-search").is(":focus")||$.each($("aside select > option"),function(){var e=$(this).text().match(/^\s{0,4}/)[0].length,t=$(this).text();settings_leftmenu_vm_cm_dropdown_icons&&(4===e&&t.indexOf("↱")===-1?$(this).html("    ↱ "+t.replace(/\s/g,"")):2===e&&t.indexOf("↴")===-1&&$(this).html("  ↴ "+t.replace(/\s/g,"")))}).promise().done(function(){var e=$("aside select");e.removeAttr("id"),e.length&&(e.removeAttr("onchange disabled"),!!e.data("select2")&&e.select2("destroy"),e.unbind("select2:select"),e.select2({minimumResultsForSearch:$.browser.mobile?-1:5}),setTimeout(function(){var t=e.data("select2");t&&(t.open(),t.close())},1),e.on("select2:select",function(e){"dom"===e.currentTarget.name?(get_navigation_menu_virtualmin(e.currentTarget.value),get_default_virtualmin_content(e.currentTarget.value)):"sid"===e.currentTarget.name&&(get_navigation_menu_cloudmin(e.currentTarget.value),get_default_cloudmin_content(e.currentTarget.value))}),e.on("select2:open",function(e){$.each($("select > option"),function(){if($(this).attr("style")&&$(this).attr("style").indexOf("italic")>-1){var e=$(this);setTimeout(function(){$("body").find('li[id$="'+e.attr("value")+'"]').attr("style","color: #"+(v___theme_night_mode_enabled?"9a5150":"e97471")+" !important;")},1)}})}),1===$("aside select option").length&&($(".select2 span").css("cursor","default"),$(".select2 .select2-selection__arrow").remove(),e.on("select2:open",function(){$(".select2-container .select2-dropdown").css("opacity","0")})),$.each($("aside select > option"),function(){$(this).attr("style")&&$(this).attr("style").indexOf("italic")>-1&&$(".select2-selection > .select2-selection__rendered").text().trim()==$(this).text().trim()&&$(".select2-selection > .select2-selection__rendered").attr("style","color: #"+(v___theme_night_mode_enabled?"9a5150":"e97471")+" !important;")}))})}function navigation_links(){setTimeout(function(){$("a[href]"+($__theme_event_deselectors+$__theme_default_deselectors)+':not(.--to-new-tab):not([href*="/file/"]):not([href*="history.cgi"])').each(function(){location.hostname!==this.hostname&&this.hostname.length||$(this).parents(".popover-content").length||$(this).attr("href",navigation_trigger($(this).attr("href"),2))})},400)}function navigation_trigger(e,t){return e&&(e=e.replace(/([?&])(_pjax|_)=[^&]*/g,"")),1===t&&(e=e.replace("?"+$__theme_navigation,"").replace("&"+$__theme_navigation,"")),2===t&&(Test.strContains(e,$__theme_navigation)||(e=Test.strContains(e,"?")?e+"&"+$__theme_navigation:e+"?"+$__theme_navigation)),e}function navigation_init_autocomplete(e,t){if("c"!=e||($(".autocomplete-suggestions").remove(),$(".form-control.sidebar-search").removeAttr("disabled"),$(".form-control.sidebar-search").autocomplete("dispose"),$(".form-control.sidebar-search").val(""),!t)){var i={};$.each($('li:not(.menu-exclude):not(.user-link) > ul[id^="global_"].sub > li:not(.menu-exclude):not(.user-link) > a'),function(e,t){i[("/"==$(this).attr("href").substring(0,1)?"":"/")+$(this).attr("href")]=$.trim($(this).text())}),$('li > a[target="page"][data-href="/virtual-server/index.cgi"], li:not(.menu-exclude):not(.user-link) > a[target="page"][data-href="/sysinfo.cgi"], li:not(.menu-exclude):not(.user-link) > a[target="page"][data-href="/virtual-server/pro/history.cgi"], li:not(.menu-exclude):not(.user-link) > a[target="page"][data-href="/mailbox/list_folders.cgi"], li:not(.menu-exclude):not(.user-link) > a[target="page"][data-href="/mailbox/list_ifolders.cgi"], li:not(.menu-exclude):not(.user-link) > a[target="page"][data-href="/mailbox/list_addresses.cgi"], li:not(.menu-exclude):not(.user-link) > a[target="page"][data-href="/filter/edit_forward.cgi"], li:not(.menu-exclude):not(.user-link) > a[target="page"][data-href="/filter/edit_auto.cgi"], li:not(.menu-exclude):not(.user-link) > a[target="page"][data-href="/filter/edit_auto.cgi"], li:not(.menu-exclude):not(.user-link) > a[target="page"][data-href="/filter/"], li:not(.menu-exclude):not(.user-link) > a[target="page"][data-href="/mailbox/edit_sig.cgi"]').each(function(e,t){i[$(this).attr("data-href")]=$.trim($(this).text())});var a=$.map(i,function(e,t){if("undefined"!=t)return{value:e,url:t,data:{category:get_navigation_module_name()}}}),n={};v___location_path!=v___location_prefix+"/custom/"&&v___location_path!=v___location_prefix+"/custom/index.cgi"&&v___location_path!=v___location_prefix+"/backup-config/"&&v___location_path!=v___location_prefix+"/backup-config/index.cgi"&&v___location_path!=v___location_prefix+"/usermin/"&&v___location_path!=v___location_prefix+"/usermin/index.cgi"&&v___location_path!=v___location_prefix+"/webmin/"&&v___location_path!=v___location_prefix+"/webmin/index.cgi"&&v___location_path!=v___location_prefix+"/acl/"&&v___location_path!=v___location_prefix+"/acl/index.cgi"&&v___location_path!=v___location_prefix+"/init/"&&v___location_path!=v___location_prefix+"/init/index.cgi"&&v___location_path!=v___location_prefix+"/mount/"&&v___location_path!=v___location_prefix+"/mount/index.cgi"&&v___location_path!=v___location_prefix+"/quota/"&&v___location_path!=v___location_prefix+"/quota/index.cgi"&&v___location_path!=v___location_prefix+"/fsdump/"&&v___location_path!=v___location_prefix+"/fsdump/index.cgi"&&v___location_path!=v___location_prefix+"/inittab/"&&v___location_path!=v___location_prefix+"/inittab/index.cgi"&&v___location_path!=v___location_prefix+"/logrotate/"&&v___location_path!=v___location_prefix+"/logrotate/index.cgi"&&v___location_path!=v___location_prefix+"/mailcap/"&&v___location_path!=v___location_prefix+"/mailcap/index.cgi"&&v___location_path!=v___location_prefix+"/pam/"&&v___location_path!=v___location_prefix+"/pam/index.cgi"&&v___location_path!=v___location_prefix+"/proc/"&&v___location_path!=v___location_prefix+"/proc/index_tree.cgi"&&v___location_path!=v___location_prefix+"/proc/index_user.cgi"&&v___location_path!=v___location_prefix+"/proc/index_size.cgi"&&v___location_path!=v___location_prefix+"/proc/index_cpu.cgi"&&v___location_path!=v___location_prefix+"/proc/index_tree.cgi"&&v___location_path!=v___location_prefix+"/proc/index_search.cgi"&&v___location_path!=v___location_prefix+"/cron/"&&v___location_path!=v___location_prefix+"/cron/index.cgi"&&v___location_path!=v___location_prefix+"/syslog/"&&v___location_path!=v___location_prefix+"/syslog/index.cgi"&&v___location_path!=v___location_prefix+"/useradmin/"&&v___location_path!=v___location_prefix+"/useradmin/index.cgi"&&v___location_path!=v___location_prefix+"/apache/"&&v___location_path!=v___location_prefix+"/apache/index.cgi"&&v___location_path!=v___location_prefix+"/bind8/"&&v___location_path!=v___location_prefix+"/bind8/index.cgi"&&v___location_path!=v___location_prefix+"/dhcpd/"&&v___location_path!=v___location_prefix+"/dhcpd/index.cgi"&&v___location_path!=v___location_prefix+"/dovecot/"&&v___location_path!=v___location_prefix+"/dovecot/index.cgi"&&v___location_path!=v___location_prefix+"/ldap-server/"&&v___location_path!=v___location_prefix+"/ldap-server/index.cgi"&&v___location_path!=v___location_prefix+"/virtualmin-nginx/"&&v___location_path!=v___location_prefix+"/virtualmin-nginx/index.cgi"&&v___location_path!=v___location_prefix+"/fetchmail/"&&v___location_path!=v___location_prefix+"/fetchmail/index.cgi"&&v___location_path!=v___location_prefix+"/mysql/"&&v___location_path!=v___location_prefix+"/mysql/index.cgi"&&v___location_path!=v___location_prefix+"/mysql/edit_dbase.cgi"&&v___location_path!=v___location_prefix+"/postgresql/"&&v___location_path!=v___location_prefix+"/postgresql/index.cgi"&&v___location_path!=v___location_prefix+"/postgresql/edit_dbase.cgi"&&v___location_path!=v___location_prefix+"/postfix/"&&v___location_path!=v___location_prefix+"/postfix/index.cgi"&&v___location_path!=v___location_prefix+"/procmail/"&&v___location_path!=v___location_prefix+"/procmail/index.cgi"&&v___location_path!=v___location_prefix+"/proftpd/"&&v___location_path!=v___location_prefix+"/proftpd/index.cgi"&&v___location_path!=v___location_prefix+"/mailboxes/"&&v___location_path!=v___location_prefix+"/mailboxes/index.cgi"&&v___location_path!=v___location_prefix+"/mailboxes/list_mail.cgi"&&v___location_path!=v___location_prefix+"/mailbox/"&&v___location_path!=v___location_prefix+"/mailbox/index.cgi"&&v___location_path!=v___location_prefix+"/samba/"&&v___location_path!=v___location_prefix+"/samba/index.cgi"&&v___location_path!=v___location_prefix+"/spam/"&&v___location_path!=v___location_prefix+"/spam/index.cgi"&&v___location_path!=v___location_prefix+"/squid/"&&v___location_path!=v___location_prefix+"/squid/index.cgi"&&v___location_path!=v___location_prefix+"/sshd/"&&v___location_path!=v___location_prefix+"/sshd/index.cgi"&&v___location_path!=v___location_prefix+"/webalizer/"&&v___location_path!=v___location_prefix+"/webalizer/index.cgi"&&v___location_path!=v___location_prefix+"/cpan/"&&v___location_path!=v___location_prefix+"/cpan/index.cgi"&&v___location_path!=v___location_prefix+"/htaccess-htpasswd/"&&v___location_path!=v___location_prefix+"/htaccess-htpasswd/index.cgi"&&v___location_path!=v___location_prefix+"/status/"&&v___location_path!=v___location_prefix+"/status/index.cgi"&&v___location_path!=v___location_prefix+"/net/"&&v___location_path!=v___location_prefix+"/net/index.cgi"&&v___location_path!=v___location_prefix+"/tcpwrappers/"&&v___location_path!=v___location_prefix+"/tcpwrappers/index.cgi"&&v___location_path!=v___location_prefix+"/fdisk/"&&v___location_path!=v___location_prefix+"/fdisk/index.cgi"&&v___location_path!=v___location_prefix+"/fail2ban/"&&v___location_path!=v___location_prefix+"/fail2ban/index.cgi"&&v___location_path!=v___location_prefix+"/nis/"&&v___location_path!=v___location_prefix+"/nis/index.cgi"&&v___location_path!=v___location_prefix+"/passwd/"&&v___location_path!=v___location_prefix+"/passwd/index.cgi"||$($(".container-fluid .panel-body a[href]:not([href*='javascript'],[href*='list_users.cgi?dom'],[href*='edit_hdparm.cgi?disk'],[href*='blink.cgi?disk'],[href*='smart-status/index.cgi?drive'],[href*='help.cgi'],[href*='edit_user.cgi?new='],[href*='edit_user.cgi?idx='],[href*='edit_recipe.cgi'],[href*='up.cgi'],[href*='down.cgi'],[href*='virt_index.cgi'],[href*='save_log.cgi'],[href*='backup.cgi'],[href*='activate.cgi'],[href*='#'])")).each(function(e,t){v___location_path==v___location_prefix+"/syslog/"||v___location_path==v___location_prefix+"/syslog/index.cgi"?n["/"+v___location_path_lead_unslashed+$(this).parent("td").next("td.td_tag").next("td.td_tag").next("td.td_tag").find("a").attr("href")]=$.trim($(this).text()):(v___location_path==v___location_prefix+"/backup-config/"||v___location_path==v___location_prefix+"/backup-config/index.cgi"?$description=$.trim($(this).parent("td").next("td.td_tag").next("td.td_tag").text()):v___location_path==v___location_prefix+"/mount/"||v___location_path==v___location_prefix+"/mount/index.cgi"||v___location_path==v___location_prefix+"/quota/"||v___location_path==v___location_prefix+"/quota/index.cgi"?$description=$.trim($(this).parent("td").next("td.td_tag").next("td.td_tag").text()):v___location_path==v___location_prefix+"/fsdump/"||v___location_path==v___location_prefix+"/fsdump/index.cgi"?$description=$.trim($(this).parents("td").next("td").next("td").next("td").find("label").find("tt").find("tt").text()):v___location_path==v___location_prefix+"/proc/"||v___location_path==v___location_prefix+"/proc/index_tree.cgi"||v___location_path==v___location_prefix+"/proc/index_user.cgi"||v___location_path==v___location_prefix+"/proc/index_size.cgi"||v___location_path==v___location_prefix+"/proc/index_cpu.cgi"||v___location_path==v___location_prefix+"/proc/index_tree.cgi"||v___location_path==v___location_prefix+"/proc/index_search.cgi"?v___location_path==v___location_prefix+"/proc/index_size.cgi"||v___location_path==v___location_prefix+"/proc/index_cpu.cgi"?$description=$.trim($(this).parent("td").next("td.td_tag").text())+" — "+$.trim($(this).parent("td").next("td.td_tag").next("td.td_tag").text())+" - "+$.trim($(this).parents("td").next("td").next("td").next("td").text()):v___location_path==v___location_prefix+"/proc/index_search.cgi"?$description=$.trim($(this).parent("td").next("td.td_tag").text())+" — "+$.trim($(this).parent("td").next("td.td_tag").next("td.td_tag").text())+" - "+$.trim($(this).parents("td").next("td").next("td").next("td").next("td").text()):$description=$.trim($(this).parent("td").next("td.td_tag").text())+" — "+$.trim($(this).parents("td").next("td").next("td").next("td").text()):v___location_path==v___location_prefix+"/useradmin/"||v___location_path==v___location_prefix+"/useradmin/index.cgi"?$description=$.trim($(this).parents("td").next("td").find("label").text())+" — "+$(this).text()+":"+$.trim($(this).parents("td").next("td").next("td").find("label").text())+" - "+$.trim($(this).parents("td").next("td").next("td").next("td").next("td").find("label").text())+", "+$.trim($(this).parents("td").next("td").next("td").next("td").next("td").next("td").find("label").text()):v___location_path==v___location_prefix+"/mailboxes/list_mail.cgi"||v___location_path==v___location_prefix+"/mailbox/"||v___location_path==v___location_prefix+"/mailbox/index.cgi"?$description=$.trim($(this).parents("td").next("td").next("td").next("td").find("label").text())+" — "+$.trim($(this).parents("td").next("td").find("label").text())+" ["+$.trim($(this).parents("td").next("td").next("td").find("label").text())+"]":v___location_path==v___location_prefix+"/cpan/"||v___location_path==v___location_prefix+"/cpan/index.cgi"?$description=$.trim($(this).parents("td").next("td").next("td").find("label").text()):v___location_path==v___location_prefix+"/fdisk/"||v___location_path==v___location_prefix+"/fdisk/index.cgi"?$description=$.trim($(this).parent("td").next("td.td_tag").text())+" - "+$.trim($(this).parent("td").next("td.td_tag").next("td.td_tag").text()):$description=$.trim($(this).parent("td").next("td.td_tag").text()),$description?$_description=!0:$_description=!1,n[("/"==$(this).attr("href").substring(0,1)?"":"/")+v___location_directory_unslashed_trail_slashed+$(this).attr("href")]=$.trim($(this).text())+($_description?" (":"")+$description+($_description?")":""))});var s=$.map(n,function(e,t){if("undefined"!=t)return{value:e,url:t,data:{category:get_module_title()}}}),_={};$.each($('li:not(.menu-exclude):not(.user-link) > ul.sub:not([id^="global_"]) > li:not(.menu-exclude):not(.user-link) > a'),function(e,t){_[("/"==$(this).attr("href").substring(0,1)?"":"/")+$(this).attr("href")]=$.trim($(this).text())}),$('li:not(.menu-exclude):not(.user-link) > a[target="page"]:not([data-href="/acl/edit_user.cgi"],[data-href="/virtual-server/index.cgi"],[data-href="/sysinfo.cgi"],[data-href="/virtual-server/pro/history.cgi"], [data-href="/mailbox/list_folders.cgi"], [data-href="/mailbox/list_ifolders.cgi"], [data-href="/mailbox/list_addresses.cgi"], [data-href="/filter/edit_forward.cgi"], [data-href="/filter/edit_auto.cgi"], [data-href="/filter/edit_auto.cgi"], [data-href="/filter/"], [data-href="/mailbox/edit_sig.cgi"])').each(function(e,t){$t_uri_usermin||navigation_dashboard_switch_available()||(_[$(this).attr("data-href")]=$.trim($(this).text()))});var o=$.map(_,function(e,t){if("undefined"!=t&&!Test.strContains(t,"/shell")&&!Test.strContains(t,"shell=1"))return{value:e,url:t,data:{category:$("aside .select2-selection__rendered").text()?''+$("aside .select2-selection__rendered").clone().children().remove().end().text()+"":get_navigation_module_name()}}}),r={};$("aside select option").each(function(){r[$(this).val()+":::"+$(this).parent("select").attr("name")]=$.trim($(this).text())});var l=$.map(r,function(e,t){if("undefined"!=t)return{value:e,url:t,data:{category:$("aside select").data("autocomplete-title")}}}),c=l.concat(s).concat(o).concat(a);$(".form-control.sidebar-search").on("keydown",function(e){34!=e.keyCode&&33!=e.keyCode&&20!=e.keyCode&&17!=e.keyCode&&16!=e.keyCode&&9!=e.keyCode||(e.preventDefault(),e.stopPropagation())}),$(".form-control.sidebar-search").autocomplete({lookup:c,onSelect:function(e){if(navigation_dashboard_switch_available()===!0&&$t_uri_dashboard&&2!=get_access_level()&&4!=get_access_level()&&set_switch_position("webmin"),$(this).val("").blur(),navigation_hide(),"/"==e.url.substring(0,1)){var t=$("body").find('a[href="'+e.url+'"]').attr("target");if(t&&"_parent"==t);else{var i=e.url.indexOf(v___location_prefix)>-1?e.url:v___location_prefix+e.url;if(Test.strContains(v___location_prefix,v___target_servers_index)&&i&&i.endsWith("/servers/"))return;get_onbeforeunload_status()?(event.preventDefault(),get_onbeforeunload_message([],{href:i})):get_pjax_content(i,["reference"])}}else e.url&&e.url.indexOf(":::")>-1&&(navigation_render_start(),$("select").val(e.url.split(":::")[0]).trigger("change").trigger("select2:select"))},groupBy:"category"})}}function navigation_update(e){if(!get_onbeforeunload_status()){var e=void 0===e||e==-1||""==e?$("aside select").val():e,t=$t_uri_virtualmin?"virtualmin":$t_uri_cloudmin?"cloudmin":$t_uri_usermin?"usermin":$t_uri_webmin?"webmin":"mail";"webmin"==t?(set_switch_position("webmin"),get_navigation_menu_webmin("webmin")):"virtualmin"==t?(set_switch_position("virtualmin"),get_navigation_menu_virtualmin(e)):"cloudmin"==t?(set_switch_position("cloudmin"),get_navigation_menu_cloudmin(e)):"usermin"==t?(set_switch_position("usermin"),get_navigation_menu_webmin("usermin")):"mail"==t&&(set_switch_position("webmail"),get_navigation_menu_webmin("webmail"))}}function navigation_select_label(){if($t_uri_cloudmin&&$("aside").find("li.menu-container.menu-status.hidden").find("font").length>0){var e=$("aside").find("li.menu-container.menu-status.hidden").find("font"),t=e.text(),i=e.attr("color");i=i&&(i.indexOf("00ff00")||i.indexOf("008800")||i.indexOf("00aa00"))?"success":i&&(i.indexOf("ff6600")||i.indexOf("ff00ff")||i.indexOf("ff22ff")||i.indexOf("ff44ff"))?"warning":i&&(i.indexOf("ff0000")||i.indexOf("ff1100")||i.indexOf("aa0000")||i.indexOf("ff2200")||i.indexOf("ff4400"))?"danger":"info","Virtualmin"==t&&(t="VM"),setTimeout(function(){var e=$("aside .select2-selection__rendered");if(!e.find(".menu-status-label").length){e.append(''+t+"");var a=$("aside .select2-selection__rendered .menu-status-label");a.animate({opacity:1},500),a.on("mouseover",function(){$(this).removeClass("bg-light-grey")}).on("mouseout",function(){$(this).addClass("bg-light-grey")}),e.on("mouseover",function(){$(this).find(".menu-status-label").removeClass("bg-light-grey")}).on("mouseout",function(){$(this).find(".menu-status-label").addClass("bg-light-grey")})}},300)}}function navigation_form_control(e){var t=$("aside select");e?$.each($("aside").find("forms"),function(){$(this).replaceTagName("form")}).promise().done(function(){navigation_init_select()}):(!!t.data("select2")&&t.select2("destroy"),$.each($("aside").find("form"),function(){$(this).replaceTagName("forms")}))}function navigation_filter_reset(){ var e="-webkit-filter: grayscale(0) sepia(0) saturate(1) hue-rotate(0deg) invert(0) brightness(1) contrast(1); filter: grayscale(0) sepia(0) saturate(1) hue-rotate(0deg) invert(0) brightness(1) contrast(1);";$(".visible-xs.mobile-menu-toggler").attr("style","position: fixed;"+e),$("aside, .visible-xs.mobile-menu-toggler").attr("style","z-index: 10; overflow: visible; transform: translate("+settings_leftmenu_width+"px, 0px);"+e),$('input[name="settings_grayscale_level_navigation"], input[name="settings_sepia_level_navigation"], input[name="settings_hue_level_navigation"], input[name="settings_invert_level_navigation"]').val(0),$('input[name="settings_saturate_level_navigation"], input[name="settings_brightness_level_navigation"], input[name="settings_contrast_level_navigation"]').val(1),$('input[name="settings_grayscale_level_navigation"], input[name="settings_sepia_level_navigation"], input[name="settings_saturate_level_navigation"], input[name="settings_hue_level_navigation"], input[name="settings_invert_level_navigation"], input[name="settings_brightness_level_navigation"], input[name="settings_contrast_level_navigation"]').each(function(){$('code[data-name="'+$(this).attr("name")+'"]').text($(this).val())})}function get_pjax_push(e){return!0}function get_pjax_type(e){new String;if(e&&e.href&&e.href.match(/([^\/]*)\/*$/)[1],Test.string(e)){var t=e.replace(v___location_origin+v___location_prefix,""),i=t.replace(v___module,"").replace(/^\/+/g,""),a=$('form[action*="'+t+'"]:visible'),a=a.length?a:$('form[action="'+i+'"]:visible'),n=t.match(/\w+.cgi/gi),a=a.length||!n?a:$('form[action*="'+n[0]+'"]:visible'),s=a.attr("method");if("multipart/form-data"===a.attr("enctype"))return"post";if(s)return s;if(!s){var s=$('form[action="'+t+'"]').attr("method"),s=s?s:$('form[action="'+URI(t).filename()+'"]').attr("method"),_=$('form[action="'+t+'"]').attr("enctype");return s||_?"multipart/form-data"===_?"post":s:"get"}}else if("object"==typeof e&&$(e).is("form")){var o=e,r=o.attr("method");return r?r:"get"}return e&&Test.strContains(e,".cgi?")&&!Test.strContains(e,"config.cgi?")?"GET":"POST"}function get_pjax_content(e,t){if(!get_onbeforeunload_status()){var t="object"==typeof t?t:function(){},i=!!$.isArray(t)&&$("",{href:e})[0];e=navigation_trigger(e,1),$.pjax({url:e,timeout:0,push:get_pjax_push(),type:get_pjax_type(i?i:e),container:"[data-dcontainer]",fragment:"[data-dcontainer]",callback:t})}}function get_pjax_event_end(e,t){if(v___available_session&&null!=t&&void 0!==t.responseText){var i=t.getResponseHeader("Content-Disposition");if(!i||i.toLowerCase().indexOf("attachment")===-1){var a=t.responseText.replace(/)<[^<]*)*<\/body>/gim,"").replace(/)<[^<]*)*<\/head>/gim,"").replace("","").replace("","");if(!!Test.strContains(a,"xhtml0")){var n=$(a).filter("#xhtml0");n[0]&&$(n[0].attributes).each(function(){"id"!==this.nodeName&&(this.nodeName,v___available_navigation&&"data-redirect"===this.nodeName&&this.nodeValue&&this.nodeValue.length>0&&"/"!=this.nodeValue&&this.nodeValue!="/?"+$__theme_navigation&&this.nodeValue!=location.origin+v___location_prefix+"/"&&this.nodeValue!=location.origin+v___location_prefix+"/?"+$__theme_navigation&&(!Test.strContains(this.nodeValue,"://")||Test.strContains(this.nodeValue,location.host))&&history.replaceState({},null,navigation_trigger(this.nodeValue,2)),get_server_data(this.nodeName,this.nodeValue),"data-slider-fixed"===this.nodeName&&Core.var.slider_pinned!==-1&&get_server_data(this.nodeName,Core.var.slider_pinned))}).promise().done(function(){if(get_pjax_event_end_funcs(1),$.each($(".container-fluid img"),function(){var e=$(this),t=e.attr("src");t&&!t.startsWith("/")&&e.attr("src",v___location_directory_trail_slashed+t)}),unbuffered_header_post(t),e){var i=$(e.relatedTarget),a=i.attr("href"),n=i.parent().is("[data-linked], .favorites-dcontainer, .menu-exclude.ui-sortable-handle");(n&&(Test.strContains(a,"mysql")||Test.strContains(a,"postgresql"))||Test.strContains(v___module,"mysql")||Test.strContains(v___module,"postgresql"))&&f__ex__mysql_runner(),(n&&Test.strContains(a,"csf")||Test.strContains(v___module,"csf"))&&csf_init()}})}}}}function get_pjax_event_end_funcs(e){page_init(),v___module===v___module_file_manager&&"config.cgi"!==v___location_file&&page.handle.content.preloader(),e||setTimeout(function(){get_server_data("data-title-initial",$("#headln2c span[data-main_title]").text()),get_server_data("data-script-name",v___location_path),get_server_data("data-uri",v___location_resource);var e=new RegExp("^"+v___location_prefix,"i");v___module=get_server_data("data-uri").replace(e,"").split("/").filter(function(e){return 0!==e.length})[0],get_server_data("data-module",v___module),page_render(1)},40),Test.strContains(v___location_directory,v___module_file_manager)&&setTimeout(function(){"function"==typeof ___f__tw?___f__tw():get_bundle_file_manager(1)},40),Core.curModule("csf")||get_server_data("post",0,1),e&&page_render(0),$(".tooltip").tooltip("hide"),$(".popover").popover("hide"),theme_title_generate(),navigation_detect(),e&&$(".__page").scrollTop(0),setTimeout(function(){var e=v___page_container.find("form:visible:first"),t=e.find('input:visible:not([readonly]):not([disabled]):not([type="radio"]):not([type="checkbox"]), textarea:visible:not([readonly]):not([disabled])');t.length&&!t.parents(".ui_buttons_table").length&&"config.cgi"!==v___location_file&&"uconfig.cgi"!==v___location_file&&"settings-user.cgi"!==v___location_file&&Core.var.page_user_inactive&&("domain_form.cgi"===v___location_file||Test.strContains(v___location_query,"new=")||e&&e.length&&(e.attr("action").startsWith("create")||e.attr("action").startsWith("add")||e.attr("action").startsWith("new")))&&t&&0===t.val().length&&t[0].focus()},400)}function get_pjax_action_submit(e,t){if(!get_onbeforeunload_status()){if(e&&!v___theme_force_buffered&&e.target&&e.target.action&&unbuffered_header_processor_allow(e.target.action))return void unbuffered_header_processor(e,1);v___theme_force_buffered=0;var i=quirks.active_element(),a=$(i).attr("name"),n=$.trim(i.value)?$.trim(i.value):$.trim(i.innerText),s=i.value,_=i.type,o=i.nodeName.toLowerCase(),r=$(e.target).find('[name="'+a+'"]'),l=r.attr("type");l&&l.length&&(l=l.toLowerCase()),("input"!==o||r.val()==s&&"submit"!==l)&&("button"!==o||$.trim(r.text())==n&&"submit"!==l)||"button"!==l&&"submit"!==l&&"submit"!==_||$('input[type="hidden"][name="'+a+'"][value="'+(n?n:s)+'"]').length||$("").attr({type:"hidden",name:a,value:n?n:s}).appendTo($(e.target)),v___theme_connection_triggered_origin=1,$.pjax.submit(e,"[data-dcontainer]",{timeout:0,push:get_pjax_push(),type:get_pjax_type(e.target.action),fragment:"[data-dcontainer]"})}}function get_pjax_action_click(e,t){if(void 0!=$(t).attr("href")){if($(e.target).is(".gl-icon-select"))return e.preventDefault(),void $(t).trigger("contextmenu");if(t&&t.href&&unbuffered_header_processor_allow(t.href))return e.preventDefault(),void unbuffered_header_processor(t.href,0);!e||e.shiftKey||e.ctrlKey||e.metaKey||$(t).attr("href",navigation_trigger($(t).attr("href"),1)),e&&(e.shiftKey||e.ctrlKey||e.altKey||e.metaKey)&&setTimeout(function(){despinnerfy_buttons()},400),v___theme_connection_triggered_origin=1,$.pjax.click(e,{timeout:0,push:get_pjax_push(),type:get_pjax_type(t),container:"[data-dcontainer]",fragment:"[data-dcontainer]"})}}function get_onbeforeunload_message($eventData,$thisData,$justEval){bootbox.dialog({message:""+theme_language("theme_xhred_global_unbeforeunload_message"),title:'   '+theme_language("theme_xhred_global_unbeforeunload_title")+"",buttons:{main:{label:'   '+theme_language("theme_xhred_global_cancel")+"  ",className:"btn-default vertical-align-top margined-left--2",callback:function(){despinnerfy_buttons(),navigation_detect()}},danger:{label:'   '+theme_language("theme_xhred_global_continue")+"  ",className:"btn-danger vertical-align-top margined-left--2",callback:function(){if(set_onbeforeunload_status(0,0),set_onbeforeunload_status(0,1),theme_settings_check(),"object"==typeof progressive_request&&1===progressive_request.readyState&&progressive_request.abort(),"ev"===$justEval)return void eval($thisData);var switchStr="::switch::";if($thisData&&$thisData.href&&Test.strContains($thisData.href,"::switch::"))return void $('.switch-toggle input[id="'+$thisData.href.replace("::switch::","")+'"]').trigger("click");var $is_form=$($thisData).is("form");$is_form?$is_form&&get_pjax_action_submit($eventData,$thisData):$thisData.href&&$thisData.href.length&&get_pjax_content($thisData.href,!1)}}},onEscape:function(){despinnerfy_buttons(),navigation_detect()}})}function get_onbeforeunload_status(){return $('.container-fluid > .panel > .panel-body[data-unload-warning="1"]').length||$('html[data-unload-warning="1"]').length}function set_onbeforeunload_status(e,t){var i=t?"html":".container-fluid > .panel > .panel-body";e?$(i).attr("data-unload-warning","1"):$(i).removeAttr("data-unload-warning")}function set_side_slider_visibility(e){if(1!==Core.var.slider_pinned||e||!$(".right-side-tabs i.fa-pin:visible").length){var t=get_server_data("access-level"),i="body .right-side-tabs";"0"!=t&&"1"!=Core.moduleAvailable("status")||(e?($(i+"-toggler").addClass("hidden"),$(i).css("right","0px").addClass("right-side-tabs-fixed"),settings_side_slider_enabled&&get_server_data("data-slider-fixed","1")):(settings_side_slider_enabled&&$(i+"-toggler").removeClass("hidden opened").css("right","0"),$(i).css("right","-302px").removeClass("right-side-tabs-fixed"),get_server_data("data-slider-fixed","0")))}}function set_side_slider_labels(){var e=$('a[href*="#right-side-tabs-sysinfo"]'),t=theme_language("theme_xhred_titles_dashboard");e.length&&void 0!==t?(e.text(t),$('a[href*="#right-side-tabs-notifications"]').text(theme_language("theme_xhred_global_notifications")),$('a[href*="#right-side-tabs-favorites"]').text(theme_language("theme_xhred_global_favorites")),$(".theme_xhred_notification_no_data").text(theme_language("theme_xhred_notification_no_data").toUpperCase()),$(".theme_xhred_notification_no_favorites").text(theme_language("theme_xhred_notification_no_favorites").toUpperCase()),$(".theme_xhred_notification_none").text(theme_language("theme_xhred_notification_none").toUpperCase()),$("[data-ss-dd-help]").text(theme_language("theme_xhred_global_help")),$("[data-ss-dd-theme-configuration]").text(theme_language("theme_xhred_global_theme_configuration")),$("[data-ss-dd-whats-new]").text(theme_language("theme_xhred_global_whats_new")),$("[data-ss-dd-issue-report]").text(theme_language("theme_xhred_global_report_an_issue")),$("[data-ss-dd-official-website]").text(theme_language("theme_xhred_global_official_website")),$("[data-ss-dd-webmin]").text(theme_language("theme_xhred_titles_wm")),$("[data-ss-dd-virtualmin]").text(theme_language("theme_xhred_titles_vm")),$("[data-ss-dd-about-theme]").text(theme_language("theme_xhred_global_about_theme")),$("[data-ss-dd-install-theme-update]").text(theme_language("theme_xhred_global_update")),$("[data-ss-dd-install-release]").text(theme_language("theme_xhred_force_upgrade_stable")),$("[data-ss-dd-install-development]").text(theme_language("theme_xhred_force_upgrade_beta"))):setTimeout(set_side_slider_labels,200)}function theme_password_generator(){var e=settings_global_passgen_format.split("|")[1].split(","),t=parseInt(settings_global_passgen_format.split("|")[0]),i="",a="";$.inArray("a-z",e)>=0&&(i+="abcdefghijklmnopqrstuvwxyz"),$.inArray("A-Z",e)>=0&&(i+="ABCDEFGHIJKLMNOPQRSTUVWXYZ"),$.inArray("0-9",e)>=0&&(i+="0123456789"),$.inArray("#",e)>=0&&(i+="![]{}()%&*$#^<>~@|");for(var n=0;n-1&&(o=o.split("~"),e=o[0],s=o[1]),$.each($(t).find(i),function(){if(!$(this).parents(t).hasClass("f__lnk_t_btn")||Test.strContains(a,"---forced")){if(r){var _=new RegExp(RegExp.quote(r),"g");$(this).parent().replaceText(_,l?l:"")}a&&a.indexOf("__center__")>-1&&$(i).parent().addClass("text-center").addClass("f__lnk_t_btn-el"),$(this).html(e+$(this).text().replace(/\.\.$/,"")+s).addClass(a).addClass("f__lnk_t_btn-el").removeClass("ui_link").prepend(n?'  ':""),$(this).parent(t).addClass("f__lnk_t_btn")}})}))})}function theme_toggle_night_mode(){var e=$("body .user-link.palette-toggle"),t=e.find(".fa-sun").length?0:1,i=(get_server_data("data-night-mode"),get_server_data("data-default-theme")),a=settings_background_color,n=$("input, textarea").is(":focus");if((!v___available_navigation||!n)&&v___available_navigation&&!$("body").find(".modal.in:visible").length){if("object"==typeof CKEDITOR)for(var s in CKEDITOR.instances)$(CKEDITOR.instances[s].document.$).find("body").removeClass("dark nightRider"),1===t?($(CKEDITOR.instances[s].document.$).find("body").addClass("nightRider"),setTimeout(function(){$(CKEDITOR.instances[s].document.$).find("body").addClass("nightRider")},0)):Core.curModule("mailbox")||Core.curModule("mailboxes")||"monokai"!==settings_cm_editor_palette||($(CKEDITOR.instances[s].document.$).find("body").addClass("dark"),setTimeout(function(){$(CKEDITOR.instances[s].document.$).find("body").addClass("dark")},0));if(1===t){e.find(".fa-moon").removeClass("fa-moon").addClass("fa-sun vertical-align-middle"),$(document).find(".settings_navigation_color_toggle").addClass("hidden");var _=$("html").find('head link[href*="palettes"][data-palette]');$("html").find("head").append(''),$("html").find("head").append(''),setTimeout(function(){get_server_data("data-theme","gunmetal"),_.remove(),get_server_data("data-background-style","nightRider"),get_server_data("data-night-mode",1)},3),v___theme_night_mode_enabled=1,v___theme_night_mode=1}else{$("body").find(".settings_navigation_color_toggle").removeClass("hidden"),e.find(".fa-sun").removeClass("fa-sun vertical-align-middle").addClass("fa-moon");var o=$("html").find('head link[href*="gunmetal"]');"blue"!=get_server_data("data-default-theme")&&$("html").find("head").append(''),get_server_data("data-theme",i),o.remove(),get_server_data("data-background-style",a),get_server_data("data-night-mode",0),"nightRider"!==settings_background_color&&$("html").find('head link[href*="nightrider"]').remove(),v___theme_night_mode_enabled="nightRider"===settings_background_color?1:0,v___theme_night_mode=0}v___location_path_lead_unslashed==v___location_prefix_unslashed_trail_slashed+"sysinfo.cgi"&&"0"==v___user_level?(setTimeout(function(){$.each($(".piechart"),function(){$(this).addClass("bg-filter-blur-grayscale-invert-opacity75").data("easyPieChart").update(0)})},1===t?150:0),theme_config("save",['get_pjax_content("'+v___location_prefix+'/sysinfo.cgi")',0])):theme_config("save")}}function theme_shell_status(){return $("body").find(".-shell-port-").hasClass("opened")}function theme_shell_unlock(){v___shell_processing=0,$('.-shell-port- input[data-command="true"]').removeAttr("readonly")}function theme_shell_clear(e){e.val(""),e.focus()}function theme_shell_open(e,t){var i=i=void 0!==t&&(t.startsWith("!")?t.substr(1):t),a=$("body").find(".-shell-port- input");if(i){a.val(i);var n=$.Event("keydown");n.which=13,a.trigger(n)}e.css("bottom","0vh").addClass("opened"),theme_shell_adapt(),setTimeout(function(){i||(focus(),a.focus())},20)}function theme_shell_close(e){e.css("bottom","100vh").removeClass("opened")}function theme_shell_adapt(){if(1==Core.moduleAvailable("shell")){var e=parseInt($("body").find(".-shell-port-cmd").width()),t=parseInt($("body").find(".-shell-port-prompt").width());$("body").find('.-shell-port- input[data-command="true"]').css("width",e-t-50+"px")}}function theme_shell_check_available(){var e=$t_uri_cloudmin&&$('a[target="page"][href*="/server-manager/save_serv.cgi"][href*="shell=1"]').length;return 1==Core.moduleAvailable("shell")||e?1:0}function theme_shell_link_control(){theme_shell_check_available()?0!=settings_show_terminal_link&&$(".user-link.ported-console").removeClass("hidden"):$(".user-link.ported-console").addClass("hidden")}function theme_spinner_small(e,t,i){return e=e||"in-btn-md",t=t||"dark",i=i||"width:12px; height:12px; margin-right: 7px;",''}function despinnerfy_buttons(){$.each($(".btn.disabled"),function(){var e=$(this),t=e.find(".cspinner_container"),i=t.prev("i.invisible");e.removeClass("disabled"),i.removeClass("invisible"),t.remove()})}function spinnerfy_buttons(e,t,i,a){var n=!!(e.attr("onclick")&&e.attr("onclick").indexOf("blank")!==-1||e.parents("form").attr("target")&&e.parents("form").attr("target").indexOf("blank")!==-1),s=e.hasClass("heighter-28"),_="28px"==e.css("height"),o=e.hasClass("btn-lg"),r=e.find(".fa").hasClass("fa-1_25x"),l=e.find(".fa"),c=void 0!==t&&0!=t&&t,d='',h='';setTimeout(function(){!n&&e.addClass("disabled")},10),l.length&&!n&&setTimeout(function(){e.hasClass("btn-default")?l.addClass("invisible").after(h):l.addClass("invisible").after(d)},10),void 0==typeof i&&(i=!1),void 0==typeof a&&(a=!1),(c[3]||i)&&setTimeout(function(){e.removeClass("disabled"),l.removeClass("invisible"),e.find(".cspinner_container").remove()},i?i:c[3]),a&&setTimeout(function(){progress.end()},400)}function theme_language(e,t){void 0===t&&(t=!1);var i=Core.var.language_strings;return i=i?i:get_server_data("language-strings"),t?!!i&&Convert.arrFlip(i)[$.trim(e)]:!!i&&i[e]}function theme_config($action,callBack,$singleOptionToSaveName,$singleOptionToSaveValue){var callBack="object"==typeof callBack&&callBack,watched_options=["config_portable_module_csf_style_custom_promoted","config_portable_theme_charset_warning_shown","config_portable_theme_locale_language","config_portable_theme_locale_languages","config_portable_theme_locale_format_full","config_portable_theme_locale_format_long","config_portable_theme_locale_format_short","config_portable_module_xsql_fit_content_screen_height","config_portable_module_filemanager_records_per_page","config_portable_module_filemanager_default_sort","config_portable_module_filemanager_hide_tree_view","config_portable_module_filemanager_tree_expand_search","config_portable_module_filemanager_tree_view_depth","config_portable_module_filemanager_tree_exclude_on_first_load","config_portable_module_filemanager_hide_toolbar","config_portable_module_filemanager_hovered_toolbar","config_portable_module_filemanager_hide_actions","config_portable_module_filemanager_remember_tabs","config_portable_module_filemanager_calculate_size","config_portable_module_filemanager_switch_user","config_portable_module_filemanager_notification_type"];if("get_options"==$action)return watched_options;if("save"==$action&&$singleOptionToSaveName)return localStorage.setItem(v___server_hostname+"-"+$singleOptionToSaveName,$singleOptionToSaveValue),window[$singleOptionToSaveName]=$singleOptionToSaveValue,void theme_config("save");if("save"==$action){var storeStorage={},val=0;$.each(localStorage,function(e,t){"string"==typeof e&&e.indexOf(v___server_hostname)>-1&&Test.arrIntersect(watched_options,e)&&"undefined"!=(val="true"==t||"false"!=t&&(Test.numeric(t)?parseInt(t):t))&&(storeStorage[e.replace(v___server_hostname+"-","")]=val)}),storeStorage.settings_force_night_mode=v___theme_night_mode,storeStorage.settings_font_family=settings_font_family,storeStorage.settings_navigation_color=settings_navigation_color,storeStorage.settings_background_color=settings_background_color,storeStorage.settings_cm_editor_palette=settings_cm_editor_palette,storeStorage.settings_button_tooltip=settings_button_tooltip,storeStorage.settings_hide_top_loader=settings_hide_top_loader,storeStorage.settings_animation_left=settings_animation_left,storeStorage.settings_animation_tabs=settings_animation_tabs,storeStorage.settings_sysinfo_link_mini=settings_sysinfo_link_mini,storeStorage.settings_show_night_mode_link=settings_show_night_mode_link,storeStorage.settings_theme_options_button=settings_theme_options_button,storeStorage.settings_leftmenu_button_refresh=settings_leftmenu_button_refresh,storeStorage.settings_hotkeys_active=settings_hotkeys_active,setTimeout(function(){$.ajax({type:"POST",url:v___location_prefix+"/index.cgi?xhr-manage-config=1&save=1",data:storeStorage,dataType:"text",success:function(c){if(Test.strContains(c,v___page_signin_form))return void(v___available_session=0);setTimeout(function(){theme_settings_controls(0)},400),callBack&&(callBack[2]?setTimeout(function(){eval(callBack[0])},callBack[2]):eval(callBack[0]))},error:function(){}})},10)}else if("load"===$action){var val=0;$.ajax({type:"GET",url:v___location_prefix+"/index.cgi?xhr-manage-config=1&load=1",data:!1,dataType:"json",success:function(e){if(Test.strContains(e,v___page_signin_form))return void(v___available_session=0);$.each(e,function(e,t){val="true"==t||"false"!=t&&(Test.numeric(t)?parseInt(t):t),localStorage.setItem(v___server_hostname+"-"+e,val),window[e]=val}),theme_config_post_load()},error:function(){}})}}function theme_config_post_load(){moment.locale(config_portable_theme_locale_language&&"0"!=config_portable_theme_locale_language?config_portable_theme_locale_languages:get_server_data("language-full"))}function get_server_data(e,t,i){var a=$("html"),n=$("body"),s="data-"+e,_=e.replace("data-","");if(void 0!==i)e.startsWith("data-")?(a.removeAttr(e),a.removeData(_)):(a.removeAttr(s),a.removeData(e));else{if(void 0===t)return e.startsWith("data-")?a.attr(e):a.data(e);e.startsWith("data-")?a.attr(e,t).data(_,t):a.data(e,t).attr(s),"data-uri"!==e&&"data-module"!==e||(n.attr(e,t),"data-module"===e&&n.removeClass().addClass(t))}}function connection_reestablish(){var e="modal-connection-warning";$("."+e).length&&$.ajax({type:"GET",url:v___location_prefix+"/index.cgi/?xhr-check=1",data:!1,timeout:3e3,dataType:"text",success:function(t){$("."+e).find(".modal-header").removeClass("background-danger").addClass("background-success").find("h4").html('   '+theme_language("theme_xhred_connection_success")),$("."+e).find(".modal-body").html("

"+theme_language("theme_xhred_connection_success_details")+"

"),setTimeout(function(){$("."+e).modal("hide"),v___theme_connection_reestablish=0},2e3)},error:function(e){v___theme_connection_reestablish&&setTimeout(function(){connection_reestablish()},3e3)}})}function control_server_tmp_var(e,t,i,a,n,s){return $.ajax({type:"POST",url:v___location_prefix+"/index.cgi/?xhr-tmp_var=1&xhr-tmp_var_action="+e+"&xhr-tmp_var_name="+t+"&xhr-tmp_var_value="+(i?Convert.uriEncodeComponent(i):i)+"&xhr-tmp_var_keep="+a,data:!1,dataType:"text",success:function(e){if(Test.strContains(e,v___page_signin_form))return void(v___available_session=0);"function"==typeof n&&(!e.length||e.length&&1===s)&&n()},error:function(e){}})}function get_server_tmp_var(e,t,i,a){return control_server_tmp_var("get",e,!1,t,i,a)}function set_server_tmp_var(e,t){control_server_tmp_var("set",e,t)}function get_navigation_module_name(){return $t_uri_webmin?theme_language("theme_xhred_titles_wm"):$t_uri_usermin?theme_language("theme_xhred_titles_um"):$t_uri_virtualmin?theme_language("theme_xhred_titles_vm"):$t_uri_cloudmin?theme_language("theme_xhred_titles_cm"):$t_uri_webmail?theme_language("theme_xhred_titles_mail"):$t_uri_dashboard?theme_language("theme_xhred_titles_dashboard"):void 0}function update_navigation_module_name(){$t_uri_webmin=$('.switch-toggle input[id="open_webmin"]:checked').length?1:0,$t_uri_usermin=$('.switch-toggle input[id="open_usermin"]:checked').length?1:0,$t_uri_virtualmin=$('.switch-toggle input[id="open_virtualmin"]:checked').length?1:0,$t_uri_cloudmin=$('.switch-toggle input[id="open_cloudmin"]:checked').length?1:0,$t_uri_webmail=$('.switch-toggle input[id="open_webmail"]:checked').length?1:0,$t_uri_dashboard=$('.switch-toggle input[id="open_dashboard"]:checked').length?1:0}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(){despinnerfy_buttons(),setTimeout(function(){get_server_tmp_var("redirected",0)},100),setTimeout(function(){progress.end()},600)}function page_adjust(e,t){"function"==typeof $.injectCSS&&($("style[data-persist]").remove(),t=!!t&&"translate("+t+"px, 0px) !important",$.injectCSS({"#sidebar":{left:-e+"px",width:e+"px",transform:t},".switch-toggle":{width:e+"px"},"#content.__page":{"margin-left":e+"px"},".autocomplete-suggestions":{"min-width":e-23+"px !important"},".__logo":{width:e+"px","max-width":e+"px"},"#jsPanel-replacement-container":{left:(v___available_navigation?settings_leftmenu_width-1:-2)+"px"}}),$("aside select").length&&($("aside select[data-autocomplete-title]").attr("style","width:"+(e-24)+"px; margin-top: 0 !important"),navigation_init_select()))}function navigation_lock_width(){if("undefined"==typeof settings_leftmenu_width_initial&&(settings_leftmenu_width_initial=settings_leftmenu_width),matchMedia("(max-width: 1080px)").matches||"1"==$("html").attr("data-navigation-collapsed"))settings_leftmenu_width=260,page_adjust(settings_leftmenu_width,0);else{if(1===v___initial_load)return;settings_leftmenu_width=settings_leftmenu_width_initial,page_adjust(settings_leftmenu_width,settings_leftmenu_width)}}function theme_modal_dismiss(){$(".modal.in").find("[data-dismiss]").trigger("click")}function navigation_focus_search(e){if(settings_hotkeys_active&&v___available_session)return String.fromCharCode(e.which).toLowerCase()!=settings_hotkey_focus_search||!e[settings_hotkey_toggle_modifier]||(e.preventDefault(),$search=$(".form-control.sidebar-search").focus(),!1)}function theme_shortcut_check(e){return"0"==get_access_level()||!!Core.moduleAvailable(URI("/"+e).directory().replace(/\//g,""))}function theme_shortcuts(e){if(!Test.editing()&&settings_hotkeys_active){if(!("1"==String.fromCharCode(e.which)&&settings_hotkey_custom_1&&e[settings_hotkey_toggle_modifier]||"2"==String.fromCharCode(e.which)&&settings_hotkey_custom_2&&e[settings_hotkey_toggle_modifier]||"3"==String.fromCharCode(e.which)&&settings_hotkey_custom_3&&e[settings_hotkey_toggle_modifier]||"4"==String.fromCharCode(e.which)&&settings_hotkey_custom_4&&e[settings_hotkey_toggle_modifier]||"5"==String.fromCharCode(e.which)&&settings_hotkey_custom_5&&e[settings_hotkey_toggle_modifier]||"6"==String.fromCharCode(e.which)&&settings_hotkey_custom_6&&e[settings_hotkey_toggle_modifier]||"7"==String.fromCharCode(e.which)&&settings_hotkey_custom_7&&e[settings_hotkey_toggle_modifier]||"8"==String.fromCharCode(e.which)&&settings_hotkey_custom_8&&e[settings_hotkey_toggle_modifier]||"9"==String.fromCharCode(e.which)&&settings_hotkey_custom_9&&e[settings_hotkey_toggle_modifier]||String.fromCharCode(e.which).toLowerCase()==settings_hotkey_favorites&&e[settings_hotkey_toggle_modifier]||String.fromCharCode(e.which).toLowerCase()==settings_hotkey_shell&&e[settings_hotkey_toggle_modifier]||String.fromCharCode(e.which).toLowerCase()==settings_hotkey_sysinfo&&e[settings_hotkey_toggle_modifier]||String.fromCharCode(e.which).toLowerCase()==settings_hotkey_toggle_slider&&e[settings_hotkey_toggle_modifier]||String.fromCharCode(e.which).toLowerCase()==settings_hotkey_reload&&e[settings_hotkey_toggle_modifier]||String.fromCharCode(e.which).toLowerCase()==settings_hotkey_toggle_key_night_mode&&e[settings_hotkey_toggle_modifier]||String.fromCharCode(e.which).toLowerCase()==settings_hotkey_toggle_key_webmail&&e[settings_hotkey_toggle_modifier]||String.fromCharCode(e.which).toLowerCase()==settings_hotkey_toggle_key_usermin&&e[settings_hotkey_toggle_modifier]||String.fromCharCode(e.which).toLowerCase()==settings_hotkey_toggle_key_cloudmin&&e[settings_hotkey_toggle_modifier]||String.fromCharCode(e.which).toLowerCase()==settings_hotkey_toggle_key_virtualmin&&e[settings_hotkey_toggle_modifier]||String.fromCharCode(e.which).toLowerCase()==settings_hotkey_toggle_key_webmin&&e[settings_hotkey_toggle_modifier]))return!0;if(!v___available_session)return void e.preventDefault();"1"==String.fromCharCode(e.which)&&settings_hotkey_custom_1&&(e.preventDefault(),theme_shortcut_check(settings_hotkey_custom_1)&&get_pjax_content(v___location_prefix+settings_hotkey_custom_1)),"2"==String.fromCharCode(e.which)&&settings_hotkey_custom_2&&(e.preventDefault(),theme_shortcut_check(settings_hotkey_custom_2)&&get_pjax_content(v___location_prefix+settings_hotkey_custom_2)),"3"==String.fromCharCode(e.which)&&settings_hotkey_custom_3&&(e.preventDefault(),theme_shortcut_check(settings_hotkey_custom_3)&&get_pjax_content(v___location_prefix+settings_hotkey_custom_3)),"4"==String.fromCharCode(e.which)&&settings_hotkey_custom_4&&(e.preventDefault(),theme_shortcut_check(settings_hotkey_custom_4)&&get_pjax_content(v___location_prefix+settings_hotkey_custom_4)),"5"==String.fromCharCode(e.which)&&settings_hotkey_custom_5&&(e.preventDefault(),theme_shortcut_check(settings_hotkey_custom_5)&&get_pjax_content(v___location_prefix+settings_hotkey_custom_5)),"6"==String.fromCharCode(e.which)&&settings_hotkey_custom_6&&(e.preventDefault(),theme_shortcut_check(settings_hotkey_custom_6)&&get_pjax_content(v___location_prefix+settings_hotkey_custom_6)),"7"==String.fromCharCode(e.which)&&settings_hotkey_custom_7&&(e.preventDefault(),theme_shortcut_check(settings_hotkey_custom_7)&&get_pjax_content(v___location_prefix+settings_hotkey_custom_7)), -"8"==String.fromCharCode(e.which)&&settings_hotkey_custom_8&&(e.preventDefault(),theme_shortcut_check(settings_hotkey_custom_8)&&get_pjax_content(v___location_prefix+settings_hotkey_custom_8)),"9"==String.fromCharCode(e.which)&&settings_hotkey_custom_9&&(e.preventDefault(),theme_shortcut_check(settings_hotkey_custom_9)&&get_pjax_content(v___location_prefix+settings_hotkey_custom_9)),String.fromCharCode(e.which).toLowerCase()==settings_hotkey_toggle_key_webmin&&(e.preventDefault(),$('.switch-toggle input[id="open_webmin"]').trigger("click")),String.fromCharCode(e.which).toLowerCase()==settings_hotkey_toggle_key_virtualmin&&(e.preventDefault(),$('.switch-toggle input[id="open_virtualmin"]').trigger("click")),String.fromCharCode(e.which).toLowerCase()==settings_hotkey_toggle_key_cloudmin&&(e.preventDefault(),$('.switch-toggle input[id="open_cloudmin"]').trigger("click")),String.fromCharCode(e.which).toLowerCase()==settings_hotkey_toggle_key_usermin&&(e.preventDefault(),$('.switch-toggle input[id="open_usermin"]').trigger("click")),String.fromCharCode(e.which).toLowerCase()==settings_hotkey_toggle_key_webmail&&(e.preventDefault(),$('.switch-toggle input[id="open_webmail"]').trigger("click")),String.fromCharCode(e.which).toLowerCase()==settings_hotkey_toggle_key_night_mode&&(e.preventDefault(),theme_toggle_night_mode()),String.fromCharCode(e.which).toLowerCase()==settings_hotkey_toggle_slider&&(e.preventDefault(),$(".right-side-tabs-toggler:not(.hidden) .btn-menu-toggler").trigger("click")),String.fromCharCode(e.which).toLowerCase()==settings_hotkey_reload&&$('.user-links a[data-refresh="true"]')&&(e.preventDefault(),get_onbeforeunload_status()?get_onbeforeunload_message(!1,"get_pjax_content(v___location_resource)","ev"):get_pjax_content(v___location_resource));var t=$t_uri_cloudmin&&$('a[target="page"][href*="/server-manager/save_serv.cgi"][href*="shell=1"]').length;if(String.fromCharCode(e.which).toLowerCase()==settings_hotkey_shell&&(1==Core.moduleAvailable("shell")||t)){e.preventDefault();var i=$("body").find(".-shell-port-");i.hasClass("opened")?theme_shell_close(i):theme_shell_open(i)}return String.fromCharCode(e.which).toLowerCase()==settings_hotkey_sysinfo&&(e.preventDefault(),1==navigation_dashboard_switch_available()?navigation_dashboard_switch_select():get_pjax_content(v___location_prefix+"/sysinfo.cgi")),String.fromCharCode(e.which).toLowerCase()==settings_hotkey_favorites&&(e.preventDefault(),"0px"!=$(".favorites-menu-outer").css("left")?$(".user-link.favorites").trigger("click"):$(".favorites-menu-outer").removeClass("hover")),!1}}function get_access_level(){return Core.var.level!==-1?parseInt(Core.var.level):parseInt(get_server_data("level"))}function navigation_dashboard_switch_available(){return"1"==get_server_data("dashboard")}function navigation_dashboard_switch_select(){set_switch_position("dashboard"),navigation_clear(),get_pjax_content(v___location_prefix+"/sysinfo.cgi")}function theme_messenger(e,t,i,a,n){var s=void 0===a?1:a,_=void 0===n||n;if($('body[class^="'+v___module_file_manager+'"]').length){if("4"==config_portable_module_filemanager_notification_type&&"info"!=i&&"warning"!=i&&"error"!=i)return;if("2"==config_portable_module_filemanager_notification_type&&"warning"!=i&&"error"!=i)return}"function"==typeof Messenger&&(window["Messenger_"+s]=Messenger().post({message:e,hideAfter:t,theme:"air",showCloseButton:_,type:i,id:s}))}function theme_message_dismiss(e){void 0!==window["Messenger_"+e]&&window["Messenger_"+e].hide()}function theme_alert(e,t,i,a,n,s,_,o){(void 0===i||0==i)&&(i=!1),(void 0===a||0==a)&&(a="md"),(void 0===n||0==n)&&(n="danger"),(void 0===s||0==s)&&(s="exclamation-triangle"),(void 0===_||0==_)&&(_="7"),(void 0===o||0==o)&&(o=!1);var r=($.isArray(i),"modal-global-notification"),l='";setTimeout(function(){$("body").hasClass("modal-open")||($("body").append(l),$("."+r).modal("show"),$("."+r).on("click",".modal-body a.label",function(e){$("."+r).modal("hide")}),$("."+r).on("hidden.bs.modal",function(e){$("."+r).remove()}))},o)}function theme_alert_charset(){var e=get_server_data("charset");if(e&&e.toLowerCase().indexOf("utf")===-1&&"true"!=localStorage.getItem(v___server_hostname+"-config_portable_theme_charset_warning_shown")){var t="

"+theme_language("theme_xhred_encoding_warning").replace("_hidden_",$t_uri_usermin?"hidden":"").replace("%prod",get_navigation_module_name()).replace("%lang",get_server_data("language")).replace("%charset",get_server_data("charset")).replace("%link",v___location_prefix+($t_uri_usermin?"/language":"/webmin/edit_lang.cgi"))+"

";theme_alert(theme_language("theme_xhred_global_warning"),t,!1,"sm","warning",!1,"7 modal-charset-warning",2e3),$("body").on("click",".modal-charset-warning a.label",function(e){$(".modal-charset-warning").modal("hide")}),$("body").on("hide.bs.modal",".modal-charset-warning",function(e){localStorage.setItem(v___server_hostname+"-config_portable_theme_charset_warning_shown","true"),theme_config("save")})}}function get_module_title(){return $_right_menu_title=$("#headln2c"),$_right_menu_title.find("span[data-main_title]").text().length?$_right_menu_title.find("span[data-main_title]").text():$_right_menu_title.text().length?$_right_menu_title.text().text():"->"}function get_module_subtitle(){}function editor_background_save(e){function t(){"undefined"!=typeof __cm_editor_static&&$(".container-fluid > .panel > .panel-body").attr("data-cm-line",__cm_editor_static.getCursor().line+","+__cm_editor_static.getCursor().ch).attr("data-cm-state",$('[data-form="submitter"]').hasClass("btn-warning")&&!$('[data-form="submitter"]').next("button").hasClass("disabled"))}if(1===$('textarea[name="data"], textarea[name="text"], textarea[name="directives"], textarea[name="manual"]').length&&1===$('textarea[name="data"], textarea[name="text"], textarea[name="directives"], textarea[name="manual"]').parents("form").find('input[type="submit"]').length){if(!$(".CodeMirror").length)return;$(".ui_reset").remove();var i=$('.container-fluid textarea[name="data"], .container-fluid textarea[name="text"], .container-fluid textarea[name="directives"], .container-fluid textarea[name="manual"]').parents("form"),a=i.find('button[type="button"]').length?i.find('button[type="button"]'):i.find('input[type="submit"]'),n=$('.container-fluid textarea[name="directives"]').length?"-12px":"0";$(".container-fluid select").val()?$(".container-fluid select").val():$(".container-fluid .table-title").text()?$(".container-fluid .table-title").text():$(".container-fluid .panel-body tt:first").text()?$(".container-fluid .panel-body tt:first").text():$(".container-fluid #headln2c tt:first").text()&&$(".container-fluid #headln2c tt:first").text();a.parents("table.ui_form_end_buttons").prev("br").remove(),a.parents("table.ui_form_end_buttons").prev("div.table-responsive").attr("style","margin-bottom: -4px !important"),a.replaceWith('\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t");var s=$('.container-fluid button[type="button"]:not(.ui_form_end_submit)'),_=$('.container-fluid button[type="submit"]:not(.ui_form_end_submit)');window.__cm_editor_static.on("change",function(e,i){__cm_editor_static.save(),s.addClass("btn-warning").removeClass("btn-success").attr("data-form-onbeforeunload",1),t()}),$("body").off("mousedown.cm1"),$("body").on("mousedown.cm1",".CodeMirror",function(e){t()}),$("body").off("keydown.cm1"),$("body").on("keydown.cm1",function(e){13==e.keyCode&&e.ctrlKey&&!e.shiftKey?s.trigger("click"):13==e.keyCode&&e.ctrlKey&&e.shiftKey&&_.trigger("click")});var o='button[type="submit"]:not(.disabled)';$("body").undelegate(o,"click.cm"),$("body").on("click.cm",o,function(e){set_onbeforeunload_status(0,0),$("button").addClass("disabled").find(".fa.fa-arrow-circle-o-left").addClass("invisible").after(''),s.attr("data-form-onbeforeunload",0)});var r='button[data-form="submitter"]:not(.disabled)';$("body").undelegate(r,"click.cm"),$("body").on("click.cm",r,function(e){e.preventDefault();var t=$(this),a=t.parents("form"),n=a.attr("enctype")&&a.attr("enctype").indexOf("form-data")>-1?0:1,_=n?a.serialize():new FormData(a[0]);$("button").addClass("disabled").find(".fa.fa-floppy-o").addClass("invisible").after(''),setTimeout(function(){$.ajax({type:"POST",url:i.attr("action"),data:_,dataType:"text",cache:!1,contentType:!1,processData:!1,success:function(e){return Test.strContains(e,v___page_signin_form)?void(v___available_session=0):(s.removeClass("btn-warning").addClass("btn-success").attr("data-form-onbeforeunload",0),$("button").removeClass("disabled").find(".fa").removeClass("invisible").parent().find(".cspinner_container").remove(),$(".container-fluid > .panel > .panel-body").attr("data-cm-state","false"),set_onbeforeunload_status(0,0),!$(e).find(".panel-body > hr + h3").length||$(e).find(".panel-body .table").length||$(e).find(".panel-body form[action]").length?void 0:(theme_messenger(''+$(e).find(".panel-body hr + h3").html(),60,"error","magic_save_error"),s.removeClass("btn-success").addClass("btn-warning").attr("data-form-onbeforeunload",1),void $(".container-fluid > .panel > .panel-body").attr("data-cm-state","true")))},error:function(e){}})},300)})}}function page_resized(){navigation_lock_width(),$(".mobile-menu-toggler").hasClass("selected")||"1"==$("html").attr("data-navigation-collapsed")||($("aside").addClass("hidden-xs"),$("aside").css("transform","translate("+settings_leftmenu_width+"px, 0px)"),$(".switch-toggle").css("display","table"),"function"==typeof jQuery().transition&&$(".__logo")&&!$(".mobile-menu-toggler:visible").length?$(".__logo").transition({y:"-140px"},700,function(){}):$(".__logo")&&$(".__logo").css("transform","translate(0px, 0px)")),set_side_slider_visibility(settings_side_slider_fixed!==!0||$(".mobile-menu-toggler:visible").length||!v___available_navigation||settings_side_slider_fixed===!0&&window.matchMedia("(max-width: 1365px)").matches?0:1);var e=$('input[name="settings_leftmenu_width"]');if($(".mobile-menu-toggler:visible").length?e.prop("disabled",!0):e.prop("disabled",!1),v___location_path&&v___location_path.indexOf("/webmin/edit_themes.cgi")>-1){var t=!(!settings_navigation_always_collapse&&!window.matchMedia("(max-width: 1365px)").matches),i="false"!=$('input[name="settings_side_slider_enabled"]:checked').val();t&&$('input[name="settings_side_slider_fixed"][value="false"], input[name="settings_side_slider_fixed_toggle"][value="false"]').trigger("click"),i&&$('input[name="settings_side_slider_fixed"], input[name="settings_side_slider_fixed_toggle"]').prop("disabled",t)}}function theme_settings_controls(e){var t=$("#atsave, #save_user");e?(set_onbeforeunload_status(1,0),t.addClass("btn-warning")):(set_onbeforeunload_status(0,0),t.removeClass("btn-warning"))}function theme_settings_check(){var e=v___location_path.indexOf("/webmin/edit_themes.cgi")>-1,t=v___location_path.indexOf("/settings-user.cgi")>-1;if(v___location_path&&(e||t)){var i=void 0===i?settings_font_family:i,a=settings_side_slider_enabled,n=settings_side_slider_fixed_toggle,s=settings_side_slider_sysinfo_enabled,_=settings_side_slider_notifications_enabled,o=settings_side_slider_favorites_enabled,r=settings_side_slider_palette,l=settings_navigation_always_collapse,c=settings_leftmenu_width,d=settings_leftmenu_user_html;$.getScript(v___server_js_path+"/settings.js",function(e,h,f){t&&(!t||i==settings_font_family)||i==settings_font_family&&a==settings_side_slider_enabled&&n==settings_side_slider_fixed_toggle&&s==settings_side_slider_sysinfo_enabled&&_==settings_side_slider_notifications_enabled&&o==settings_side_slider_favorites_enabled&&r==settings_side_slider_palette&&l==settings_navigation_always_collapse&&c==settings_leftmenu_width&&d==settings_leftmenu_user_html?page_resized():theme_reload()})}}function theme_settings_update(){$.each($("#atsettings .ui_form").serializeArray(),function(e,t){if("true"==t.value||"false"==t.value){if("true"==t.value)var i=!0;else if("false"==t.value)var i=!1}else var i=t.value;window[t.name]=Test.numeric(i)?parseFloat(i):i})}function bind_sameorigin(e){1===e?$.each($('aside ul.navigation a[href^="http"], aside ul.navigation a[href^="https"], aside ul.navigation a[href^="ftp"], aside ul.navigation a[href^="ftps"], aside ul.navigation a[data-href^="http"], aside ul.navigation a[data-href^="https"], aside ul.navigation a[data-href^="ftp"], aside ul.navigation a[data-href^="ftps"]'),function(){$(this).removeClass("navigation_module_trigger").parents("li").addClass("navigation_external"),$(this).attr("target","_blank"),$(this).attr("href",$(this).data("href")),$(this).removeAttr("data-href")}):$.each($('.container-fluid a[href^="http"], .container-fluid a[href^="https"], .container-fluid a[href^="ftp"], .container-fluid a[href^="ftps"]'),function(){Core.linkSameOrigin($(this))||$(this).attr("target","_blank")})}function reset_switch_position(){Test.string(v___theme_navigation_active)&&set_switch_position(v___theme_navigation_active)}function set_switch_position(e){get_onbeforeunload_status()||($('.switch-toggle input:not([id="open_'+e+'"])').each(function(){$(this).removeAttr("checked")}).promise().done(function(){$("#open_"+e).prop("checked",!0)}),update_navigation_module_name())}function get_navigation_menu_webmin(e){get_onbeforeunload_status()||(navigation_render_start(),$.ajax({type:"GET",url:v___location_prefix+"/index.cgi/?xhr-navigation=1&xhr-navigation-type="+("webmail"==e?"webmail":"webmin"),data:!1,dataType:"text",success:function(t){if(Test.strContains(t,v___page_signin_form))return v___available_session=0,navigation_render_end(),void reset_switch_position();v___theme_navigation_active="webmail"==e?"webmail":get_server_data("product"),$("body ul.navigation").html(t),navigation_render_end(),!get_server_data("loading")&&navigation_detect()}}),get_navigation_menu_buttons())}function get_navigation_menu_virtualmin(e){get_onbeforeunload_status()||(navigation_render_start(),$.ajax({type:"GET",url:v___location_prefix+"/index.cgi/?xhr-navigation=1&xhr-navigation-type=virtualmin"+(e?"&dom="+e:settings_right_virtualmin_default?"&dom="+settings_right_virtualmin_default:""),data:!1,dataType:"text",success:function(e){if(Test.strContains(e,v___page_signin_form))return v___available_session=0,navigation_render_end(),void reset_switch_position();v___theme_navigation_active="virtualmin",$("body ul.navigation").html(e),navigation_render_end(),get_navigation_menu_virtualmin_summary(),!get_server_data("loading")&&navigation_detect()}}),get_navigation_menu_buttons())}function get_navigation_menu_virtualmin_summary(){if(!get_onbeforeunload_status()){var e=$('a[href*=".cgi?dom=$#DOM"]'),t=e.attr("href"),i=$('aside [name="dom"]').val();e.length&&i&&e.attr("href",t.replace("$#DOM",i))}}function get_navigation_menu_cloudmin(e){get_onbeforeunload_status()||(navigation_render_start(),$.ajax({type:"GET",url:v___location_prefix+"/index.cgi/?xhr-navigation=1&xhr-navigation-type=cloudmin"+(e||0===e?"&sid="+e:settings_right_cloudmin_default?"&sid="+settings_right_cloudmin_default:""),data:!1,dataType:"text",success:function(e){if(Test.strContains(e,v___page_signin_form))return v___available_session=0,navigation_render_end(),void reset_switch_position();v___theme_navigation_active="cloudmin",$("body ul.navigation").html(e),theme_shell_link_control(),navigation_render_end(),!get_server_data("loading")&&navigation_detect()}}),get_navigation_menu_buttons())}function get_navigation_menu_buttons(){get_onbeforeunload_status()||$.ajax({type:"GET",url:v___location_prefix+"/index.cgi/?xhr-buttons=1&xhr-buttons-type="+($t_uri_virtualmin||$t_uri_cloudmin?1:0),data:!1,dataType:"text",success:function(e){if(Test.strContains(e,v___page_signin_form))return void(v___available_session=0);$("body ul.user-links").html(e),theme_shell_link_control()}})}function get_default_content(){if(!get_onbeforeunload_status()){if(v___theme_processing_default_content)return void setTimeout(function(){v___theme_processing_default_content&&(v___theme_processing_default_content=0)},1001);v___theme_processing_default_content=1,$("body").append(''),$.ajax({type:"GET",url:v___location_prefix+"/index.cgi/?xhr-default=1",data:!1,dataType:"text",success:function(e){if(Test.strContains(e,v___page_signin_form))return void(v___available_session=0);$("#____switch").html(e),$____switch=$("#____switch").text();var t=v___location_prefix+(3==v___user_level&&Core.moduleAvailable("mailbox")&&$t_uri_webmail?"/mailbox/index.cgi?id=INBOX":3==v___user_level?"/sysinfo.cgi":("/"==$____switch.substring(0,1)?"":"/")+$____switch);check_bundle(t),get_pjax_content(t,["success","v___theme_processing_default_content = 0"]),$("#____switch").remove()}})}}function get_default_virtualmin_content(e,t){if(!get_onbeforeunload_status()||t){if(v___theme_processing_default_content)return void setTimeout(function(){v___theme_processing_default_content&&(v___theme_processing_default_content=0)},1001);v___theme_processing_default_content=1;var i,a="/virtual-server";if(i=1==get_server_data("initial-wizard")?a+"/wizard.cgi":e!==!1?a+"/summary_domain.cgi?dom="+e:"sysinfo.cgi"==settings_right_virtualmin_default||""==settings_right_virtualmin_default?"/sysinfo.cgi":"index.cgi"==settings_right_virtualmin_default?a+"/index.cgi":a+"/summary_domain.cgi?dom="+settings_right_virtualmin_default,t)return v___location_prefix+i;get_pjax_content(v___location_prefix+i,["success","v___theme_processing_default_content = 0"])}}function get_default_cloudmin_content(e,t){if(!get_onbeforeunload_status()||t){if(v___theme_processing_default_content)return void setTimeout(function(){v___theme_processing_default_content&&(v___theme_processing_default_content=0)},1001);v___theme_processing_default_content=1;var i;if(i=e===!1||settings_right_cloudmin_default||"0"==settings_right_cloudmin_default?"sysinfo.cgi"==settings_right_cloudmin_default||""==settings_right_cloudmin_default&&"0"!=settings_right_cloudmin_default?"sysinfo.cgi":"index.cgi"==settings_right_cloudmin_default?"server-manager/index.cgi":"server-manager/edit_serv.cgi?id="+settings_right_cloudmin_default:"server-manager/edit_serv.cgi?id="+e,t)return v___location_prefix+"/"+i;get_pjax_content(v___location_prefix+"/"+i,["success","v___theme_processing_default_content = 0"])}}function get_navigation_and_content(e,t,i){get_onbeforeunload_status()||("virtualmin"===e?(get_navigation_menu_virtualmin(!1),1!=settings_right_reload&&1!==t||1===i||get_default_virtualmin_content(!1)):"cloudmin"===e?(get_navigation_menu_cloudmin(!1),1!=settings_right_reload&&1!==t||1===i||get_default_cloudmin_content(!1)):(0==navigation_dashboard_switch_available()&&get_navigation_menu_webmin(e),1!=settings_right_reload&&1!==t||1===i||get_default_content()))}function information_update(){if(!$("body .modal.in").length){if(!e)var e=get_server_data("webprefix");if(0==v___user_level){var t=$("body").find("#system-status"),i=t.length?t[0]:0;$("#right-side-tabs-sysinfo .graph-container").length||$("#right-side-tabs .info-container").html(get_right_panel_sysinfo_data());var a=$(".right-side-tabs-dismiss .fa-reload");a.addClass("fa-spin-fastest cursor-na"),setTimeout(function(){a.removeClass("fa-spin-fastest cursor-na")},3e3),$.ajax({type:"GET",url:e+"/index.cgi/?xhr-info=1",data:!1,dataType:"json",success:function(t){if(Test.strContains(t,v___page_signin_form))return void(v___available_session=0);$.each(t,function(t,a){if("cpu_percent"!=t&&"mem_percent"!=t&&"virt_percent"!=t&&"disk_percent"!=t||(Test.numeric(a)?localStorage.setItem(v___server_hostname+"-sysinfo_"+t+"_stats",a):localStorage.setItem(v___server_hostname+"-sysinfo_"+t+"_stats","")),i){if($(i).find('span[data-id="sysinfo_'+t+'"]').html(a),"local_time"==t||"uptime"==t||"proc"==t){var n=$(i).find('span[data-id="sysinfo_'+t+'"]'),s=n.find("a").length?n.find("a"):n.find("span"),_=s,o=$(i).find('span[data-id="sysinfo_'+t+'"]').text();"local_time"==t?_&&_.length?(o=s.data("convertible-timestamp-full"),n.html(_.html(moment.unix(o).format(config_portable_theme_locale_format_long)))):(o=$(i).find('span[data-id="sysinfo_'+t+'"] > span').data("convertible-timestamp-full"),n.html(moment.unix(o).format(config_portable_theme_locale_format_long))):_&&_.length&&n.html(_.html(o))}if(page_sysinfo_sensor_update_label(),$(i).find('.piechart[data-charts="sysinfo_'+t+'"]').length){var r=$("body").find('.piechart[data-charts="sysinfo_'+t+'"]');r.length&&!isNaN(parseInt(a))&&r.data("easyPieChart").update(a)}"cpu_percent"!=t&&"mem_percent"!=t&&"virt_percent"!=t&&"disk_percent"!=t||localStorage.setItem(v___server_hostname+"-sysinfo_"+t+"_seen",a),$(i).find(".modal-backdrop").remove()}if($__id__=moment().unix(),"cpu_percent"==t||"mem_percent"==t||"virt_percent"==t||"disk_percent"==t||"csf_title"==t||"csf_remote_version"==t||"authentic_remote_version"==t||"package_message"==t?localStorage.getItem(v___server_hostname+"-sysinfo_"+t)||localStorage.setItem(v___server_hostname+"-sysinfo_"+t,a):a&&null!=a&&NaN!=a?localStorage.setItem(v___server_hostname+"-sysinfo_"+t,a):localStorage.setItem(v___server_hostname+"-sysinfo_"+t,""),localStorage.getItem(v___server_hostname+"-sysinfo_package_message_initial")||localStorage.setItem(v___server_hostname+"-sysinfo_package_message_initial",1),"authentic_theme_version"==t&&!localStorage.getItem(v___server_hostname+"-sysinfo_theme_current_version")&&a&&localStorage.setItem(v___server_hostname+"-sysinfo_theme_current_version",a.match(/^\d+|\d+\b|\d+(?=\w)/g)[0]+"."+a.match(/^\d+|\d+\b|\d+(?=\w)/g)[1]),"csf_data"==t&&!localStorage.getItem(v___server_hostname+"-sysinfo_csf_current_version")&&a&&localStorage.setItem(v___server_hostname+"-sysinfo_csf_current_version",a.match(/^\d+|\d+\b|\d+(?=\w)/g)[0]+"."+a.match(/^\d+|\d+\b|\d+(?=\w)/g)[1]),"csf_title"==t||"csf_data"==t||"csf_remote_version"==t||"authentic_remote_version"==t||"authentic_theme_version"==t||"package_message"==t){if("package_message"===t&&!Core.curModuleFile("package-updates","update.cgi")){if((localStorage.getItem(v___server_hostname+"-sysinfo_"+t)!=a||1==localStorage.getItem(v___server_hostname+"-sysinfo_package_message_initial"))&&a&&a.indexOf("badge-danger")>-1){var l=theme_language("theme_xhred_notifications_packages_updates"),c=$(a).html().replace(/badge-danger/g,"badge-success");localStorage.setItem(v___server_hostname+"-notifications_"+$__id__+"_package_message",JSON.stringify({title:l,time:$__id__,timestamp:$__id__,message:c,readStatus:0,type:t,link:e+"/package-updates/index.cgi?mode=updates"})),slider_mark_group_notifications_read("package_message"),localStorage.setItem(v___server_hostname+"-sysinfo_"+t,a),localStorage.setItem(v___server_hostname+"-sysinfo_package_message_initial",0),notifications(l,c,t)}else"package_message"===t&&localStorage.setItem(v___server_hostname+"-sysinfo_"+t,a);$(a).find("i.badge:first-child").length||slider_mark_group_notifications_read("package_message")}var d=localStorage.getItem(v___server_hostname+"-sysinfo_theme_current_version");if(settings_sysinfo_theme_updates&&(0==localStorage.getItem(v___server_hostname+"-sysinfo_authentic_remote_version")&&localStorage.removeItem(v___server_hostname+"-sysinfo_authentic_remote_version"),d&&localStorage.getItem(v___server_hostname+"-sysinfo_authentic_remote_version")&&"authentic_remote_version"==t&&d';localStorage.setItem(v___server_hostname+"-notifications_"+$__id__+"_authentic_remote_version",JSON.stringify({title:h,time:$__id__,timestamp:$__id__,message:f,readStatus:0,type:t,link:e+"/sysinfo.cgi"})),localStorage.setItem(v___server_hostname+"-sysinfo_"+t,a),localStorage.setItem(v___server_hostname+"-sysinfo_theme_current_version",a),notifications(h,f,t)}if("authentic_theme_version"!==t||Test.strContains(a,"CHANGELOG.md")||slider_mark_group_notifications_read("authentic_remote_version"),settings_sysinfo_csf_updates){var p=localStorage.getItem(v___server_hostname+"-sysinfo_csf_current_version");if(p&&null!=p&&localStorage.getItem(v___server_hostname+"-sysinfo_csf_remote_version")&&"csf_remote_version"==t&&p-1&&1!=localStorage.getItem(v___server_hostname+"-sysinfo_csf_not_running")){var m=theme_language("theme_xhred_notifications_firewall_danger"),v=theme_language("theme_xhred_notifications_firewall_danger_message").replace("%v",moment.unix($__id__).format(config_portable_theme_locale_format_long));localStorage.setItem(v___server_hostname+"-notifications_"+$__id__+"_csf_title",JSON.stringify({title:m,time:$__id__,timestamp:$__id__,message:v,readStatus:0,type:t,link:e+"/csf/index.cgi"})),slider_mark_group_notifications_read("csf_title"),localStorage.setItem(v___server_hostname+"-sysinfo_csf_not_running",1),notifications(m,v,"csf_remote_version")}else a&&a.indexOf("label-danger")===-1&&(slider_mark_group_notifications_read("csf_title"),localStorage.removeItem(v___server_hostname+"-sysinfo_csf_not_running"))}if("csf_deny"==t){var b=JSON.parse(a);$.each(b,function(i,a){var a=a.split("|"),n=a[0],s=a[1],_=a[2],o=a[3],r=(a[4],a[5],a[6],a[7]);if(r=r.replace("*Port Scan*",_&&o?'Port '+o+" scan":"Port scan"),!localStorage.getItem(v___server_hostname+"-allowed_trigger_"+(n+s.replace(/\./g,"0"))+"_csf_deny")){var l=theme_language("theme_xhred_notifications_firewall_warning"),c=r+(_&&o?" ("+_+":"+o+")":"");localStorage.setItem(v___server_hostname+"-notifications_"+(n+s.replace(/\./g,"0"))+"_csf_deny",JSON.stringify({title:l,time:$__id__,timestamp:$__id__,message:c,readStatus:0,type:t,link:e+"/csf/index.cgi"})),localStorage.setItem(v___server_hostname+"-allowed_trigger_"+(n+s.replace(/\./g,"0"))+"_csf_deny",1),notifications(l,c,t)}})}if("cpu_percent"!=t&&"mem_percent"!=t&&"virt_percent"!=t&&"disk_percent"!=t||null!==localStorage.getItem(v___server_hostname+"-sysinfo_"+t+"_seen")&&a>=85&&localStorage.getItem(v___server_hostname+"-sysinfo_"+t+"_seen"),(localStorage.getItem(v___server_hostname+"-sysinfo_cpu_percent_stats")||localStorage.getItem(v___server_hostname+"-sysinfo_mem_percent_stats")||localStorage.getItem(v___server_hostname+"-sysinfo_virt_percent_stats")||localStorage.getItem(v___server_hostname+"-sysinfo_disk_percent_stats"))&&$("#right-side-tabs-sysinfo .graph-container").length){var x=!localStorage.getItem(v___server_hostname+"-sysinfo_"+t+"_stats"),y=$(".info-container .graph-container."+t);x?y.addClass("hidden").next("br").addClass("hidden"):y.removeClass("hidden").next("br").removeClass("hidden"),"cpu_percent"==t&&($("#right-side-tabs-sysinfo .graph-container."+t+" .description").attr("title",localStorage.getItem(v___server_hostname+"-sysinfo_cpu")).text(theme_language("theme_xhred_global_cpu_load")+": "+localStorage.getItem(v___server_hostname+"-sysinfo_cpu_percent_stats")+"% ("+localStorage.getItem(v___server_hostname+"-sysinfo_cpu")+")"),$("#right-side-tabs-sysinfo .graph-container."+t+" .bar").attr("style","width:"+localStorage.getItem(v___server_hostname+"-sysinfo_cpu_percent_stats")+"%")),"mem_percent"==t&&($("#right-side-tabs-sysinfo .graph-container."+t+" .description").attr("title",localStorage.getItem(v___server_hostname+"-sysinfo_mem")).text(theme_language("body_real")+": "+localStorage.getItem(v___server_hostname+"-sysinfo_mem_percent_stats")+"% ("+localStorage.getItem(v___server_hostname+"-sysinfo_mem")+")"),$("#right-side-tabs-sysinfo .graph-container."+t+" .bar").attr("style","width:"+localStorage.getItem(v___server_hostname+"-sysinfo_mem_percent_stats")+"%")),"virt_percent"==t&&($("#right-side-tabs-sysinfo .graph-container."+t+" .description").attr("title",localStorage.getItem(v___server_hostname+"-sysinfo_virt")).text(theme_language("body_virt")+": "+localStorage.getItem(v___server_hostname+"-sysinfo_virt_percent_stats")+"% ("+localStorage.getItem(v___server_hostname+"-sysinfo_virt")+")"),$("#right-side-tabs-sysinfo .graph-container."+t+" .bar").attr("style","width:"+localStorage.getItem(v___server_hostname+"-sysinfo_virt_percent_stats")+"%")),"disk_percent"==t&&($("#right-side-tabs-sysinfo .graph-container."+t+" .description").attr("title",localStorage.getItem(v___server_hostname+"-sysinfo_disk")).text(theme_language("body_disk")+": "+localStorage.getItem(v___server_hostname+"-sysinfo_disk_percent_stats")+"% ("+localStorage.getItem(v___server_hostname+"-sysinfo_disk")+")"),$("#right-side-tabs-sysinfo .graph-container."+t+" .bar").attr("style","width:"+localStorage.getItem(v___server_hostname+"-sysinfo_disk_percent_stats")+"%"))}if($('#right-side-tabs .info-container .info-list-data span[data-data="'+t+'"]').html(a),"package_message"==t&&Core.moduleAvailable("package-updates")){var w=a;$('#right-side-tabs .info-container .info-list-data span[data-data="'+t+'"]').html($(w).html($(w).html().split(",")[0])[0].outerHTML)}if("local_time"==t){var k=$('#right-side-tabs .info-container .info-list-data span[data-data="'+t+'"]'),C=k.find("a").length?k.find("a"):k.find("span");C&&C.length&&C.html(C.next("span").detach()) -;var O=$(".info-container").find("span[data-convertible-timestamp-full]"),o=O.attr("data-convertible-timestamp-full");O.html(moment.unix(o).format(config_portable_theme_locale_format_long)),time.tictac(1)}if("cpu_temperature"==t){var T=0;$.each($(a).filter(".badge-cpustatus"),function(e,t){var i,n=parseInt($(this).text().split(":")[1]),s=n,_=$(this).text().indexOf("°C")>-1;i=$(this).text().indexOf("RPM")>-1?HTML.label.rpm(s):HTML.label.temperature(n,_),"bg-warning"!=i&&"bg-danger"!=i||(T=1),$("#right-side-tabs .info-container .badge-drivestatus.badge-cpustatus").length||$('strong[data-stats="cpu"] + br[data-stats="cpu"]').after(a.replace(/
| /gi,"")),$($("#right-side-tabs .info-container .badge-drivestatus.badge-cpustatus")[e]).html($(this).text()).removeClass(function(e,t){return(t.match(/(^|\s)bg-\S+/g)||[]).join(" ")}).addClass(i+"-dark")}).promise().done(function(){T||"undefined"!=typeof config_custom_force_display_cpu_sensors?$('.info-container [data-stats="cpu"]').removeClass("hidden"):$('.info-container [data-stats="cpu"]').addClass("hidden")})}if("hdd_temperature"==t){var S=0;$.each($(a).filter(".badge-drivestatus:not(.badge-cpustatus)"),function(e,t){var i,n=parseInt($(this).text().split(":")[1]),s=$(this).text().indexOf("°C")>-1;i=HTML.label.temperature(n,s),"bg-warning"!=i&&"bg-danger"!=i||(S=1),$("#right-side-tabs .info-container .badge-drivestatus:not(.badge-cpustatus)").length||$('strong[data-stats="drive"] + br[data-stats="drive"]').after(a.replace(/
| /gi,"")),$($("#right-side-tabs .info-container .badge-drivestatus:not(.badge-cpustatus)")[e]).html($(this).text()).removeClass(function(e,t){return(t.match(/(^|\s)bg-\S+/g)||[]).join(" ")}).addClass(i+"-dark")}).promise().done(function(){S||"undefined"!=typeof config_custom_force_display_drive_sensors?$('.info-container [data-stats="drive"]').removeClass("hidden"):$('.info-container [data-stats="drive"]').addClass("hidden")})}if("warning_si"==t){var M=$("#right-side-tabs .info-container .warning-list-data");M.html(a.replace(/<(script|link|meta)\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/(script|link|meta)>/gi,"").replace(/type='submit'/g,"formtarget='page' type='submit'").replace(/class='ui_submit/g,"class='ui_submit btn btn-default btn-xs").replace(/ui_form_end_submit" type="button"/g,'ui_form_end_submit" type="submit" formtarget="page"').replace(/ui_form_end_submit/g,"ui_form_end_submit btn-tiny")),"
"==a&&M.empty()}if("extended_si"==t){var M=$("#right-side-tabs .info-container .extended-list-data"),I=a.replace(/aria-expanded="true"/gi,'aria-expanded="false"').replace(/collapse in/gi,"collapse");opened_tabs=$("#extended_sysinfo .panel .in").map(function(){I=I.replace('data-toggle="collapse" href="#'+this.id+'" aria-expanded="false" aria-controls="'+this.id+'"','data-toggle="collapse" href="#'+this.id+'" aria-expanded="true" aria-controls="'+this.id+'"'),I=I.replace('div id="'+this.id+'" class="panel-collapse collapse"','div id="'+this.id+'" class="panel-collapse collapse in"')}).promise().done(function(){M.html('
'+I);var e=$("#right-side-tabs .extended-list-data");e.find("div.panel-heading:not(#status_services-status):not(#status-virtual-server):not(#acl_logins-acl):not(#sysinfo-virtual-server):not(#quota-virtual-server):not(#bw-virtual-server)").parent().remove(),$.each(e.find("div.panel-heading .panel-title"),function(){var e=$(this).find("a"),t="true"!=$(this).find("a").attr("aria-expanded")?1:0,i=t?"+":"—";$(this).append(''+i+""),e.text(Convert.strUpFirst($.trim(e.text())))}),e.find(".panel.panel-default").detach().appendTo("#right-side-tabs #extended_sysinfo"),e.find("div.panel-body").find("img").remove(),e.find('input[type="submit"]').addClass("btn btn-default btn-xs"),e.find('input[type="submit"]').parents("form").attr("formtarget","page"),e.find('button[type="button"].ui_submit').addClass("btn btn-default btn-xs"),e.find('button[type="button"].ui_submit').parents("form").attr("formtarget","page"),$("#extended_sysinfo .panel").on("show.bs.collapse",function(){$(this).find(".panel-title-status").removeClass("margined-right-2").text("—")}).on("hide.bs.collapse",function(){$(this).find(".panel-title-status").addClass("margined-right-2").text("+")})})}"collect_interval"==t&&(Test.numeric(a)?settings_side_slider_background_refresh_time=parseFloat(a):settings_side_slider_background_refresh_time=0),$.trim($(".info-list-data").text()).length&&setTimeout(function(){$("#right-side-tabs .is-sysinfo_data").removeClass("hidden"),$("#right-side-tabs .no-sysinfo_data").addClass("hidden")},100)}),setTimeout(function(){slider_check_notifications()},3e3),time.localize()}})}settings_side_slider_enabled&&("number"==typeof iupdateTimer&&clearInterval(iupdateTimer),settings_side_slider_background_refresh_time>0&&(iupdateTimer=setInterval(function(){information_update()},6e4*settings_side_slider_background_refresh_time)))}}function slider_display_notification_badges(){if(settings_side_slider_enabled&&settings_side_slider_notifications_enabled){var e="right-side-tab-notification-asterix",t="faa-ring faa-slow animated-hover",i=$(".right-side-tabs .list-group-item:not(.no-notifications, .opacity-0_3)").length;favicon.badge(i),i>0?($(".right-side-tabs-toggler button i.fa-bell").addClass(t),$(".right-side-tabs-toggler button span.badge").removeClass("hidden").text(i),$("#right-side-tabs ."+e).removeClass("hidden").text(i)):($(".right-side-tabs-toggler button i.fa-bell").removeClass(t),$(".right-side-tabs-toggler button span.badge").addClass("hidden").text(0),$("#right-side-tabs ."+e).addClass("hidden").text(0))}}function slider_check_notifications(){var $current_localData_notifications={};$.each(localStorage,function(e,t){if("string"==typeof e&&e.indexOf("notifications_")>-1&&e.indexOf(v___server_hostname)>-1){var i=e.split("_")[1],a=JSON.parse(t),n=a.title,s=a.time,_=a.timestamp,o=a.message,r=a.readStatus,l=a.type,c=a.link,d=s+"_"+n;"csf_deny"===l&&(d=s+"_"+n.replace(/\W/g,"")+o.replace(/\W/g,"")),$current_localData_notifications[d]=i+"~~~~"+n+"~~~~"+s+"~~~~"+_+"~~~~"+o+"~~~~"+r+"~~~~"+l+"~~~~"+c,$('.list-group-item[id="'+i+'"][data-type="'+l+'"]').length&&$('.list-group-item[id="'+i+'"][data-type="'+l+'"] .list-group-item-heading small').text(moment.unix(s).fromNow())}});var package_message_num=Object.values($current_localData_notifications).filter(function(e){return e.indexOf("package_message")>-1}).length,csf_remote_version_num=Object.values($current_localData_notifications).filter(function(e){return e.indexOf("csf_remote_version")>-1}).length,authentic_remote_version_num=Object.values($current_localData_notifications).filter(function(e){return e.indexOf("authentic_remote_version")>-1}).length,csf_title_num=Object.values($current_localData_notifications).filter(function(e){return e.indexOf("csf_title")>-1}).length,keys=[];for(var key in $current_localData_notifications)$current_localData_notifications.hasOwnProperty(key)&&keys.push(key);$current_localData_notifications_sorted_keys=keys.sort(),$.each($current_localData_notifications_sorted_keys,function(i,v){var vx=$current_localData_notifications[v],$__id__=vx.split("~~~~")[0],$__data__title=vx.split("~~~~")[1],$__data__time=vx.split("~~~~")[2],$__data__timestamp=vx.split("~~~~")[3],$__data__message=vx.split("~~~~")[4],$__data__readStatus=vx.split("~~~~")[5],$__data__type=vx.split("~~~~")[6],$__data__link=vx.split("~~~~")[7];if("package_message"==$__data__type||"csf_remote_version"==$__data__type||"authentic_remote_version"==$__data__type||"csf_title"==$__data__type){var $__num=eval($__data__type+"_num");i+1<$__num&&($__data__readStatus=1)}$('.list-group-item[id="'+$__id__+'"][data-type="'+$__data__type+'"]').length||slider_add_notification($__id__,$__data__title,$__data__time,$__data__timestamp,$__data__message,$__data__readStatus,$__data__type,$__data__link)})}function slider_remove_all_notifications(){$.each(localStorage,function(e,t){"string"==typeof e&&e.indexOf("notifications_")>-1&&e.indexOf(v___server_hostname)>-1&&delete localStorage[e]})}function slider_mark_notification_read(e,t,i,a){var n=JSON.parse(localStorage.getItem(v___server_hostname+"-notifications_"+e+"_"+t));n&&localStorage.setItem(v___server_hostname+"-notifications_"+e+"_"+t,JSON.stringify({title:n.title,time:n.time,timestamp:n.timestamp,message:n.message,readStatus:i,type:n.type,link:n.link})),a&&slider_display_notification_badges()}function slider_mark_group_notifications_read(e){var t="";e&&(t='[data-type="'+e+'"]'),$(".right-side-tabs .list-group-item"+t+":not(.no-notifications)").each(function(){$(this).addClass("opacity-0_3"),slider_mark_notification_read($(this).attr("id"),$(this).data("type"),1,0)}).promise().done(function(){slider_display_notification_badges()})}function slider_add_notification(e,t,i,a,n,s,_,o){$(".right-side-tabs .list-group").prepend(' \t\t\t
\t\t\t
\t\t\t \t\t\t \t\t\t
'+t+" "+moment.unix(i).fromNow()+"
\t\t\t "+n+" \t\t\t
\t\t\t
\t\t\t"),$(".right-side-tabs-no-notifications").remove(),slider_display_notification_badges(),v___initial_load||slider_add_no_notifications()}function slider_add_no_notifications(){if(0===$(".right-side-tabs .list-group-item").length){var e=theme_language("theme_xhred_notification_none");$(".right-side-tabs .list-group").prepend('
'+(e?e.toUpperCase():"")+"
"),$(".right-side-tabs-no-notifications").animate({opacity:"1"},$settings_animation_left_slide_time,function(){})}setTimeout(function(){slider_display_notification_badges()},$settings_animation_left_slide_time)}function fetch_right_pane_favorites(){if("function"==typeof favorites_get){var e=favorites_get(),t=$("#right-side-tabs .no-favorites_data");$("#right-side-tabs .favorites-dcontainer .right_pane_favorites_link, #right-side-tabs .favorites-dcontainer .right_pane_favorites_num").remove(),e.length?($.each(e,function(e,t){$("#right-side-tabs .favorites-dcontainer").append(''+(e+1)+'  '+t.title+"")}),t.addClass("hidden")):t.removeClass("hidden")}}function get_right_panel_sysinfo_data(){$_____________got_rp__sys_dat=1;var e=Core.moduleAvailable("package-updates"),t=Core.moduleAvailable("proc")?"":" pointer-events-none",i=Core.moduleAvailable("disk-usage")||Core.moduleAvailable("quota")?"":" pointer-events-none",a=e?"":' class="hidden"',n=localStorage.getItem(v___server_hostname+"-sysinfo_package_message");return'
'+theme_language("theme_xhred_notification_no_data").toUpperCase()+"
"}function editor_html_toolbar(e){var t;return t=[{name:"styles",items:["Font","FontSize","Format"]},{name:"basicstyles",items:["Bold","Italic","Underline","Strike","Subscript","Superscript"]},{name:"colors",items:["TextColor","BGColor"]},{name:"paragraph",items:["JustifyLeft","JustifyCenter","JustifyRight","JustifyBlock","-","NumberedList","BulletedList","-","Blockquote","-","Outdent","Indent","-","BidiLtr","BidiRtl","-","RemoveFormat"]}],"basic"===e?t:[{name:"document",items:["Source","-","Preview","Print"]},{name:"clipboard",items:["Undo","Redo"]},{name:"editing",items:["Find","-","Emojione"]},{name:"links",items:["Link","Unlink","Anchor"]},{name:"insert",items:["InsertPre","CreateDiv","-","Table","base64image","HorizontalRule","PageBreak","Iframe"]},{name:"forms",items:["Form","Checkbox","Radio","TextField","Textarea","Select","Button","ImageButton","HiddenField"]},{name:"tools",items:["ShowBlocks"]},"/"].concat(t)}function editor_html_init(e,t){function i(e){v___theme_night_mode_enabled||v___theme_night_mode?($(e).find("body").addClass("nightRider"),setTimeout(function(){$(e).find("body").addClass("nightRider")},0)):"basic"!==t&&"monokai"===settings_cm_editor_palette&&($(e).find("body").addClass("dark"),setTimeout(function(){$(e).find("body").addClass("dark")},0))}function a(){CKEDITOR.config.extraPlugins="emojione",CKEDITOR.config.dialog_noConfirmCancel=!0,CKEDITOR.config.toolbar=editor_html_toolbar(t);var a=get_server_data("language-full"),_=$(window).height()/e[1];CKEDITOR.replace(n,{language:a,width:"100%",baseFloatZIndex:20001,height:s?e[1]:_}),CKEDITOR.instances[n].on("instanceReady",function(t){function a(e){setTimeout(function(){i(e)},10),setTimeout(function(){i(e)},80),setTimeout(function(){i(e)},100),setTimeout(function(){i(e)},200),setTimeout(function(){i()},300)}t.editor.on("panelShow",function(e){v___theme_night_mode_enabled||v___theme_night_mode?$(e.data.element.$.children[0]).contents().find("body").addClass("nightRider"):$(e.data.element.$.children[0]).contents().find("body").removeClass("nightRider")}),t.editor.on("afterCommandExec",function(e){"source"===e.data.name&&1===e.data.command.previousState&&a(e.editor.document.$)}),a(t.editor.document.$),CKEDITOR.instances[n].resize("100%",s?e[1]:_,!1)}),CKEDITOR.instances[n].on("instanceReady",function(e){$(e.editor.document.$).click(function(){var t=$(e.sender.container.$).parents(".jsPanel").attr("data-uid");t&&t.length&&parent.window["jsp_"+parseInt(t.replace("jsp_",""))].front()}),e.editor.on("dialogShow",function(e){$(e.data._.element.$).find(".cke_dialog_ui_checkbox").removeClass().addClass("awcheckbox awobject"),$(e.data._.element.$).find(".cke_dialog_ui_checkbox_input").removeClass().addClass("iawobject").next("label").addClass("lawobject"),e.data._.name})}),e[2]===!0&&CKEDITOR.instances[n].on("change",function(t){this.updateElement(),set_onbeforeunload_status(1,0);var i=parseInt(e[3].replace("html_editor_",""))-1;$("#jsPanel-"+i).find("._filemanager_file_editor_save").addClass("text-danger __locked__"),$("#jsPanel-"+i).find("select[data-encoding]").addClass("pointer-events-none")}),"edit_web"===e[3]&&setTimeout(function(){$("hr + b").removeClass("hidden"),$(".__tmp__spinner").remove()},100)}var n,s=!Test.string(e[0]);s?e[3]:e[0];s?(n="__hm_editor_"+e[3],e[0].attr("id",n)):n=e[0],"object"==typeof CKEDITOR?a():(progress.start(),CKEDITOR_BASEPATH=v___server_js_path+"/ckeditor/",$.getScript(v___server_js_path+"/ckeditor/ckeditor.js?"+v___theme_version_plain,function(e,t,i){a(),progress.end()}))}function table_data_init(e,t,i,a){function n(e){e.DataTable({order:[],aaSorting:[],bDestroy:!0,bPaginate:!1,columnDefs:[a],bInfo:!1,bStateSave:t,destroy:!0,dom:i?"Rlfrtip":"f",oLanguage:{sEmptyTable:theme_language("theme_xhred_datatable_semptytable"),sInfo:theme_language("theme_xhred_datatable_sinfo"),sInfoEmpty:theme_language("theme_xhred_datatable_sinfoempty"),sLengthMenu:theme_language("theme_xhred_datatable_slengthmenu"),sLoadingRecords:theme_language("theme_xhred_datatable_sloadingrecords"),sProcessing:theme_language("theme_xhred_datatable_sprocessing"),sSearch:" ",sZeroRecords:theme_language("theme_xhred_datatable_szerorecords")},initComplete:function(e){$(".dataTables_filter").find('input[type="search"]').attr("placeholder",theme_language("theme_xhred_datatable_filter"))}})}if(void 0===t&&(t=!1),void 0===i&&(i=!1),void 0===a&&(a=!1),Core.curModuleFile("virtual-server","index.cgi")&&(t=!0),$.fn.dataTableExt.sErrMode="throw",Core.curModuleFile("virtual-server","list_users.cgi")){var s=$(".table thead tr th").filter(function(){return $(this).text().match(/Last login|Dernière Connexion|Siste innlogging|Letzer Login|Laatste login/)}).index();s>-1?$.each(e.find("tbody tr td:nth-child("+(s+1)+")"),function(e,t){var i=$(this).text();/Never|Jamais|Aldri|Niemals|Nigdy|Nooit/i.test(i)&&(i=0),$(this).attr("data-sort",i)}).promise().done(function(){n(e)}):n(e)}else n(e)}function favorites_check(){return $("#favorites-menu .favorites-menu-content li:not(.exclude)").length}function favorites_get(){var e=[];return $.each($("#favorites-menu .favorites-menu-content li:not(.exclude) a"),function(){var t=$(this).text(),i=$(this).attr("href"),a=$(this).find(".wbm-sm").attr("data-product");favorite={},favorite.link=navigation_trigger(i,1),favorite.title=t.trim(),favorite.icon="virtualmin"==a?a+"":a,e.push(favorite)}),e}function favorites_init(){"function"==typeof sortable&&$("#favorites-menu > div > nav > ul").length&&sortable("#favorites-menu > div > nav > ul",{items:":not(.favorites-title)",forcePlaceholderSize:!1}).on("sortupdate",function(){favorites_save()})}function favorites_save(){$.ajax({type:"POST",url:v___location_prefix+"/settings-favorites_save.cgi",data:{favorites:'{"favorites":'+JSON.stringify(favorites_get(),null,4).replace(/\\n/g,"\\n").replace(/\\'/g,"\\'").replace(/\\"/g,'\\"').replace(/\\&/g,"\\&").replace(/\\r/g,"\\r").replace(/\\t/g,"\\t").replace(/\\b/g,"\\b").replace(/\\f/g,"\\f")+"}"},success:function(e){if(Test.strContains(e,v___page_signin_form))return void(v___available_session=0);fetch_right_pane_favorites()},error:function(e){}}),sortable("#favorites-menu > div > nav > ul")}function favorites_add(e,t,i){var a="favorites-menu .favorites-menu-content";0===favorites_check()&&($("#"+a+" li.favorites-no-message").addClass("hidden"),$("#"+a+" .favorites-title sup a").removeClass("hidden")),$("#"+a+" li.favorites-title").after('')}function favorites_empty(){var e="favorites-menu .favorites-menu-content";0===favorites_check()&&($("#"+e+" li.favorites-no-message").removeClass("hidden"),$("#"+e+" .favorites-title sup a").addClass("hidden"))}function favorites_remove(e){$("#favorites-menu .favorites-menu-content").find('a[href="'+e+'"]').parent("li").remove(),$("#headln2c > .favorites, .xcustom-favorites").addClass("fa-star-o").removeClass("fa-star text-warning"),favorites_empty(),favorites_save()}function favorites_detect(){var e=$("#favorites-menu .favorites-menu-content li:not(.exclude) a").map(function(e,t){return navigation_trigger($(t).attr("href"),1)}).toArray(),t=$("#headln2c > .favorites, .xcustom-favorites"),i=navigation_trigger(URI(v___location).resource(),1),a=i+"index.cgi";$.inArray(i,e)>-1||$.inArray(a,e)>-1?t.addClass("fa-star").removeClass("fa-star-o"):t.removeClass("fa-star").addClass("fa-star-o")}function page_sysinfo_sensor_update_label(){var e=$("#system-status .badge-drivestatus");e.length&&$.each(e,function(e,t){var i,a=$(this).text(),n=parseInt(a.split(":")[1]),s=n,_=a.indexOf("°C")>-1;i=a.indexOf("RPM")>-1?HTML.label.rpm(s):HTML.label.temperature(n,_),Test.string(i)&&$(this).removeClass(function(e,t){return(t.match(/(^|\s)bg-\S+/g)||[]).join(" ")}).addClass(i)})}function page_table_rows_control(){$("body").attr("class")&&$("body").attr("class").indexOf(v___module_file_manager)>-1||$.each($(".ui_checked_columns"),function(e,t){!$(t).find("a[href]")||Test.strContains(v___location_path,"init/edit_")||$("body").hasClass("servers")||$(this).hasClass("selectable")||$(t).addClass("cursor-pointer").find("td").addClass("cursor-pointer").find("label").addClass("cursor-pointer").find("tt").addClass("cursor-pointer"),$(t).find("td:not(.selectable)").click(function(e){if($(e.target).is(".awobject, .iawobject, .lawobject, .awcheckbox, .awradio, .ui_link, .btn")){if($(e.target).is(".ui_link, .btn")){e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation();var i=$(e.target).attr("href")||$(e.target).find("a").attr("href");if(i&&i.length>1){var a=$(e.target)||$(e.target).find("a");Core.linkSameOrigin(a)?get_pjax_content(i):theme_open_new_tab(i,1)}return}}else if($(t).find("a[href]")&&!$("body").hasClass("servers")){var n=$(t).find("a[href]")[0],s=($(this).parents("tr.ui_checked_columns"),$(e.target).find('input[type="checkbox"]:not(":disabled")')),_=s.length;!n||$(this).find("a").attr("href")!==$(n).attr("href")&&void 0!==$(this).find("a").attr("href")||$(e.target).is("select, input, .awobject, .iawobject, .lawobject, .awcheckbox, .awradio")||0!==$(this).parent("tr").find('a[href*="download.cgi"]').length||($(n).attr("target")?(e.preventDefault(),!_&&window.open($(n).attr("href"),$(n).attr("target"))):e.originalEvent&&(e.preventDefault(),get_pjax_content($(n).attr("href")))),_&&get_pjax_content($(n).attr("href"))}}),$(t).find("td").contextmenu(function(e){var t=$(this).parents("tr.ui_checked_columns");e.preventDefault(),($(this).parents("tr").find('input[type="checkbox"]:first').length&&0===$(this).parents("tr").find('input[type="checkbox"][disabled]').length||$(this).parents("tr").find('input[type="checkbox"][disabled]').length&&$(this).parents("tr").find("input").length>1)&&(t.find('input[type="checkbox"]:first').is(":checked")?t.removeClass("hl-aw"):t.addClass("hl-aw"),"function"==typeof __r____changed&&__r____changed(),t.find('input[type="checkbox"]:first').trigger("click"))})})}function page_radios_evolve(){"conf"!=get_server_data("post")&&$.each($('.container-fluid input[type="radio"]:not(.iawobject), .container-fluid input[type="checkbox"]:not(.iawobject)'),function(e,t){if(1!==$(this).data("xdn")&&1!==$(this).hasClass("_select-unselect_")){$(this)[0]&&($___text=$(this)[0].nextSibling);var i=$(this).next('input:not([type="radio"], [type="checkbox"], [type="hidden"]), select, textarea'),a=$___text&&$___text.nodeValue&&$.trim($___text.nodeValue).length>1,n=$.trim((a?$___text.nodeValue:" ").replace(/
/g,"<hr>").replace(/
/g,"<header>")),n=n.length&&" "!=n?n+"  ":n,s=$(this).attr("type").toLowerCase(),_=$(this).parents(".tab-pane").attr("id"),_=_&&_.length?_.replace(/[^a-zA-Z0-9_-]+/g,""):0,o=Math.floor(9e4*Math.random())+1e4,r=$(this).attr("id"),l=("eid_"+(r&&$(this).attr("name")?$(this).attr("name"):o)+"_"+o+"_"+e+"_"+_).replace(/[^a-zA-Z0-9_-]+/g,"_"),l=r&&1===$("body").find("#"+r.replace(/[^a-zA-Z0-9_-]+/g,"_")).length?r.replace(/[^a-zA-Z0-9_-]+/g,"_"):l;if(0===$(this).next("label").length&&0===i.length&&a){$(this).addClass("iawobject");var c='for="'+l+'"';$(this).attr("id",l),$($___text).wrap('"),$($___text).remove(),$(this).next("label").addBack().wrapAll(''),$(this).data("xdn",1)}else if(0!==i.length||0!==$(this).next("label").length||1!==$(this).prev("label").length||a)0!==i.length||0!==$(this).next("label").length||a||($(this).addClass("iawobject"),$(this).attr("id",l),$(this).after(''),$(this).next("label").addBack().wrapAll(''),$(this).data("xdn",1));else{var d=$(this).prev("label"),h=d.text();$(this).addClass("iawobject"),$(this).attr("id",l),$(this).after('"),$(this).next("label").addBack().wrapAll(''),$(this).removeClass("form-control").css("width","initial"),d.remove(),$(this).data("xdn",1)}1===i.length&&0===$(this).next("label").length&&($(this).addClass("iawobject"),$(this).attr("id",l),$(this).after('"),$(this).next("label").addBack().wrapAll(''),a&&$($___text).remove(),$(this).data("xdn",1))}})}function chooser_get(e){$(".mppopup .cspinner.hidden").removeClass("hidden"),$.ajax({type:"POST",url:e,data:!1,dataType:"text",success:function(e){if(Test.strContains(e,v___page_signin_form))return void(v___available_session=0);var t=e.replace(/<(!doctype|script|link|meta)\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/(script|link|meta)>/gi,"").replace(/<\/body>|<\/html>/gi,""),i=$(t).filter(".table").html(),a=$(t).filter(".table").prev("b").html();a=chooser_breadcrumbs(a),$(".mppopup .modal-body").html(a+''+i+"
"),$v__mpp__g_gp=0,$(".mppopup_filter_input").focus(),$(".mppopup_filter_input").val("")}})}function chooser_get_link(e){return e.replace(/&file.*&chroot/,"&file="+Convert.uriEncodeComponent(($v__mpp__g_ol+"/").replace(/\/\/+/g,"/").replace(/:\//g,"://"))+"&chroot")}function chooser_get_target(e,t){var i=e.prev('input[type="text"], input[name]');return i.is("input")||e.prev("textarea").length||e.prev("br").prev("textarea").length?i.length||i.is("input")||!t||(i=e.prev("textarea"),i.length||(i=e.prev("br").prev("textarea"))):i=e.prev("span:not(.awradio)").find('input[type="text"]'),i}function chooser_control(e,t,i){if(i){if($(".refInputData").is("textarea")){var a=$(".refInputData");a.val()?a.val(a.val()+"\n"+e.replace(/\/\/+/g,"/").replace(/:\//g,"://")):a.val(e.replace(/\/\/+/g,"/").replace(/:\//g,"://"))}else $(".refInputData").val(e.replace(/\/\/+/g,"/").replace(/:\//g,"://"));var n=$(".refInputData").parent("td").prev("td").find('input[type="radio"]'),s=$(".refInputData").parent("span").prev("span").find('input[type="radio"]'),_=$(".refInputData").prev("span").find('input[type="radio"]'),o=$(".refInputData").prev("select").find('option[value="*"]');s.length?s.trigger("click"):_.length?_.trigger("click"):o.length?o.parent("select").val("*").trigger("change"):n.trigger("click")}t&&$("body .mppopup").modal("hide")}function chooser_breadcrumbs(e){e=$.url(e).attr("path").replace(/\/$/g,"").split("/");var t="";return $.each(e,function(e,i){t+=""===i?''+(0==get_access_level()?'':'')+"\n":''+i+"\n"}),''}function popover_visibility_position(e){$.each($(".module-help"),function(t,i){e.is($(this))?$(this).css({"z-index":214748364+t,opacity:1}):$(this).css({"z-index":214748364-t,opacity:.85})})}function page_render(e){if(update_navigation_module_name(),e&&"undefined"!=typeof __cm_editor_static&&(__cm_editor_static.toTextArea(),$('button[data-form="submitter"]').unwrap(),$('.CodeMirror, button[data-form="submitter"] + button, .-helper.__helper').remove()),function(){var e=$("body");e.off("mousedown.cm1 keydown.cm1"),e.undelegate('button[type="submit"]:not(.disabled)',"click.cm"),e.undelegate('button[data-form="submitter"]:not(.disabled)',"click.cm")}(),$("body").attr("style",get_server_data("style")),$.each($('select[onchange="form.submit()"]'),function(){$(this).removeAttr("onchange").addClass("onchange_form_submit_triggger")}),editor_init_check()){ -var t=$('select[name="file"]:first, select[name="manual"]:first');t.addClass("onchange_form_submit_triggger"),t.next("button.ui_form_end_submit").addClass("hidden")}time.localize();var a=theme_language("theme_xhred_title_language_locale"),n=Core.curModule("language"),s=Core.curModule("change-user"),_=Core.curModuleFile("webmin","edit_lang.cgi");if(Core.curModule("webmin")){var o=$('.icons-container a[href*="edit_lang.cgi"]'),r=$('.small-icons-container a[href*="edit_lang.cgi"]'),l=$('a[href*="edit_lang.cgi"] p > .fa-angle-right');if(o.length){var c=o.find("img").detach();o.text(a).prepend(c,"
")}else r.length?(r.find(".hidden").text(a),r.parent().attr("title",a)):l.length&&l.parent().html('  '+a)}if((_||s||n)&&!e){var d=$('.container-fluid form select[name="lang"]'),h=n?d.next(".ui_form_end_buttons").find("tbody"):d.parents("tr").first().parent("tbody"),f=h.parents("form").first(),p=n?h:h.find('select[name="lang"]').parents("tr").first();s||$("span[data-main_title]").text(a);var g=' '+theme_language(s?"theme_xhred_title_webmin_ui_locale":"theme_xhred_title_locale_config")+(n?":   ":"")+' '+theme_language(s?"theme_xhred_title_locale_config_format_ui":"theme_xhred_title_locale_config_format")+' '+(n?"    ":"")+" "+theme_language("theme_xhred_title_locale_lang_based")+'    '+theme_language("theme_xhred_title_locale_full")+'  `LLLL`

"+theme_language("theme_xhred_global_output_example")+": "+moment().format("LLLL")+'

">
 
'+theme_language("theme_xhred_title_locale_long")+'  `LL`

"+theme_language("theme_xhred_global_output_example")+": "+moment().format("LL")+'

">
 
'+theme_language("theme_xhred_title_locale_short")+'  `L`

"+theme_language("theme_xhred_global_output_example")+": "+moment().format("L")+'

">
';n?p.prepend(g):p.after(g),$.ajax({type:"GET",url:v___location_prefix+"/index.cgi/?xhr-get_theme_locale_languages=1",data:!1,dataType:"text",async:v___available_navigation,success:function(e){$('select[data-select="locales"]').replaceWith(e),$('#config_portable_theme_locale_languages option[value="ru-su"]').remove();var t='input[id*="config_portable_theme_locale_language"], select[name="config_portable_theme_locale_languages"], input[name="config_portable_theme_locale_format_full"], input[name="config_portable_theme_locale_format_long"], input[name="config_portable_theme_locale_format_short"]',i=$(t);$(i).on("change keyup focus",function(e){var t=$(this).attr("name"),i=$(this).parent(),a=i.data("title"),n=$('select[name="config_portable_theme_locale_languages"]').val();t.indexOf("theme_locale_format_")>-1&&i.attr("title",a.replace(/g'>(.*)<\/i>/g,"g'>"+(n?moment().locale(n).format($(this).val()):moment().format($(this).val()))+"")).tooltip("fixTitle").tooltip("show");var s=$("._locale_config");"config_portable_theme_locale_language"===t&&"1"!=$(this).val()?"focus"!=e.type&&s.addClass("hidden"):"focus"!=e.type&&s.removeClass("hidden")}),$(f).on("submit",function(){$.each($(t.replace('locale_language"]','locale_language"]:checked')),function(e,t){var i=$(this).attr("name"),a=$(this).val();"config_portable_theme_locale_languages"===i&&""===a&&(a=get_server_data("language-full")),localStorage.setItem(v___server_hostname+"-"+i,a),window[i]=a}).promise().done(function(){var e=f.find('select[name="lang"]').val();if(e.indexOf(".")>-1&&(e=e.split(".")[0]),s&&"1"==f.find('[name="lang_def"]:checked').val()){var t=$('[name="lang_def"][value="1"]').next("label").text().match(/\(([^)]+)\)/),t=t&&t[0]&&t[1]?t[1]:get_server_data("language-full");t.indexOf(".")>-1&&(t=t.split(".")[0]),e=t}moment.locale(config_portable_theme_locale_language&&"0"!=config_portable_theme_locale_language?config_portable_theme_locale_languages:e),theme_config("save"),setTimeout(function(){navigation_update()},2e3)})})}})}v___available_navigation&&Core.curModule("tunnel")&&$("form").on("submit",function(e){var t=$(quirks.active_element());e.preventDefault(),e.stopPropagation(),$.ajax({type:$(this).attr("method")?"GET":"POST",url:v___location_prefix+"/"+v___module+"/"+$(this).attr("action"),data:get_form_data($(this)),dataType:"text",complete:function(e){if(Test.strContains(e,v___page_signin_form))return void(v___available_session=0);theme_open_new_tab(this.url),t.removeClass("disabled").find("i").removeClass("invisible").next(".cspinner_container").remove()}})}),check_location_resource("/config.cgi?tunnel")&&$('table table[width="100%"] tr:first-child').addClass("hidden"),$.each($('tr td:last-child a:contains("..")'),function(){v___location_path==v___location_prefix+"/virtual-server/list_databases.cgi"&&$(this).html($(this).text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn f__lnk_t_btn-el btn-transparent btn-link-bordered btn-xxs margined-top--3-5").removeClass("ui_link")}),0==get_access_level()&&v___available_navigation&&!e&&$("#headln2c").prepend(' '),favorites_empty(),favorites_detect(),$(".switch-toggle").find('label[for="open_thirdlane"]').length&&$('.switch-toggle input:not([id="open_webmin"])').each(function(){$(this).removeAttr("checked")}).promise().done(function(){$("#open_webmin").prop("checked",!0)}),v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"init/"&&$("table.table tbody tr").addClass("ui_checked_columns"),page_table_rows_control(),!e&&page_radios_evolve();$('.ui_checked_columns td.ui_checked_checkbox input[type="checkbox"]:checked:not(disabled)').parents("tr.ui_checked_columns").addClass("hl-aw");if($("body").hasClass("servers")&&$('form[action="delete_servs.cgi"] a.icon_link, form[action="delete_servs.cgi"] a.ui_link, form[action="delete_servs.cgi"] .col-xs-1').on("click",function(e){if($(e.target).is(".gl-icon-select"))return void(v___available_navigation?$(this).trigger("contextmenu"):$(this).parents(".gl-icon-container").trigger("contextmenu"));var t=v___location_href+$(this).attr("href"),i=$(this).attr("href");$(this);i&&i.indexOf("edit_serv.cgi")>-1||i&&i.indexOf("logout.cgi")>-1?void 0!==e.originalEvent&&$.pjax.click(e,{timeout:0,push:get_pjax_push(),type:get_pjax_type(),container:"[data-dcontainer]",fragment:"[data-dcontainer]"}):i&&i.indexOf("://")===-1?open(navigation_trigger(t,1)):open(i),e.preventDefault(),e.stopPropagation()}),Core.curModule("servers")&&$.each($('a[href*="link.cgi"]'),function(){var e=$(this).attr("href");e&&e.match(/(link.cgi\/\d+)/)&&$(this).attr("target","_blank")}),v___location_path!=v___location_prefix+"/apache/edit_global.cgi"&&v___location_path!=v___location_prefix+"/apache/edit_virt.cgi"&&v___location_path!=v___location_prefix+"/apache/edit_dir.cgi"||$.each($(".ui_opt_textbox.form-control"),function(){$(this).parent("span").next("button.btn.btn-default.chooser_button").length>0&&$(this).css("margin-right","4px")}),!e){$(".opener_container").length&&$.each($(".opener_container"),function(){$(this).find(".opener_shown").is(":visible")&&$(this).parent("tr").prev("tr").find("td a:nth-child(1)").addClass("opener_container_opened").removeClass("opener_container_closed")}),$(".opener_shown").length>0&&$(".opener_trigger").length>0&&($(".panel-body .ui_form .table tbody tr").removeClass("thead"),$(".opener_trigger").parents("table.table").addClass("opener_table_style"),$(".opener_trigger").parents("tr").addClass("_c__op_r").attr("style","border: 0 !important"),$(".opener_trigger").parent("td").addClass("_c__op_d"),$(".opener_trigger").parent("td").find("a").addClass("link_hover_effect link_hover_effect_style_extra"));$('a[id*="opener"][id$="_restore"]').parent().is("p")&&($('a[id*="opener"][id$="_restore"]').next("a").parent("p").replaceTagName("div"),$('a[id*="opener"][id$="_restore"]').next("a").removeClass().addClass("opener_extra_container_a_style link_hover_effect").parent("div").addClass("opener_extra_container opener_extra_container_style margined-top-10"),$('a[id*="opener"][id$="_restore"]').remove()),$('a[href^="javascript:hidden_opener"]:not(".opener_trigger")').length>0&&($('a[href^="javascript:hidden_opener"]:not(".opener_trigger")').each(function(e,t){var i=!!(v___location_path==v___location_prefix+"/virtual-server/backup_form.cgi"&&v___location_href&&v___location_href.indexOf("?sched=")>-1);if($(this).find("img").length>0&&$(this).remove(),$(this).css("border-bottom","0"),$(this).parents("table.table").addClass("opener_table_style_small"),$(this).parent("td").addClass("opener_table_cell_style_small"),i||$(this).parent("td").addClass("opener_table_cell_style_small opener_table_cell_style_small_exclusion_border_top"),$(this).parent("td").find("a").addClass("link_hover_effect link_hover_effect_style"),$(this).parent().is(".panel-body")||$(this).parent().is(".ui_form")){var a=$(this),n=a.parent().is(".panel-body")?".panel-body":".ui_form";a.parent(n).find('a[href^="javascript:hidden_opener"]:eq(1)').wrapAll('
'),Core.curModuleFile("bind8","edit_zonekey.cgi")&&a.parent(n).find('a[href^="javascript:hidden_opener"]:eq('+(e+1)+")").wrapAll('
'),a.parent('.panel-body > a[href^="javascript:hidden_opener"]:first-child').remove();var s=a.parent(n).find(".opener_extra_container");$(s).next("br").remove(),$(s).addClass("opener_extra_container_style"),$(s).find("a").addClass("opener_extra_container_a_style link_hover_effect"),$(s).next(".opener_hidden").attr("style","padding:8px")}}),$.each($(".opener_hidden"),function(){$(this).css("display","none")})),$("a.opener_trigger").each(function(){$(this).parent("td").css("text-align","left")}),$('form[action*="seen_newfeatures.cgi"]').each(function(){$(this).parents("table.table-striped").next(".ui_form_end_buttons").css("margin-top","14px")}),$("#tall_0").before("
"),$(".opener_container").each(function(e,t){$(this).find("div").hasClass("opener_hidden")?$(this).hide():$(this).show()}),$.each($("div.barchart"),function(){var e=$(this).find('img[src*="red.gif"]'),t=$(this).parent("td").contents().filter(function(){return 3==this.nodeType}).text();e&&e.attr("width")&&$(this).parent("td").html('
'+t+'
'+e.attr("width")+"
")}),$('.panel-body > form > table > tbody > tr > td:has(input[type="submit"])').parents("table.table-hardcoded > tbody > tr").css("border","none").parents("table").css("margin-top","20px"),$('.panel-body > form > table > tbody > tr > td:has(input[type="submit"])').parents("table.table-hardcoded > tbody").css("border","none"),$('.ui_grid_table > tbody > tr.ui_grid_row > td:has(button[type="submit"])').parents("table.ui_grid_table").css("border","none"),$("form.ui_form > table label.radio, form.ui_form > table label.checkbox").each(function(){var e=$(this),t=e.find("i.fa"),i=e.find("i.fa").text().trim(),a=e.text().trim();0===i.length&&0===a.length&&t.parent("label").remove()})}if(v___location_path&&(v___location_path.indexOf("/webmin/edit_themes.cgi")>-1||v___location_path_lead_unslashed==v___location_prefix_unslashed_trail_slashed+"settings-user.cgi")){v___location_path_lead_unslashed==v___location_prefix_unslashed_trail_slashed+"settings-user.cgi"&&navigation_clear();var u='form[action*="settings.cgi"] select, form[action*="save_config.cgi"] select, form[action*="settings.cgi"] input, form[action*="save_config.cgi"] input';$("body").undelegate(u,"change"),$("body").on("change",u,function(e){var t=$(this).val();if("true"==t||"false"==t){if("true"==t)var i=!0;else if("false"==t)var i=!1}else var i=t;if(window[$(this).attr("name")]=Test.numeric(i)?parseFloat(i):i,void 0!==e.originalEvent)if(v___initial_load&&"settings-user.cgi"!==v___location_file)v___initial_load=0;else{var a='input[name="settings_side_slider_enabled"]';(0!=Core.moduleAvailable("status")&&$(e.target).is(a)||!$(e.target).is(a))&&theme_settings_controls(1)}});var m='form[action*="settings.cgi"] input, form[action*="save_config.cgi"] input';$("body").undelegate(m,"keydown"),$("body").on("keydown",m,function(e){void 0!==e.originalEvent&&theme_settings_controls(1)}),v___location_path_lead_unslashed==v___location_prefix_unslashed_trail_slashed+"settings-user.cgi"&&(tmp_settings_font_family=settings_font_family,$('button[type="button"][name="save_user"]').on("click",function(e){e.preventDefault(),e.stopPropagation(),theme_config("save"),navigation_render_start(),spinnerfy_buttons($(this),[-.5,-25,"small",750]),setTimeout(function(){navigation_update()},1400)})),$(function(){function t(){$("body").undelegate("#atrestore:not(.disabled)","click"),$("#atrestore:not(.disabled)").off("click.confirm"),$("#atrestore:not(.disabled)").confirmation({classNameRemove:"btn-default"},function(){set_onbeforeunload_status(0,0),$(this).off();var e=$(this);e.hasClass("btn-inverse")||setTimeout(function(){spinnerfy_buttons(e,[1.5,-33,"small",!1]);var t=$(".ui_form").serialize();$.ajax({type:"POST",url:v___location_prefix+"/index.cgi?xhr-settings=1&restore=1",data:t,success:function(e){if(Test.strContains(e,v___page_signin_form))return void(v___available_session=0);theme_reload()},error:function(t){e.addClass("btn-danger").removeClass("btn-default btn-inverse opacity-0_5")}})},0)})}Core.moduleAvailable("webmin")&&!e&&($(".container-fluid .nav.nav-tabs").prepend('
  • '),$(".container-fluid .tab-pane").first().before('
    '),$('.container-fluid .nav-tabs a[href="#atsettings"]').tab("show")),e||$.ajax({type:"GET",url:v___location_prefix+"/index.cgi/?xhr-settings=1",data:!1,dataType:"text",success:function(e){function i(e){void 0===e&&(e=$('input[name="settings_right_hide_table_icons"]:checked'));var t=["settings_right_small_table_icons","settings_right_animate_table_icons","settings_right_grayscaled_table_icons"];"true"==e.val()?$.each(t,function(e,t){$('input[name="'+t+'"]').prop("disabled",!0),$('input[name="'+t+'"]').parent(".aradio").addClass("disabled")}):$.each(t,function(e,t){$('input[name="'+t+'"]').prop("disabled",!1),$('input[name="'+t+'"]').parent(".aradio").removeClass("disabled")})}function a(e){void 0===e&&(e=$('input[name="settings_hotkeys_active"]:checked'));var t=["settings_hotkey_custom_1","settings_hotkey_custom_2","settings_hotkey_custom_3","settings_hotkey_custom_4","settings_hotkey_custom_5","settings_hotkey_custom_6","settings_hotkey_custom_7","settings_hotkey_custom_8","settings_hotkey_custom_9","settings_hotkey_toggle_modifier","settings_hotkey_toggle_key_webmin","settings_hotkey_toggle_key_virtualmin","settings_hotkey_toggle_key_cloudmin","settings_hotkey_toggle_key_usermin","settings_hotkey_toggle_key_webmail","settings_hotkey_shell","settings_hotkey_focus_search","settings_hotkey_toggle_slider","settings_hotkey_reload","settings_hotkey_reload","settings_hotkey_toggle_key_night_mode","settings_hotkey_sysinfo","settings_hotkey_favorites"];"false"==e.val()?$.each(t,function(e,t){$('input[name="'+t+'"], select[name="'+t+'"]').prop("disabled",!0)}):$.each(t,function(e,t){$('input[name="'+t+'"], select[name="'+t+'"]').prop("disabled",!1)})}function n(e){void 0===e&&(e=$('input[name="settings_side_slider_enabled"]:checked'));var t=["settings_side_slider_palette","settings_side_slider_fixed","settings_side_slider_fixed_toggle","settings_side_slider_sysinfo_enabled","settings_side_slider_notifications_enabled","settings_side_slider_favorites_enabled"];"false"==e.val()?$.each(t,function(e,t){"settings_side_slider_fixed"!=t&&"settings_side_slider_fixed_toggle"!=t||$('input[name="settings_side_slider_fixed"][value="false"], input[name="settings_side_slider_fixed_toggle"][value="false"]').trigger("click"),setTimeout(function(){$('input[name="'+t+'"], select[name="'+t+'"]').prop("disabled",!0).parent(".aradio").addClass("disabled")},10)}):$.each(t,function(e,t){("settings_side_slider_fixed"!=t||"settings_side_slider_fixed"==t&&"true"!=$('input[name="settings_navigation_always_collapse"]:checked').val())&&("settings_side_slider_fixed_toggle"!=t||"settings_side_slider_fixed_toggle"==t&&"true"!=$('input[name="settings_navigation_always_collapse"]:checked').val())&&$('input[name="'+t+'"], select[name="'+t+'"]').prop("disabled",!1).parent(".aradio").removeClass("disabled")})}function s(e){void 0===e&&(e=$('input[name="settings_sysinfo_real_time_status"]:checked'));var t=["settings_sysinfo_real_time_timeout"];"true"==e.val()?$.each(t,function(e,t){$('input[name="'+t+'"]').prop("disabled",!1).removeClass("disabled")}):$.each(t,function(e,t){$('input[name="'+t+'"]').prop("disabled",!0).addClass("disabled")})}function _(e){void 0===e&&(e=$('input[name="settings_sysinfo_easypie_charts"]:checked'));var t=["settings_sysinfo_easypie_charts_size","settings_sysinfo_easypie_charts_width","settings_sysinfo_easypie_charts_scale"];"true"==e.val()?$.each(t,function(e,t){$('input[name="'+t+'"]').prop("disabled",!1).removeClass("disabled")}):$.each(t,function(e,t){$('input[name="'+t+'"]').prop("disabled",!0).addClass("disabled")})}function o(e){void 0===e&&(e=$('input[name="settings_sysinfo_theme_updates"]:checked'));var t=["settings_sysinfo_theme_patched_updates"];"true"==e.val()?$.each(t,function(e,t){$('input[name="'+t+'"]').prop("disabled",!1).removeClass("disabled")}):($('input[name="settings_sysinfo_theme_patched_updates"][value="false"]').trigger("click"),$.each(t,function(e,t){$('input[name="'+t+'"]').prop("disabled",!0).addClass("disabled")}))}function r(e){void 0===e&&(e=$('input[name="settings_navigation_always_collapse"]:checked'));var t=["settings_side_slider_fixed","settings_side_slider_fixed_toggle","settings_leftmenu_width"];"true"==e.val()?(Core.var.slider_pinned=-1,$.each(t,function(e,t){"settings_side_slider_fixed"!=t&&"settings_side_slider_fixed_toggle"!=t||$('input[name="settings_side_slider_fixed"][value="false"], input[name="settings_side_slider_fixed_toggle"][value="false"]').trigger("click"),setTimeout(function(){$('input[name="'+t+'"]').prop("disabled",!0).parent(".aradio").addClass("disabled")},10)})):$.each(t,function(e,t){"settings_side_slider_fixed"!=t&&"settings_side_slider_fixed_toggle"!=t||"false"==$('input[name="settings_side_slider_enabled"]:checked').val()||$('input[name="'+t+'"]').prop("disabled",!1).parent(".aradio").removeClass("disabled")})}if(Test.strContains(e,v___page_signin_form))return void(v___available_session=0);$("#atsettings").html(e),page.render.module_config([0,1,0,0,0,0,0,1]);var l=$("div#atsettings").find(".ui_form");$__theme_text_right_save=l.data("text-save"),$__theme_text_right_saved=l.data("text-settings_right_saved"),$__theme_text_right_saving=l.data("text-settings_right_saving"),$__theme_text_right_restore_defaults=l.data("text-settings_right_restore_defaults"),$__theme_text_right_restored=l.data("text-settings_right_restored"),$__theme_text_right_restoring=l.data("text-settings_right_restoring"),$__theme_text_right_error=l.data("text-error"),$('.container-fluid .nav-tabs a[href="#atsettings"]').text(l.data("text-current_theme")),$("div#atsettings").removeClass("text-center"),t(),theme_settings_update();var c=$("body").find(".fa.fa-sub-title").parent("span");$(c).next("br").remove(),$(c).next("div.smaller").attr("style","margin-top: -15px !important"),c.remove(),i(),$('input[name="settings_right_hide_table_icons"]').on("change",function(){i($(this))}),a(),$('input[name="settings_hotkeys_active"]').on("change",function(){a($(this))}),n(),$('input[name="settings_side_slider_enabled"]').on("change",function(){n($(this))}),s(),$('input[name="settings_sysinfo_real_time_status"]').on("change",function(){s($(this))}),_(),$('input[name="settings_sysinfo_easypie_charts"]').on("change",function(){_($(this))}),o(),$('input[name="settings_sysinfo_theme_updates"]').on("change",function(){o($(this))}),$('select[name="settings_navigation_color"]').on("click keyup change",function(e){var t=$(this).val();get_server_data("data-theme",t),$("link[data-palette]").remove(),"blue"!=t&&$("head").append(''),get_server_data("data-default-theme",t),$("body .user-link.palette-toggle").find(".fa-sun").trigger("click"),theme_settings_update()}),$('select[name="settings_background_color"]').on("click keyup change",function(e){var t=$(this).val();get_server_data("data-background-style",t),get_server_data("data-background-style",t),$("link[data-palette]").remove(),"gainsboro"!=t&&($("head").append(''),$('select[name="settings_navigation_color"]').val("gunmetal").trigger("change")),theme_settings_update()}),$('select[name="settings_side_slider_palette"]').change(function(e){$("body .right-side-tabs, body .right-side-tabs-toggler").attr("data-background-style",$(this).val())}),$('input[name="settings_side_slider_enabled"]').change(function(e){"true"==$(this).val()?($("body .right-side-tabs-toggler").removeClass("hidden"),$("body .right-side-tabs").removeClass("hidden"),$('input[name="settings_side_slider_sysinfo_enabled"][value="true"], input[name="settings_side_slider_notifications_enabled"][value="true"], input[name="settings_side_slider_favorites_enabled"][value="true"]').trigger("click")):($("body .right-side-tabs-toggler").addClass("hidden"),$("body .right-side-tabs").addClass("hidden")),theme_settings_update(),page_resized()}),$('input[name="settings_side_slider_fixed"]').change(function(e){Core.var.slider_pinned=-1;var t=$(".right-side-tabs-dismiss .fa-pin");"true"==$(this).val()?(set_side_slider_visibility(1),t.removeClass("fa-rotate-45")):(set_side_slider_visibility(0),t.addClass("fa-rotate-45")),theme_settings_update()}),$('input[name="settings_side_slider_fixed_toggle"]').change(function(e){var t=$(".right-side-tabs-dismiss .fa-pin");"true"==$(this).val()?t.removeClass("hidden"):(("true"==$('input[name="settings_side_slider_fixed"]:checked').val()&&t.hasClass("fa-rotate-45")||"false"==$('input[name="settings_side_slider_fixed"]:checked').val()&&!t.hasClass("fa-rotate-45"))&&t.trigger("click"),t.addClass("hidden")),Core.var.slider_pinned=-1,theme_settings_update()}),$('input[name="settings_side_slider_sysinfo_enabled"], input[name="settings_side_slider_notifications_enabled"], input[name="settings_side_slider_favorites_enabled"]').change(function(e){var t="right-side-tabs-"+$(this).attr("name").split("_")[3],i=$(this).attr("name"),a=$("body").find("#"+t).hasClass("active"),n=$('input[name="settings_side_slider_sysinfo_enabled"][value="true"]:checked, input[name="settings_side_slider_notifications_enabled"][value="true"]:checked, input[name="settings_side_slider_favorites_enabled"][value="true"]:checked').length;"true"==$(this).val()?($("body").find('a[href="#'+t+'"], #'+t).removeClass("hidden").parent().removeClass("hidden"),"settings_side_slider_notifications_enabled"===i&&($(".right-side-tab-notification-asterix").removeClass("invisible hidden hidden-forged"),$(".right-side-tabs-toggler .badge.badge-danger").removeClass("invisible hidden hidden-forged"),setTimeout(function(){"function"==typeof slider_display_notification_badges&&slider_display_notification_badges()},300))):($("body").find('a[href="#'+t+'"], #'+t).addClass("hidden"),a&&n?$("body #right-side-tabs").find("li:not(.active) a:not(.hidden)").first().trigger("click"):0===n&&$('input[name="settings_side_slider_enabled"][value="false"]').trigger("click"),"settings_side_slider_notifications_enabled"===i&&($(".right-side-tab-notification-asterix").addClass("invisible hidden hidden-forged"),$(".right-side-tabs-toggler .badge.badge-danger").addClass("invisible hidden hidden-forged"),favicon.badge(0),titlenotifier.set(0))),theme_settings_update()}),$('input[name="settings_side_slider_sysinfo_enabled"], input[name="settings_side_slider_notifications_enabled"], input[name="settings_side_slider_favorites_enabled"]').each(function(){$('input[name="'+$(this).attr("name")+'"][value="'+window[$(this).attr("name")]+'"]').trigger("change")}),$('select[name="settings_navigation_color"]').after('\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t '),$(".settings_navigation_color_toggle, .settings_background_color_toggle").on("click",function(){void 0===window[$(this).attr("data-name")+"controller"]||"hidden"==window[$(this).attr("data-name")+"controller"]?($("."+$(this).attr("data-name")+"_reset, ."+$(this).attr("data-name")+"_rows").removeClass("hidden"),window[$(this).attr("data-name")+"controller"]="shown"):($("."+$(this).attr("data-name")+"_reset, ."+$(this).attr("data-name")+"_rows").addClass("hidden"),window[$(this).attr("data-name")+"controller"]="hidden")}),$(".settings_navigation_color_reset").on("click",function(){"settings_navigation_color"==$(this).attr("data-name")&&navigation_filter_reset()});var d=$('input[name="settings_grayscale_level_navigation"], input[name="settings_sepia_level_navigation"], input[name="settings_saturate_level_navigation"], input[name="settings_hue_level_navigation"], input[name="settings_invert_level_navigation"], input[name="settings_brightness_level_navigation"], input[name="settings_contrast_level_navigation"]');d.on("click keyup change",function(e){var t="-webkit-filter: grayscale("+$('input[name="settings_grayscale_level_navigation"]').val()+") sepia("+$('input[name="settings_sepia_level_navigation"]').val()+") saturate("+$('input[name="settings_saturate_level_navigation"]').val()+") hue-rotate("+$('input[name="settings_hue_level_navigation"]').val()+"deg) invert("+$('input[name="settings_invert_level_navigation"]').val()+") brightness("+$('input[name="settings_brightness_level_navigation"]').val()+") contrast("+$('input[name="settings_contrast_level_navigation"]').val()+"); filter: grayscale("+$('input[name="settings_grayscale_level_navigation"]').val()+") sepia("+$('input[name="settings_sepia_level_navigation"]').val()+") saturate("+$('input[name="settings_saturate_level_navigation"]').val()+") hue-rotate("+$('input[name="settings_hue_level_navigation"]').val()+"deg) invert("+$('input[name="settings_invert_level_navigation"]').val()+") brightness("+$('input[name="settings_brightness_level_navigation"]').val()+") contrast("+$('input[name="settings_contrast_level_navigation"]').val()+");";$(".visible-xs.mobile-menu-toggler").attr("style","position: fixed;"+t),$("aside, .visible-xs.mobile-menu-toggler").attr("style","z-index: 10; overflow: visible; transform: translate("+settings_leftmenu_width+"px, 0px);"+t),$('code[data-name="'+$(this).attr("name")+'"]').text($(this).val()),theme_settings_update()}),d.each(function(e,t){$('code[data-name="'+$(this).attr("name")+'"]').text($(this).val()),$(this).parent().parent("td").parent("tr.atshover").addClass("hidden settings_navigation_color_rows hidden-skip"),0===e&&$(this).parent().parent("td").parent("tr.atshover").prev("tr").addClass("hidden-dependent-skip")});var h=$('input[name="settings_grayscale_level_content"], input[name="settings_saturate_level_content"], input[name="settings_hue_level_content"]');h.on("click keyup change",function(e){var t="-webkit-filter: grayscale("+$('input[name="settings_grayscale_level_content"]').val()+") saturate("+$('input[name="settings_saturate_level_content"]').val()+") hue-rotate("+$('input[name="settings_hue_level_content"]').val()+"deg); filter: grayscale("+$('input[name="settings_grayscale_level_content"]').val()+") saturate("+$('input[name="settings_saturate_level_content"]').val()+") hue-rotate("+$('input[name="settings_hue_level_content"]').val()+"deg);";$("body").attr("style",t),$("#content .loading-container").attr("style",t),$('code[data-name="'+$(this).attr("name")+'"]').text($(this).val()),theme_settings_update()}),h.each(function(){$('code[data-name="'+$(this).attr("name")+'"]').text($(this).val()), -$(this).parent().parent("td").parent("tr.atshover").addClass("hidden settings_background_color_rows")}),setTimeout(function(){$(".mobile-menu-toggler:visible").length&&$('input[name="settings_leftmenu_width"]').prop("disabled",!0)},100);var f=$('input[name="settings_leftmenu_width"]');f.on("click keyup change",function(e){page_adjust($(this).val(),$(this).val()),$('code[data-name="'+$(this).attr("name")+'"]').text($(this).val()),theme_settings_update(),settings_leftmenu_width_initial=$(this).val()}),$('input[name="settings_navigation_always_collapse"]').change(function(e){r($(this)),"true"==$(this).val()?($("html").attr("data-navigation-collapsed",1),$(".mobile-menu-toggler").removeClass("visible-xs"),navigation_hide()):"false"==$(this).val()&&($("html").attr("data-navigation-collapsed",0),$(".mobile-menu-toggler").addClass("visible-xs")),setTimeout(function(){page_resized()},10)}),r(),f.each(function(){$('code[data-name="'+$(this).attr("name")+'"]').text($(this).val()),settings_leftmenu_width_initial=$(this).val()}),"restored"==v___location_query&&(d.trigger("click"),h.trigger("click"),f.trigger("click"),$('select[name="settings_navigation_color"], select[name="settings_background_color"]').trigger("change")),$("aside ul.user-html li.user-html-string").html($('input[name="settings_leftmenu_user_html"]').val()),$('input[name="settings_leftmenu_user_html"]').keyup(function(e){$("aside ul.user-html li.user-html-string").html($(this).val())}),navigation_dashboard_switch_available()&&$('input[name="settings_sysinfo_link_mini"]').parent().parent().parent().parent("tr").remove(),$('input[name^="settings_leftmenu_netdata_link"], input[name^="settings_leftmenu_user_html_only_for_administrator"], input[name="settings_sysinfo_real_time_timeout"], input[name="settings_sysinfo_easypie_charts_size"], input[name="settings_sysinfo_easypie_charts_width"], input[name="settings_sysinfo_easypie_charts_scale"], input[name="settings_sysinfo_theme_patched_updates"]').parents("td.col_value.atscontent").parent("tr.atshover").addClass("settings_option_padded"),$('input[data-role="tagsinput"]').tagsinput(),$("body").css("overflow","auto"),$.getScript(v___location_prefix+"/unauthenticated/js/detector."+v___source_type+".js?"+v___theme_version_plain,function(e,t,i){var a=new Detector;$.each($('select[name="settings_font_family"] option'),function(){var e=$(this).text();a.detect(e)||"system-default"==$(this).val()||$(this).attr("disabled","disabled").text(e+" ("+theme_language("theme_xhred_global_not_available")+")")}),$('select[name="settings_font_family"]').on("click keyup change",function(e){var t=$(this).val(),i=($.merge($("head"),$("head")),$("head").find('link[href*="font-"]').add($("head").find('link[href*="font-"]')).add($("head").find('link[href*="fonts-roboto"]')).add($("head").find('link[href*="fonts-roboto"]'))),a=$.merge($("head").find('link[href*="/authentic."]'),$("head").find('link[href*="/authentic."]')),a=a.length?a:$.merge($("head").find('link[href*="/bundle."]'),$("head").find('link[href*="/bundle."]'));i.remove(),"0"==t||"1"==t?"0"==t&&a.after(''):a.after('')})}),$('input[name="settings_leftmenu_netdata"]').on("change",function(){var e=$('input[name="settings_leftmenu_netdata_link"]');"true"==$(this).val()?e.removeAttr("disabled"):e.attr("disabled","disabled")}),$('input[name="settings_leftmenu_netdata"]:checked').trigger("change"),0!=Core.moduleAvailable("status")&&$(".right-side-tabs-toggler").length||($('input[name="settings_side_slider_enabled"][value="false"]').trigger("click"),$('input[name="settings_side_slider_enabled"]').attr("disabled","disabled")),page_resized()}})});$("body").undelegate("#atsave:not(.btn-inverse):not(.disabled)","click"),$("body").on("click","#atsave:not(.btn-inverse):not(.disabled)",function(e){e.preventDefault();var t=$(this);spinnerfy_buttons(t,[1.5,-33,"small",1e3]),set_onbeforeunload_status(0,0),theme_settings_update(),theme_config("save"),$.ajax({type:"POST",url:v___location_prefix+"/webmin/edit_startpage.cgi",data:!1,dataType:"text",success:function(e){if(Test.strContains(e,v___page_signin_form))return void(v___available_session=0);var t=$(e).find("form.ui_form");t.find('select[name="gotomodule"]').val($.trim($('select[name="goto_webmin_default_module"]').val())),$.ajax({type:"POST",url:v___location_prefix+"/webmin/change_startpage.cgi",data:$(t).serialize(),dataType:"text",success:function(e){if(Test.strContains(e,v___page_signin_form))return void(v___available_session=0)},error:function(){}})},error:function(){}}),setTimeout(function(){$.ajax({type:"POST",url:v___location_prefix+"/index.cgi?xhr-settings=1&save=1",data:t.parents("form").serialize(),dataType:"text",success:function(e){if(Test.strContains(e,v___page_signin_form))return void(v___available_session=0);navigation_update(),theme_settings_controls(0),settings_sysinfo_real_time_status?"object"==typeof stats?(stats.general.timeout=settings_sysinfo_real_time_timeout,stats.general.query()):load.script(v___server_extensions_path+"/stats/stats",0,["stats.general.timeout = settings_sysinfo_real_time_timeout","stats.general.query()"]):"object"==typeof stats&&stats.general.kill()},error:function(){t.addClass("btn-danger").removeClass("btn-success btn-inverse opacity-0_5")}})},1e3)})}if(!e&&(v___location_path_lead_unslashed==v___location_prefix_unslashed_trail_slashed+"settings-editor_read.cgi"||v___location_path_lead_unslashed==v___location_prefix_unslashed_trail_slashed+"settings-upload.cgi")){$('link[href*="/unauthenticated/css/styles.css"]').length&&$('link[href*="/unauthenticated/css/styles.css"]').attr("href",$('link[href*="/unauthenticated/css/styles.css"]').attr("href").split("?")[0]+"?"+(new Date).getTime()),$('script[src*="/unauthenticated/js/scripts.js"]').length&&$('script[src*="/unauthenticated/js/scripts.js"]').attr("src",$('script[src*="/unauthenticated/js/scripts.js"]').attr("src").split("?")[0]+"?"+(new Date).getTime()),setTimeout(function(){$(".file-editor-saved").remove(),$(".file-editor-save").removeClass("hidden")},2400),check_location_resource("/settings-upload.cgi?saved=1")&&$.each($(".file_chooser_button_preview:first"),function(){$(this).hasClass("disabled")?$("aside + .__logo").remove():matchMedia("(max-width: 1080px)").matches||($("aside + .__logo").length?($('.__logo img[src*="/images/logo.png"]').attr("src",$('.__logo img[src*="/images/logo.png"]').attr("src").split("?")[0]+"?"+(new Date).getTime()),$("aside + .__logo").attr("style","transform: translate(0px, 0px);"),setTimeout(function(){$(".__logo").transition({y:"-140px"},1200)},400)):($("aside").after(''),setTimeout(function(){$(".__logo").transition({y:"-140px"},1200)},400)))});var v=".authentic_update:not(.disabled), .page_footer_ajax_submit:not(.disabled)";$("body").undelegate(v,"click"),$("body").on("click",v,function(){spinnerfy_buttons($(this),[1.5,-28,"small",!1])}),setTimeout(function(){v___location_path_lead_unslashed==v___location_prefix_unslashed_trail_slashed+"settings-editor_read.cgi"&&$(".end_submits").parent("td").after('Theme logos').parents(".ui_form_end_buttons").css("width","100%"),$(".btn-group.end_submits").css("margin-left","2px")},100)}if(e||v___location_path_lead_unslashed!=v___location_prefix_unslashed_trail_slashed+"settings-upload.cgi"||($(function(){function e(e){void 0===e&&(e=$('input[name="authenticated_logo"]:checked'));var t=["authenticated_logo_file"];"1"!=e.val()?$.each(t,function(e,t){$('input[name="'+t+'"]').parents(".file-input-wrapper").addClass("disabled").prev(".file_chooser_button_preview").addClass("disabled")}):$.each(t,function(e,t){$('input[name="'+t+'"]').parents(".file-input-wrapper").removeClass("disabled"),"1"==$_authenticated_logo&&$('input[name="'+t+'"]').parents(".file-input-wrapper").prev(".file_chooser_button_preview").removeClass("disabled")})}function t(e){void 0===e&&(e=$('input[name="unauthenticated_logo"]:checked'));var t=["unauthenticated_logo_file"];"1"!=e.val()?$.each(t,function(e,t){$('input[name="'+t+'"]').parents(".file-input-wrapper").addClass("disabled").prev(".file_chooser_button_preview").addClass("disabled")}):$.each(t,function(e,t){$('input[name="'+t+'"]').parents(".file-input-wrapper").removeClass("disabled"),"1"==$_unauthenticated_logo&&$('input[name="'+t+'"]').parents(".file-input-wrapper").prev(".file_chooser_button_preview").removeClass("disabled")})}$_authenticated_logo=$('input[name="authenticated_logo"]:checked').val(),$_unauthenticated_logo=$('input[name="unauthenticated_logo"]:checked').val(),e(),$('input[name="authenticated_logo"]').on("change",function(){e($(this))}),t(),$('input[name="unauthenticated_logo"]').on("change",function(){t($(this))})}),$(".file_chooser_button_preview").on("mouseout",function(e){$(this).css("background","white")}).on("mouseover",function(e){$(this).css("background","#eee")}),$.each($(".file_chooser_button_preview"),function(){$(this).data("image")&&$(this).popover({trigger:"hover",html:!0,content:function(){return""}})})),$("#system-status > div.panel-body > table > tbody > tr > td").on("mouseover",function(){$(this).find(".btn-hidden").removeClass("hidden")}).on("mouseout",function(){$(this).find(".btn-hidden").addClass("hidden")}),(Core.curModule("software")&&Test.strContains(v___location_file,"tree.cgi")||Core.curModuleFile("cluster-software","edit_host.cgi"))&&($('img[src*="images/"]').each(function(e,t){var i=$(this);i.next("a").removeClass(),Test.strContains(i.attr("src"),"close")&&i.replaceWith(''),Test.strContains(i.attr("src"),"open")&&i.replaceWith(''),Test.strContains(i.attr("src"),"pack")&&i.replaceWith('')}),$('a[href*="closeall.cgi"]').before('
    ')),(Core.curModule("mysql")||Core.curModule("postgresql"))&&($('a > img[src*="images/left.gif"]').each(function(e,t){$(this).replaceWith('')}),$('a > img[src*="images/right.gif"]').each(function(e,t){$(this).replaceWith('')})),Core.curModule("mailboxes")||Core.curModule("mailbox")){var b='form.ui_form[action="index.cgi"]',x="fa fa-fw fa-lg text-semi-light vertical-align-baseline fa-angle-";$(b+' img[src*="images/left"], center img[src*="images/left"]').each(function(){$(this).replaceWith('')}),$(b+' img[src*="images/right"], center img[src*="images/right"]').each(function(){$(this).replaceWith('')}),$(b+' img[src*="images/first"]').each(function(){$(this).replaceWith('')}),$(b+' img[src*="images/last"]').each(function(){$(this).replaceWith('')}),$('button[name="razor"], button[name="ham"]').on("click",function(){$(this).parents("form").attr("target","_blank")})}if(Core.curModuleFile("virtual-server","list_scripts.cgi")&&($('td > a > img[src*="images/staroff.gif"]').each(function(e,t){$(this);$(t).attr("src",v___location_prefix+"/images/staroff.gif")}),$('td > a > img[src*="images/staron.gif"]').each(function(e,t){$(this);$(t).attr("src",v___location_prefix+"/images/staron.gif")})),v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"status/"&&($('td img[src*="images/up.gif"]:not(".ui_icon_protected")').each(function(e,t){var i=$(this);$(t).attr("src",v___location_prefix+"/images/check.png"),i.addClass("scale-08")}),$('td img[src*="images/down.gif"]:not(".ui_icon_protected")').each(function(e,t){var i=$(this);$(t).attr("src",v___location_prefix+"/images/cross.png"),i.addClass("scale-08")}),$('td img[src*="images/not.gif"]:not(".ui_icon_protected")').each(function(e,t){var i=$(this);$(t).attr("src",v___location_prefix+"/images/not.png"),i.addClass("scale-08")})),$('.ui_form[action^="delete_mons"] tr.ui_checked_columns > td > label > img[src="images/up.gif"]:not(".ui_icon_protected"), .ui_form[action^="save_mon"] img[src="images/up.gif"]:not(".ui_icon_protected"), table.ui_buttons_table > tbody > tr.ui_buttons_row > td.ui_buttons_label > img[src="images/up.gif"]:not(".ui_icon_protected")').each(function(e,t){var i=$(this);$(t).attr("src",v___location_prefix+"/images/check.png"),i.addClass("scale-08")}),$('.ui_form[action^="delete_mons"] tr.ui_checked_columns > td > label > img[src="images/down.gif"]:not(".ui_icon_protected"), .ui_form[action^="save_mon"] img[src="images/down.gif"]:not(".ui_icon_protected"), table.ui_buttons_table > tbody > tr.ui_buttons_row > td.ui_buttons_label > img[src="images/down.gif"]:not(".ui_icon_protected")').each(function(e,t){var i=$(this);$(t).attr("src",v___location_prefix+"/images/cross.png"),i.addClass("scale-08")}),$('.ui_form[action^="delete_mons"] tr.ui_checked_columns > td > label > img[src="images/not.gif"]:not(".ui_icon_protected"), .ui_form[action^="save_mon"] img[src="images/not.gif"]:not(".ui_icon_protected"), table.ui_buttons_table > tbody > tr.ui_buttons_row > td.ui_buttons_label > img[src="images/not.gif"]:not(".ui_icon_protected")').each(function(e,t){var i=$(this);$(t).attr("src",v___location_prefix+"/images/not.png"),i.addClass("scale-08")}),(Core.curModule("proc")||Core.curModule("firewall")||Core.curModule("firewall6")||Core.curModule("shorewall")||Core.curModule("shorewall6")||Core.curModuleFile("pam","edit_pam.cgi")||Core.curModule("filter"))&&($("td a img[src], td label a img[src]").parents("td").addClass("text-center"),$('td img[src*="images/gap.gif"]').replaceWith(''),$('td a img[src*="images/down.gif"]').replaceWith(''),$('td a img[src*="images/up.gif"]').replaceWith(''),$('td a img[src*="images/after.gif"]').replaceWith(''),$('td a img[src*="images/before.gif"]').replaceWith('')),(Core.curModule("squid")||Core.curModule("cron"))&&($('td a img[src*="images/movedown.gif"]').replaceWith(''),$('td a img[src*="images/moveup.gif"]').replaceWith('')),Core.curModule("cron")&&($('td a img[src*="images/bottom.gif"]').replaceWith(''),$('td a img[src*="images/top.gif"]').replaceWith('')),$("input").each(function(e,t){"images/ok.gif"==$(this).attr("src")&&($(t).attr("src",v___location_prefix+"/"+$(this).attr("src")),$(this).parents("td").attr("style","white-space: nowrap"))}),!e){if(!$(".ui_table tr td").has(".ui_grid_table.table-hardcoded")||v___location_directory_unslashed_trail_slashed!=v___location_prefix_unslashed_trail_slashed+"passwd/"&&v___location_directory_unslashed_trail_slashed!=v___location_prefix_unslashed_trail_slashed+"mailboxes/"&&v___location_path!=v___location_prefix+"/usermin/list_configs.cgi"||($(".ui_table tr td .ui_grid_table.table-hardcoded").parents("table").css("border","1px solid #f0f0f0"),$(".ui_table tr td .ui_grid_table.table-hardcoded").addClass("table").parents("tr").css("border","1px solid #f0f0f0")),($("body").attr("class")&&$('body[class="custom"]').length||$("body").attr("class")&&0===$("body").attr("class").search(/custom\d+$/))&&"view.cgi"==v___location_file){var y=$('form[action="save.cgi"]').find(".table-title").find("tt").text();$('form[action="save.cgi"]').find(".table-title").find("b").empty().append(""+y+"")}if($.each($("form > table"),function(){$(this).next('input[type="submit"]')&&$(this).attr("style")}),$.each($("table tr"),function(){$(this).is(":empty")&&$(this).remove()}),$.each($("span > input"),function(){var e=$(this).parent("span").next(".chooser_button"),t=$(this).parent("span").next('input[type="button"][onclick]');$(this).parent("span").next("select");e&&e.attr("style","display: inline; width:40px; height: 28px; margin-right:0 !important; margin-top:4px !important;").find("i.fa-files-o").css("margin-top","0").addClass("vertical-align-middle"),$(this).parents(".tab-content")&&e.css("margin-top","4px"),t&&(t.attr("style","display: inline; width:40px; height: 28px; margin-right:0 !important; vertical-align: middle").next("i.fa-files-o").css("margin-top","11px").addClass("vertical-align-middle"),t.attr("style","display: inline; width:40px; height: 28px; margin-right:0 !important; vertical-align: middle").next("i.fa-calendar").attr("style","margin-top: 21px !important; font-size: 11px; margin-left: -27px; pointer-events: none;"))}),$.each($('input[type="button"][onclick^="ifield"]'),function(e,t){$(this).css("margin-left","0").css("width","40px").css("height","28px")}),$('.ui_form[action="switch.cgi"] > input.form-control.ui_textbox').next('input[type="button"][onclick^="ifield"]').attr("style","margin-top: 2px !important; margin-bottom: 2px !important; margin-left: 0 !important"),setTimeout(function(){$('.ui_form[action="switch.cgi"] .file_chooser_button_attached').attr("style","font-size: 11px; pointer-events: none; margin-top: 14px !important;")},10),v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"cshrc/"&&$("textarea").each(function(e,t){$(this).attr("style","height: 20em !important")}),v___location_path!=v___location_prefix+"/acl/"&&v___location_path!=v___location_prefix+"/acl/edit_user.cgi"||$('.ui_grid_table.table-hardcoded .ui_grid_row .ui_grid_cell input[type="checkbox"], .table-hardcoded .col_value input[type="checkbox"]').each(function(e,t){$(this).attr("style","vertical-align: bottom !important")}),($("body").attr("class")&&$('body[class="custom"]').length||$("body").attr("class")&&0===$("body").attr("class").search(/custom\d+$/))&&($(".panel-body > .ui_grid_table.table-hardcoded").each(function(e,t){$(this).attr("style","margin-top: 3px !important")}),$(".panel-body td > .ui_form").each(function(){$(this).attr("style","padding-top: 0 !important")}),$(".panel-body > a.ui_link").each(function(e,t){$(this).addClass("btn btn-inverse btn-tiny ui_link_replaced").removeClass("ui_link"),$(this).text($(this).text().replace(/\.$/,"")),$(this).parent().contents().filter(function(){return 3==this.nodeType}).remove(),0===$(this).attr("href").indexOf("edit_cmd.cgi?new")&&$(this).html(' '+$(this).text()),0===$(this).attr("href").indexOf("edit_file.cgi?new")&&$(this).html(' '+$(this).text()),0===$(this).attr("href").indexOf("edit_sql.cgi?new")&&$(this).html(' '+$(this).text())}),$.each($('td.td_tag:contains("|")'),function(){$(this).find('a[href^="edit_"]').addClass("ui_link_replaced btn btn-xxs btn-transparent btn-link-bordered f__lnk_t_btn-el").css("margin-right","3px").removeClass("ui_link").prepend(' '),$(this).find('a:not([href^="edit_"])').remove(),$(this).parents("table").find("thead > tr > th:eq(2)").addClass("pointer-events-none").html("")}),$('td.td_tag:contains("|")').contents().filter(function(){return 3==this.nodeType}).remove()),theme_buttonify(["/syslog-ng/list_destinations.cgi"],".container-fluid .table tbody tr td:last-child",'a[href*="view_log.cgi"]',"btn btn-transparent btn-link-bordered btn-xxs vertical-align-top margined-top-1",""),theme_buttonify(["/virtual-server/edit_newmysqls.cgi"],".container-fluid .table tbody tr td:last-child","a.ui_link","btn btn-transparent btn-link-bordered btn-xxs vertical-align-top margined-top-1","fa-cog"),theme_buttonify(["/virtualmin-git/","/virtualmin-git/index.cgi"],".container-fluid table td.td_tag",'a[href*="delete.cgi"]',"btn btn-danger btn-xxs vertical-align-top margined-top-2 ---forced","fa-times-circle","","","","|"),theme_buttonify(["/virtualmin-git/","/virtualmin-git/index.cgi"],".container-fluid table td.td_tag",'a[href*="//"]',"btn btn-transparent btn-link-bordered btn-xxs vertical-align-top margined-left--4 margined-top-2 ---forced",""),theme_buttonify(["/virtualmin-git/","/virtualmin-git/index.cgi"],".container-fluid table td.td_tag",'a[href*="help.cgi"]',"btn btn-info btn-xxs vertical-align-top margined-left--4 margined-top-2 ---forced",""),theme_buttonify(["/webalizer/","/webalizer/index.cgi"],".container-fluid .table tbody tr td:last-child","a.ui_link","btn btn-transparent btn-link-bordered btn-xxs vertical-align-top margined-top-1",0),theme_buttonify(["/cpan/edit_mod.cgi"],".container-fluid .table tbody tr td","a.ui_link","btn btn-transparent btn-link-bordered btn-xxs vertical-align-top margined-top-1 margined-right--5 btn-dnwo ---forced","","","","","|"),theme_buttonify(["/forward/index.cgi","/forward/"],".container-fluid",'.panel-body > a:first[href*="simple"]',"btn btn-default _btn-links-top btn-xs vertical-align-top margined-top-2 margined-left-3",0,"","","","|"),theme_buttonify(["/forward/index.cgi","/forward/"],".container-fluid",".panel-body > span[data-unckecked]","btn btn-info _btn-links-top btn-xs vertical-align-top margined-top-2 margined-left-3",0,"","","","|"),theme_buttonify(["/acl/list_sessions.cgi"],".container-fluid table td.td_tag",'a[href*="webminlog/"]',"btn btn-info btn-xxs vertical-align-top margined-top-2 ---forced",0,"","","","|"),theme_buttonify(["/acl/list_sessions.cgi"],".container-fluid table td.td_tag",'a[href*="delete_session.cgi"]',"btn btn-danger btn-xxs vertical-align-top margined-left--4 margined-top-2 ---forced","fa-unplugged"),theme_buttonify(["/firewall/index.cgi","/firewall6/index.cgi","/firewall/","/firewall6/"],".container-fluid","style + b + b:first, style + b + a + b:first, a.ui_link:first","btn btn-link btn-link-bordered _btn-links-top btn-xs vertical-align-top margined-top-2 margined-left-0",0,"","","","|"),theme_buttonify(["/sysinfo.cgi","/virtual-server/edit_newchangelog.cgi","/server-manager/edit_newchangelog.cgi"],".container-fluid #newfeatures-virtual-server-1-collapse dt, .container-fluid #newfeatures-server-manager-1-collapse dt, .container-fluid .table td dt","a","btn btn-link btn-link-bordered btn-xxs btn-dnwo f__lnk_t_btn-el margined-left-3 vertical-align-top margined-top-2","fa-eye","|",""),theme_buttonify(["/virtual-server/cert_form.cgi","/webmin/edit_ssl.cgi","/usermin/edit_ssl.cgi"],".container-fluid #att_current","a","btn btn-link btn-link-bordered btn-xxs btn-dnwo margined-left-3 vertical-align-top margined-top-2 --to-new-tab",0,"","","","|"),theme_buttonify(["/virtual-server/","/virtual-server/index.cgi","/virtual-server/edit_plan.cgi"],".container-fluid form table tbody td",'a[href*="list_users.cgi?"], a[href*="list_aliases.cgi?"]',"btn btn-link btn-link-bordered btn-xxs btn-hover-hide vertical-align-top margined-top-2",0,"(~)"," ~ ",""),theme_buttonify(["/quota/","/quota/index.cgi"],".container-fluid .table tbody td.td_tag",'a[href*="activate.cgi"][href*="&active=3"]',"btn btn-warning btn-xxs vertical-align-top margined-top-2","fa-ban"),theme_buttonify(["/quota/","/quota/index.cgi"],".container-fluid .table tbody td.td_tag",'a[href*="activate.cgi"][href*="&active=0"]',"btn btn-success btn-xxs vertical-align-top margined-top-2","fa-check-circle-o"),theme_buttonify(["/virtualmin-google-analytics/","/virtualmin-google-analytics/index.cgi"],".container-fluid .table tbody td.td_tag",'a[href*="edit.cgi"]',"btn btn-warning btn-xxs vertical-align-top margined-top-2","fa-pencil-square"),theme_buttonify(["/apache/","/apache/index.cgi"],".container-fluid .table tbody tr td:last-child","a.ui_link","btn btn-transparent btn-link-bordered btn-xxs vertical-align-top margined-top-2","fa-external-link"),theme_buttonify(["/ldap-server/edit_schema.cgi"],".container-fluid table tr.ui_checked_columns td",'a[href*="view_sfile.cgi"]',"btn btn-info btn-xxs vertical-align-top margined-top-1 ---forced",0,"","","","|"),theme_buttonify(["/ldap-server/edit_schema.cgi"],".container-fluid table tr.ui_checked_columns td",'a[href*="edit_sfile.cgi"]',"btn btn-warning btn-xxs vertical-align-top margined-left--4 margined-top-1 ---forced","fa-pencil-square-o"),($('body[class*="status"]').length&&"edit_mon.cgi"==v___location_file||v___location_path==v___location_prefix+"/virtual-server/list_sched.cgi"||v___location_path==v___location_prefix+"/software/list_pack.cgi"||v___location_path==v___location_prefix+"/mailboxes/view_mail.cgi"||v___location_path==v___location_prefix+"/mailbox/view_mail.cgi"||v___location_path==v___location_prefix+"/mailbox/list_folders.cgi"||v___location_path==v___location_prefix+"/phpini/"||v___location_path==v___location_prefix+"/phpini/index.cgi"||v___location_path==v___location_prefix+"/fsdump/"||v___location_path==v___location_prefix+"/fsdump/index.cgi"||v___location_path==v___location_prefix+"/fdisk/"||v___location_path==v___location_prefix+"/fdisk/index.cgi"||v___location_path==v___location_prefix+"/virtualmin-awstats/"||v___location_path==v___location_prefix+"/virtualmin-awstats/index.cgi"||v___location_path==v___location_prefix+"/syslog/"||v___location_path==v___location_prefix+"/syslog/index.cgi")&&($.each($('tr td:last-child:contains("|")'),function(){v___location_path==v___location_prefix+"/virtual-server/list_sched.cgi"&&($(this).find('a[href^="backup_form.cgi"]').html($(this).find('a[href^="backup_form.cgi"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-success btn-xxs margined-top--2 f__lnk_t_btn-el").removeClass("ui_link").prepend('  '),$(this).find('a[href^="restore_form.cgi"]').html($(this).find('a[href^="restore_form.cgi"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-primary btn-xxs margined-top--2 f__lnk_t_btn-el").removeClass("ui_link").prepend('  '),$(this).find('a[href^="backuplog.cgi"]').html($(this).find('a[href^="backuplog.cgi"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-info btn-xxs margined-top--2 f__lnk_t_btn-el").removeClass("ui_link").prepend('  ')),v___location_path!=v___location_prefix+"/phpini/"&&v___location_path!=v___location_prefix+"/phpini/index.cgi"||($(this).find('a[href^="list_ini.cgi"]').html($(this).find('a[href^="list_ini.cgi"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-success btn-xxs f__lnk_t_btn-el").removeClass("ui_link").prepend('  '),$(this).find('a[href^="edit_manual.cgi"]').html($(this).find('a[href^="edit_manual.cgi"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-primary btn-xxs f__lnk_t_btn-el").removeClass("ui_link").prepend('  ')),v___location_path!=v___location_prefix+"/fdisk/"&&v___location_path!=v___location_prefix+"/fdisk/index.cgi"||($(this).find('a[href^="edit_hdparm.cgi"]').html($(this).find('a[href^="edit_hdparm.cgi"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-success btn-xxs f__lnk_t_btn-el").removeClass("heighter-34").removeClass("ui_link"),$(this).find('a[href*="smart-status/index.cgi"]').html($(this).find('a[href*="smart-status/index.cgi"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-info btn-xxs f__lnk_t_btn-el").removeClass("heighter-34").removeClass("ui_link"),$(this).find('a[href^="blink.cgi"]').html($(this).find('a[href^="blink.cgi"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-warning btn-xxs f__lnk_t_btn-el").removeClass("heighter-34").removeClass("ui_link")),v___location_path==v___location_prefix+"/mailbox/list_folders.cgi"&&($(this).find('a[href^="index.cgi"]').html($(this).find('a[href^="index.cgi"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-success btn-xxs").removeClass("heighter-34").removeClass("ui_link").removeClass("ui_link").prepend('  '),$(this).find('a[href^="edit_auto.cgi"]').html($(this).find('a[href^="edit_auto.cgi"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-info btn-xxs").removeClass("heighter-34").removeClass("ui_link").removeClass("ui_link").prepend('  '),$(this).find('a[href^="copy_form.cgi"]').html($(this).find('a[href^="copy_form.cgi"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-warning btn-xxs").removeClass("heighter-34").removeClass("ui_link").removeClass("ui_link").prepend('  ')),v___location_path!=v___location_prefix+"/mailboxes/view_mail.cgi"&&v___location_path!=v___location_prefix+"/mailbox/view_mail.cgi"||($(this).find('a[href^="detach.cgi"]:not([href*="&save=1"]):not([target="_blank"])').html($(this).find('a[href^="detach.cgi"]:not([href*="&save=1"]):not([target="_blank"])').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-primary btn-xxs").removeClass("heighter-34").removeClass("ui_link").removeClass("ui_link").prepend('  '),$(this).find('a[href*="detach.cgi"][target="_blank"]').html($(this).find('a[href*="detach.cgi"][target="_blank"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-success btn-xxs").removeClass("heighter-34").removeClass("ui_link").prepend('  '),$(this).find('a[href*="&save=1"]:not([target="_blank"])').html($(this).find('a[href*="&save=1"]:not([target="_blank"])').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-warning btn-xxs").removeClass("heighter-34").removeClass("ui_link").prepend('  ')), -v___location_path!=v___location_prefix+"/virtualmin-awstats/"&&v___location_path!=v___location_prefix+"/virtualmin-awstats/index.cgi"||($(this).find('a[href^="view.cgi"]').html($(this).find('a[href^="view.cgi"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-success btn-xxs f__lnk_t_btn-el").removeClass("heighter-34").removeClass("ui_link").prepend('  '),$(this).find('a[href^="config.cgi"]').html($(this).find('a[href^="config.cgi"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-primary btn-xxs f__lnk_t_btn-el").removeClass("heighter-34").removeClass("ui_link").prepend('  '))}),$('body[class*="status"]').length&&"edit_mon.cgi"==v___location_file?($('a[href*="edit_mon.cgi?id"]').addClass("ui_link_replaced btn btn-default btn-xxs").removeClass("heighter-34").removeClass("ui_link"),$('a[href*="edit_mon.cgi?id"]').last().css("margin-left","-1px"),$('tr td:last-child:contains("|")').replaceText(/\|/gi,"")):$('tr td:last-child:contains("|")').contents().filter(function(){return 3==this.nodeType}).remove(),v___location_path!=v___location_prefix+"/fdisk/"&&v___location_path!=v___location_prefix+"/fdisk/index.cgi"||$("body").find('a[href^="blink.cgi"]:not(.ui_link_replaced)').html($("body").find('a[href^="blink.cgi"]:not(.ui_link_replaced)').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-warning btn-xxs f__lnk_t_btn-el").removeClass("heighter-34").removeClass("ui_link"),v___location_path!=v___location_prefix+"/fsdump/"&&v___location_path!=v___location_prefix+"/fsdump/index.cgi"||$.each($("tr td:last-child"),function(){$(this).find('a[href^="backup.cgi"]').html($(this).find('a[href^="backup.cgi"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-success btn-xxs margined-top--2 f__lnk_t_btn-el").removeClass("heighter-34").removeClass("ui_link").prepend('  '),$(this).find('a[href^="kill.cgi"]').html($(this).find('a[href^="kill.cgi"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-danger btn-xxs margined-top--2 f__lnk_t_btn-el").removeClass("heighter-34").removeClass("ui_link").prepend('  ')}),v___location_path!=v___location_prefix+"/syslog/"&&v___location_path!=v___location_prefix+"/syslog/index.cgi"||$.each($("tr td:last-child"),function(){$(this).find('a[href*="save_log.cgi"][href*="view=1"]').html($(this).find('a[href*="save_log.cgi"][href*="view=1"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-primary btn-xxs f__lnk_t_btn-el").removeClass("heighter-34").removeClass("ui_link")}),v___location_path==v___location_prefix+"/software/list_pack.cgi")){$('td a.ui_link[href*="view.cgi"]').html('').addClass("ui_link_replaced btn btn-default btn-xxs f__lnk_t_btn-el").removeClass("heighter-34").attr("style","margin-top: 2px !important; margin-bottom: 0 !important; margin-right: 15px").removeClass("ui_link").prepend('')}if(v___location_path==v___location_prefix+"/fdisk/edit_disk.cgi"){var w=[];$.each($(".panel-body > table.table.table-striped tbody tr"),function(e,t){($(this).find("td:nth-child(3)").find('img[src*="images/use"]').length||$(this).find("td:nth-child(3)").find('img[src*="images/gap"]').length)&&($(this).find("td:nth-child(3)").remove(),w.push(e))}),$.isEmptyObject(w)||($(".panel-body > table.table.table-striped thead").find("th:nth-child(3)").remove(),delete w)}v___location_path==v___location_prefix+"/virtual-server/edit_link.cgi"&&$(".table-hardcoded").find('input[name="open"]').parent("td").parent("tr").remove(),v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"init/"&&$('.table.table-striped.table-condensed tr.tr_tag td.td_tag input[type="checkbox"]').each(function(e,t){$(this).attr("style","vertical-align: middle !important")}),v___location_directory_unslashed_trail_slashed!=v___location_prefix_unslashed_trail_slashed+"proc/"&&v___location_path_lead_unslashed!=v___location_prefix_unslashed_trail_slashed+"proc/index.cgi"||((v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"proc/"&&v___location_file&&v___location_file.indexOf("index_")>-1||v___location_path_lead_unslashed==v___location_prefix_unslashed_trail_slashed+"proc/index.cgi"||v___location_path===v___location_prefix+"/proc/")&&($("a.ui_link + b").addClass("btn").css("margin-left","3px"),$("b + a.ui_link").addClass("btn").css("margin-left","3px"),$('.panel-body > b:first-child:contains("Display")').length>0&&$(".panel-body > b:first-child").remove(),$(".panel-body > b").addClass("btn btn-success")),$(".panel-body").contents().filter(function(){return 3==this.nodeType}).remove(),$(".panel-body > a.ui_link").addClass("btn").css("margin-left","3px")),v___location_path_lead_unslashed==v___location_prefix_unslashed_trail_slashed+"proc/edit_proc.cgi"&&$("#signal").attr("style","margin-bottom: 0 !important;"),v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"procmail/"&&($(".panel-body p:first-child").next("p").contents().filter(function(){return 3==this.nodeType}).remove(),$(".panel-body p:last-child").prev("a.ui_link").remove()),v___location_directory_unslashed_trail_slashed!=v___location_prefix_unslashed_trail_slashed+"cron/"&&v___location_path_lead_unslashed!=v___location_prefix_unslashed_trail_slashed+"cron/index.cgi"||$('.panel-body form.ui_form[action="index.cgi"]').next("script").next("b").next("p").contents().filter(function(){return 3==this.nodeType}).remove(),v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"filter/"&&$(".panel-body > b").next("p").contents().filter(function(){return 3==this.nodeType}).remove(),v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"dhcpd/"&&$(".panel-body > p").contents().filter(function(){return 3==this.nodeType}).remove(),v___location_directory_unslashed_trail_slashed!=v___location_prefix_unslashed_trail_slashed+"htaccess-htpasswd/"&&v___location_directory_unslashed_trail_slashed!=v___location_prefix_unslashed_trail_slashed+"forward/"||$("td table.table-hardcoded.table.table-subtable").removeClass("table-striped"),$(".ui_buttons_hr > td > table.table-hardcoded > tbody > tr > td[nowrap]").each(function(){$(this).parents("table").attr("style","margin-bottom: 15px !important")}),$("textarea.form-control.ui_textarea").next('button[type="button"].btn-default').each(function(){$(this).prev("textarea").attr("style","margin-bottom: 1px !important"),$(this).attr("style","width:100% !important; padding-top: 0; height:28px !important")}),$("textarea.form-control.ui_textarea").next("br").next('button[type="button"].btn-default').each(function(){$(this).prev("textarea").attr("style","margin-bottom: 1px !important"),$(this).attr("style","width:100% !important; padding-top: 0; height:28px !important")}),$(".table-hardcoded > tbody > tr > td > input.form-control.ui_textbox").next('button[type="button"].ui_button').each(function(){$(this).attr("style","margin-top: 2px !important")}),$(".table-hardcoded > tbody > tr > td.col_label b a, .ui_table_row td a").each(function(e,t){$(this).attr("href")||$(this).attr("style","color: #333; text-decoration: none; cursor:default")}),$('input[name="all_weekdays"], .ui_grid_cell > table.table-condensed, table.table-hardcoded table.table-condensed, select[multiple][name="days"]').each(function(){$(this).parent("td").attr("style","vertical-align: top !important; padding-left:2px; padding-right:2px;")}),$('input[type="submit"]').each(function(){$(this).addClass("btn btn-default")}),$("table tr th").each(function(){$(this).text()&&$(this).attr("style","width: auto")}),$("table thead th:not(.table-title)").each(function(){$(this).css("border-top","none"),$(this).css("border-bottom","none")}),$("body").attr("class")&&$("body").attr("class").indexOf(v___module_file_manager)>-1&&(!$("body").hasClass("file-manager")&&$("body").addClass("file-manager"),$("#headln2l").prepend("'));var k=$(".panel-heading > table.header > tbody > tr > td > a");$.each(k,function(){if($(this).attr("href")&&$(this).attr("href").indexOf("config.cgi")>-1||$(this).attr("href").indexOf("man/search.cgi")>-1||$(this).attr("href").indexOf("/index.cgi")>-1||$(this).attr("href")==v___location_directory_trail_slashed||$(this).attr("href").indexOf("index.cgi")>-1&&v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"openvpn/"||$(this).attr("href").indexOf("index.cgi?")>-1&&v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"spam/"||$(this).attr("href").indexOf("restart_zone.cgi")>-1||$(this).attr("href").indexOf("restart.cgi")>-1||$(this).attr("href").indexOf("apply.cgi")>-1||$(this).attr("href").indexOf("start.cgi")>-1||$(this).attr("href").indexOf("stop.cgi")>-1||"//"==$(this).attr("href")&&(v___location_path_lead_unslashed==v___location_prefix_unslashed_trail_slashed+"settings-editor_read.cgi"||v___location_path_lead_unslashed==v___location_prefix_unslashed_trail_slashed+"settings-upload.cgi")||$(this).attr("href").indexOf("delete_")>-1||$(this).attr("href").indexOf("list_mail.cgi")>-1||$(this).attr("href").indexOf("/virtual-")>-1||$(this).attr("href").indexOf("/virtualmin-")>-1||$(this).attr("href").indexOf("/server-")>-1||$(this).attr("href").indexOf("help.cgi")>-1){if($.each($(this).next("br"),function(){$(this).remove()}),$.each($(this).prev("br"),function(){$(this).remove()}),$(this).attr("href").indexOf("help.cgi")>-1){var e=$(this),t=$(this).parent("td");$(this).remove(),t.append(e)}$(this).attr("href").indexOf("/index.cgi")>-1||$(this).attr("href")==v___location_directory_trail_slashed||$(this).attr("href").indexOf("/virtual-")>-1||$(this).attr("href").indexOf("/virtualmin-")>-1||$(this).attr("href").indexOf("/server-")>-1?($iconized_class="fa-arrow-left",$(this).data("title","").data("back",1)):"//"!=$(this).attr("href")||v___location_path_lead_unslashed!=v___location_prefix_unslashed_trail_slashed+"settings-editor_read.cgi"&&v___location_path_lead_unslashed!=v___location_prefix_unslashed_trail_slashed+"settings-upload.cgi"?$(this).attr("href").indexOf("config.cgi")>-1?($iconized_class="fa-cog",$(this).data("title","")):$(this).attr("href").indexOf("restart.cgi")>-1||$(this).attr("href").indexOf("apply.cgi")>-1?$iconized_class="fa-refresh":$(this).attr("href").indexOf("restart_zone.cgi")>-1?$iconized_class="fa-retweet":$(this).attr("href").indexOf("start.cgi")>-1?$iconized_class="fa-play":$(this).attr("href").indexOf("stop.cgi")>-1?$iconized_class="fa-square":$(this).attr("href").indexOf("man/search.cgi")>-1?$iconized_class="fa-search":$(this).attr("href").indexOf("delete_")>-1?$iconized_class="fa-trash-o":$(this).attr("href").indexOf("list_mail.cgi")>-1?$iconized_class="fa-inbox":$(this).attr("href").indexOf("index.cgi")>-1&&v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"openvpn/"?$iconized_class="fa-cogs":$(this).attr("href").indexOf("index.cgi?")>-1&&v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"spam/"&&($iconized_class="fa-arrow-left",$(this).data("back",1)):($iconized_class="fa-arrow-left",$(this).attr("href",v___location_prefix+"/webmin/edit_themes.cgi").data("title","").data("back",1));var i=$(this).attr("href").indexOf("help.cgi")>-1;i&&($iconized_class="fa-question-circle",$(this).data("title","")),$(this).data("toggle","tooltip").data("title",Convert.strUpInitial(i?theme_language("theme_xhred_global_help"):1===$(this).data("back")?Core.curModule(v___module_file_manager)?"":theme_language("theme_xhred_global_return_to_module_index"):$(this).text())).attr("data-container","body").addClass("btn btn-link text-lighter").removeClass("ui_link").append(''),$(this).contents().filter(function(){return 3==this.nodeType}).remove(),$(this).tooltip({container:"body",placement:"auto top",delay:{show:600,hide:30}}),((v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"apache/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"proftpd/")&&($(this).attr("href").indexOf("restart.cgi")>-1||$(this).attr("href").indexOf("apply.cgi")>-1)||$(this).parent("td").find("a")&&1==$(this).parent("td").find("a").length||$(this).attr("href").indexOf("man/search.cgi")>-1||$(this).attr("href").indexOf("config.cgi")>-1||$(this).attr("href").indexOf("/index.cgi")>-1||$(this).attr("href").indexOf("/index.cgi")>-1||$(this).attr("href").indexOf("/virtual-")>-1||$(this).attr("href").indexOf("/virtualmin-")>-1||$(this).attr("href").indexOf("/server-")>-1)&&(($(this).attr("href").indexOf("/index.cgi")>-1||$(this).attr("href").indexOf("config.cgi")>-1)&&$("body").attr("class")&&$("body").attr("class").indexOf(v___module_file_manager)>-1?$(this).attr("style","margin-right: 0 !important; padding: 6px 12px"):$(this).attr("style","margin-right: 0 !important"))}$("#headln2l").removeClass("invisible")}),$.each($('td.ui_grid_cell:contains("|")'),function(){$(this).contents().filter(function(){return 3==this.nodeType}).remove()}),$('a[href*="help.cgi"][onclick], a[href*="help.cgi/"], a[href*="showpass.cgi?"][onclick]').attr("onclick","").unbind("click").addClass("help_popup"),$(".help_popup").each(function(){$(this).attr("style","color: #333; text-decoration: none; cursor:help")})}if(!e){if(v___location_directory_unslashed_trail_slashed!=v___location_prefix_unslashed_trail_slashed+"fdisk/"&&v___location_directory_unslashed_trail_slashed!=v___location_prefix_unslashed_trail_slashed+"postfix/"&&v___location_directory_unslashed_trail_slashed!=v___location_prefix_unslashed_trail_slashed+"pam/"&&v___location_directory_unslashed_trail_slashed!=v___location_prefix_unslashed_trail_slashed+"syslog/"||$("p > a[href], table + a[href], div.panel-body > a.ui_link").each(function(e,t){$(this).text($(this).text().replace(/\.$/,""))}),$('.panel-body > form > p > a.ui_link, .panel-body > table.table + a.ui_link, .panel-body > p > a:not([href*="config.cgi?bacula-backup"]), body[data-current-product="usermin"] div.panel-body > p > a, div.panel-body > a[href^="edit_"]:not([href^="edit_user.cgi?user="], [href^="edit_group.cgi?group="]), .ui_form > a, .ui_grid_cell > :not(input):not(.acheckbox):not(.aradio):not(label) + a.ui_link:not([href^="edit_acl.cgi"], [href^="edit_rpc.cgi"], [href^="edit_user.cgi?user="], [href^="edit_group.cgi?group="]), .ui_grid_cell > a.select_all, .ui_grid_cell > a.select_invert, .ui_grid_cell > :not(input):not(.acheckbox):not(.aradio):not(label) + a[href*=".cgi"]:not([href^="edit_acl.cgi"], [href^="edit_rpc.cgi"], [href^="edit_user.cgi?user="], [href^="edit_group.cgi?group="]), .ui_grid_cell > a[href*=".cgi"]:first-child:not([href^="edit_rpc.cgi"],[href^="edit_nuser.cgi"],[href*="edit_user.cgi?idx"]), .tab-pane > p > a, .tab-pane > a.ui_link, .tab-pane > .table-condensed > a.ui_link, .tab-pane > a, .panel-body > p > a.ui_link, a.select_all, a.select_invert, form[action="delete.cgi"] > table table.ui_grid_table + a, form + script + a[href*="newdb_form.cgi"]').each(function(){if(!(Core.curModuleFile("samba","edit_epass.cgi")||Core.curModule("acl")&&($(this).is('[href^="edit_user.cgi?user="]')||$(this).parent("td.ui_grid_cell").length)&&!$(this).parents("b").length)&&!Core.curModuleFile("virtual-server","history.cgi")&&!Core.curModuleFile("server-manager","one_history.cgi")&&v___location_directory_unslashed_trail_slashed!=v___location_prefix_unslashed_trail_slashed+"passwd/"&&$(this).text()&&v___location_path!=v___location_prefix+"/mailboxes/"&&v___location_path!=v___location_prefix+"/mailboxes/index.cgi"&&v___location_path!=v___location_prefix+"/usermin/list_configs.cgi"&&!$(this).hasClass("help_popup")){$(this).addClass("btn btn-inverse btn-tiny ui_link_replaced"),$(this).text($(this).text().replace(/\.$/,""));var e=$(this).parent().contents().filter(function(){return 3==this.nodeType});e&&$.each(e,function(){$(this).text()&&$(this).text().length<=3&&$(this).remove()}),$(this).hasClass("select_all")&&$(this).html(' '+$(this).text()),$(this).hasClass("select_invert")&&$(this).html(' '+$(this).text()),(Core.curModuleFile("server-manager","index.cgi")||Core.curModuleFile("server-manager",""))&&$(this).parent('form[action="mass.cgi"]').length&&(($(this).is(":nth-child(1)")||$(this).is(":nth-child(6)"))&&$(this).html(' '+$(this).text()),($(this).is(":nth-child(2)")||$(this).is(":nth-child(7)"))&&$(this).html(' '+$(this).text()),($(this).is(":nth-child(3)")||$(this).is(":nth-child(8)"))&&$(this).html(' '+$(this).text())),$(this).attr("href")&&(0===$(this).attr("href").indexOf("edit")&&0!==$(this).attr("href").indexOf("edit_allow")||0===$(this).attr("href").indexOf("master_form")||0===$(this).attr("href").indexOf("slave_form")||0===$(this).attr("href").indexOf("stub_form")||0===$(this).attr("href").indexOf("forward_form")||0===$(this).attr("href").indexOf("delegation_form")||0===$(this).attr("href").indexOf("mass_form")||0===$(this).attr("href").indexOf("newdb_form"))?$(this).html(' '+$(this).html()):$(this).attr("href")&&0===$(this).attr("href").indexOf("edit_allow")?$(this).html(' '+$(this).text()):($(this).attr("href")&&0===$(this).attr("href").indexOf("mass_ucreate")&&$(this).html(' '+$(this).text()),$(this).attr("href")&&$(this).attr("href").indexOf("grace_form")>-1&&$(this).html(' '+$(this).text())),$(this).attr("href")&&$(this).attr("href").indexOf("edit_manual")>-1&&$(this).html(' '+$(this).text()),v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"custom/"&&($(this).attr("href")&&0===$(this).attr("href").indexOf("edit_cmd.cgi?new")&&$(this).html(' '+$(this).text()),$(this).attr("href")&&0===$(this).attr("href").indexOf("edit_file.cgi?new")&&$(this).html(' '+$(this).text()),$(this).attr("href")&&0===$(this).attr("href").indexOf("edit_sql.cgi?new")&&$(this).html(' '+$(this).text())),$(this).attr("href")||$(this).remove()}}),$.each($(".btn-tiny.ui_link_replaced"),function(){$(this).prev('[class="table table-striped table-condensed"]').length&&$(this).next(':not(".ui_link_replaced")').length&&$(this).removeClass("btn-tiny ui_link_replaced").addClass("ui_link_re-replaced")}),$("a.ui_link_replaced").each(function(){$(this).prev().is("b")&&$(this).prev("b").addClass("btn btn-success btn-tiny"),$(this).next().is("b")&&$(this).next("b").addClass("btn btn-success btn-tiny")}),v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"fetchmail/"&&$("a.ui_link").each(function(){function e(e){return' '}$(this).addClass("btn btn-inverse btn-tiny ui_link_replaced").css("margin-bottom","10px").css("margin-top","4px"),$(this).text($(this).text().replace(/\.$/,"")),$(this).parent().contents().filter(function(){return 3==this.nodeType}).remove(),$(this).attr("href").indexOf("edit_poll")>-1&&$(this).prepend(e("plus-square-o")),$(this).attr("href").indexOf("edit_global")>-1&&$(this).prepend(e("pencil-square-o")),$(this).attr("href").indexOf("check")>-1&&$(this).prepend(e("check-square-o"))}),v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"filter/"&&$("a.ui_link").each(function(){function e(e){return' '}$(this).attr("href").indexOf("edit_auto")>-1&&$(this).find("i").replaceWith(e("reply")),$(this).attr("href").indexOf("edit_forward")>-1&&$(this).find("i").replaceWith(e("reply-all"))}),$('select.ui_select[name="days"]').each(function(){$(this).parent("td").attr("style","vertical-align: top !important")}),v___location_directory_unslashed_trail_slashed!=v___location_prefix_unslashed_trail_slashed+"mailboxes/"&&v___location_path!=v___location_prefix+"/mailboxes/index.cgi"&&v___location_directory_unslashed_trail_slashed!=v___location_prefix_unslashed_trail_slashed+"mailbox/"&&v___location_path!=v___location_prefix+"/postfix/view_mailq.cgi"||(v___location_file?"list_mail.cgi"==v___location_file&&$('.container-fluid input:not([type="checkbox"]), .container-fluid .ui_form_end_submit, .container-fluid select').addClass("heighter-34").removeClass("heighter-28").css("margin-bottom","-1px"):($(".ui_form_end_submit").css("margin-top","0"),$("input#user").addClass("heighter-34 vertical-align-top")),$("body").find("form").removeAttr("onsubmit"),$header_tables=$("body").find('input[name="from"]').parents(".tab-pane").parent("td"),$header_tables.children("table").hide(),$.each($header_tables.find("input, textarea, select"),function(){$(this).hasClass("ui_select")||$(this).attr("onclick")||"checkbox"==$(this).attr("type")||"submit"==$(this).attr("type")||$(this).attr("style","width: 60%").addClass("inline-block"),$(this).attr("onclick")&&$(this).addClass("inline-block")}),onbeforeunload=null,1==$("body").find('input.ui_hidden[name="html_edit"]').val()&&editor_html_init(["body",2,!1,"edit_web"],"basic"),$("body").find('input[name="from"]').parents(".tab-pane").prev("table").remove(),$("body").find('input[name="from"]').parents(".tab-pane ").parent("td").find("div, table").each(function(e,t){$(this).find(".col_label").css("width","20%"),$(this).find('input[name="subject"]').parent("td").prev("td").find("b").attr("style","font-size: 13px !important"),$(this).find('input[name="subject"]').parents("table").show(),$(this).find('input[name="subject"]').parent("td").find(".submitter").remove()}),$editor_mode_link_container=$("body").find('textarea[id="body"]').parents("table").find("thead > tr > th:last-child"),$editor_mode_link=$editor_mode_link_container.find("a").addClass("editor_mode_link"),$editor_mode_link_container.parent("tr").find("th:first-child").append($editor_mode_link),$editor_mode_link_container.remove(),$editor_mode_link_button=$("body").find('textarea[id="body"]').parents("table").find(".editor_mode_link"),$editor_mode_link_button_state=!!$editor_mode_link_button.attr("href")&&$editor_mode_link_button.attr("href").indexOf("html=0"),$editor_mode_link_button.attr("title",$editor_mode_link_button.text()).addClass("editor_mode_link_button pull-right btn btn-sm "+($editor_mode_link_button_state==-1?"btn-success":"btn-primary")).html(' '),$("body").find('textarea[id="body"]').parents("table").find("thead > tr > th").find("b").css("padding-left","45px"),$(".editor_mode_link_button").tooltip(),$fileinput_container=$("body").find('a[onclick="return add_ss_attachment()"]'),$fileinput_container.parent("td").contents().filter(function(){return 3==this.nodeType}).remove(),$fileinput_container.remove(),$fileinput_add_another_attachment=$("body").find('a[onclick="return add_attachment()"]'),$fileinput_add_another_attachment.addClass("btn btn-default"),$fileinput_add_another_attachment.text($fileinput_add_another_attachment.text().replace(/\.$/,"")),(v___location_path.indexOf("view_mail.cgi")>-1||v___location_path.indexOf("view_mailq.cgi")>-1)&&($table_title_header_container=$(".ui_form").find("div.table-responsive").first().find(".table-title"),$table_title_links_container=$table_title_header_container.next(),$table_title_links_container.contents().filter(function(){return 3==this.nodeType}).remove(),$table_title_links_container.find("a").addClass("table_title_links pull-right btn btn-info btn-tiny"),$table_title_links=$table_title_links_container.html(),$table_title_header_container.append($table_title_links),$table_title_links_container.remove(),$table_title_header_container_text_padding=35,$(".table-title > a.table_title_links").each(function(){$table_title_header_container_text_padding=v___location_path==v___location_prefix+"/postfix/view_mailq.cgi"?120:235}),$(".table_title_links_container a").each(function(){$table_title_header_container_text_padding+=$(this).width()}),$table_title_header_container.find("b").css("padding-left",$table_title_header_container_text_padding),$table_title_second_container=$(".ui_form").find("div.table-responsive").first().next("div.table-responsive").find("table:first-child"),$table_title_header_container=$(".ui_form").find("div.table-responsive").first().next("div.table-responsive").find("th:first-child"),$table_title_links_container=$(".ui_form").find("div.table-responsive").first().next("div.table-responsive").find("th:last-child"),2==$(".ui_form").find("div.table-responsive").first().next("div.table-responsive").find("th").length&&$table_title_links_container.remove(),$table_title_links_container.find("a").addClass("table_title_links pull-right btn btn-tiny"),$table_title_links_container.find("a").attr("href")&&$table_title_links_container.find("a").attr("href").indexOf("body=1")>-1?$table_title_links_container.find("a").addClass("btn-info"):$table_title_links_container.find("a").addClass("btn-warning"),$table_title_links=$table_title_links_container.html(),$table_title_header_container.append($table_title_links),$table_title_header_container_text_padding=10,$table_title_header_container.find("a").each(function(){$table_title_header_container_text_padding+=$(this).width()}),setTimeout(function(){if($(".ui_form").find("div.table-responsive").first().find("table:first-child").outerWidth()!=$(".ui_form").find("div.table-responsive").first().next("div.table-responsive").find("table:first-child").outerWidth()){var e=parseInt($(".ui_form").find("div.table-responsive").first().find("table:first-child").width()/2);$table_title_second_container.find(".table-title").addClass("left").find("b").css("padding-left",e-175),$table_title_second_container.find(".pull-right").removeClass("pull-right").addClass("pull-left")}$.each($table_title_second_container.find("table"),function(){$(this).removeClass().addClass("clear-formatting"),$.each($(this).find("td.col_value"),function(){$(this).css("background-color","white")})})},30),$table_title_header_container.find("b").css("padding-left",$table_title_header_container_text_padding),$table_title_header_container.find("b")&&$table_title_header_container.find("b").length>1&&$table_title_header_container.find("b:first-child").text()==$table_title_header_container.find("b:last-child").text()&&$table_title_header_container.find("b:last-child").remove()),$("td > a").on("click",function(){$(this).attr("onclick"),$("input[type=file]").each(function(){$(this).parent("a").hasClass("file-input-wrapper")||$(this).bootstrapFileInput()})}),settings_mailbox_slash_delimiter&&$('.container-fluid select.ui_select[name="id"] > option').each(function(e,t){$(t).text($(t).text().replace(/\./g,"/").replace(/\/\//g,"/"))}),$.each($('table td[align="right"], table td[align="left"]'),function(e,t){$(this).attr("style","border: 0 !important;"),$(this).parents("tbody").attr("style","border: 0 !important;"),$(this).parents("table.table-hardcoded.table.table-striped.table-condensed.table-subtable").removeClass("table-hardcoded table table-striped table-condensed table-subtable")}),$.each($("div.table-responsive > table tbody tr td > table.table-hardcoded"),function(e,t){$(this).find("tr > td.col_label > b").removeAttr("style"),$(this).removeClass("table table-condensed")}),$.each($("div.table-responsive > table tbody tr td > div.tab-pane"),function(e,t){$(this).find("table").removeClass("table"),$(this).parents("div.table-responsive").find("table").removeClass("table-striped table-subtable")}),$.each($('div.table-responsive > table tbody tr td > div.tab-pane .col_value > input[type="button"][onclick^="ifield"]'),function(e,t){$(this).attr("style","margin-left: 0; margin-top: -27px !important")})),$.each($(".barchart"),function(){$(this).find("img").attr("height",4)}),$('#extended_sysinfo-1 div[aria-labelledby^="updates-"] div.panel-body div.table-responsive table.table.table-striped.table-condensed').next("table.ui_form_end_buttons").css("margin-top","10px"),$('#extended_sysinfo-1 div[aria-labelledby^="updates-"] div.panel-body div.table-responsive table.table.table-striped.table-condensed').next("table.ui_form_end_buttons").css("margin-top","10px").prev("table.table-condensed").prev("table.table.table-striped").addClass("invisible"),$("a").each(function(){$(this).attr("href")||$(this).addClass("no_effect")}),v___location_path!=v___location_prefix+"/virtual-server/domain_form.cgi"&&v___location_path!=v___location_prefix+"/server-manager/list_images.cgi"&&v___location_path!=v___location_prefix+"/virtual-server/bwgraph.cgi"||($(".panel-body > a").each(function(){$(this).addClass("btn btn-inverse btn-tiny ui_link_replaced").removeClass("ui_link"),$(this).text($(this).text().replace(/\.$/,""))}),$.each($('.panel-body:contains("|")'),function(){$(this).contents().filter(function(){return 3==this.nodeType}).wrap('')}),$.each($(".btn-automated"),function(){$(this).text().replace(/[\t\n]+/g," ").length<4?$(this).remove():($(this).text($(this).text().replace("|","").replace("|","").replace(/(?:\r\n|\r|\n)/g,"")),$(this).prev().is("img")&&$(this).removeClass().addClass("margined-left-3"))}),$(".panel-body > b").css("margin-right","7px"),v___location_path==v___location_prefix+"/virtual-server/domain_form.cgi"&&$.each($(".btn-automated, .ui_link_replaced"),function(e,t){0==e&&$(this).html(' '+$(this).text()),1==e&&$(this).html(' '+$(this).text()),2==e&&$(this).html(' '+$(this).text()),3==e&&$(this).html(' '+$(this).text())})),v___location_path==v___location_prefix+"/server-manager/edit_serv.cgi"&&setTimeout(function(){$('.opener_container .table-hardcoded .col_value a[href^="edit_serv.cgi"]').each(function(){$(this).addClass("btn btn-inverse btn-xxs ui_link_replaced margined-right--2").removeClass("ui_link").attr("style","margin-top: 0 !important"),$(this).text($(this).text().replace(/\.$/,""))}),$.each($('.opener_container .table-hardcoded .col_value:contains("|")'),function(){$(this).find('a[href^="edit_serv.cgi"]').length&&$(this).contents().filter(function(){return 3==this.nodeType}).wrap(''),$.each($(".btn-automated"),function(){$(this).text().length<4?$(this).remove():$(this).text($(this).text().replace("|","").replace("|","").replace(/(?:\r\n|\r|\n)/g,""))})})},20),$.each($(".container-fluid input:not(.ui_upload)"),function(){"28px"==$(this).css("height")&&$(this).prev("input").addClass("heighter-28")}), -(Core.curModule("syslog")||Core.curModule("phpini"))&&$(".container-fluid .chooser_button + .ui_form_end_submit").addClass("heighter-28"),Core.curModuleFile("virtual-server","backuplog.cgi")&&$('.container-fluid input[name="search"]').addClass("margined-top--1"),Core.curModuleFile("usermin","list_sessions.cgi")&&$('.container-fluid input[name="user"] + button + button').addClass("heighter-34-force"),$.each($(".container-fluid select"),function(){32==$(this).next("input").outerHeight()&&$(this).addClass("heighter-34")}),$.each($(".container-fluid .ui_buttons_row input, .container-fluid .ui_buttons_row select"),function(){$(this).addClass("heighter-34")}),Core.curModuleFile("gnupg","list_keys.cgi")&&$('.container-fluid input[id="id"]').addClass("heighter-34"),Core.curModule("language")&&$('select[name="lang"]').addClass("heighter-34"),Core.curModuleFile("virtual-server","edit_script.cgi")){var C=$('input[name="version"]');C.length&&C.attr("style",C.attr("style").replace("n: middle","n: bottom !important")).addClass("heighter-34")}if($.each($("tr > .ui_form"),function(){$(this).next().next("td").find("input.submitter")&&$(this).next().next("td").find("input.submitter").addClass("heighter-34")}),$.each($("input.heighter-34").next(".chooser_button"),function(){$(this).addClass("heighter-34"),$(this).find(".fa.fa-files-o").css("margin-top","0").addClass("vertical-align-middle")}),setTimeout(function(){$.each($(".container-fluid select"),function(){32==$(this).next("input").outerHeight()||32==$(this).prev("input").outerHeight()?$(this).addClass("heighter-34").removeClass("heighter-28"):28!=$(this).next("input").outerHeight()&&28!=$(this).prev("input").outerHeight()||$(this).addClass("heighter-28").removeClass("heighter-34")})},1),Core.curModule("term")||Core.curModuleFile("server-manager","login.cgi")){var O=$("iframe");if(O.length){var T=O;T.on("load",function(){T.contents().find("#term").css("width","99.3%").css("height","96vh").css("margin-top","1px")}),$(this).next("br").remove().next('input[type="button"]').remove(),$(this).next('input[type="button"]').remove(),$(this).next("p").remove()}}if($.each($(".chooser_button"),function(){$(this).prev("input").attr("style")&&$(this).prev("input").attr("style").indexOf("max-width: 100%")>-1&&$(this).prev("input").css("max-width","93%")}),v___location_path_lead_unslashed==v___location_prefix_unslashed_trail_slashed+"sysinfo.cgi"&&1==settings_sysinfo_link_mini&&$(".navigation > li:not('.has-sub')").removeClass("sub_active").find("span.current-large").remove(),$.each($('input[value="..."], input[value=" ..."], input[value=" ..."], input[value="... "], input[value="... "], input[value=" ... "], input[value=" ... "]'),function(){$(this).after(''),$(this).attr("value","")}),$.each($(".chooser_button"),function(){$(this).prev("input").css("margin-top","2px").css("margin-bottom","2px")}),$.each($(".file_chooser_button_attached"),function(){$(this).prev('input[type="button"]').prev("input").css("margin-top","2px").css("margin-bottom","2px"),$(this).parents(".ui_buttons_label").length||$(this).parents(".table-subtable").length||$(this).css("margin-top","11px")}),$.each($(".container-fluid .ui_form > .file_chooser_button_attached"),function(){($(this).prev(".heighter-34")&&$(this).prev(".heighter-34").length||$(this).next(".heighter-34")&&$(this).next(".heighter-34").length)&&($(this).css("margin-top","16px"),$(this).prev("input[onclick]").css("width","40px"))}),$.each($('.container-fluid .ui_form[action="init_cache.cgi"] > .file_chooser_button_attached'),function(){($(this).prev(".heighter-34")&&$(this).prev(".heighter-34").length||$(this).next(".heighter-34")&&$(this).next(".heighter-34").length)&&$(this).css("margin-top","14px")}),$.each($(".col_value > .file_chooser_button_attached"),function(){$(this).prev("input[onclick]").css("width","40px").css("margin-left","0")}),$("a.ui_link, .btn").each(function(){if("."==$(this).text().substr(-1)&&!$(this).parent().is("label")){var e="."==$(this).text().substr(-1)&&".."==$(this).text().substr(-2)?2:1;$(this).text($(this).text().substr(0,$(this).text().length-e))}}),v___location_path!=v___location_prefix+"/virtualmin-mailman/"&&v___location_path!=v___location_prefix+"/virtualmin-mailman/index.cgi"||$("input[name^=reset_]").addClass("heighter-28"),v___location_path!=v___location_prefix+"/software/edit_pack.cgi"&&v___location_path!=v___location_prefix+"/apache/show.cgi"&&v___location_path!=v___location_prefix+"/proc/index_search.cgi"||$.each($(".container-fluid .panel-body .btn:not(.chooser_button)"),function(){$(this).removeClass("heighter-28").addClass("heighter-34")}),v___location_path!=v___location_prefix+"/virtualmin-svn/"&&v___location_path!=v___location_prefix+"/virtualmin-svn/index.cgi"||$.each($("tr > td.td_tag > button"),function(){$(this).addClass("btn-hover-wash_off-in-row bhw-sm heighter-28 heighter-28-force margined-top-2 margined-bottom-2"),$(this).find(".fa-backup").length&&$(this).removeClass("heighter-28-force")}),v___location_path!=v___location_prefix+"/apache/edit_global.cgi"&&v___location_path!=v___location_prefix+"/virtual-server/edit_newlinks.cgi"&&v___location_path!=v___location_prefix+"/virtualmin-awstats/"&&v___location_path!=v___location_prefix+"/postfix/master.cgi"||$.each($(".container-fluid .panel-body .ui_link_replaced"),function(){$(this).not(".btn-xxs").removeClass("btn-tiny").addClass("heighter-34")}),v___location_path!=v___location_prefix+"/virtualmin-init/"&&v___location_path!=v___location_prefix+"/virtualmin-dav/list_shares.cgi"&&v___location_path!=v___location_prefix+"/squid/edit_acl.cgi"&&v___location_path!=v___location_prefix+"/virtualmin-nginx/"&&v___location_path!=v___location_prefix+"/fdisk/edit_disk.cgi"&&v___location_path!=v___location_prefix+"/server-manager/edit_newlinks.cgi"&&v___location_directory_unslashed_trail_slashed!=v___location_prefix_unslashed_trail_slashed+"backup-config/"||$.each($(".container-fluid .panel-body .ui_link_re-replaced"),function(){$(this).addClass("btn-tiny").removeClass("heighter-34")}),v___location_path==v___location_prefix+"/pam/"&&$(".panel-body > a.ui_link").addClass("btn-tiny"),v___location_path!=v___location_prefix+"/syslog/"&&v___location_path!=v___location_prefix+"/syslog/index.cgi"||$.each($(".btn"),function(){$(this).removeClass("btn-tiny")}),v___location_path!=v___location_prefix+"/software/"&&v___location_path!=v___location_prefix+"/software/index.cgi"||($(".container-fluid input#search").addClass("heighter-34 vertical-align-top"),$('form[action="file_info.cgi"] > .ui_form_end_submit').addClass("heighter-28 heighter-28-force margined-top-0")),v___location_path==v___location_prefix+"/software/tree.cgi"&&$(".ui_link").addClass("margined-top-10"),v___location_path==v___location_prefix+"/syslog/save_log.cgi"&&($.each($(".container-fluid .heighter-34"),function(){$(this).removeClass("heighter-34").addClass("heighter-28")}),$("form:first").next("script").next("br").remove(),$("form:last").css("margin-top","5px")),v___location_path==v___location_prefix+"/status/edit_mon.cgi"&&($('td.col_value > table[cellspacing="1"] tbody').attr("style","border: 0 !important;"),$(".opener_trigger:last-child").css("font-size","16px"),$.each($("table.sub_table_container td > font"),function(){$(this).parents("tbody"),$(this).contents().unwrap().wrap(' ')})),v___location_path!=v___location_prefix+"/shell/"&&v___location_path!=v___location_prefix+"/shell/index.cgi"&&v___location_path!=v___location_prefix+"/server-manager/shell.cgi"||($.each($(".container-fluid .btn:not(.btn-link), .container-fluid select, .container-fluid input"),function(){$(this).removeClass("heighter-28").addClass("heighter-34"),$(this).is('input[type="button"]')&&$($(this).addClass("submitter")),$(".form-control.sidebar-search").val()&&$(".form-control.sidebar-search").val().trim().startsWith("!")&&$(".form-control.sidebar-search").val(""),$(".ui_form").find("input.btn.btn-default:first").addClass("btn-success")}),$(".container-fluid input#cmd").focus()),$.each($("input"),function(){28==$(this).outerHeight()&&28!=$(this).next("input").outerHeight()&&$(this).is(':not([type="hidden"])')&&$(this).next("input").addClass("heighter-28")}),$.each($(".container-fluid select"),function(){32==$(this).outerHeight()&&32!=$(this).next("select").outerHeight()&&$(this).next("select").addClass("heighter-34")}),v___location_path==v___location_prefix+"/cluster-passwd/edit_passwd.cgi"&&$.each($("input + button"),function(e,t){"28px"==$(this).css("height")&&$(this).addClass("heighter-28").css("line-height","12px").css("margin-top","2px")}),v___location.pathname!=v___location_prefix+"/virtual-server/pro/history.cgi"&&v___location.pathname!=v___location_prefix+"/server-manager/bwgraph.cgi"&&v___location.pathname!=v___location_prefix+"/server-manager/history.cgi"&&v___location.pathname!=v___location_prefix+"/server-manager/one_history.cgi"||($("body").find("table.ui_form_end_buttons .btn.btn-default.submitter.ui_submit").addClass("btn-success"),$(".panel-body > table tr td b").each(function(e,t){$(this).addClass("btn btn-success btn-tiny ui_link_replaced")}),$(".panel-body > table a").each(function(e,t){$(this).addClass("btn btn-inverse btn-tiny ui_link_replaced").removeClass("ui_link"),$(this).text($(this).text().replace(/\.$/,"")),$(this).text()&&$(this).text().indexOf("<<")>-1&&($(this).text($(this).text().replace(/\<\ '+$(this).text())),$(this).text()&&$(this).text().indexOf(">>")>-1&&($(this).text($(this).text().replace(/\>\>/,"")),$(this).html($(this).text()+' ')),$(this).parent().contents().filter(function(){return 3==this.nodeType}).remove(),0===$(this).attr("href").indexOf("edit_cmd.cgi?new")&&$(this).html(' '+$(this).text()),0===$(this).attr("href").indexOf("edit_file.cgi?new")&&$(this).html(' '+$(this).text()),0===$(this).attr("href").indexOf("edit_sql.cgi?new")&&$(this).html(' '+$(this).text()),$(this).parents("table").css("margin-bottom","3px")}),$("#history").next("table.ui_grid_table").next("a").length?($("#history").next("table").next("a").addClass("btn btn-info btn-tiny ui_link_replaced").attr("style","margin-top: 4px !important").attr("target","_blank"),$("#history").next("table").next("a").text($("#history").next("table").next("a").text().replace(/\.\.$/,"")),$("#history").next("table").next("a").html(' '+$("#history").next("table").next("a").text())):($("#history").next("a").addClass("btn btn-info btn-tiny ui_link_replaced").attr("style","margin-top: 4px !important").attr("target","_blank"),$("#history").next("a").text($("#history").next("a").text().replace(/\.\.$/,"")),$("#history").next("a").html(' '+$("#history").next("a").text())),$(".panel-body > hr + b").attr("style","font-size: 16px; font-weight: normal;"),$(".panel-body > hr + b").text($(".panel-body > hr + b").text().replace(/\:$/,"")),onLoad()),$.each($('tr > td[valign="top"][width="50%"]'),function(){$(this).attr("style","vertical-align: top !important; "+$(this).attr("style"))}),$("body table").each(function(e,t){$(this);$(t).hasClass("table")||$(t).hasClass("header")||$(t).hasClass("ui_form_end_buttons")||$(t).hasClass("ui_table")||($(t).addClass("table-hardcoded"),$t_uri_usermin&&($(t).addClass("table-subtable"),$(t).find("tr.thead").length||$(t).hasClass("sub_table_container table-hardcoded table-subtable")?($(t).find("tr.thead").attr("style","border: 1px solid #efefef"),$(t).attr("style","border: 1px solid #efefef")):$(t).attr("style")&&v___location_path.indexOf("view_mail.cgi")>-1||$(t).attr("style","margin-top: 10px;")))}),v___location_path!=v___location_prefix+"/bind8/"&&v___location_path!=v___location_prefix+"/postfix/virtual.cgi"||table_data_init($(".table.table-striped.table-hover.table-condensed")),v___location_path==v___location_prefix+"/virtual-server/list_scripts.cgi"&&table_data_init($("#att_existing > form > table.table.table-striped.table-condensed")),v___location_path==v___location_prefix+"/virtual-server/edit_newscripts.cgi"&&table_data_init($("#att_summary > table.table.table-striped.table-condensed")),v___location_path!=v___location_prefix+"/server-manager/index.cgi"&&v___location_path!=v___location_prefix+"/virtualmin-htpasswd/index.cgi"||table_data_init($("body > div > div > div.panel-body > form > table.table.table-striped.table-condensed")),($('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")),$('body[class*="ldap-useradmin"]').length&&table_data_init($("form > table.table.table-striped.table-condensed")),v___location_path==v___location_prefix+"/virtual-server/list_sched.cgi"&&table_data_init($(".table.table-striped.table-hover.table-condensed"),!1,!1,{orderable:!1,targets:[0,-1]}),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(){$(this).find(".fa-files-o").length||$(this).append(''),"28px"==$(this).prev("input").css("height")&&$(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.td_tag').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(){$(this).find(".heighter-34").length&&$.each($(".table-responsive + .table-responsive + .table-hardcoded td"),function(){$(this).find(".btn").addClass("heighter-34")})}),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"),v___location_path==v___location_prefix+"/cpan/"||v___location_path==v___location_prefix+"/cpan/index.cgi"){var S=$('input[name="cpan"]').next("button");S.html('').attr("style","width: 40px; height: 28px; vertical-align:middle !important; margin-top:2px; margin-bottom:2px;"),S.attr("onclick",S.attr("onclick").replace("document.forms[0]","document.forms[1]"))}if($("form").find(".icons-row:not(.inline-row)").length&&($("form").find(".icons-row").addClass("_processed_"),$("form").find(".icons-row").css("border-top","1px solid #efefef").css("border-bottom","1px solid #efefef"),$("form").find(".icons-row").find(".icons-container").addClass("icons-container-stretched")),v___location_path!=v___location_prefix+"/lvm/"&&v___location_path!=v___location_prefix+"/lvm/index.cgi"&&v___location_path!=v___location_prefix+"/virtualmin-support/"&&v___location_path!=v___location_prefix+"/virtualmin-support/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+"/cluster-useradmin/"&&v___location_path!=v___location_prefix+"/cluster-useradmin/index.cgi"&&v___location_path!=v___location_prefix+"/cluster-webmin/"&&v___location_path!=v___location_prefix+"/cluster-webmin/index.cgi"||function(){$("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")}(),v___location_path!=v___location_prefix+"/proftpd/"&&v___location_path!=v___location_prefix+"/proftpd/index.cgi"&&v___location_path!=v___location_prefix+"/bacula-backup/"&&v___location_path!=v___location_prefix+"/bacula-backup/index.cgi"||function(){$("body").find(".icons-row:not(._processed_):not(.inline-row)").css({"padding-top":"8px"}),$("body").find(".icons-row:not(._processed_):not(.inline-row)").css("border-top","1px solid #efefef")}(),v___location_path==v___location_prefix+"//"&&function(){$("body").find(".icons-row:not(._processed_):not(.inline-row)").css({"padding-bottom":"6px"}),$("body").find(".icons-row:not(._processed_):not(.inline-row)").css("border-bottom","1px solid #efefef")}(),$.each($(".row.icons-row.inline-row"),function(e,t){$(this).find("a.icon_link").contents().filter(function(){return 3==this.nodeType}).remove()}),$.each($(".row.icons-row:not(.inline-row) .icons-container"),function(e,t){$(this).removeAttr("data-title").removeAttr("data-toggle").removeAttr("data-placement").removeAttr("data-container")}),($("body").find(".icons-row > div.icons-container").length||$("body").find(".icons-row > div.small-icons-container").length)&&($.each($(".icons-row .hidden-forged-6"),function(){$(this).find("input").is(":checked")&&$(this).parents('div[class*="icons-container"]').addClass("highlighted")}),$.each($(".hidden-forged-7 > a"),function(){$(this).removeClass(),$(this).parents(".hidden-forged-7").hasClass("hidden-forged-7-small")?($(this).html(' '),$(this).parent().parent().prepend('')):($(this).html(' '),$(this).parent().parent().prepend(''))})),v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"virtualmin-registrar/"&&$.each($("td > input "),function(){$(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"))}),v___location_path==v___location_prefix+"/cluster-webmin/edit_host.cgi"&&$.each($(".panel-body > .table-hardcoded"),function(){$(this).attr("style","margin-top: 10px !important")}),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){$(this).prev('input[onclick*=".cgi"]')&&$(this).prev('input[onclick*=".cgi"]').css("width","40px")}),!$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()}),(v___location_path==v___location_prefix+"/mysql/view_table.cgi"||v___location_path==v___location_prefix+"/postgresql/view_table.cgi")&&$("td.td_tag > table.table-hardcoded")){var M=$("td.td_tag > table.table-hardcoded").parents("table").find("thead").find("tr").find("th").length;$("td.td_tag > table.table-hardcoded").parent("td.td_tag").attr("colspan",M).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)),"/config.cgi"===v___location_path&&$("thead tr th.table-title").prepend('  '),$.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")}),(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"),check_location_resource("/ldap-server/edit_ldif.cgi")&&$("span > input.ui_opt_textbox").unwrap(),v___location_path==v___location_prefix+"/server-manager/gvnc.cgi"&&$("body.server-manager p > object").css("height","100%").parent("p").attr("style","display: block; height: "+parseInt($(window).outerHeight()/1.4)+"px"),v___location_path==v___location_prefix+"/spam/edit_simple.cgi"||v___location_path==v___location_prefix+"/spam/edit_header.cgi"){var I=$(".ui_form .table-responsive table.table.table-striped.table-condensed.table-subtable > thead tr th:first-child"),j=$(".ui_form .table-responsive table.table.table-striped.table-condensed.table-subtable > thead tr th:last-child"),q=j.find("a");I.append(q),j.remove(),I.find("a").addClass("table_title_links pull-right btn btn-xs btn-grey").attr("style","position: absolute; right: 23px; margin-top: 7px !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 I=$(".ui_form .table-responsive table.table.table-striped.table-condensed.table-subtable > thead tr th:first-child"),j=$(".ui_form .table-responsive table.table.table-striped.table-condensed.table-subtable > thead tr th:last-child"),q=j.find("a");I.append(q),j.remove(),I.find("a").addClass("table_title_links pull-right btn btn-info btn-tiny").attr("style","position: absolute; right: 20px; margin-top: 3px !important;")}if($('.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"),v___location_directory_trail_slashed==v___location_prefix+"/virtual-server/"?$("#headln2l > a:first-child .fa-arrow-left").parent("a").attr("href",v___location_prefix+"/virtual-server/index.cgi"):v___location_directory_trail_slashed==v___location_prefix+"/server-manager/"&&$("#headln2l > a:first-child .fa-arrow-left").parent("a").attr("href",v___location_prefix+"/server-manager/index.cgi"),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 F=$("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(F,function(e,t){""==$(this).text()&&($(this).next("br").remove(),$(this).remove())}),F.attr("style","margin-bottom: -3px !important").next("br").remove()}$('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;"),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;")),"config.cgi"!=v___location_file&&"uconfig.cgi"!=v___location_file||"mysql"!=v___location_query&&"postgresql"!=v___location_query||$('input[name="style"]').parents("td.col_value").parent("tr").after('\t\t\t\t\t'+theme_language("theme_xhred_xsql_fit_content_screen_height")+'\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t"),$(".ui_post_header.hidden").html()&&$(".ui_post_header.hidden").html().length>5&&($("#headln2c").append(""+$(".ui_post_header.hidden").html()+""),$(".ui_post_header.hidden").remove())}if(v___location_path&&v___location_path.indexOf("/sysinfo.cgi")>-1){if(!e){$('#status_services-status-1-collapse .tr_tag .td_tag > img[src*="images/up.gif"]:not(".ui_icon_protected")').each(function(e,t){var i=$(this);$(t).attr("src",v___location_prefix+"/images/check.png").css("margin-right","3px").attr("title",$.trim(i.parent(".td_tag").text()))}),$('#status_services-status-1-collapse .tr_tag .td_tag > img[src*="images/down.gif"]:not(".ui_icon_protected")').each(function(e,t){var i=$(this);$(t).attr("src",v___location_prefix+"/images/cross.png").css("margin-right","3px").attr("title",$.trim(i.parent(".td_tag").text()))}),$('#status_services-status-1-collapse .tr_tag .td_tag > img[src*="images/not.gif"]:not(".ui_icon_protected")').each(function(e,t){var i=$(this);$(t).attr("src",v___location_prefix+"/images/not.png").css("margin-right","3px").attr("title",$.trim(i.parent(".td_tag").text()))}),$.each($(".piechart"),function(){isNaN($(this).data("percent"))&&$(this).parents(".text-center").remove()}).promise().done(function(){var e=$("span[data-charts]"),t='div[class^="col-md-"]',i=e.parents(".row").find(t).length,a=12/i,n=2===i?"3":"1"===i?"6":"",a=n?n:a;$.each(e.parents(".row"),function(e,n){if($(this).find(t).removeClass().addClass("col-md-"+(2===i?6:a)+" col-md-"+1.5*a+" col-xs-"+1.5*a+" col-xs-"+2*a+" text-center xx"),3===i){$(this).find(t).last().removeClass("col-xs-6 col-xs-8").addClass("col-xs-12")}})});$(".__page .panel-group .panel-default").sort(function(e,t){return $(e).data("sorter")>$(t).data("sorter")?1:-1}).appendTo("#extended_sysinfo-1.panel-group");$('span[data-entry="nf_seen"]').parent("button").on("click",function(e){e.preventDefault();var t=$(this),i=$('form[action*="seen_newfeatures.cgi"]');$.ajax({type:"GET",url:i.attr("action"),data:!1,statusCode:{200:function(){t.parents(".panel.panel-default").remove()}}})}),$('span[data-entry="right_upok"]').parent("button").on("click",function(e){e.preventDefault();var t=($(this),$('form[action*="package-updates/update.cgi"]'));t.attr("method","POST"),$("").attr({type:"submit",value:1}).appendTo(t),$('input[name="u"]').appendTo(t),t.submit()})}time.tictac(1)}if(!e){if(v___location_path==v___location_prefix+"/virtual-server/edit_phpmode.cgi"&&$("#hiddendiv_phpinfo table tbody tr").css("border","1px solid #"+(v___theme_night_mode_enabled?"393b3f":"eee")),$.each($('a[href*="showpass.cgi?"][onclick]'),function(){$(this).html('').css("color","#555")}),v___location_path==v___location_prefix+"/webmin/edit_startpage.cgi"&&($('select[name="deftab"]').parents("td.col_value").parent("tr").hide(),$('select[name="gotomodule"] option').each(function(){("virtual-server"==$(this).val()||"server-manager"==$(this).val())&&$(this).remove()})),v___location_path!=v___location_prefix+"/webmin/edit_ui.cgi"&&v___location_path!=v___location_prefix+"/usermin/edit_ui.cgi"||($('select[name*="sysinfo"], select[name*="dateformat"], input[name*="sizefile_def"], input[name*="sizeuser_def"], input[name*="sizemodule_def"], input[name*="sizeusers_def"], input[name*="sizemodules_w"], input[name*="cs_link_def"], input[name*="cs_header_def"], input[name*="cs_table_def"], input[name*="cs_text_def"], input[name*="cs_page_def"], input[name*="width_def"], input[name*="height_def"], input[name*="sizedate_def"], input[name*="texttitles"]').parents("td.col_value").parent("tr").addClass("hidden"),$(".sub_table_container tr td.no-border").parent("tr").addClass("hidden")),(check_location_resource("/config.cgi?virtual-server")||check_location_resource("/config.cgi?server-manager"))&&$('input[name="theme_image"], input[name="theme_link"], input[name="theme_alt"]').parents("td.col_value").parent("tr").hide(),v___location_path==v___location_prefix+"/virtual-server/edit_resel.cgi"&&$('input[name="logo"][id="logo"], input[name="link"]').parents("td.col_value").parent("tr").hide(),v___location_path==v___location_prefix+"/virtual-server/edit_newfeatures.cgi"&&($('.container-fluid tr td:last-child label:contains("|")').replaceText(/\|/gi,""),$(".container-fluid td a.ui_link").addClass("ui_link_replaced btn btn-transparent btn-link-bordered f__lnk_t_btn-el margined-left--4 btn-xxs").removeClass("heighter-34").removeClass("ui_link").prepend('')),$("#headln2l .btn .fa-arrow-left").length){$("body").attr("class")&&$("body").attr("class").indexOf(v___module_file_manager)>-1||$("#headln2l .btn .fa-arrow-left").parent("a").attr("href",$("#headln2l .btn .fa-arrow-left").parent("a").attr("href").replace("index.cgi",""));var z=URI(v___location);v___location_file=z.filename()} -$("#headln2r, #headln2l").prepend('
    ').append("
    "),$("#headln2r a").detach().appendTo("#headln2r .btn-group"),$("#headln2l a").detach().appendTo("#headln2l .btn-group"),v___available_navigation||$("body").hasClass("file-manager")||$("#headln2l .btn-group").prepend(''),$.each($(".ui_form_end_submit"),function(){if(v___location_path_lead_unslashed!=v___location_prefix_unslashed_trail_slashed+"proc/edit_proc.cgi"&&v___location_path_lead_unslashed!=v___location_prefix_unslashed_trail_slashed+"proc/kill_proc.cgi"&&v___location_path_lead_unslashed!=v___location_prefix_unslashed_trail_slashed+"proc/renice_proc.cgi"&&"edit_dbase.cgi"!=v___location_file&&"edit_pam.cgi"!=v___location_file&&"list_records.cgi"!=v___location_file&&!Core.curModule("mailbox")&&!Core.curModule("mailboxes")){var e=$(this).parent().find(".ui_form_end_submit");!e.parents(".btn-group").length&&e.length>1&&$(this).parent().find(".ui_form_end_submit, .ui_form_end_submit + input").wrapAll('
    ')}}).promise().done(function(){$.each($(".end_submits"),function(e,t){($(this).prev(".heighter-28").length||"28px"==$(this).prev("input, select").css("height"))&&$(this).find(".ui_form_end_submit").addClass("heighter-28")})}),$.each($(".btn-group").find("span"),function(){$(this).not("[class]").length&&!$.trim($(this).text()).length&&$(this).remove()}),2===$(".panel-default").nextAll("a.btn.btn-primary").length&&$(".panel-default").next("a.btn.btn-primary").find(".fa.fa-arrow-left").removeClass("fa-arrow-left").addClass("fa-arrow-circle-o-left"),3===$(".panel-default").nextAll("a.btn.btn-primary").length&&($(".panel-default").next("a.btn.btn-primary").next("a.btn.btn-primary").find(".fa.fa-arrow-left").removeClass("fa-arrow-left").addClass("fa-arrow-circle-left"),$(".panel-default").next("a.btn.btn-primary").find(".fa.fa-arrow-left").removeClass("fa-arrow-left").addClass("fa-arrow-circle-o-left")),v___location_path==v___location_prefix+"/init/reboot.cgi"&&$("input.btn-success").removeClass("btn-success").addClass("btn-warning"),v___location_path==v___location_prefix+"/init/shutdown.cgi"&&$("input.btn-success").removeClass("btn-success").addClass("btn-danger"),v___available_navigation||page_display(),$(".dataTable .ui_checked_checkbox").parent("tr").parent("tbody").prev("thead").find("th:first-child").addClass("opacity-0 pointer-events-none"),$("table tr.thead td").addClass("tdhead"),(Core.curModuleFile("virtual-server","edit_newchroot.cgi")||Core.curModuleFile("virtual-server","edit_newglobal.cgi")||Core.curModuleFile("virtual-server","edit_newshells.cgi")||Core.curModuleFile("virtual-server","edit_newshells.cgi")||Core.curModuleFile("virtual-server","view_backuplog.cgi")||Core.curModuleFile("virtual-server","edit_phpver.cgi")||Core.curModuleFile("virtual-server","edit_spf.cgi")||Core.curModuleFile("server-manager","edit_docker.cgi")||Core.curModuleFile("server-manager","edit_vserver.cgi")||Core.curModuleFile("server-manager","edit_zone.cgi")||Core.curModuleFile("server-manager","edit_openvz.cgi")||Core.curModuleFile("server-manager","list_locations.cgi")||Core.curModuleFile("server-manager","edit_lxc.cgi")||Core.curModuleFile("server-manager","list_ips.cgi")||Core.curModuleFile("squid","edit_cachemgr.cgi")||Core.curModuleFile("fsdump","edit_dump.cgi")||Core.curModuleFile("mysql","backup_form.cgi")||Core.curModuleFile("postgresql","backup_form.cgi")||$('body[class*="bind8"]').length&&v___location_file||$('body[class*="status"]').length&&"edit_mon.cgi"==v___location_file||$('body[class*="custom"]').length&&"edit_sql.cgi"==v___location_file||$('body[class*="custom"]').length&&"edit_cmd.cgi"==v___location_file||$('body[class*="custom"]').length&&"edit_file.cgi"==v___location_file)&&$(".table:not(.opener_table_style)").removeClass("table-hover").addClass("no-hover");var D=$(".fa-toggle-switch-off").parent("button.btn-default");if(1===D.length){"1"==D.parent("td").find('input[type="radio"]:checked').val()&&D.find(".fa-toggle-switch-off").addClass("fa-toggle-switch").removeClass("fa-toggle-switch-off")}var L=D.parents("td");L.find('[type="radio"]').length&&L.addClass("vertical-align-bottom");var R=$('form[action*="manual"] > select[name="file"], form[action*="manual.cgi"] > select[name="manual"], form[action*="edit_"] > select[name="file"]');R.length&&(R.addClass("heighter-34"),$('form[action*="manual"], form[action*="edit_"]').css("margin-bottom","2px")),Core.curModule("firewalld")&&($("select#zone").addClass("heighter-34"),$('form[action="save_ifaces.cgi"] button').addClass("heighter-28-force")),$('body[class*="proftpd"] .table-hardcoded tr td > input + input.btn.btn-default').removeClass("heighter-28").addClass("heighter-34").prev("input").addClass("heighter-34"),$('body[class*="proftpd"] form[action="find_ftpaccess.cgi"] > input:first-child').removeClass("heighter-34").addClass("heighter-28"),"edit_simple.cgi"==v___location_file&&$('body[class*="spam"]').length&&$("tr td").contents().filter(function(){return 3==this.nodeType}).remove(),"edit_awl.cgi"==v___location_file&&$('body[class*="spam"]').length&&$('input[name="user"]').next("input").addBack().addClass("heighter-34"),Core.curModuleFile("usermin","list_sessions.cgi")&&$('.container-fluid #user, .container-fluid input[type="button"]').addClass("heighter-34"),(Core.curModuleFile("htaccess-htpasswd","")||Core.curModuleFile("htaccess-htpasswd","index.cgi"))&&($("#search, .chooser_button").addClass("heighter-34").css("margin-bottom","-1px"),$("#search").css("margin-top","1px"),$('form[action*="search.cgi"] .ui_form_end_submit').css("margin-top","2px").css("margin-right","-4px")),(Core.curModuleFile("mailboxes","")||Core.curModuleFile("mailboxes","index.cgi"))&&($("#user").addClass("heighter-34 vertical-align-middle margined-bottom-1"),$(".chooser_button").addClass("margined-top-2 margined-bottom-2")),Core.curModuleFile("mailboxes","list_mail.cgi")&&$("#mfolder1, #mfolder2").addClass("heighter-34").css("margin-bottom","-1px").css("margin-top","-1px"),Core.curModuleFile("quota","list_users.cgi")&&$("#user, #user + input").addClass("heighter-34"),Core.curModuleFile("quota","list_groups.cgi")&&$("#group, #group + input").addClass("heighter-34"),(Core.curModuleFile("apache","htaccess.cgi")||Core.curModuleFile("virtualmin-registrar","index.cgi")||Core.curModuleFile("virtualmin-registrar",""))&&$(".ui_form_end_submit").addClass("heighter-28-force");var A=$('form:not([action="save_log.cgi"]) .table-responsive .table .sub_table_container .table tbody tr td > select,\t\t\t\t\t\t\t form:not([action="save_log.cgi"], [action="save_net.cgi"]) .table-responsive .table .sub_table_container .table tbody tr td > input,\t\t\t\t\t\t\t form:not([action="save_user.cgi"], [action="save_group.cgi"]) .table td.opener_container td.col_value table tbody tr td > select,\t\t\t\t\t\t\t form:not([action="save_user.cgi"], [action="save_group.cgi"]) .table td.opener_container td.col_value table tbody tr td > input,\t\t\t\t\t\t\t form[action="save_newglobal.cgi"] > table tbody tr td input,\t\t\t\t\t\t\t form[action="save_newfields.cgi"] > table tbody tr td input,\t\t\t\t\t\t\t form[action="save_newfields.cgi"] > table tbody tr td select,\t\t\t\t\t\t\t form[action="save_newshells.cgi"] > table tbody tr td select,\t\t\t\t\t\t\t form[action="save_newshells.cgi"] > table tbody tr td input,\t\t\t\t\t\t\t form[action="save_linkcats.cgi"] > table tbody tr td input,\t\t\t\t\t\t\t form[action="save_gen.cgi"] > table tbody tr td input\t\t\t\t\t\t\t ');if($.each(A,function(e,t){if(!($(this).parent().find("input[data-mmclick]").length||$(this).parent().find("button[data-mmclick]").length||$(this).parent().find('input[onclick*="window.open"]').length||$(this).parent().find('button[onclick*="window.open"]').length))return $(this).prev(".awobject").length?void $(this).css("width","auto"):void(1==$(this).parent().find('input:not([type="checkbox"], [type="radio"]), select').length?$(this).css("width","100%").css("min-width","100%"):2==$(this).parent().find('input:not([type="checkbox"], [type="radio"]), select').length&&($(this).parent().find("input, select").first().css("width","39%"),$(this).parent().find("input, select").last().css("width","60%").css("float","right")))}),Core.curModuleFile("virtual-server","edit_newstyles.cgi")?$('a[onclick^="window.open(\\"thumb_style.cgi?"]').html('').addClass("btn btn-transparent btn-link-bordered btn-xxs margined-top--3"):Core.curModule("virtual-server")&&$('a[onclick^="window.open(\\"thumb_style.cgi?"]').html('').addClass("btn btn-transparent btn-link-bordered heighter-28-force"),Core.curModuleFile("virtual-server","edit_html.cgi")){$('.ui_form_end_submit:not([name="create"], [name="cancel"], [name="save"], [name="delete"])').addClass("heighter-28-force");var E=v___location_query.indexOf("editok")!==-1||v___location_query.indexOf("createok")!==-1,N=v___location_query.indexOf("textok")!==-1;E&&$("#body").length?($("#editok").removeClass("btn-default").addClass("btn-grey"),$("#body").css("display","none"),$("hr + b").addClass("hidden"),$("#body").after('
    '),editor_html_init(["body",2,!0,"edit_web"])):N&&($("#textok").removeClass("btn-default").addClass("btn-grey"),editor_init_check()&&editor_init($("textarea"),!1,!1,"static",!1,!0,!1,e)),$(".ui_form_end_submit").click(function(){set_onbeforeunload_status(0,0)}),$("input:file").change(function(){var e=$(this);setTimeout(function(){$('form[action*="upload_html.cgi"]').append(e)},500)})}var P=' body button[onclick*="window.open"][onclick*="choose"][onclick*="chooser.cgi"]:not([onclick*="_chooser.cgi"]), body input[onclick*="window.open"][onclick*="choose"][onclick*="chooser.cgi"]:not([onclick*="_chooser.cgi"]), body button[onclick*="window.open"][onclick*="choose"][onclick*="standard_chooser.cgi"], body input[onclick*="window.open"][onclick*="choose"][onclick*="standard_chooser.cgi"], body button[onclick*="window.open"][onclick*="choose"][onclick*="third_chooser.cgi"], body input[onclick*="window.open"][onclick*="choose"][onclick*="third_chooser.cgi"], body button[onclick*="window.open"][onclick*="choose"][onclick*="user_chooser.cgi"], body input[onclick*="window.open"][onclick*="choose"][onclick*="user_chooser.cgi"], body button[onclick*="window.open"][onclick*="choose"][onclick*="group_chooser.cgi"], body input[onclick*="window.open"][onclick*="choose"][onclick*="group_chooser.cgi"], body button[onclick*="window.open"][onclick*="choose"][onclick*="my_group_chooser.cgi"], body input[onclick*="window.open"][onclick*="choose"][onclick*="my_group_chooser.cgi"], body button[onclick*="window.open"][onclick*="choose"][onclick*="module_chooser.cgi"], body input[onclick*="window.open"][onclick*="choose"][onclick*="module_chooser.cgi"] ';if($(P).length&&$(P).each(function(){$(this).attr("data-mmclick",$(this).attr("onclick")).removeAttr("onclick");chooser_get_target($(this),0)}),(Core.curModuleFile("virtualmin-nginx","")||Core.curModuleFile("virtualmin-awstats","")||Core.curModuleFile("fdisk","edit_disk.cgi")||Core.curModuleFile("virtualmin-dav","list_shares.cgi")||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"pam/"&&!v___location_file||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"syslog/"&&!v___location_file||v___location_path==v___location_prefix+"/postfix/master.cgi")&&setTimeout(function(){var e=$('.panel-body > .ui_link, .panel-body > .ui_link_replaced,\t\t\t\t\t body[data-uri*="virtualmin-awstats"] .panel-body > form > .ui_link_replaced,\t\t\t\t\t body[data-uri*="edit_disk.cgi"] .panel-body p > a.ui_link_replaced,\t\t\t\t\t body[data-uri*="edit_newlinks.cgi"] .panel-body > form > .ui_link_replaced,\t\t\t\t\t body[data-uri*="edit_newlinks.cgi"] .panel-body > .ui_emptymsg + p > .ui_link_replaced'),t=$.trim(e.first().text()),i=e.first().attr("href");i&&($("#headln2r .btn-group a").addClass("pull-left").attr("style",""),$("#headln2r .btn-group").prepend(' '),e.next("br").remove(),e.remove())},0),Core.curModuleFile("virtual-server","edit_newlinks.cgi")&&$("p > .btn.btn-inverse.ui_link_replaced.heighter-34").removeClass("heighter-34").addClass("btn-tiny"),v___theme_night_mode_enabled||v___theme_night_mode){if($(".opener_shown").length>0){var W=$(".opener_container, .opener_container:hidden").find(".ui_grid_table, .ui_grid_table:hidden");W.length&&$.each(W,function(e,t){$(this).parent("td").attr("style","padding: 0 !important")})}if($(".opener_table_style_small").length>0){var U=$(".opener_table_style_small, .opener_table_style_small:hidden").find(".sub_table_container.table-hardcoded, .sub_table_container.table-hardcoded:hidden");U.length&&$.each(U,function(e,t){$(this).parent("td").attr("style","padding: 0 !important"),$(this).find("tbody tr td").attr("style","padding-left: 3px !important; padding-right: 3px !important")})}}if($('html[data-script-name*="webmin/edit_assignment.cgi"] table table tbody tr td, html[data-script-name*="usermin/edit_assignment.cgi"] table table tbody tr td').hover(function(){$(this).is("td:nth-child(1)")||$(this).is("td:nth-child(3)")?$(this).addClass("hl-ow").next("td").addClass("hl-ow"):($(this).is("td:nth-child(2)")||$(this).is("td:nth-child(4)"))&&$(this).addClass("hl-ow").prev("td").addClass("hl-ow")},function(){$(this).removeClass("hl-ow").next("td").removeClass("hl-ow"),$(this).removeClass("hl-ow").prev("td").removeClass("hl-ow")}),(Core.curModule("changepass")||Core.curModuleFile("server-manager","edit_pass.cgi")||Core.curModuleFile("virtual-server","list_databases.cgi")||Core.curModuleFile("acl","edit_user.cgi")||Core.curModuleFile("virtual-server","clone_form.cgi")||Core.curModuleFile("virtual-server","edit_user.cgi")||Core.curModuleFile("virtual-server","edit_domain.cgi")||Core.curModuleFile("virtual-server","domain_form.cgi")||Core.curModuleFile("samba","edit_euser.cgi")||Core.curModuleFile("samba","ask_epass.cgi")||Core.curModuleFileQuery("virtualmin-registrar","edit.cgi","registrar=")||Core.curModuleFileQuery("htaccess-htpasswd","edit_user.cgi","new=")||Core.curModuleFileQuery("postgresql","edit_user.cgi","new=")||Core.curModuleFileQuery("mysql","edit_user.cgi","new=")||Core.curModuleFile("useradmin","edit_group.cgi")||Core.curModuleFile("useradmin","edit_user.cgi")||Core.curModuleFileQuery("passwd","edit_passwd.cgi","user="))&&setTimeout(function(){$("#headln2r .btn-group a").addClass("pull-left").attr("style",""),$("#headln2r .btn-group").prepend('\t\t\t\t\t\t\t\t')},0),0==v___user_level&&1==Core.moduleAvailable("status")||(settings_side_slider_enabled=!1,settings_side_slider_enabled=!1,get_server_data("data-slider-fixed","0"),$("#right-side-tabs, .right-side-tabs-toggler").addClass("hidden")),Core.curModuleFile("bind8","edit_zonekey.cgi")&&g__text_breaker($("textarea#ds"),$("#headln2c").find("span[data-sub_title]").text()),Core.curModuleFile("virtual-server","edit_script.cgi")&&$('select[name="version"]').addClass("heighter-34 margined-top-4"),Core.curModuleFile("virtual-server","transfer_form.cgi")&&$('input[name="newttl"]').addClass("heighter-34"),$.each($(".gl-icon-container"),function(e,t){$(this).find("a:first").find("i.fa-edit").length||($(this).find("a:first").prepend(''),$(this).find("a:first").prepend(''))}),Core.curModuleFile("virtual-server","index.cgi")&&$('a[href*="edit_domain.cgi"], a[href*="list_users.cgi"], a[href*="list_aliases.cgi"]').on("click",function(e){var t=URI.parseQuery(URI($(this).attr("href")).query()).dom;t!=$('select[name="dom"]').val()&&get_navigation_menu_virtualmin(t)}),Core.curModuleFile("server-manager","index.cgi")&&$('a[href*="edit_serv.cgi"], a[href*="mass_update_form.cgi"]').on("click",function(e){var t=URI.parseQuery(URI($(this).attr("href")).query()).id;t!=$('select[name="sid"]').val()&&get_navigation_menu_cloudmin(t)}),(Core.curModuleFile("webmin","refresh_modules.cgi")||Test.strContains(v___location_query,"refresh=1"))&&navigation_update(-1),v___location_path==v___location_prefix+"/proc/index_search.cgi"&&$(".col_header").removeClass("col_header"),$('input[type="file"]:not([name="upfiles"])').bootstrapFileInput(),setTimeout(function(){$.each($(".file-input-wrapper > span"),function(){$(this).html('')})},1),v___module!=v___module_file_manager&&("config.cgi"===v___location_file||"uconfig.cgi"===v___location_file||"settings-user.cgi"===v___location_file)){var B=[];"settings-user.cgi"===v___location_file&&(B=[1,1,0]),page.render.module_config(B)}}if(editor_init_check()&&editor_init($("textarea"),!1,!1,"static",!1,!0,!1,e),Core.curModule("cshrc")||Core.curModule("plan")||Core.curModuleFile("virtual-server","mass_aedit_form.cgi")){var H=$(".panel-body form:eq(0) > textarea:visible"),K=$(".panel-body form:eq(1) > textarea:visible");e&&page_refresh(1),K.length?(editor_init(H,!1,!1,"static1",!0,!1,!1,e,.36),editor_init(K,!1,!1,"static2",!0,!1,!1,e,.36)):editor_init(H,!1,!1,"static1",!0,!1,!1,e,.51)}if(viewer_init_check()&&viewer_init(),settings_sysinfo_easypie_charts&&v___location_path==v___location_prefix+"/sysinfo.cgi"){var Q=v___theme_night_mode_enabled||v___theme_night_mode?1:0;$("body").find("#system-status").find(".piechart").easyPieChart({barColor:function(e){return e<50?Q?"#269373":"#5cb85c":e<85?Q?"#c38d40":"#f0ad4e":"#cb3935"},trackColor:Q?"#3b424b":"#f8f8f8",scaleColor:Q?"#3b424b":"#dfe0e0",size:parseInt(settings_sysinfo_easypie_charts_size),scaleLength:parseInt(settings_sysinfo_easypie_charts_scale),trackWidth:parseInt(settings_sysinfo_easypie_charts_width),lineWidth:0,lineCap:"square",onStep:function(e,t,i){$(this.el).find(".percent").text(Math.round(i))}})}if(((v___location_path.indexOf(".cgi")===-1||v___location_path.indexOf("link.cgi")!==-1||v___location_path==v___location_prefix+"/proc/open_files.cgi"||v___location_path==v___location_prefix+"/webmin/edit_webmincron.cgi"||v___location_path==v___location_prefix+"/postfix/mailq.cgi"||v___location_path==v___location_prefix+"/webmin_search.cgi"||v___location_path==v___location_prefix+"/useradmin/index.cgi"||v___location_path==v___location_prefix+"/quota/list_users.cgi"||v___location_path==v___location_prefix+"/quota/list_groups.cgi"||v___location_path==v___location_prefix+"/init/index.cgi")&&(v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"webmin/"&&v___location_prefix.indexOf("servers/link.cgi")===-1||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"proc/"||v___location_path_lead_unslashed==v___location_prefix_unslashed_trail_slashed+"webmin_search.cgi"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"postfix/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"virtual-server/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"init/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"mount/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"custom/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"quota/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"php-pear/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"fsdump/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"inittab/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"logrotate/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"mailcap/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"cron/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"software/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"syslog/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"useradmin/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"apache/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"webalizer/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"cpan/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"htaccess-htpasswd/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"fdisk/")||Core.curModuleFile("cron","index.cgi")||Core.curModuleFile("ruby-gems","index.cgi")||Core.curModuleFile("postfix","master.cgi")||Core.curModuleFile("fail2ban","list_filters.cgi")||Core.curModuleFile("fail2ban","list_actions.cgi")||Core.curModuleFile("fail2ban","list_jails.cgi")||Core.curModuleFile("virtual-server","list_databases.cgi")||Core.curModuleFile("virtual-server","connectivity.cgi")||Core.curModuleFile("virtualmin-git","")||Core.curModuleFile("virtualmin-git","index.cgi")||Core.curModuleFile("virtualmin-svn","")||Core.curModuleFile("virtualmin-svn","index.cgi")||Core.curModuleFile("server-manager","edit_domains.cgi")||Core.curModuleFile("net","list_ifcs.cgi")||Core.curModuleFile("net","list_hosts.cgi")||Core.curModuleFile("bind8","edit_recs.cgi")||Core.curModule("firewall")||Core.curModule("firewall6")||Core.curModule("ruby-gems")||v___location_path==v___location_prefix+"/at/"||v___location_path==v___location_prefix+"/at/index.cgi"||v___location_path==v___location_prefix+"/useradmin/list_logins.cgi"||v___location_path==v___location_prefix+"/man/search.cgi"||v___location_path==v___location_prefix+"/proc/index_tree.cgi"||v___location_path==v___location_prefix+"/proc/index_user.cgi"||v___location_path==v___location_prefix+"/proc/index_size.cgi"||v___location_path==v___location_prefix+"/proc/index_cpu.cgi"||v___location_path==v___location_prefix+"/proc/index_search.cgi"||v___location_path==v___location_prefix+"/software/search.cgi"||v___location_path==v___location_prefix+"/software/file_info.cgi"||v___location_path==v___location_prefix+"/software/list_pack.cgi"||v___location_path==v___location_prefix+"/virtual-server/index.cgi"||v___location_path==v___location_prefix+"/virtual-server/list_users.cgi"||v___location_path==v___location_prefix+"/virtual-server/edit_newplan.cgi"||v___location_path==v___location_prefix+"/virtual-server/edit_newfeatures.cgi"||v___location_path==v___location_prefix+"/virtual-server/edit_newtmpl.cgi"||v___location_path==v___location_prefix+"/virtual-server/backuplog.cgi"||v___location_path==v___location_prefix+"/package-updates/"||v___location_path==v___location_prefix+"/package-updates/index.cgi"||v___location_path==v___location_prefix+"/package-updates/update.cgi"||v___location_path==v___location_prefix+"/virtual-server/usage.cgi"||v___location_path==v___location_prefix+"/virtual-server/search.cgi"||v___location_path==v___location_prefix+"/fetchmail/"||v___location_path==v___location_prefix+"/filter/")&&$(".__page table.table").each(function(){if($(this).find("thead")&&$(this).find("thead").length&&$(this).find("thead tr th")&&$(this).find("thead tr th").length>2){if($(this).find("thead")&&$(this).find("thead").length>1){var e=$(this).find("thead:first-child");e.remove(),!$t_uri_webmin||v___location_path!=v___location_prefix+"/quota/list_users.cgi"&&v___location_path!=v___location_prefix+"/quota/list_groups.cgi"||($(this).before(e),$(this).prev("thead").replaceTagName("table"))}table_data_init($(this)),$(this).find("th").each(function(){$(this).text()||$(this).css("opacity","0").css("cursor","default")});var t=-(1/0);$(this).find("tr").each(function(e,i){t=Math.max(t,parseFloat(e))}),t<10&&$(this).parents(".dataTables_wrapper").find(".dataTables_filter").remove();if(($(this).parents(".dataTables_wrapper").find(".dataTables_filter").length?1:0)&&($('body[class="init"]').length||$('body[class^="init"]').length&&null!=$('body[class^="init"]').attr("class").match(/\d+$/)||$('body[class="quota"]').length||$('body[class^="quota"]').length&&null!=$('body[class^="quota"]').attr("class").match(/\d+$/)||$('body[class="cron"]').length||$('body[class^="cron"]').length&&null!=$('body[class^="cron"]').attr("class").match(/\d+$/))){var i=-15,a=$(this).parents(".dataTables_wrapper").attr("style");$('body[class^="quota"]').length&&(i=-27),$(this).parents(".dataTables_wrapper").attr("style","margin-top: "+i+"px !important; "+(a?a:""))}}}).promise().done(function(){page.render.content.filter.init()}),$(".select_all").on("click",function(){$(this).parents("form").find('.icons-row div[class*="icons-container"]').length&&$.each($(".icons-row .hidden-forged-6"),function(){$(this).parents('div[class*="icons-container"]').addClass("highlighted"),$(this).parents('div[class*="icons-container"]').find(".fa-select").removeClass("fa-select").addClass("fa-selected")})}),$(".select_invert").on("click",function(){$.each($(".icons-row .hidden-forged-6"),function(){$(this).find("input").is(":checked")?($(this).parents('div[class*="icons-container"]').addClass("highlighted"),$(this).parents('div[class*="icons-container"]').find(".fa-select, .fa-selected").removeClass("fa-select").addClass("fa-selected")):($(this).parents('div[class*="icons-container"]').removeClass("highlighted"),$(this).parents('div[class*="icons-container"]').find(".fa-select, .fa-selected").removeClass("fa-selected").addClass("fa-select"))})}),$('.icons-row div[class*="icons-container"]').on("mouseover",function(e){$(this).find(".hidden-forged-7").removeClass("hidden-forged")}).on("mouseout",function(e){$(this).find(".hidden-forged-7").addClass("hidden-forged")}),"?dashboard"!=v___location.search&&1==navigation_dashboard_switch_available()&&("sysinfo.cgi"==v___location_file?(set_switch_position("dashboard"),navigation_clear()):$("#open_webmin").length>0&&"open_webmin"!=$(".switch-toggle input:checked").attr("id")?set_switch_position("webmin"):$("#open_virtualmin").length>0&&"open_virtualmin"!=$(".switch-toggle input:checked").attr("id")?set_switch_position("virtualmin"):$("#open_cloudmin").length>0&&"open_cloudmin"!=$(".switch-toggle input:checked").attr("id")?set_switch_position("cloudmin"):$("#open_usermin").length>0&&"open_usermin"!=$(".switch-toggle input:checked").attr("id")&&set_switch_position("usermin")),$('form[action="bootup.cgi"]').on("submit",function(e){$("#starting").length>0?($("#starting").remove(),$(this).append('')):$("#table").length>0?$(this).append(''):$('input[name="boot"][type="hidden"]').length>0&&($('input[name="boot"][type="hidden"]').remove(),$(this).append(''))}),$('input[name="config_portable_module_xsql_fit_content_screen_height"]').on("change",function(){var e=$(this).attr("name"),t=$(this).val();localStorage.setItem(v___server_hostname+"-"+e,t),window[e]=t,theme_config("save")}),v___location_path!=v___location_prefix+"/virtual-server/domain_form.cgi"&&v___location_path!=v___location_prefix+"/virtual-server/edit_domain.cgi"&&v___location_path!=v___location_prefix+"/virtual-server/edit_user.cgi"&&v___location_path!=v___location_prefix+"/virtual-server/edit_alias.cgi"&&v___location_path!=v___location_prefix+"/virtual-server/edit_limits.cgi"||$("input, select").on("blur",function(){!__is_tabbed||$(this).next("input:visible").length||$(this).prev("input:visible").length||$(this).next("select:visible").length||$(this).prev("select:visible").length||(__is_shifted?$(this).parent("td").parent("tr").prev("tr").find("select:visible").length||$(this).parent("td").parent("tr").prev("script").prev("tr").find("select:visible").length||$(this).parent("td").parent("tr").prev("script").prev("script").prev("tr").find("select:visible").length?($(this).parent("td").parent("tr").prev("tr").find("select:first:visible").focus(),$(this).parent("td").parent("tr").prev("script").prev("tr").find("select:first:visible").focus(),$(this).parent("td").parent("tr").prev("script").prev("script").prev("tr").find("select:first:visible").focus()):($(this).parent("td").parent("tr").prev("tr").find('input[type="text"]:first:visible, input[type="password"]:first:visible').focus(),$(this).parent("td").parent("tr").prev("script").prev("tr").find('input[type="text"]:first:visible, input[type="password"]:first:visible').focus(),$(this).parent("td").parent("tr").prev("script").prev("script").prev("tr").find('input[type="text"]:first:visible, input[type="password"]:first:visible').focus()):$(this).parent("td").parent("tr").next("tr").find('input[type="text"]:first:visible, input[type="password"]:first:visible').length||$(this).parent("td").parent("tr").next("script").next("tr").find('input[type="text"]:first:visible, input[type="password"]:first:visible').length||$(this).parent("td").parent("tr").next("script").next("script").next("tr").find('input[type="text"]:first:visible, input[type="password"]:first:visible').length?($(this).parent("td").parent("tr").next("tr").find('input[type="text"]:first:visible, input[type="password"]:first:visible').focus(),$(this).parent("td").parent("tr").next("script").next("tr").find('input[type="text"]:first:visible, input[type="password"]:first:visible').focus(),$(this).parent("td").parent("tr").next("script").next("script").next("tr").find('input[type="text"]:first:visible, input[type="password"]:first:visible').focus()):($(this).parent("td").parent("tr").next("tr").find("select:first:visible").focus(),$(this).parent("td").parent("tr").next("script").next("tr").find("select:first:visible").focus(),$(this).parent("td").parent("tr").next("script").next("script").next("tr").find("select:first:visible").focus()))}),$('.ui_form_end_submit[onclick^="window.open"]').click(function(){var e=$(this);setTimeout(function(){e.removeClass("disabled"),navigation_render_end()},100)}),v___location_path&&v___location_path.indexOf("/sysinfo.cgi")>-1){$("body").undelegate(".piechart canvas","mouseover mouseleave"),$("body").on("mouseover",".piechart canvas",function(){var e=$(this).parent("span").attr("data-charts").split("_")[1] -;("cpu"!=e&&"mem"!=e&&"virt"!=e||Core.moduleAvailable("proc"))&&("disk"!=e||Core.moduleAvailable("disk-usage")||Core.moduleAvailable("quota"))&&$(this).addClass("cursor-alias")}),$("body").undelegate("canvas","click"),$("body").on("click","canvas",function(e){e.preventDefault();var t,i=$(this).parent("span").attr("data-charts").split("_")[1];"cpu"==i&&Core.moduleAvailable("proc")?t=v___location_prefix+"/proc/index_cpu.cgi":"mem"!=i&&"virt"!=i||!Core.moduleAvailable("proc")?"disk"==i&&Core.moduleAvailable("disk-usage")?t=v___location_prefix+"/disk-usage":"disk"==i&&Core.moduleAvailable("quota")&&(t=v___location_prefix+"/quota/list_users.cgi?dir=%2F"):t=v___location_prefix+"/proc/index_size.cgi",t&&t.length&&get_pjax_content(t)}),page_sysinfo_sensor_update_label(),"0"==v___user_level&&information_update();if(172!=settings_sysinfo_easypie_charts_size){var V=parseInt(settings_sysinfo_easypie_charts_size-172),G=.9*V,J=.2*V,Z=settings_sysinfo_easypie_charts_size<172?settings_sysinfo_easypie_charts_size<152?"8px":"8.5px":"9px",X=settings_sysinfo_easypie_charts_size<172?settings_sysinfo_easypie_charts_size<152?"1.6em":"1.7em":"1.8em",Y=$(".piechart .data-cnt .label"),ee=parseInt(Y.css("right")),te=parseInt(Y.css("bottom")),ie=$(".piechart .data-cnt .percent"),ae=parseInt(ie.css("top")),ne=parseInt(ie.css("left"));Y.css({bottom:parseInt(te-G),right:parseInt(ee-G),fontSize:Z}),ie.css({top:parseInt(ae+J),left:parseInt(ne+J),fontSize:X})}}if($t_uri_virtualmin&&Core.curModuleFileQuery("syslog","save_log.cgi","view=1")&&($('select[name="idx"] option').filter(function(){return this.text==$.trim($("span[data-sub_title] tt").text())}).attr("selected",!0),$('select[name="idx"]').addClass("hidden")),Core.curModuleFileQuery("syslog","save_log.cgi","view=1")||Core.curModuleFileQuery("syslog","save_log.cgi","new=")){var I=".panel-body .fa-refresh-fi",se=localStorage.getItem(v___server_hostname+"-option_"+v___module+"_refresh"),_e=I+", .panel-body .refresh-timer-timeout",oe=''+(se?se:"0")+" ";$.each($(I+":not([data-processed])").parent("button"),function(e,t){if($(this).find("i").attr("data-processed",1),$(this).wrap('
    '),$(this).after('"),se&&"0"!=se){var i=$(_e);$(this).find("i").before(oe),$(this).find("i").remove();var a=se;"number"==typeof refreshTimer&&clearInterval(refreshTimer),refreshTimer=setInterval(function(){--a,$(".refresh-timer-timeout").text(a),a<=0&&($(i[0]).parent().trigger("click"),clearInterval(refreshTimer))},1e3)}}).promise().done(function(){$(".refresh-timer-select li").click(function(){"number"==typeof refreshTimer&&clearInterval(refreshTimer);var e=''+(se?se:"0")+" ";localStorage.setItem(v___server_hostname+"-option_"+v___module+"_refresh",$(this).find("a").data("timeout")),se=localStorage.getItem(v___server_hostname+"-option_"+v___module+"_refresh");var t=$(_e),i=t.parent();if(se&&"0"!=se){i.find(".refresh-timer-timeout").length||i.prepend(e),i.find(".refresh-timer-timeout").html(se+" "),$(".fa-refresh-fi").remove();var a=se;refreshTimer=setInterval(function(){if(--a,$(".refresh-timer-timeout").text(a),a<=0){var e=$(_e);$(e[0]).parent().trigger("click"),clearInterval(refreshTimer)}},1e3)}else $(".refresh-timer-timeout").remove(),!i.find(".fa-refresh-fi").length&&i.prepend('')})}),$.each($('form[action*="save_log.cgi"] select[name="idx"]'),function(){$(this).on("change",function(){var e=$("button.ui_submit.ui_form_end_submit");$(this).next().next('[name="filter"]').val(""),e.first().trigger("click"),e.addClass("disabled")})})}if(Core.curModuleFile("virtual-server","summary_domain.cgi")&&$(".__page #headln2l .btn-group, .__page .page_footer_submit").remove(),settings_side_slider_enabled&&(Core.curModule("package-updates")&&slider_mark_group_notifications_read("package_message"),Core.curModule("csf")&&(slider_mark_group_notifications_read("csf_remote_version"),slider_mark_group_notifications_read("csf_title"))),settings_button_tooltip&&($('[data-dcontainer="1"]').tooltip("destroy"), +"8"==String.fromCharCode(e.which)&&settings_hotkey_custom_8&&(e.preventDefault(),theme_shortcut_check(settings_hotkey_custom_8)&&get_pjax_content(v___location_prefix+settings_hotkey_custom_8)),"9"==String.fromCharCode(e.which)&&settings_hotkey_custom_9&&(e.preventDefault(),theme_shortcut_check(settings_hotkey_custom_9)&&get_pjax_content(v___location_prefix+settings_hotkey_custom_9)),String.fromCharCode(e.which).toLowerCase()==settings_hotkey_toggle_key_webmin&&(e.preventDefault(),$('.switch-toggle input[id="open_webmin"]').trigger("click")),String.fromCharCode(e.which).toLowerCase()==settings_hotkey_toggle_key_virtualmin&&(e.preventDefault(),$('.switch-toggle input[id="open_virtualmin"]').trigger("click")),String.fromCharCode(e.which).toLowerCase()==settings_hotkey_toggle_key_cloudmin&&(e.preventDefault(),$('.switch-toggle input[id="open_cloudmin"]').trigger("click")),String.fromCharCode(e.which).toLowerCase()==settings_hotkey_toggle_key_usermin&&(e.preventDefault(),$('.switch-toggle input[id="open_usermin"]').trigger("click")),String.fromCharCode(e.which).toLowerCase()==settings_hotkey_toggle_key_webmail&&(e.preventDefault(),$('.switch-toggle input[id="open_webmail"]').trigger("click")),String.fromCharCode(e.which).toLowerCase()==settings_hotkey_toggle_key_night_mode&&(e.preventDefault(),theme_toggle_night_mode()),String.fromCharCode(e.which).toLowerCase()==settings_hotkey_toggle_slider&&(e.preventDefault(),$(".right-side-tabs-toggler:not(.hidden) .btn-menu-toggler").trigger("click")),String.fromCharCode(e.which).toLowerCase()==settings_hotkey_reload&&$('.user-links a[data-refresh="true"]')&&(e.preventDefault(),get_onbeforeunload_status()?get_onbeforeunload_message(!1,"get_pjax_content(v___location_resource)","ev"):get_pjax_content(v___location_resource));var t=$t_uri_cloudmin&&$('a[target="page"][href*="/server-manager/save_serv.cgi"][href*="shell=1"]').length;if(String.fromCharCode(e.which).toLowerCase()==settings_hotkey_shell&&(1==Core.moduleAvailable("shell")||t)){e.preventDefault();var i=$("body").find(".-shell-port-");i.hasClass("opened")?theme_shell_close(i):theme_shell_open(i)}return String.fromCharCode(e.which).toLowerCase()==settings_hotkey_sysinfo&&(e.preventDefault(),1==navigation_dashboard_switch_available()?navigation_dashboard_switch_select():get_pjax_content(v___location_prefix+"/sysinfo.cgi")),String.fromCharCode(e.which).toLowerCase()==settings_hotkey_favorites&&(e.preventDefault(),"0px"!=$(".favorites-menu-outer").css("left")?$(".user-link.favorites").trigger("click"):$(".favorites-menu-outer").removeClass("hover")),!1}}function get_access_level(){return Core.var.level!==-1?parseInt(Core.var.level):parseInt(get_server_data("level"))}function navigation_dashboard_switch_available(){return"1"==get_server_data("dashboard")}function navigation_dashboard_switch_select(){set_switch_position("dashboard"),navigation_clear(),get_pjax_content(v___location_prefix+"/sysinfo.cgi")}function theme_messenger(e,t,i,a,n){var s=void 0===a?1:a,_=void 0===n||n;if($('body[class^="'+v___module_file_manager+'"]').length){if("4"==config_portable_module_filemanager_notification_type&&"info"!=i&&"warning"!=i&&"error"!=i)return;if("2"==config_portable_module_filemanager_notification_type&&"warning"!=i&&"error"!=i)return}"function"==typeof Messenger&&(window["Messenger_"+s]=Messenger().post({message:e,hideAfter:t,theme:"air",showCloseButton:_,type:i,id:s}))}function theme_message_dismiss(e){void 0!==window["Messenger_"+e]&&window["Messenger_"+e].hide()}function theme_alert(e,t,i,a,n,s,_,o){(void 0===i||0==i)&&(i=!1),(void 0===a||0==a)&&(a="md"),(void 0===n||0==n)&&(n="danger"),(void 0===s||0==s)&&(s="exclamation-triangle"),(void 0===_||0==_)&&(_="7"),(void 0===o||0==o)&&(o=!1);var r=($.isArray(i),"modal-global-notification"),l='";setTimeout(function(){$("body").hasClass("modal-open")||($("body").append(l),$("."+r).modal("show"),$("."+r).on("click",".modal-body a.label",function(e){$("."+r).modal("hide")}),$("."+r).on("hidden.bs.modal",function(e){$("."+r).remove()}))},o)}function theme_alert_charset(){var e=get_server_data("charset");if(e&&e.toLowerCase().indexOf("utf")===-1&&"true"!=localStorage.getItem(v___server_hostname+"-config_portable_theme_charset_warning_shown")){var t="

    "+theme_language("theme_xhred_encoding_warning").replace("_hidden_",$t_uri_usermin?"hidden":"").replace("%prod",get_navigation_module_name()).replace("%lang",get_server_data("language")).replace("%charset",get_server_data("charset")).replace("%link",v___location_prefix+($t_uri_usermin?"/language":"/webmin/edit_lang.cgi"))+"

    ";theme_alert(theme_language("theme_xhred_global_warning"),t,!1,"sm","warning",!1,"7 modal-charset-warning",2e3),$("body").on("click",".modal-charset-warning a.label",function(e){$(".modal-charset-warning").modal("hide")}),$("body").on("hide.bs.modal",".modal-charset-warning",function(e){localStorage.setItem(v___server_hostname+"-config_portable_theme_charset_warning_shown","true"),theme_config("save")})}}function get_module_title(){return $_right_menu_title=$("#headln2c"),$_right_menu_title.find("span[data-main_title]").text().length?$_right_menu_title.find("span[data-main_title]").text():$_right_menu_title.text().length?$_right_menu_title.text().text():"->"}function get_module_subtitle(){}function editor_background_save(e){function t(){"undefined"!=typeof __cm_editor_static&&$(".container-fluid > .panel > .panel-body").attr("data-cm-line",__cm_editor_static.getCursor().line+","+__cm_editor_static.getCursor().ch).attr("data-cm-state",$('[data-form="submitter"]').hasClass("btn-warning")&&!$('[data-form="submitter"]').next("button").hasClass("disabled"))}if(1===$('textarea[name="data"], textarea[name="text"], textarea[name="directives"], textarea[name="manual"]').length&&1===$('textarea[name="data"], textarea[name="text"], textarea[name="directives"], textarea[name="manual"]').parents("form").find('input[type="submit"]').length){if(!$(".CodeMirror").length)return;$(".ui_reset").remove();var i=$('.container-fluid textarea[name="data"], .container-fluid textarea[name="text"], .container-fluid textarea[name="directives"], .container-fluid textarea[name="manual"]').parents("form"),a=i.find('button[type="button"]').length?i.find('button[type="button"]'):i.find('input[type="submit"]'),n=$('.container-fluid textarea[name="directives"]').length?"-12px":"0";$(".container-fluid select").val()?$(".container-fluid select").val():$(".container-fluid .table-title").text()?$(".container-fluid .table-title").text():$(".container-fluid .panel-body tt:first").text()?$(".container-fluid .panel-body tt:first").text():$(".container-fluid #headln2c tt:first").text()&&$(".container-fluid #headln2c tt:first").text();a.parents("table.ui_form_end_buttons").prev("br").remove(),a.parents("table.ui_form_end_buttons").prev("div.table-responsive").attr("style","margin-bottom: -4px !important"),a.replaceWith('\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t");var s=$('.container-fluid button[type="button"]:not(.ui_form_end_submit)'),_=$('.container-fluid button[type="submit"]:not(.ui_form_end_submit)');window.__cm_editor_static.on("change",function(e,i){__cm_editor_static.save(),s.addClass("btn-warning").removeClass("btn-success").attr("data-form-onbeforeunload",1),t()}),$("body").off("mousedown.cm1"),$("body").on("mousedown.cm1",".CodeMirror",function(e){t()}),$("body").off("keydown.cm1"),$("body").on("keydown.cm1",function(e){13==e.keyCode&&e.ctrlKey&&!e.shiftKey?s.trigger("click"):13==e.keyCode&&e.ctrlKey&&e.shiftKey&&_.trigger("click")});var o='button[type="submit"]:not(.disabled)';$("body").undelegate(o,"click.cm"),$("body").on("click.cm",o,function(e){set_onbeforeunload_status(0,0),$("button").addClass("disabled").find(".fa.fa-arrow-circle-o-left").addClass("invisible").after(''),s.attr("data-form-onbeforeunload",0)});var r='button[data-form="submitter"]:not(.disabled)';$("body").undelegate(r,"click.cm"),$("body").on("click.cm",r,function(e){e.preventDefault();var t=$(this),a=t.parents("form"),n=a.attr("enctype")&&a.attr("enctype").indexOf("form-data")>-1?0:1,_=n?a.serialize():new FormData(a[0]);$("button").addClass("disabled").find(".fa.fa-floppy-o").addClass("invisible").after(''),setTimeout(function(){$.ajax({type:"POST",url:i.attr("action"),data:_,dataType:"text",cache:!1,contentType:!1,processData:!1,success:function(e){return Test.strContains(e,v___page_signin_form)?void(v___available_session=0):(s.removeClass("btn-warning").addClass("btn-success").attr("data-form-onbeforeunload",0),$("button").removeClass("disabled").find(".fa").removeClass("invisible").parent().find(".cspinner_container").remove(),$(".container-fluid > .panel > .panel-body").attr("data-cm-state","false"),set_onbeforeunload_status(0,0),!$(e).find(".panel-body > hr + h3").length||$(e).find(".panel-body .table").length||$(e).find(".panel-body form[action]").length?void 0:(theme_messenger(''+$(e).find(".panel-body hr + h3").html(),60,"error","magic_save_error"),s.removeClass("btn-success").addClass("btn-warning").attr("data-form-onbeforeunload",1),void $(".container-fluid > .panel > .panel-body").attr("data-cm-state","true")))},error:function(e){}})},300)})}}function page_resized(){navigation_lock_width(),$(".mobile-menu-toggler").hasClass("selected")||"1"==$("html").attr("data-navigation-collapsed")||($("aside").addClass("hidden-xs"),$("aside").css("transform","translate("+settings_leftmenu_width+"px, 0px)"),$(".switch-toggle").css("display","table"),"function"==typeof jQuery().transition&&$(".__logo")&&!$(".mobile-menu-toggler:visible").length?$(".__logo").transition({y:"-140px"},700,function(){}):$(".__logo")&&$(".__logo").css("transform","translate(0px, 0px)")),set_side_slider_visibility(settings_side_slider_fixed!==!0||$(".mobile-menu-toggler:visible").length||!v___available_navigation||settings_side_slider_fixed===!0&&window.matchMedia("(max-width: 1365px)").matches?0:1);var e=$('input[name="settings_leftmenu_width"]');if($(".mobile-menu-toggler:visible").length?e.prop("disabled",!0):e.prop("disabled",!1),v___location_path&&v___location_path.indexOf("/webmin/edit_themes.cgi")>-1){var t=!(!settings_navigation_always_collapse&&!window.matchMedia("(max-width: 1365px)").matches),i="false"!=$('input[name="settings_side_slider_enabled"]:checked').val();t&&$('input[name="settings_side_slider_fixed"][value="false"], input[name="settings_side_slider_fixed_toggle"][value="false"]').trigger("click"),i&&$('input[name="settings_side_slider_fixed"], input[name="settings_side_slider_fixed_toggle"]').prop("disabled",t)}}function theme_settings_controls(e){var t=$("#atsave, #save_user");e?(set_onbeforeunload_status(1,0),t.addClass("btn-warning")):(set_onbeforeunload_status(0,0),t.removeClass("btn-warning"))}function theme_settings_check(){var e=v___location_path.indexOf("/webmin/edit_themes.cgi")>-1,t=v___location_path.indexOf("/settings-user.cgi")>-1,i="settings"+(t?"_"+get_server_data("user"):"")+".js",a=0,n=["settings_font_family","settings_navigation_color","settings_side_slider_enabled","settings_side_slider_fixed_toggle","settings_side_slider_sysinfo_enabled","settings_side_slider_notifications_enabled","settings_side_slider_favorites_enabled","settings_side_slider_palette","settings_navigation_always_collapse","settings_leftmenu_width","settings_leftmenu_user_html"];if(v___location_path&&(e||t)){var s=Core.get_global_vars(["config_","settings"]);$('script[src*="'+i+'"]').length?$.getScript(v___server_js_path+"/"+i,function(){for(var e=Core.get_global_vars(["config_","settings"]),t=0;t'),$.ajax({type:"GET",url:v___location_prefix+"/index.cgi/?xhr-default=1",data:!1,dataType:"text",success:function(e){if(Test.strContains(e,v___page_signin_form))return void(v___available_session=0);$("#____switch").html(e),$____switch=$("#____switch").text();var t=v___location_prefix+(3==v___user_level&&Core.moduleAvailable("mailbox")&&$t_uri_webmail?"/mailbox/index.cgi?id=INBOX":3==v___user_level?"/sysinfo.cgi":("/"==$____switch.substring(0,1)?"":"/")+$____switch);check_bundle(t),get_pjax_content(t,["success","v___theme_processing_default_content = 0"]),$("#____switch").remove()}})}}function get_default_virtualmin_content(e,t){if(!get_onbeforeunload_status()||t){if(v___theme_processing_default_content)return void setTimeout(function(){v___theme_processing_default_content&&(v___theme_processing_default_content=0)},1001);v___theme_processing_default_content=1;var i,a="/virtual-server";if(i=1==get_server_data("initial-wizard")?a+"/wizard.cgi":e!==!1?a+"/summary_domain.cgi?dom="+e:"sysinfo.cgi"==settings_right_virtualmin_default||""==settings_right_virtualmin_default?"/sysinfo.cgi":"index.cgi"==settings_right_virtualmin_default?a+"/index.cgi":a+"/summary_domain.cgi?dom="+settings_right_virtualmin_default,t)return v___location_prefix+i;get_pjax_content(v___location_prefix+i,["success","v___theme_processing_default_content = 0"])}}function get_default_cloudmin_content(e,t){if(!get_onbeforeunload_status()||t){if(v___theme_processing_default_content)return void setTimeout(function(){v___theme_processing_default_content&&(v___theme_processing_default_content=0)},1001);v___theme_processing_default_content=1;var i;if(i=e===!1||settings_right_cloudmin_default||"0"==settings_right_cloudmin_default?"sysinfo.cgi"==settings_right_cloudmin_default||""==settings_right_cloudmin_default&&"0"!=settings_right_cloudmin_default?"sysinfo.cgi":"index.cgi"==settings_right_cloudmin_default?"server-manager/index.cgi":"server-manager/edit_serv.cgi?id="+settings_right_cloudmin_default:"server-manager/edit_serv.cgi?id="+e,t)return v___location_prefix+"/"+i;get_pjax_content(v___location_prefix+"/"+i,["success","v___theme_processing_default_content = 0"])}}function get_navigation_and_content(e,t,i){get_onbeforeunload_status()||("virtualmin"===e?(get_navigation_menu_virtualmin(!1),1!=settings_right_reload&&1!==t||1===i||get_default_virtualmin_content(!1)):"cloudmin"===e?(get_navigation_menu_cloudmin(!1),1!=settings_right_reload&&1!==t||1===i||get_default_cloudmin_content(!1)):(0==navigation_dashboard_switch_available()&&get_navigation_menu_webmin(e),1!=settings_right_reload&&1!==t||1===i||get_default_content()))}function information_update(){if(!$("body .modal.in").length){if(!e)var e=get_server_data("webprefix");if(0==v___user_level){var t=$("body").find("#system-status"),i=t.length?t[0]:0;$("#right-side-tabs-sysinfo .graph-container").length||$("#right-side-tabs .info-container").html(get_right_panel_sysinfo_data());var a=$(".right-side-tabs-dismiss .fa-reload");a.addClass("fa-spin-fastest cursor-na"),setTimeout(function(){a.removeClass("fa-spin-fastest cursor-na")},3e3),$.ajax({type:"GET",url:e+"/index.cgi/?xhr-info=1",data:!1,dataType:"json",success:function(t){if(Test.strContains(t,v___page_signin_form))return void(v___available_session=0);$.each(t,function(t,a){if("cpu_percent"!=t&&"mem_percent"!=t&&"virt_percent"!=t&&"disk_percent"!=t||(Test.numeric(a)?localStorage.setItem(v___server_hostname+"-sysinfo_"+t+"_stats",a):localStorage.setItem(v___server_hostname+"-sysinfo_"+t+"_stats","")),i){if($(i).find('span[data-id="sysinfo_'+t+'"]').html(a),"local_time"==t||"uptime"==t||"proc"==t){var n=$(i).find('span[data-id="sysinfo_'+t+'"]'),s=n.find("a").length?n.find("a"):n.find("span"),_=s,o=$(i).find('span[data-id="sysinfo_'+t+'"]').text();"local_time"==t?_&&_.length?(o=s.data("convertible-timestamp-full"),n.html(_.html(moment.unix(o).format(config_portable_theme_locale_format_long)))):(o=$(i).find('span[data-id="sysinfo_'+t+'"] > span').data("convertible-timestamp-full"),n.html(moment.unix(o).format(config_portable_theme_locale_format_long))):_&&_.length&&n.html(_.html(o))}if(page_sysinfo_sensor_update_label(),$(i).find('.piechart[data-charts="sysinfo_'+t+'"]').length){var r=$("body").find('.piechart[data-charts="sysinfo_'+t+'"]');r.length&&!isNaN(parseInt(a))&&r.data("easyPieChart").update(a)}"cpu_percent"!=t&&"mem_percent"!=t&&"virt_percent"!=t&&"disk_percent"!=t||localStorage.setItem(v___server_hostname+"-sysinfo_"+t+"_seen",a),$(i).find(".modal-backdrop").remove()}if($__id__=moment().unix(),"cpu_percent"==t||"mem_percent"==t||"virt_percent"==t||"disk_percent"==t||"csf_title"==t||"csf_remote_version"==t||"authentic_remote_version"==t||"package_message"==t?localStorage.getItem(v___server_hostname+"-sysinfo_"+t)||localStorage.setItem(v___server_hostname+"-sysinfo_"+t,a):a&&null!=a&&NaN!=a?localStorage.setItem(v___server_hostname+"-sysinfo_"+t,a):localStorage.setItem(v___server_hostname+"-sysinfo_"+t,""),localStorage.getItem(v___server_hostname+"-sysinfo_package_message_initial")||localStorage.setItem(v___server_hostname+"-sysinfo_package_message_initial",1),"authentic_theme_version"==t&&!localStorage.getItem(v___server_hostname+"-sysinfo_theme_current_version")&&a&&localStorage.setItem(v___server_hostname+"-sysinfo_theme_current_version",a.match(/^\d+|\d+\b|\d+(?=\w)/g)[0]+"."+a.match(/^\d+|\d+\b|\d+(?=\w)/g)[1]),"csf_data"==t&&!localStorage.getItem(v___server_hostname+"-sysinfo_csf_current_version")&&a&&localStorage.setItem(v___server_hostname+"-sysinfo_csf_current_version",a.match(/^\d+|\d+\b|\d+(?=\w)/g)[0]+"."+a.match(/^\d+|\d+\b|\d+(?=\w)/g)[1]),"csf_title"==t||"csf_data"==t||"csf_remote_version"==t||"authentic_remote_version"==t||"authentic_theme_version"==t||"package_message"==t){if("package_message"===t&&!Core.curModuleFile("package-updates","update.cgi")){if((localStorage.getItem(v___server_hostname+"-sysinfo_"+t)!=a||1==localStorage.getItem(v___server_hostname+"-sysinfo_package_message_initial"))&&a&&a.indexOf("badge-danger")>-1){var l=theme_language("theme_xhred_notifications_packages_updates"),c=$(a).html().replace(/badge-danger/g,"badge-success");localStorage.setItem(v___server_hostname+"-notifications_"+$__id__+"_package_message",JSON.stringify({title:l,time:$__id__,timestamp:$__id__,message:c,readStatus:0,type:t,link:e+"/package-updates/index.cgi?mode=updates"})),slider_mark_group_notifications_read("package_message"),localStorage.setItem(v___server_hostname+"-sysinfo_"+t,a),localStorage.setItem(v___server_hostname+"-sysinfo_package_message_initial",0),notifications(l,c,t)}else"package_message"===t&&localStorage.setItem(v___server_hostname+"-sysinfo_"+t,a);$(a).find("i.badge:first-child").length||slider_mark_group_notifications_read("package_message")}var d=localStorage.getItem(v___server_hostname+"-sysinfo_theme_current_version");if(settings_sysinfo_theme_updates&&(0==localStorage.getItem(v___server_hostname+"-sysinfo_authentic_remote_version")&&localStorage.removeItem(v___server_hostname+"-sysinfo_authentic_remote_version"),d&&localStorage.getItem(v___server_hostname+"-sysinfo_authentic_remote_version")&&"authentic_remote_version"==t&&d';localStorage.setItem(v___server_hostname+"-notifications_"+$__id__+"_authentic_remote_version",JSON.stringify({title:h,time:$__id__,timestamp:$__id__,message:f,readStatus:0,type:t,link:e+"/sysinfo.cgi"})),localStorage.setItem(v___server_hostname+"-sysinfo_"+t,a),localStorage.setItem(v___server_hostname+"-sysinfo_theme_current_version",a),notifications(h,f,t)}if("authentic_theme_version"!==t||Test.strContains(a,"CHANGELOG.md")||slider_mark_group_notifications_read("authentic_remote_version"),settings_sysinfo_csf_updates){var p=localStorage.getItem(v___server_hostname+"-sysinfo_csf_current_version");if(p&&null!=p&&localStorage.getItem(v___server_hostname+"-sysinfo_csf_remote_version")&&"csf_remote_version"==t&&p-1&&1!=localStorage.getItem(v___server_hostname+"-sysinfo_csf_not_running")){var m=theme_language("theme_xhred_notifications_firewall_danger"),v=theme_language("theme_xhred_notifications_firewall_danger_message").replace("%v",moment.unix($__id__).format(config_portable_theme_locale_format_long));localStorage.setItem(v___server_hostname+"-notifications_"+$__id__+"_csf_title",JSON.stringify({title:m,time:$__id__,timestamp:$__id__,message:v,readStatus:0,type:t,link:e+"/csf/index.cgi"})),slider_mark_group_notifications_read("csf_title"),localStorage.setItem(v___server_hostname+"-sysinfo_csf_not_running",1),notifications(m,v,"csf_remote_version")}else a&&a.indexOf("label-danger")===-1&&(slider_mark_group_notifications_read("csf_title"),localStorage.removeItem(v___server_hostname+"-sysinfo_csf_not_running"))}if("csf_deny"==t){var b=JSON.parse(a);$.each(b,function(i,a){var a=a.split("|"),n=a[0],s=a[1],_=a[2],o=a[3],r=(a[4],a[5],a[6],a[7]);if(r=r.replace("*Port Scan*",_&&o?'Port '+o+" scan":"Port scan"),!localStorage.getItem(v___server_hostname+"-allowed_trigger_"+(n+s.replace(/\./g,"0"))+"_csf_deny")){var l=theme_language("theme_xhred_notifications_firewall_warning"),c=r+(_&&o?" ("+_+":"+o+")":"");localStorage.setItem(v___server_hostname+"-notifications_"+(n+s.replace(/\./g,"0"))+"_csf_deny",JSON.stringify({title:l,time:$__id__,timestamp:$__id__,message:c,readStatus:0,type:t,link:e+"/csf/index.cgi"})),localStorage.setItem(v___server_hostname+"-allowed_trigger_"+(n+s.replace(/\./g,"0"))+"_csf_deny",1),notifications(l,c,t)}})}if("cpu_percent"!=t&&"mem_percent"!=t&&"virt_percent"!=t&&"disk_percent"!=t||null!==localStorage.getItem(v___server_hostname+"-sysinfo_"+t+"_seen")&&a>=85&&localStorage.getItem(v___server_hostname+"-sysinfo_"+t+"_seen"),(localStorage.getItem(v___server_hostname+"-sysinfo_cpu_percent_stats")||localStorage.getItem(v___server_hostname+"-sysinfo_mem_percent_stats")||localStorage.getItem(v___server_hostname+"-sysinfo_virt_percent_stats")||localStorage.getItem(v___server_hostname+"-sysinfo_disk_percent_stats"))&&$("#right-side-tabs-sysinfo .graph-container").length){var x=!localStorage.getItem(v___server_hostname+"-sysinfo_"+t+"_stats"),y=$(".info-container .graph-container."+t);x?y.addClass("hidden").next("br").addClass("hidden"):y.removeClass("hidden").next("br").removeClass("hidden"),"cpu_percent"==t&&($("#right-side-tabs-sysinfo .graph-container."+t+" .description").attr("title",localStorage.getItem(v___server_hostname+"-sysinfo_cpu")).text(theme_language("theme_xhred_global_cpu_load")+": "+localStorage.getItem(v___server_hostname+"-sysinfo_cpu_percent_stats")+"% ("+localStorage.getItem(v___server_hostname+"-sysinfo_cpu")+")"),$("#right-side-tabs-sysinfo .graph-container."+t+" .bar").attr("style","width:"+localStorage.getItem(v___server_hostname+"-sysinfo_cpu_percent_stats")+"%")),"mem_percent"==t&&($("#right-side-tabs-sysinfo .graph-container."+t+" .description").attr("title",localStorage.getItem(v___server_hostname+"-sysinfo_mem")).text(theme_language("body_real")+": "+localStorage.getItem(v___server_hostname+"-sysinfo_mem_percent_stats")+"% ("+localStorage.getItem(v___server_hostname+"-sysinfo_mem")+")"),$("#right-side-tabs-sysinfo .graph-container."+t+" .bar").attr("style","width:"+localStorage.getItem(v___server_hostname+"-sysinfo_mem_percent_stats")+"%")),"virt_percent"==t&&($("#right-side-tabs-sysinfo .graph-container."+t+" .description").attr("title",localStorage.getItem(v___server_hostname+"-sysinfo_virt")).text(theme_language("body_virt")+": "+localStorage.getItem(v___server_hostname+"-sysinfo_virt_percent_stats")+"% ("+localStorage.getItem(v___server_hostname+"-sysinfo_virt")+")"),$("#right-side-tabs-sysinfo .graph-container."+t+" .bar").attr("style","width:"+localStorage.getItem(v___server_hostname+"-sysinfo_virt_percent_stats")+"%")),"disk_percent"==t&&($("#right-side-tabs-sysinfo .graph-container."+t+" .description").attr("title",localStorage.getItem(v___server_hostname+"-sysinfo_disk")).text(theme_language("body_disk")+": "+localStorage.getItem(v___server_hostname+"-sysinfo_disk_percent_stats")+"% ("+localStorage.getItem(v___server_hostname+"-sysinfo_disk")+")"),$("#right-side-tabs-sysinfo .graph-container."+t+" .bar").attr("style","width:"+localStorage.getItem(v___server_hostname+"-sysinfo_disk_percent_stats")+"%"))}if($('#right-side-tabs .info-container .info-list-data span[data-data="'+t+'"]').html(a),"package_message"==t&&Core.moduleAvailable("package-updates")){var w=a;$('#right-side-tabs .info-container .info-list-data span[data-data="'+t+'"]').html($(w).html($(w).html().split(",")[0])[0].outerHTML)}if("local_time"==t){var k=$('#right-side-tabs .info-container .info-list-data span[data-data="'+t+'"]'),C=k.find("a").length?k.find("a"):k.find("span");C&&C.length&&C.html(C.next("span").detach());var O=$(".info-container").find("span[data-convertible-timestamp-full]"),o=O.attr("data-convertible-timestamp-full") +;O.html(moment.unix(o).format(config_portable_theme_locale_format_long)),time.tictac(1)}if("cpu_temperature"==t){var T=0;$.each($(a).filter(".badge-cpustatus"),function(e,t){var i,n=parseInt($(this).text().split(":")[1]),s=n,_=$(this).text().indexOf("°C")>-1;i=$(this).text().indexOf("RPM")>-1?HTML.label.rpm(s):HTML.label.temperature(n,_),"bg-warning"!=i&&"bg-danger"!=i||(T=1),$("#right-side-tabs .info-container .badge-drivestatus.badge-cpustatus").length||$('strong[data-stats="cpu"] + br[data-stats="cpu"]').after(a.replace(/
    | /gi,"")),$($("#right-side-tabs .info-container .badge-drivestatus.badge-cpustatus")[e]).html($(this).text()).removeClass(function(e,t){return(t.match(/(^|\s)bg-\S+/g)||[]).join(" ")}).addClass(i+"-dark")}).promise().done(function(){T||"undefined"!=typeof config_custom_force_display_cpu_sensors?$('.info-container [data-stats="cpu"]').removeClass("hidden"):$('.info-container [data-stats="cpu"]').addClass("hidden")})}if("hdd_temperature"==t){var S=0;$.each($(a).filter(".badge-drivestatus:not(.badge-cpustatus)"),function(e,t){var i,n=parseInt($(this).text().split(":")[1]),s=$(this).text().indexOf("°C")>-1;i=HTML.label.temperature(n,s),"bg-warning"!=i&&"bg-danger"!=i||(S=1),$("#right-side-tabs .info-container .badge-drivestatus:not(.badge-cpustatus)").length||$('strong[data-stats="drive"] + br[data-stats="drive"]').after(a.replace(/
    | /gi,"")),$($("#right-side-tabs .info-container .badge-drivestatus:not(.badge-cpustatus)")[e]).html($(this).text()).removeClass(function(e,t){return(t.match(/(^|\s)bg-\S+/g)||[]).join(" ")}).addClass(i+"-dark")}).promise().done(function(){S||"undefined"!=typeof config_custom_force_display_drive_sensors?$('.info-container [data-stats="drive"]').removeClass("hidden"):$('.info-container [data-stats="drive"]').addClass("hidden")})}if("warning_si"==t){var M=$("#right-side-tabs .info-container .warning-list-data");M.html(a.replace(/<(script|link|meta)\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/(script|link|meta)>/gi,"").replace(/type='submit'/g,"formtarget='page' type='submit'").replace(/class='ui_submit/g,"class='ui_submit btn btn-default btn-xs").replace(/ui_form_end_submit" type="button"/g,'ui_form_end_submit" type="submit" formtarget="page"').replace(/ui_form_end_submit/g,"ui_form_end_submit btn-tiny")),"
    "==a&&M.empty()}if("extended_si"==t){var M=$("#right-side-tabs .info-container .extended-list-data"),I=a.replace(/aria-expanded="true"/gi,'aria-expanded="false"').replace(/collapse in/gi,"collapse");opened_tabs=$("#extended_sysinfo .panel .in").map(function(){I=I.replace('data-toggle="collapse" href="#'+this.id+'" aria-expanded="false" aria-controls="'+this.id+'"','data-toggle="collapse" href="#'+this.id+'" aria-expanded="true" aria-controls="'+this.id+'"'),I=I.replace('div id="'+this.id+'" class="panel-collapse collapse"','div id="'+this.id+'" class="panel-collapse collapse in"')}).promise().done(function(){M.html('
    '+I);var e=$("#right-side-tabs .extended-list-data");e.find("div.panel-heading:not(#status_services-status):not(#status-virtual-server):not(#acl_logins-acl):not(#sysinfo-virtual-server):not(#quota-virtual-server):not(#bw-virtual-server)").parent().remove(),$.each(e.find("div.panel-heading .panel-title"),function(){var e=$(this).find("a"),t="true"!=$(this).find("a").attr("aria-expanded")?1:0,i=t?"+":"—";$(this).append(''+i+""),e.text(Convert.strUpFirst($.trim(e.text())))}),e.find(".panel.panel-default").detach().appendTo("#right-side-tabs #extended_sysinfo"),e.find("div.panel-body").find("img").remove(),e.find('input[type="submit"]').addClass("btn btn-default btn-xs"),e.find('input[type="submit"]').parents("form").attr("formtarget","page"),e.find('button[type="button"].ui_submit').addClass("btn btn-default btn-xs"),e.find('button[type="button"].ui_submit').parents("form").attr("formtarget","page"),$("#extended_sysinfo .panel").on("show.bs.collapse",function(){$(this).find(".panel-title-status").removeClass("margined-right-2").text("—")}).on("hide.bs.collapse",function(){$(this).find(".panel-title-status").addClass("margined-right-2").text("+")})})}"collect_interval"==t&&(Test.numeric(a)?settings_side_slider_background_refresh_time=parseFloat(a):settings_side_slider_background_refresh_time=0),$.trim($(".info-list-data").text()).length&&setTimeout(function(){$("#right-side-tabs .is-sysinfo_data").removeClass("hidden"),$("#right-side-tabs .no-sysinfo_data").addClass("hidden")},100)}),setTimeout(function(){slider_check_notifications()},3e3),time.localize()}})}settings_side_slider_enabled&&("number"==typeof iupdateTimer&&clearInterval(iupdateTimer),settings_side_slider_background_refresh_time>0&&(iupdateTimer=setInterval(function(){information_update()},6e4*settings_side_slider_background_refresh_time)))}}function slider_display_notification_badges(){if(settings_side_slider_enabled&&settings_side_slider_notifications_enabled){var e="right-side-tab-notification-asterix",t="faa-ring faa-slow animated-hover",i=$(".right-side-tabs .list-group-item:not(.no-notifications, .opacity-0_3)").length;favicon.badge(i),i>0?($(".right-side-tabs-toggler button i.fa-bell").addClass(t),$(".right-side-tabs-toggler button span.badge").removeClass("hidden").text(i),$("#right-side-tabs ."+e).removeClass("hidden").text(i)):($(".right-side-tabs-toggler button i.fa-bell").removeClass(t),$(".right-side-tabs-toggler button span.badge").addClass("hidden").text(0),$("#right-side-tabs ."+e).addClass("hidden").text(0))}}function slider_check_notifications(){var $current_localData_notifications={};$.each(localStorage,function(e,t){if("string"==typeof e&&e.indexOf("notifications_")>-1&&e.indexOf(v___server_hostname)>-1){var i=e.split("_")[1],a=JSON.parse(t),n=a.title,s=a.time,_=a.timestamp,o=a.message,r=a.readStatus,l=a.type,c=a.link,d=s+"_"+n;"csf_deny"===l&&(d=s+"_"+n.replace(/\W/g,"")+o.replace(/\W/g,"")),$current_localData_notifications[d]=i+"~~~~"+n+"~~~~"+s+"~~~~"+_+"~~~~"+o+"~~~~"+r+"~~~~"+l+"~~~~"+c,$('.list-group-item[id="'+i+'"][data-type="'+l+'"]').length&&$('.list-group-item[id="'+i+'"][data-type="'+l+'"] .list-group-item-heading small').text(moment.unix(s).fromNow())}});var package_message_num=Object.values($current_localData_notifications).filter(function(e){return e.indexOf("package_message")>-1}).length,csf_remote_version_num=Object.values($current_localData_notifications).filter(function(e){return e.indexOf("csf_remote_version")>-1}).length,authentic_remote_version_num=Object.values($current_localData_notifications).filter(function(e){return e.indexOf("authentic_remote_version")>-1}).length,csf_title_num=Object.values($current_localData_notifications).filter(function(e){return e.indexOf("csf_title")>-1}).length,keys=[];for(var key in $current_localData_notifications)$current_localData_notifications.hasOwnProperty(key)&&keys.push(key);$current_localData_notifications_sorted_keys=keys.sort(),$.each($current_localData_notifications_sorted_keys,function(i,v){var vx=$current_localData_notifications[v],$__id__=vx.split("~~~~")[0],$__data__title=vx.split("~~~~")[1],$__data__time=vx.split("~~~~")[2],$__data__timestamp=vx.split("~~~~")[3],$__data__message=vx.split("~~~~")[4],$__data__readStatus=vx.split("~~~~")[5],$__data__type=vx.split("~~~~")[6],$__data__link=vx.split("~~~~")[7];if("package_message"==$__data__type||"csf_remote_version"==$__data__type||"authentic_remote_version"==$__data__type||"csf_title"==$__data__type){var $__num=eval($__data__type+"_num");i+1<$__num&&($__data__readStatus=1)}$('.list-group-item[id="'+$__id__+'"][data-type="'+$__data__type+'"]').length||slider_add_notification($__id__,$__data__title,$__data__time,$__data__timestamp,$__data__message,$__data__readStatus,$__data__type,$__data__link)})}function slider_remove_all_notifications(){$.each(localStorage,function(e,t){"string"==typeof e&&e.indexOf("notifications_")>-1&&e.indexOf(v___server_hostname)>-1&&delete localStorage[e]})}function slider_mark_notification_read(e,t,i,a){var n=JSON.parse(localStorage.getItem(v___server_hostname+"-notifications_"+e+"_"+t));n&&localStorage.setItem(v___server_hostname+"-notifications_"+e+"_"+t,JSON.stringify({title:n.title,time:n.time,timestamp:n.timestamp,message:n.message,readStatus:i,type:n.type,link:n.link})),a&&slider_display_notification_badges()}function slider_mark_group_notifications_read(e){var t="";e&&(t='[data-type="'+e+'"]'),$(".right-side-tabs .list-group-item"+t+":not(.no-notifications)").each(function(){$(this).addClass("opacity-0_3"),slider_mark_notification_read($(this).attr("id"),$(this).data("type"),1,0)}).promise().done(function(){slider_display_notification_badges()})}function slider_add_notification(e,t,i,a,n,s,_,o){$(".right-side-tabs .list-group").prepend(' \t\t\t \t\t\t
    \t\t\t \t\t\t \t\t\t
    '+t+" "+moment.unix(i).fromNow()+"
    \t\t\t "+n+" \t\t\t
    \t\t\t
    \t\t\t"),$(".right-side-tabs-no-notifications").remove(),slider_display_notification_badges(),v___initial_load||slider_add_no_notifications()}function slider_add_no_notifications(){if(0===$(".right-side-tabs .list-group-item").length){var e=theme_language("theme_xhred_notification_none");$(".right-side-tabs .list-group").prepend('
    '+(e?e.toUpperCase():"")+"
    "),$(".right-side-tabs-no-notifications").animate({opacity:"1"},$settings_animation_left_slide_time,function(){})}setTimeout(function(){slider_display_notification_badges()},$settings_animation_left_slide_time)}function fetch_right_pane_favorites(){if("function"==typeof favorites_get){var e=favorites_get(),t=$("#right-side-tabs .no-favorites_data");$("#right-side-tabs .favorites-dcontainer .right_pane_favorites_link, #right-side-tabs .favorites-dcontainer .right_pane_favorites_num").remove(),e.length?($.each(e,function(e,t){$("#right-side-tabs .favorites-dcontainer").append(''+(e+1)+'  '+t.title+"")}),t.addClass("hidden")):t.removeClass("hidden")}}function get_right_panel_sysinfo_data(){$_____________got_rp__sys_dat=1;var e=Core.moduleAvailable("package-updates"),t=Core.moduleAvailable("proc")?"":" pointer-events-none",i=Core.moduleAvailable("disk-usage")||Core.moduleAvailable("quota")?"":" pointer-events-none",a=e?"":' class="hidden"',n=localStorage.getItem(v___server_hostname+"-sysinfo_package_message");return'
    '+theme_language("theme_xhred_notification_no_data").toUpperCase()+"
    "}function editor_html_toolbar(e){var t;return t=[{name:"styles",items:["Font","FontSize","Format"]},{name:"basicstyles",items:["Bold","Italic","Underline","Strike","Subscript","Superscript"]},{name:"colors",items:["TextColor","BGColor"]},{name:"paragraph",items:["JustifyLeft","JustifyCenter","JustifyRight","JustifyBlock","-","NumberedList","BulletedList","-","Blockquote","-","Outdent","Indent","-","BidiLtr","BidiRtl","-","RemoveFormat"]}],"basic"===e?t:[{name:"document",items:["Source","-","Preview","Print"]},{name:"clipboard",items:["Undo","Redo"]},{name:"editing",items:["Find","-","Emojione"]},{name:"links",items:["Link","Unlink","Anchor"]},{name:"insert",items:["InsertPre","CreateDiv","-","Table","base64image","HorizontalRule","PageBreak","Iframe"]},{name:"forms",items:["Form","Checkbox","Radio","TextField","Textarea","Select","Button","ImageButton","HiddenField"]},{name:"tools",items:["ShowBlocks"]},"/"].concat(t)}function editor_html_init(e,t){function i(e){v___theme_night_mode_enabled||v___theme_night_mode?($(e).find("body").addClass("nightRider"),setTimeout(function(){$(e).find("body").addClass("nightRider")},0)):"basic"!==t&&"monokai"===settings_cm_editor_palette&&($(e).find("body").addClass("dark"),setTimeout(function(){$(e).find("body").addClass("dark")},0))}function a(){CKEDITOR.config.extraPlugins="emojione",CKEDITOR.config.dialog_noConfirmCancel=!0,CKEDITOR.config.toolbar=editor_html_toolbar(t);var a=get_server_data("language-full"),_=$(window).height()/e[1];CKEDITOR.replace(n,{language:a,width:"100%",baseFloatZIndex:20001,height:s?e[1]:_}),CKEDITOR.instances[n].on("instanceReady",function(t){function a(e){setTimeout(function(){i(e)},10),setTimeout(function(){i(e)},80),setTimeout(function(){i(e)},100),setTimeout(function(){i(e)},200),setTimeout(function(){i()},300)}t.editor.on("panelShow",function(e){v___theme_night_mode_enabled||v___theme_night_mode?$(e.data.element.$.children[0]).contents().find("body").addClass("nightRider"):$(e.data.element.$.children[0]).contents().find("body").removeClass("nightRider")}),t.editor.on("afterCommandExec",function(e){"source"===e.data.name&&1===e.data.command.previousState&&a(e.editor.document.$)}),a(t.editor.document.$),CKEDITOR.instances[n].resize("100%",s?e[1]:_,!1)}),CKEDITOR.instances[n].on("instanceReady",function(e){$(e.editor.document.$).click(function(){var t=$(e.sender.container.$).parents(".jsPanel").attr("data-uid");t&&t.length&&parent.window["jsp_"+parseInt(t.replace("jsp_",""))].front()}),e.editor.on("dialogShow",function(e){$(e.data._.element.$).find(".cke_dialog_ui_checkbox").removeClass().addClass("awcheckbox awobject"),$(e.data._.element.$).find(".cke_dialog_ui_checkbox_input").removeClass().addClass("iawobject").next("label").addClass("lawobject"),e.data._.name})}),e[2]===!0&&CKEDITOR.instances[n].on("change",function(t){this.updateElement(),set_onbeforeunload_status(1,0);var i=parseInt(e[3].replace("html_editor_",""))-1;$("#jsPanel-"+i).find("._filemanager_file_editor_save").addClass("text-danger __locked__"),$("#jsPanel-"+i).find("select[data-encoding]").addClass("pointer-events-none")}),"edit_web"===e[3]&&setTimeout(function(){$("hr + b").removeClass("hidden"),$(".__tmp__spinner").remove()},100)}var n,s=!Test.string(e[0]);s?e[3]:e[0];s?(n="__hm_editor_"+e[3],e[0].attr("id",n)):n=e[0],"object"==typeof CKEDITOR?a():(progress.start(),CKEDITOR_BASEPATH=v___server_js_path+"/ckeditor/",$.getScript(v___server_js_path+"/ckeditor/ckeditor.js?"+v___theme_version_plain,function(e,t,i){a(),progress.end()}))}function table_data_init(e,t,i,a){function n(e){e.DataTable({order:[],aaSorting:[],bDestroy:!0,bPaginate:!1,columnDefs:[a],bInfo:!1,bStateSave:t,destroy:!0,dom:i?"Rlfrtip":"f",oLanguage:{sEmptyTable:theme_language("theme_xhred_datatable_semptytable"),sInfo:theme_language("theme_xhred_datatable_sinfo"),sInfoEmpty:theme_language("theme_xhred_datatable_sinfoempty"),sLengthMenu:theme_language("theme_xhred_datatable_slengthmenu"),sLoadingRecords:theme_language("theme_xhred_datatable_sloadingrecords"),sProcessing:theme_language("theme_xhred_datatable_sprocessing"),sSearch:" ",sZeroRecords:theme_language("theme_xhred_datatable_szerorecords")},initComplete:function(e){$(".dataTables_filter").find('input[type="search"]').attr("placeholder",theme_language("theme_xhred_datatable_filter"))}})}if(void 0===t&&(t=!1),void 0===i&&(i=!1),void 0===a&&(a=!1),Core.curModuleFile("virtual-server","index.cgi")&&(t=!0),$.fn.dataTableExt.sErrMode="throw",Core.curModuleFile("virtual-server","list_users.cgi")){var s=$(".table thead tr th").filter(function(){return $(this).text().match(/Last login|Dernière Connexion|Siste innlogging|Letzer Login|Laatste login/)}).index();s>-1?$.each(e.find("tbody tr td:nth-child("+(s+1)+")"),function(e,t){var i=$(this).text();/Never|Jamais|Aldri|Niemals|Nigdy|Nooit/i.test(i)&&(i=0),$(this).attr("data-sort",i)}).promise().done(function(){n(e)}):n(e)}else n(e)}function favorites_check(){return $("#favorites-menu .favorites-menu-content li:not(.exclude)").length}function favorites_get(){var e=[];return $.each($("#favorites-menu .favorites-menu-content li:not(.exclude) a"),function(){var t=$(this).text(),i=$(this).attr("href"),a=$(this).find(".wbm-sm").attr("data-product");favorite={},favorite.link=navigation_trigger(i,1),favorite.title=t.trim(),favorite.icon="virtualmin"==a?a+"":a,e.push(favorite)}),e}function favorites_init(){"function"==typeof sortable&&$("#favorites-menu > div > nav > ul").length&&sortable("#favorites-menu > div > nav > ul",{items:":not(.favorites-title)",forcePlaceholderSize:!1}).on("sortupdate",function(){favorites_save()})}function favorites_save(){$.ajax({type:"POST",url:v___location_prefix+"/settings-favorites_save.cgi",data:{favorites:'{"favorites":'+JSON.stringify(favorites_get(),null,4).replace(/\\n/g,"\\n").replace(/\\'/g,"\\'").replace(/\\"/g,'\\"').replace(/\\&/g,"\\&").replace(/\\r/g,"\\r").replace(/\\t/g,"\\t").replace(/\\b/g,"\\b").replace(/\\f/g,"\\f")+"}"},success:function(e){if(Test.strContains(e,v___page_signin_form))return void(v___available_session=0);fetch_right_pane_favorites()},error:function(e){}}),sortable("#favorites-menu > div > nav > ul")}function favorites_add(e,t,i){var a="favorites-menu .favorites-menu-content";0===favorites_check()&&($("#"+a+" li.favorites-no-message").addClass("hidden"),$("#"+a+" .favorites-title sup a").removeClass("hidden")),$("#"+a+" li.favorites-title").after('')}function favorites_empty(){var e="favorites-menu .favorites-menu-content";0===favorites_check()&&($("#"+e+" li.favorites-no-message").removeClass("hidden"),$("#"+e+" .favorites-title sup a").addClass("hidden"))}function favorites_remove(e){$("#favorites-menu .favorites-menu-content").find('a[href="'+e+'"]').parent("li").remove(),$("#headln2c > .favorites, .xcustom-favorites").addClass("fa-star-o").removeClass("fa-star text-warning"),favorites_empty(),favorites_save()}function favorites_detect(){var e=$("#favorites-menu .favorites-menu-content li:not(.exclude) a").map(function(e,t){return navigation_trigger($(t).attr("href"),1)}).toArray(),t=$("#headln2c > .favorites, .xcustom-favorites"),i=navigation_trigger(URI(v___location).resource(),1),a=i+"index.cgi";$.inArray(i,e)>-1||$.inArray(a,e)>-1?t.addClass("fa-star").removeClass("fa-star-o"):t.removeClass("fa-star").addClass("fa-star-o")}function page_sysinfo_sensor_update_label(){var e=$("#system-status .badge-drivestatus");e.length&&$.each(e,function(e,t){var i,a=$(this).text(),n=parseInt(a.split(":")[1]),s=n,_=a.indexOf("°C")>-1;i=a.indexOf("RPM")>-1?HTML.label.rpm(s):HTML.label.temperature(n,_),Test.string(i)&&$(this).removeClass(function(e,t){return(t.match(/(^|\s)bg-\S+/g)||[]).join(" ")}).addClass(i)})}function page_table_rows_control(){$("body").attr("class")&&$("body").attr("class").indexOf(v___module_file_manager)>-1||$.each($(".ui_checked_columns"),function(e,t){!$(t).find("a[href]")||Test.strContains(v___location_path,"init/edit_")||$("body").hasClass("servers")||$(this).hasClass("selectable")||$(t).addClass("cursor-pointer").find("td").addClass("cursor-pointer").find("label").addClass("cursor-pointer").find("tt").addClass("cursor-pointer"),$(t).find("td:not(.selectable)").click(function(e){if($(e.target).is(".awobject, .iawobject, .lawobject, .awcheckbox, .awradio, .ui_link, .btn")){if($(e.target).is(".ui_link, .btn")){e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation();var i=$(e.target).attr("href")||$(e.target).find("a").attr("href");if(i&&i.length>1){var a=$(e.target)||$(e.target).find("a");Core.linkSameOrigin(a)?get_pjax_content(i):theme_open_new_tab(i,1)}return}}else if($(t).find("a[href]")&&!$("body").hasClass("servers")){var n=$(t).find("a[href]")[0],s=($(this).parents("tr.ui_checked_columns"),$(e.target).find('input[type="checkbox"]:not(":disabled")')),_=s.length;!n||$(this).find("a").attr("href")!==$(n).attr("href")&&void 0!==$(this).find("a").attr("href")||$(e.target).is("select, input, .awobject, .iawobject, .lawobject, .awcheckbox, .awradio")||0!==$(this).parent("tr").find('a[href*="download.cgi"]').length||($(n).attr("target")?(e.preventDefault(),!_&&window.open($(n).attr("href"),$(n).attr("target"))):e.originalEvent&&(e.preventDefault(),get_pjax_content($(n).attr("href")))),_&&get_pjax_content($(n).attr("href"))}}),$(t).find("td").contextmenu(function(e){var t=$(this).parents("tr.ui_checked_columns");e.preventDefault(),($(this).parents("tr").find('input[type="checkbox"]:first').length&&0===$(this).parents("tr").find('input[type="checkbox"][disabled]').length||$(this).parents("tr").find('input[type="checkbox"][disabled]').length&&$(this).parents("tr").find("input").length>1)&&(t.find('input[type="checkbox"]:first').is(":checked")?t.removeClass("hl-aw"):t.addClass("hl-aw"),"function"==typeof __r____changed&&__r____changed(),t.find('input[type="checkbox"]:first').trigger("click"))})})}function page_radios_evolve(){"conf"!=get_server_data("post")&&$.each($('.container-fluid input[type="radio"]:not(.iawobject), .container-fluid input[type="checkbox"]:not(.iawobject)'),function(e,t){if(1!==$(this).data("xdn")&&1!==$(this).hasClass("_select-unselect_")){$(this)[0]&&($___text=$(this)[0].nextSibling);var i=$(this).next('input:not([type="radio"], [type="checkbox"], [type="hidden"]), select, textarea'),a=$___text&&$___text.nodeValue&&$.trim($___text.nodeValue).length>1,n=$.trim((a?$___text.nodeValue:" ").replace(/
    /g,"<hr>").replace(/
    /g,"<header>")),n=n.length&&" "!=n?n+"  ":n,s=$(this).attr("type").toLowerCase(),_=$(this).parents(".tab-pane").attr("id"),_=_&&_.length?_.replace(/[^a-zA-Z0-9_-]+/g,""):0,o=Math.floor(9e4*Math.random())+1e4,r=$(this).attr("id"),l=("eid_"+(r&&$(this).attr("name")?$(this).attr("name"):o)+"_"+o+"_"+e+"_"+_).replace(/[^a-zA-Z0-9_-]+/g,"_"),l=r&&1===$("body").find("#"+r.replace(/[^a-zA-Z0-9_-]+/g,"_")).length?r.replace(/[^a-zA-Z0-9_-]+/g,"_"):l;if(0===$(this).next("label").length&&0===i.length&&a){$(this).addClass("iawobject");var c='for="'+l+'"';$(this).attr("id",l),$($___text).wrap('"),$($___text).remove(),$(this).next("label").addBack().wrapAll(''),$(this).data("xdn",1)}else if(0!==i.length||0!==$(this).next("label").length||1!==$(this).prev("label").length||a)0!==i.length||0!==$(this).next("label").length||a||($(this).addClass("iawobject"),$(this).attr("id",l),$(this).after(''),$(this).next("label").addBack().wrapAll(''),$(this).data("xdn",1));else{var d=$(this).prev("label"),h=d.text();$(this).addClass("iawobject"),$(this).attr("id",l),$(this).after('"),$(this).next("label").addBack().wrapAll(''),$(this).removeClass("form-control").css("width","initial"),d.remove(),$(this).data("xdn",1)}1===i.length&&0===$(this).next("label").length&&($(this).addClass("iawobject"),$(this).attr("id",l),$(this).after('"),$(this).next("label").addBack().wrapAll(''),a&&$($___text).remove(),$(this).data("xdn",1))}})}function chooser_get(e){$(".mppopup .cspinner.hidden").removeClass("hidden"),$.ajax({type:"POST",url:e,data:!1,dataType:"text",success:function(e){if(Test.strContains(e,v___page_signin_form))return void(v___available_session=0);var t=e.replace(/<(!doctype|script|link|meta)\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/(script|link|meta)>/gi,"").replace(/<\/body>|<\/html>/gi,""),i=$(t).filter(".table").html(),a=$(t).filter(".table").prev("b").html();a=chooser_breadcrumbs(a),$(".mppopup .modal-body").html(a+''+i+"
    "),$v__mpp__g_gp=0,$(".mppopup_filter_input").focus(),$(".mppopup_filter_input").val("")}})}function chooser_get_link(e){return e.replace(/&file.*&chroot/,"&file="+Convert.uriEncodeComponent(($v__mpp__g_ol+"/").replace(/\/\/+/g,"/").replace(/:\//g,"://"))+"&chroot")}function chooser_get_target(e,t){var i=e.prev('input[type="text"], input[name]');return i.is("input")||e.prev("textarea").length||e.prev("br").prev("textarea").length?i.length||i.is("input")||!t||(i=e.prev("textarea"),i.length||(i=e.prev("br").prev("textarea"))):i=e.prev("span:not(.awradio)").find('input[type="text"]'),i}function chooser_control(e,t,i){if(i){if($(".refInputData").is("textarea")){var a=$(".refInputData");a.val()?a.val(a.val()+"\n"+e.replace(/\/\/+/g,"/").replace(/:\//g,"://")):a.val(e.replace(/\/\/+/g,"/").replace(/:\//g,"://"))}else $(".refInputData").val(e.replace(/\/\/+/g,"/").replace(/:\//g,"://"));var n=$(".refInputData").parent("td").prev("td").find('input[type="radio"]'),s=$(".refInputData").parent("span").prev("span").find('input[type="radio"]'),_=$(".refInputData").prev("span").find('input[type="radio"]'),o=$(".refInputData").prev("select").find('option[value="*"]');s.length?s.trigger("click"):_.length?_.trigger("click"):o.length?o.parent("select").val("*").trigger("change"):n.trigger("click")}t&&$("body .mppopup").modal("hide")}function chooser_breadcrumbs(e){e=$.url(e).attr("path").replace(/\/$/g,"").split("/");var t="";return $.each(e,function(e,i){t+=""===i?''+(0==get_access_level()?'':'')+"\n":''+i+"\n"}),''}function popover_visibility_position(e){$.each($(".module-help"),function(t,i){e.is($(this))?$(this).css({"z-index":214748364+t,opacity:1}):$(this).css({"z-index":214748364-t,opacity:.85})})}function page_render(e){if(update_navigation_module_name(),e&&"undefined"!=typeof __cm_editor_static&&(__cm_editor_static.toTextArea(),$('button[data-form="submitter"]').unwrap(),$('.CodeMirror, button[data-form="submitter"] + button, .-helper.__helper').remove()),function(){var e=$("body");e.off("mousedown.cm1 keydown.cm1"),e.undelegate('button[type="submit"]:not(.disabled)',"click.cm"),e.undelegate('button[data-form="submitter"]:not(.disabled)',"click.cm")}(),$("body").attr("style",get_server_data("style")),$.each($('select[onchange="form.submit()"]'),function(){$(this).removeAttr("onchange").addClass("onchange_form_submit_triggger")}),editor_init_check()){var t=$('select[name="file"]:first, select[name="manual"]:first');t.addClass("onchange_form_submit_triggger"), +t.next("button.ui_form_end_submit").addClass("hidden")}time.localize();var a=theme_language("theme_xhred_title_language_locale"),n=Core.curModule("language"),s=Core.curModule("change-user"),_=Core.curModuleFile("webmin","edit_lang.cgi");if(Core.curModule("webmin")){var o=$('.icons-container a[href*="edit_lang.cgi"]'),r=$('.small-icons-container a[href*="edit_lang.cgi"]'),l=$('a[href*="edit_lang.cgi"] p > .fa-angle-right');if(o.length){var c=o.find("img").detach();o.text(a).prepend(c,"
    ")}else r.length?(r.find(".hidden").text(a),r.parent().attr("title",a)):l.length&&l.parent().html('  '+a)}if((_||s||n)&&!e){var d=$('.container-fluid form select[name="lang"]'),h=n?d.next(".ui_form_end_buttons").find("tbody"):d.parents("tr").first().parent("tbody"),f=h.parents("form").first(),p=n?h:h.find('select[name="lang"]').parents("tr").first();s||$("span[data-main_title]").text(a);var g=' '+theme_language(s?"theme_xhred_title_webmin_ui_locale":"theme_xhred_title_locale_config")+(n?":   ":"")+' '+theme_language(s?"theme_xhred_title_locale_config_format_ui":"theme_xhred_title_locale_config_format")+' '+(n?"    ":"")+" "+theme_language("theme_xhred_title_locale_lang_based")+'    '+theme_language("theme_xhred_title_locale_full")+'  `LLLL`

    "+theme_language("theme_xhred_global_output_example")+": "+moment().format("LLLL")+'

    ">   '+theme_language("theme_xhred_title_locale_long")+'  `LL`

    "+theme_language("theme_xhred_global_output_example")+": "+moment().format("LL")+'

    ">
     
    '+theme_language("theme_xhred_title_locale_short")+'  `L`

    "+theme_language("theme_xhred_global_output_example")+": "+moment().format("L")+'

    ">
    ';n?p.prepend(g):p.after(g),$.ajax({type:"GET",url:v___location_prefix+"/index.cgi/?xhr-get_theme_locale_languages=1",data:!1,dataType:"text",async:v___available_navigation,success:function(e){$('select[data-select="locales"]').replaceWith(e),$('#config_portable_theme_locale_languages option[value="ru-su"]').remove();var t='input[id*="config_portable_theme_locale_language"], select[name="config_portable_theme_locale_languages"], input[name="config_portable_theme_locale_format_full"], input[name="config_portable_theme_locale_format_long"], input[name="config_portable_theme_locale_format_short"]',i=$(t);$(i).on("change keyup focus",function(e){var t=$(this).attr("name"),i=$(this).parent(),a=i.data("title"),n=$('select[name="config_portable_theme_locale_languages"]').val();t.indexOf("theme_locale_format_")>-1&&i.attr("title",a.replace(/g'>(.*)<\/i>/g,"g'>"+(n?moment().locale(n).format($(this).val()):moment().format($(this).val()))+"")).tooltip("fixTitle").tooltip("show");var s=$("._locale_config");"config_portable_theme_locale_language"===t&&"1"!=$(this).val()?"focus"!=e.type&&s.addClass("hidden"):"focus"!=e.type&&s.removeClass("hidden")}),$(f).on("submit",function(){$.each($(t.replace('locale_language"]','locale_language"]:checked')),function(e,t){var i=$(this).attr("name"),a=$(this).val();"config_portable_theme_locale_languages"===i&&""===a&&(a=get_server_data("language-full")),localStorage.setItem(v___server_hostname+"-"+i,a),window[i]=a}).promise().done(function(){var e=f.find('select[name="lang"]').val();if(e.indexOf(".")>-1&&(e=e.split(".")[0]),s&&"1"==f.find('[name="lang_def"]:checked').val()){var t=$('[name="lang_def"][value="1"]').next("label").text().match(/\(([^)]+)\)/),t=t&&t[0]&&t[1]?t[1]:get_server_data("language-full");t.indexOf(".")>-1&&(t=t.split(".")[0]),e=t}moment.locale(config_portable_theme_locale_language&&"0"!=config_portable_theme_locale_language?config_portable_theme_locale_languages:e),theme_config("save"),setTimeout(function(){navigation_update()},2e3)})})}})}v___available_navigation&&Core.curModule("tunnel")&&$("form").on("submit",function(e){var t=$(quirks.active_element());e.preventDefault(),e.stopPropagation(),$.ajax({type:$(this).attr("method")?"GET":"POST",url:v___location_prefix+"/"+v___module+"/"+$(this).attr("action"),data:get_form_data($(this)),dataType:"text",complete:function(e){if(Test.strContains(e,v___page_signin_form))return void(v___available_session=0);theme_open_new_tab(this.url),t.removeClass("disabled").find("i").removeClass("invisible").next(".cspinner_container").remove()}})}),check_location_resource("/config.cgi?tunnel")&&$('table table[width="100%"] tr:first-child').addClass("hidden"),$.each($('tr td:last-child a:contains("..")'),function(){v___location_path==v___location_prefix+"/virtual-server/list_databases.cgi"&&$(this).html($(this).text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn f__lnk_t_btn-el btn-transparent btn-link-bordered btn-xxs margined-top--3-5").removeClass("ui_link")}),0==get_access_level()&&v___available_navigation&&!e&&$("#headln2c").prepend(' '),favorites_empty(),favorites_detect(),$(".switch-toggle").find('label[for="open_thirdlane"]').length&&$('.switch-toggle input:not([id="open_webmin"])').each(function(){$(this).removeAttr("checked")}).promise().done(function(){$("#open_webmin").prop("checked",!0)}),v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"init/"&&$("table.table tbody tr").addClass("ui_checked_columns"),page_table_rows_control(),!e&&page_radios_evolve();$('.ui_checked_columns td.ui_checked_checkbox input[type="checkbox"]:checked:not(disabled)').parents("tr.ui_checked_columns").addClass("hl-aw");if($("body").hasClass("servers")&&$('form[action="delete_servs.cgi"] a.icon_link, form[action="delete_servs.cgi"] a.ui_link, form[action="delete_servs.cgi"] .col-xs-1').on("click",function(e){if($(e.target).is(".gl-icon-select"))return void(v___available_navigation?$(this).trigger("contextmenu"):$(this).parents(".gl-icon-container").trigger("contextmenu"));var t=v___location_href+$(this).attr("href"),i=$(this).attr("href");$(this);i&&i.indexOf("edit_serv.cgi")>-1||i&&i.indexOf("logout.cgi")>-1?void 0!==e.originalEvent&&$.pjax.click(e,{timeout:0,push:get_pjax_push(),type:get_pjax_type(),container:"[data-dcontainer]",fragment:"[data-dcontainer]"}):i&&i.indexOf("://")===-1?open(navigation_trigger(t,1)):open(i),e.preventDefault(),e.stopPropagation()}),Core.curModule("servers")&&$.each($('a[href*="link.cgi"]'),function(){var e=$(this).attr("href");e&&e.match(/(link.cgi\/\d+)/)&&$(this).attr("target","_blank")}),v___location_path!=v___location_prefix+"/apache/edit_global.cgi"&&v___location_path!=v___location_prefix+"/apache/edit_virt.cgi"&&v___location_path!=v___location_prefix+"/apache/edit_dir.cgi"||$.each($(".ui_opt_textbox.form-control"),function(){$(this).parent("span").next("button.btn.btn-default.chooser_button").length>0&&$(this).css("margin-right","4px")}),!e){$(".opener_container").length&&$.each($(".opener_container"),function(){$(this).find(".opener_shown").is(":visible")&&$(this).parent("tr").prev("tr").find("td a:nth-child(1)").addClass("opener_container_opened").removeClass("opener_container_closed")}),$(".opener_shown").length>0&&$(".opener_trigger").length>0&&($(".panel-body .ui_form .table tbody tr").removeClass("thead"),$(".opener_trigger").parents("table.table").addClass("opener_table_style"),$(".opener_trigger").parents("tr").addClass("_c__op_r").attr("style","border: 0 !important"),$(".opener_trigger").parent("td").addClass("_c__op_d"),$(".opener_trigger").parent("td").find("a").addClass("link_hover_effect link_hover_effect_style_extra"));$('a[id*="opener"][id$="_restore"]').parent().is("p")&&($('a[id*="opener"][id$="_restore"]').next("a").parent("p").replaceTagName("div"),$('a[id*="opener"][id$="_restore"]').next("a").removeClass().addClass("opener_extra_container_a_style link_hover_effect").parent("div").addClass("opener_extra_container opener_extra_container_style margined-top-10"),$('a[id*="opener"][id$="_restore"]').remove()),$('a[href^="javascript:hidden_opener"]:not(".opener_trigger")').length>0&&($('a[href^="javascript:hidden_opener"]:not(".opener_trigger")').each(function(e,t){var i=!!(v___location_path==v___location_prefix+"/virtual-server/backup_form.cgi"&&v___location_href&&v___location_href.indexOf("?sched=")>-1);if($(this).find("img").length>0&&$(this).remove(),$(this).css("border-bottom","0"),$(this).parents("table.table").addClass("opener_table_style_small"),$(this).parent("td").addClass("opener_table_cell_style_small"),i||$(this).parent("td").addClass("opener_table_cell_style_small opener_table_cell_style_small_exclusion_border_top"),$(this).parent("td").find("a").addClass("link_hover_effect link_hover_effect_style"),$(this).parent().is(".panel-body")||$(this).parent().is(".ui_form")){var a=$(this),n=a.parent().is(".panel-body")?".panel-body":".ui_form";a.parent(n).find('a[href^="javascript:hidden_opener"]:eq(1)').wrapAll('
    '),Core.curModuleFile("bind8","edit_zonekey.cgi")&&a.parent(n).find('a[href^="javascript:hidden_opener"]:eq('+(e+1)+")").wrapAll('
    '),a.parent('.panel-body > a[href^="javascript:hidden_opener"]:first-child').remove();var s=a.parent(n).find(".opener_extra_container");$(s).next("br").remove(),$(s).addClass("opener_extra_container_style"),$(s).find("a").addClass("opener_extra_container_a_style link_hover_effect"),$(s).next(".opener_hidden").attr("style","padding:8px")}}),$.each($(".opener_hidden"),function(){$(this).css("display","none")})),$("a.opener_trigger").each(function(){$(this).parent("td").css("text-align","left")}),$('form[action*="seen_newfeatures.cgi"]').each(function(){$(this).parents("table.table-striped").next(".ui_form_end_buttons").css("margin-top","14px")}),$("#tall_0").before("
    "),$(".opener_container").each(function(e,t){$(this).find("div").hasClass("opener_hidden")?$(this).hide():$(this).show()}),$.each($("div.barchart"),function(){var e=$(this).find('img[src*="red.gif"]'),t=$(this).parent("td").contents().filter(function(){return 3==this.nodeType}).text();e&&e.attr("width")&&$(this).parent("td").html('
    '+t+'
    '+e.attr("width")+"
    ")}),$('.panel-body > form > table > tbody > tr > td:has(input[type="submit"])').parents("table.table-hardcoded > tbody > tr").css("border","none").parents("table").css("margin-top","20px"),$('.panel-body > form > table > tbody > tr > td:has(input[type="submit"])').parents("table.table-hardcoded > tbody").css("border","none"),$('.ui_grid_table > tbody > tr.ui_grid_row > td:has(button[type="submit"])').parents("table.ui_grid_table").css("border","none"),$("form.ui_form > table label.radio, form.ui_form > table label.checkbox").each(function(){var e=$(this),t=e.find("i.fa"),i=e.find("i.fa").text().trim(),a=e.text().trim();0===i.length&&0===a.length&&t.parent("label").remove()})}if(v___location_path&&(v___location_path.indexOf("/webmin/edit_themes.cgi")>-1||v___location_path_lead_unslashed==v___location_prefix_unslashed_trail_slashed+"settings-user.cgi")){v___location_path_lead_unslashed==v___location_prefix_unslashed_trail_slashed+"settings-user.cgi"&&navigation_clear();var u='form[action*="settings.cgi"] select, form[action*="save_config.cgi"] select, form[action*="settings.cgi"] input, form[action*="save_config.cgi"] input';$("body").undelegate(u,"change"),$("body").on("change",u,function(e){var t=$(this).val();if("true"==t||"false"==t){if("true"==t)var i=!0;else if("false"==t)var i=!1}else var i=t;if(window[$(this).attr("name")]=Test.numeric(i)?parseFloat(i):i,void 0!==e.originalEvent)if(v___initial_load&&"settings-user.cgi"!==v___location_file)v___initial_load=0;else{var a='input[name="settings_side_slider_enabled"]';(0!=Core.moduleAvailable("status")&&$(e.target).is(a)||!$(e.target).is(a))&&theme_settings_controls(1)}});var m='form[action*="settings.cgi"] input, form[action*="save_config.cgi"] input';$("body").undelegate(m,"keydown"),$("body").on("keydown",m,function(e){void 0!==e.originalEvent&&theme_settings_controls(1)}),v___location_path_lead_unslashed==v___location_prefix_unslashed_trail_slashed+"settings-user.cgi"&&$('button[type="button"][name="save_user"]').on("click",function(e){e.preventDefault(),e.stopPropagation(),theme_config("save"),navigation_render_start(),spinnerfy_buttons($(this),[-.5,-25,"small",750]),setTimeout(function(){navigation_update()},1400)}),$(function(){function t(){$("body").undelegate("#atrestore:not(.disabled)","click"),$("#atrestore:not(.disabled)").off("click.confirm"),$("#atrestore:not(.disabled)").confirmation({classNameRemove:"btn-default"},function(){set_onbeforeunload_status(0,0),$(this).off();var e=$(this);e.hasClass("btn-inverse")||setTimeout(function(){spinnerfy_buttons(e,[1.5,-33,"small",!1]);var t=$(".ui_form").serialize();$.ajax({type:"POST",url:v___location_prefix+"/index.cgi?xhr-settings=1&restore=1",data:t,success:function(e){if(Test.strContains(e,v___page_signin_form))return void(v___available_session=0);theme_reload()},error:function(t){e.addClass("btn-danger").removeClass("btn-default btn-inverse opacity-0_5")}})},0)})}Core.moduleAvailable("webmin")&&!e&&($(".container-fluid .nav.nav-tabs").prepend('
  • '),$(".container-fluid .tab-pane").first().before('
    '),$('.container-fluid .nav-tabs a[href="#atsettings"]').tab("show")),e||$.ajax({type:"GET",url:v___location_prefix+"/index.cgi/?xhr-settings=1",data:!1,dataType:"text",success:function(e){function i(e){void 0===e&&(e=$('input[name="settings_right_hide_table_icons"]:checked'));var t=["settings_right_small_table_icons","settings_right_animate_table_icons","settings_right_grayscaled_table_icons"];"true"==e.val()?$.each(t,function(e,t){$('input[name="'+t+'"]').prop("disabled",!0),$('input[name="'+t+'"]').parent(".aradio").addClass("disabled")}):$.each(t,function(e,t){$('input[name="'+t+'"]').prop("disabled",!1),$('input[name="'+t+'"]').parent(".aradio").removeClass("disabled")})}function a(e){void 0===e&&(e=$('input[name="settings_hotkeys_active"]:checked'));var t=["settings_hotkey_custom_1","settings_hotkey_custom_2","settings_hotkey_custom_3","settings_hotkey_custom_4","settings_hotkey_custom_5","settings_hotkey_custom_6","settings_hotkey_custom_7","settings_hotkey_custom_8","settings_hotkey_custom_9","settings_hotkey_toggle_modifier","settings_hotkey_toggle_key_webmin","settings_hotkey_toggle_key_virtualmin","settings_hotkey_toggle_key_cloudmin","settings_hotkey_toggle_key_usermin","settings_hotkey_toggle_key_webmail","settings_hotkey_shell","settings_hotkey_focus_search","settings_hotkey_toggle_slider","settings_hotkey_reload","settings_hotkey_reload","settings_hotkey_toggle_key_night_mode","settings_hotkey_sysinfo","settings_hotkey_favorites"];"false"==e.val()?$.each(t,function(e,t){$('input[name="'+t+'"], select[name="'+t+'"]').prop("disabled",!0)}):$.each(t,function(e,t){$('input[name="'+t+'"], select[name="'+t+'"]').prop("disabled",!1)})}function n(e){void 0===e&&(e=$('input[name="settings_side_slider_enabled"]:checked'));var t=["settings_side_slider_palette","settings_side_slider_fixed","settings_side_slider_fixed_toggle","settings_side_slider_sysinfo_enabled","settings_side_slider_notifications_enabled","settings_side_slider_favorites_enabled"];"false"==e.val()?$.each(t,function(e,t){"settings_side_slider_fixed"!=t&&"settings_side_slider_fixed_toggle"!=t||$('input[name="settings_side_slider_fixed"][value="false"], input[name="settings_side_slider_fixed_toggle"][value="false"]').trigger("click"),setTimeout(function(){$('input[name="'+t+'"], select[name="'+t+'"]').prop("disabled",!0).parent(".aradio").addClass("disabled")},10)}):$.each(t,function(e,t){("settings_side_slider_fixed"!=t||"settings_side_slider_fixed"==t&&"true"!=$('input[name="settings_navigation_always_collapse"]:checked').val())&&("settings_side_slider_fixed_toggle"!=t||"settings_side_slider_fixed_toggle"==t&&"true"!=$('input[name="settings_navigation_always_collapse"]:checked').val())&&$('input[name="'+t+'"], select[name="'+t+'"]').prop("disabled",!1).parent(".aradio").removeClass("disabled")})}function s(e){void 0===e&&(e=$('input[name="settings_sysinfo_real_time_status"]:checked'));var t=["settings_sysinfo_real_time_timeout"];"true"==e.val()?$.each(t,function(e,t){$('input[name="'+t+'"]').prop("disabled",!1).removeClass("disabled")}):$.each(t,function(e,t){$('input[name="'+t+'"]').prop("disabled",!0).addClass("disabled")})}function _(e){void 0===e&&(e=$('input[name="settings_sysinfo_easypie_charts"]:checked'));var t=["settings_sysinfo_easypie_charts_size","settings_sysinfo_easypie_charts_width","settings_sysinfo_easypie_charts_scale"];"true"==e.val()?$.each(t,function(e,t){$('input[name="'+t+'"]').prop("disabled",!1).removeClass("disabled")}):$.each(t,function(e,t){$('input[name="'+t+'"]').prop("disabled",!0).addClass("disabled")})}function o(e){void 0===e&&(e=$('input[name="settings_sysinfo_theme_updates"]:checked'));var t=["settings_sysinfo_theme_patched_updates"];"true"==e.val()?$.each(t,function(e,t){$('input[name="'+t+'"]').prop("disabled",!1).removeClass("disabled")}):($('input[name="settings_sysinfo_theme_patched_updates"][value="false"]').trigger("click"),$.each(t,function(e,t){$('input[name="'+t+'"]').prop("disabled",!0).addClass("disabled")}))}function r(e){void 0===e&&(e=$('input[name="settings_navigation_always_collapse"]:checked'));var t=["settings_side_slider_fixed","settings_side_slider_fixed_toggle","settings_leftmenu_width"];"true"==e.val()?(Core.var.slider_pinned=-1,$.each(t,function(e,t){"settings_side_slider_fixed"!=t&&"settings_side_slider_fixed_toggle"!=t||$('input[name="settings_side_slider_fixed"][value="false"], input[name="settings_side_slider_fixed_toggle"][value="false"]').trigger("click"),setTimeout(function(){$('input[name="'+t+'"]').prop("disabled",!0).parent(".aradio").addClass("disabled")},10)})):$.each(t,function(e,t){"settings_side_slider_fixed"!=t&&"settings_side_slider_fixed_toggle"!=t||"false"==$('input[name="settings_side_slider_enabled"]:checked').val()||$('input[name="'+t+'"]').prop("disabled",!1).parent(".aradio").removeClass("disabled")})}if(Test.strContains(e,v___page_signin_form))return void(v___available_session=0);$("#atsettings").html(e),page.render.module_config([0,1,0,0,0,0,0,1]);var l=$("div#atsettings").find(".ui_form");$__theme_text_right_save=l.data("text-save"),$__theme_text_right_saved=l.data("text-settings_right_saved"),$__theme_text_right_saving=l.data("text-settings_right_saving"),$__theme_text_right_restore_defaults=l.data("text-settings_right_restore_defaults"),$__theme_text_right_restored=l.data("text-settings_right_restored"),$__theme_text_right_restoring=l.data("text-settings_right_restoring"),$__theme_text_right_error=l.data("text-error"),$('.container-fluid .nav-tabs a[href="#atsettings"]').text(l.data("text-current_theme")),$("div#atsettings").removeClass("text-center"),t(),theme_settings_update();var c=$("body").find(".fa.fa-sub-title").parent("span");$(c).next("br").remove(),$(c).next("div.smaller").attr("style","margin-top: -15px !important"),c.remove(),i(),$('input[name="settings_right_hide_table_icons"]').on("change",function(){i($(this))}),a(),$('input[name="settings_hotkeys_active"]').on("change",function(){a($(this))}),n(),$('input[name="settings_side_slider_enabled"]').on("change",function(){n($(this))}),s(),$('input[name="settings_sysinfo_real_time_status"]').on("change",function(){s($(this))}),_(),$('input[name="settings_sysinfo_easypie_charts"]').on("change",function(){_($(this))}),o(),$('input[name="settings_sysinfo_theme_updates"]').on("change",function(){o($(this))}),$('select[name="settings_navigation_color"]').on("click keyup change",function(e){var t=$(this).val();get_server_data("data-theme",t),$("link[data-palette]").remove(),"blue"!=t&&$("head").append(''),get_server_data("data-default-theme",t),$("body .user-link.palette-toggle").find(".fa-sun").trigger("click"),theme_settings_update()}),$('select[name="settings_background_color"]').on("click keyup change",function(e){var t=$(this).val();get_server_data("data-background-style",t),get_server_data("data-background-style",t),$("link[data-palette]").remove(),"gainsboro"!=t&&($("head").append(''),$('select[name="settings_navigation_color"]').val("gunmetal").trigger("change")),theme_settings_update()}),$('select[name="settings_side_slider_palette"]').change(function(e){$("body .right-side-tabs, body .right-side-tabs-toggler").attr("data-background-style",$(this).val())}),$('input[name="settings_side_slider_enabled"]').change(function(e){"true"==$(this).val()?($("body .right-side-tabs-toggler").removeClass("hidden"),$("body .right-side-tabs").removeClass("hidden"),$('input[name="settings_side_slider_sysinfo_enabled"][value="true"], input[name="settings_side_slider_notifications_enabled"][value="true"], input[name="settings_side_slider_favorites_enabled"][value="true"]').trigger("click")):($("body .right-side-tabs-toggler").addClass("hidden"),$("body .right-side-tabs").addClass("hidden")),theme_settings_update(),page_resized()}),$('input[name="settings_side_slider_fixed"]').change(function(e){Core.var.slider_pinned=-1;var t=$(".right-side-tabs-dismiss .fa-pin");"true"==$(this).val()?(set_side_slider_visibility(1),t.removeClass("fa-rotate-45")):(set_side_slider_visibility(0),t.addClass("fa-rotate-45")),theme_settings_update()}),$('input[name="settings_side_slider_fixed_toggle"]').change(function(e){var t=$(".right-side-tabs-dismiss .fa-pin");"true"==$(this).val()?t.removeClass("hidden"):(("true"==$('input[name="settings_side_slider_fixed"]:checked').val()&&t.hasClass("fa-rotate-45")||"false"==$('input[name="settings_side_slider_fixed"]:checked').val()&&!t.hasClass("fa-rotate-45"))&&t.trigger("click"),t.addClass("hidden")),Core.var.slider_pinned=-1,theme_settings_update()}),$('input[name="settings_side_slider_sysinfo_enabled"], input[name="settings_side_slider_notifications_enabled"], input[name="settings_side_slider_favorites_enabled"]').change(function(e){var t="right-side-tabs-"+$(this).attr("name").split("_")[3],i=$(this).attr("name"),a=$("body").find("#"+t).hasClass("active"),n=$('input[name="settings_side_slider_sysinfo_enabled"][value="true"]:checked, input[name="settings_side_slider_notifications_enabled"][value="true"]:checked, input[name="settings_side_slider_favorites_enabled"][value="true"]:checked').length;"true"==$(this).val()?($("body").find('a[href="#'+t+'"], #'+t).removeClass("hidden").parent().removeClass("hidden"),"settings_side_slider_notifications_enabled"===i&&($(".right-side-tab-notification-asterix").removeClass("invisible hidden hidden-forged"),$(".right-side-tabs-toggler .badge.badge-danger").removeClass("invisible hidden hidden-forged"),setTimeout(function(){"function"==typeof slider_display_notification_badges&&slider_display_notification_badges()},300))):($("body").find('a[href="#'+t+'"], #'+t).addClass("hidden"),a&&n?$("body #right-side-tabs").find("li:not(.active) a:not(.hidden)").first().trigger("click"):0===n&&$('input[name="settings_side_slider_enabled"][value="false"]').trigger("click"),"settings_side_slider_notifications_enabled"===i&&($(".right-side-tab-notification-asterix").addClass("invisible hidden hidden-forged"),$(".right-side-tabs-toggler .badge.badge-danger").addClass("invisible hidden hidden-forged"),favicon.badge(0),titlenotifier.set(0))),theme_settings_update()}),$('input[name="settings_side_slider_sysinfo_enabled"], input[name="settings_side_slider_notifications_enabled"], input[name="settings_side_slider_favorites_enabled"]').each(function(){$('input[name="'+$(this).attr("name")+'"][value="'+window[$(this).attr("name")]+'"]').trigger("change")}),$('select[name="settings_navigation_color"]').after('\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t '),$(".settings_navigation_color_toggle, .settings_background_color_toggle").on("click",function(){void 0===window[$(this).attr("data-name")+"controller"]||"hidden"==window[$(this).attr("data-name")+"controller"]?($("."+$(this).attr("data-name")+"_reset, ."+$(this).attr("data-name")+"_rows").removeClass("hidden"),window[$(this).attr("data-name")+"controller"]="shown"):($("."+$(this).attr("data-name")+"_reset, ."+$(this).attr("data-name")+"_rows").addClass("hidden"),window[$(this).attr("data-name")+"controller"]="hidden")}),$(".settings_navigation_color_reset").on("click",function(){"settings_navigation_color"==$(this).attr("data-name")&&navigation_filter_reset()});var d=$('input[name="settings_grayscale_level_navigation"], input[name="settings_sepia_level_navigation"], input[name="settings_saturate_level_navigation"], input[name="settings_hue_level_navigation"], input[name="settings_invert_level_navigation"], input[name="settings_brightness_level_navigation"], input[name="settings_contrast_level_navigation"]');d.on("click keyup change",function(e){var t="-webkit-filter: grayscale("+$('input[name="settings_grayscale_level_navigation"]').val()+") sepia("+$('input[name="settings_sepia_level_navigation"]').val()+") saturate("+$('input[name="settings_saturate_level_navigation"]').val()+") hue-rotate("+$('input[name="settings_hue_level_navigation"]').val()+"deg) invert("+$('input[name="settings_invert_level_navigation"]').val()+") brightness("+$('input[name="settings_brightness_level_navigation"]').val()+") contrast("+$('input[name="settings_contrast_level_navigation"]').val()+"); filter: grayscale("+$('input[name="settings_grayscale_level_navigation"]').val()+") sepia("+$('input[name="settings_sepia_level_navigation"]').val()+") saturate("+$('input[name="settings_saturate_level_navigation"]').val()+") hue-rotate("+$('input[name="settings_hue_level_navigation"]').val()+"deg) invert("+$('input[name="settings_invert_level_navigation"]').val()+") brightness("+$('input[name="settings_brightness_level_navigation"]').val()+") contrast("+$('input[name="settings_contrast_level_navigation"]').val()+");";$(".visible-xs.mobile-menu-toggler").attr("style","position: fixed;"+t),$("aside, .visible-xs.mobile-menu-toggler").attr("style","z-index: 10; overflow: visible; transform: translate("+settings_leftmenu_width+"px, 0px);"+t),$('code[data-name="'+$(this).attr("name")+'"]').text($(this).val()),theme_settings_update()}),d.each(function(e,t){$('code[data-name="'+$(this).attr("name")+'"]').text($(this).val()),$(this).parent().parent("td").parent("tr.atshover").addClass("hidden settings_navigation_color_rows hidden-skip"),0===e&&$(this).parent().parent("td").parent("tr.atshover").prev("tr").addClass("hidden-dependent-skip")});var h=$('input[name="settings_grayscale_level_content"], input[name="settings_saturate_level_content"], input[name="settings_hue_level_content"]');h.on("click keyup change",function(e){var t="-webkit-filter: grayscale("+$('input[name="settings_grayscale_level_content"]').val()+") saturate("+$('input[name="settings_saturate_level_content"]').val()+") hue-rotate("+$('input[name="settings_hue_level_content"]').val()+"deg); filter: grayscale("+$('input[name="settings_grayscale_level_content"]').val()+") saturate("+$('input[name="settings_saturate_level_content"]').val()+") hue-rotate("+$('input[name="settings_hue_level_content"]').val()+"deg);";$("body").attr("style",t),$("#content .loading-container").attr("style",t),$('code[data-name="'+$(this).attr("name")+'"]').text($(this).val()),theme_settings_update()}),h.each(function(){$('code[data-name="'+$(this).attr("name")+'"]').text($(this).val()),$(this).parent().parent("td").parent("tr.atshover").addClass("hidden settings_background_color_rows")}),setTimeout(function(){ +$(".mobile-menu-toggler:visible").length&&$('input[name="settings_leftmenu_width"]').prop("disabled",!0)},100);var f=$('input[name="settings_leftmenu_width"]');f.on("click keyup change",function(e){page_adjust($(this).val(),$(this).val()),$('code[data-name="'+$(this).attr("name")+'"]').text($(this).val()),theme_settings_update(),settings_leftmenu_width_initial=$(this).val()}),$('input[name="settings_navigation_always_collapse"]').change(function(e){r($(this)),"true"==$(this).val()?($("html").attr("data-navigation-collapsed",1),$(".mobile-menu-toggler").removeClass("visible-xs"),navigation_hide()):"false"==$(this).val()&&($("html").attr("data-navigation-collapsed",0),$(".mobile-menu-toggler").addClass("visible-xs")),setTimeout(function(){page_resized()},10)}),r(),f.each(function(){$('code[data-name="'+$(this).attr("name")+'"]').text($(this).val()),settings_leftmenu_width_initial=$(this).val()}),"restored"==v___location_query&&(d.trigger("click"),h.trigger("click"),f.trigger("click"),$('select[name="settings_navigation_color"], select[name="settings_background_color"]').trigger("change")),$("aside ul.user-html li.user-html-string").html($('input[name="settings_leftmenu_user_html"]').val()),$('input[name="settings_leftmenu_user_html"]').keyup(function(e){$("aside ul.user-html li.user-html-string").html($(this).val())}),navigation_dashboard_switch_available()&&$('input[name="settings_sysinfo_link_mini"]').parent().parent().parent().parent("tr").remove(),$('input[name^="settings_leftmenu_netdata_link"], input[name^="settings_leftmenu_user_html_only_for_administrator"], input[name="settings_sysinfo_real_time_timeout"], input[name="settings_sysinfo_easypie_charts_size"], input[name="settings_sysinfo_easypie_charts_width"], input[name="settings_sysinfo_easypie_charts_scale"], input[name="settings_sysinfo_theme_patched_updates"]').parents("td.col_value.atscontent").parent("tr.atshover").addClass("settings_option_padded"),$('input[data-role="tagsinput"]').tagsinput(),$("body").css("overflow","auto"),$.getScript(v___location_prefix+"/unauthenticated/js/detector."+v___source_type+".js?"+v___theme_version_plain,function(e,t,i){var a=new Detector;$.each($('select[name="settings_font_family"] option'),function(){var e=$(this).text();a.detect(e)||"system-default"==$(this).val()||$(this).attr("disabled","disabled").text(e+" ("+theme_language("theme_xhred_global_not_available")+")")}),$('select[name="settings_font_family"]').on("click keyup change",function(e){var t=$(this).val(),i=($.merge($("head"),$("head")),$("head").find('link[href*="font-"]').add($("head").find('link[href*="font-"]')).add($("head").find('link[href*="fonts-roboto"]')).add($("head").find('link[href*="fonts-roboto"]'))),a=$.merge($("head").find('link[href*="/authentic."]'),$("head").find('link[href*="/authentic."]')),a=a.length?a:$.merge($("head").find('link[href*="/bundle."]'),$("head").find('link[href*="/bundle."]'));i.remove(),"0"==t||"1"==t?"0"==t&&a.after(''):a.after('')})}),$('input[name="settings_leftmenu_netdata"]').on("change",function(){var e=$('input[name="settings_leftmenu_netdata_link"]');"true"==$(this).val()?e.removeAttr("disabled"):e.attr("disabled","disabled")}),$('input[name="settings_leftmenu_netdata"]:checked').trigger("change"),0!=Core.moduleAvailable("status")&&$(".right-side-tabs-toggler").length||($('input[name="settings_side_slider_enabled"][value="false"]').trigger("click"),$('input[name="settings_side_slider_enabled"]').attr("disabled","disabled")),page_resized()}})});$("body").undelegate("#atsave:not(.btn-inverse):not(.disabled)","click"),$("body").on("click","#atsave:not(.btn-inverse):not(.disabled)",function(e){e.preventDefault();var t=$(this);spinnerfy_buttons(t,[1.5,-33,"small",1e3]),set_onbeforeunload_status(0,0),theme_settings_update(),theme_config("save"),$.ajax({type:"POST",url:v___location_prefix+"/webmin/edit_startpage.cgi",data:!1,dataType:"text",success:function(e){if(Test.strContains(e,v___page_signin_form))return void(v___available_session=0);var t=$(e).find("form.ui_form");t.find('select[name="gotomodule"]').val($.trim($('select[name="goto_webmin_default_module"]').val())),$.ajax({type:"POST",url:v___location_prefix+"/webmin/change_startpage.cgi",data:$(t).serialize(),dataType:"text",success:function(e){if(Test.strContains(e,v___page_signin_form))return void(v___available_session=0)},error:function(){}})},error:function(){}}),setTimeout(function(){$.ajax({type:"POST",url:v___location_prefix+"/index.cgi?xhr-settings=1&save=1",data:t.parents("form").serialize(),dataType:"text",success:function(e){if(Test.strContains(e,v___page_signin_form))return void(v___available_session=0);navigation_update(),theme_settings_controls(0),settings_sysinfo_real_time_status?"object"==typeof stats?(stats.general.timeout=settings_sysinfo_real_time_timeout,stats.general.query()):load.script(v___server_extensions_path+"/stats/stats",0,["stats.general.timeout = settings_sysinfo_real_time_timeout","stats.general.query()"]):"object"==typeof stats&&stats.general.kill()},error:function(){t.addClass("btn-danger").removeClass("btn-success btn-inverse opacity-0_5")}})},1e3)})}if(!e&&(v___location_path_lead_unslashed==v___location_prefix_unslashed_trail_slashed+"settings-editor_read.cgi"||v___location_path_lead_unslashed==v___location_prefix_unslashed_trail_slashed+"settings-upload.cgi")){$('link[href*="/unauthenticated/css/styles.css"]').length&&$('link[href*="/unauthenticated/css/styles.css"]').attr("href",$('link[href*="/unauthenticated/css/styles.css"]').attr("href").split("?")[0]+"?"+(new Date).getTime()),$('script[src*="/unauthenticated/js/scripts.js"]').length&&$('script[src*="/unauthenticated/js/scripts.js"]').attr("src",$('script[src*="/unauthenticated/js/scripts.js"]').attr("src").split("?")[0]+"?"+(new Date).getTime()),setTimeout(function(){$(".file-editor-saved").remove(),$(".file-editor-save").removeClass("hidden")},2400),check_location_resource("/settings-upload.cgi?saved=1")&&$.each($(".file_chooser_button_preview:first"),function(){$(this).hasClass("disabled")?$("aside + .__logo").remove():matchMedia("(max-width: 1080px)").matches||($("aside + .__logo").length?($('.__logo img[src*="/images/logo.png"]').attr("src",$('.__logo img[src*="/images/logo.png"]').attr("src").split("?")[0]+"?"+(new Date).getTime()),$("aside + .__logo").attr("style","transform: translate(0px, 0px);"),setTimeout(function(){$(".__logo").transition({y:"-140px"},1200)},400)):($("aside").after(''),setTimeout(function(){$(".__logo").transition({y:"-140px"},1200)},400)))});var v=".authentic_update:not(.disabled), .page_footer_ajax_submit:not(.disabled)";$("body").undelegate(v,"click"),$("body").on("click",v,function(){spinnerfy_buttons($(this),[1.5,-28,"small",!1])}),setTimeout(function(){v___location_path_lead_unslashed==v___location_prefix_unslashed_trail_slashed+"settings-editor_read.cgi"&&$(".end_submits").parent("td").after('Theme logos').parents(".ui_form_end_buttons").css("width","100%"),$(".btn-group.end_submits").css("margin-left","2px")},100)}if(e||v___location_path_lead_unslashed!=v___location_prefix_unslashed_trail_slashed+"settings-upload.cgi"||($(function(){function e(e){void 0===e&&(e=$('input[name="authenticated_logo"]:checked'));var t=["authenticated_logo_file"];"1"!=e.val()?$.each(t,function(e,t){$('input[name="'+t+'"]').parents(".file-input-wrapper").addClass("disabled").prev(".file_chooser_button_preview").addClass("disabled")}):$.each(t,function(e,t){$('input[name="'+t+'"]').parents(".file-input-wrapper").removeClass("disabled"),"1"==$_authenticated_logo&&$('input[name="'+t+'"]').parents(".file-input-wrapper").prev(".file_chooser_button_preview").removeClass("disabled")})}function t(e){void 0===e&&(e=$('input[name="unauthenticated_logo"]:checked'));var t=["unauthenticated_logo_file"];"1"!=e.val()?$.each(t,function(e,t){$('input[name="'+t+'"]').parents(".file-input-wrapper").addClass("disabled").prev(".file_chooser_button_preview").addClass("disabled")}):$.each(t,function(e,t){$('input[name="'+t+'"]').parents(".file-input-wrapper").removeClass("disabled"),"1"==$_unauthenticated_logo&&$('input[name="'+t+'"]').parents(".file-input-wrapper").prev(".file_chooser_button_preview").removeClass("disabled")})}$_authenticated_logo=$('input[name="authenticated_logo"]:checked').val(),$_unauthenticated_logo=$('input[name="unauthenticated_logo"]:checked').val(),e(),$('input[name="authenticated_logo"]').on("change",function(){e($(this))}),t(),$('input[name="unauthenticated_logo"]').on("change",function(){t($(this))})}),$(".file_chooser_button_preview").on("mouseout",function(e){$(this).css("background","white")}).on("mouseover",function(e){$(this).css("background","#eee")}),$.each($(".file_chooser_button_preview"),function(){$(this).data("image")&&$(this).popover({trigger:"hover",html:!0,content:function(){return""}})})),$("#system-status > div.panel-body > table > tbody > tr > td").on("mouseover",function(){$(this).find(".btn-hidden").removeClass("hidden")}).on("mouseout",function(){$(this).find(".btn-hidden").addClass("hidden")}),(Core.curModule("software")&&Test.strContains(v___location_file,"tree.cgi")||Core.curModuleFile("cluster-software","edit_host.cgi"))&&($('img[src*="images/"]').each(function(e,t){var i=$(this);i.next("a").removeClass(),Test.strContains(i.attr("src"),"close")&&i.replaceWith(''),Test.strContains(i.attr("src"),"open")&&i.replaceWith(''),Test.strContains(i.attr("src"),"pack")&&i.replaceWith('')}),$('a[href*="closeall.cgi"]').before('
    ')),(Core.curModule("mysql")||Core.curModule("postgresql"))&&($('a > img[src*="images/left.gif"]').each(function(e,t){$(this).replaceWith('')}),$('a > img[src*="images/right.gif"]').each(function(e,t){$(this).replaceWith('')})),Core.curModule("mailboxes")||Core.curModule("mailbox")){var b='form.ui_form[action="index.cgi"]',x="fa fa-fw fa-lg text-semi-light vertical-align-baseline fa-angle-";$(b+' img[src*="images/left"], center img[src*="images/left"]').each(function(){$(this).replaceWith('')}),$(b+' img[src*="images/right"], center img[src*="images/right"]').each(function(){$(this).replaceWith('')}),$(b+' img[src*="images/first"]').each(function(){$(this).replaceWith('')}),$(b+' img[src*="images/last"]').each(function(){$(this).replaceWith('')}),$('button[name="razor"], button[name="ham"]').on("click",function(){$(this).parents("form").attr("target","_blank")})}if(Core.curModuleFile("virtual-server","list_scripts.cgi")&&($('td > a > img[src*="images/staroff.gif"]').each(function(e,t){$(this);$(t).attr("src",v___location_prefix+"/images/staroff.gif")}),$('td > a > img[src*="images/staron.gif"]').each(function(e,t){$(this);$(t).attr("src",v___location_prefix+"/images/staron.gif")})),v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"status/"&&($('td img[src*="images/up.gif"]:not(".ui_icon_protected")').each(function(e,t){var i=$(this);$(t).attr("src",v___location_prefix+"/images/check.png"),i.addClass("scale-08")}),$('td img[src*="images/down.gif"]:not(".ui_icon_protected")').each(function(e,t){var i=$(this);$(t).attr("src",v___location_prefix+"/images/cross.png"),i.addClass("scale-08")}),$('td img[src*="images/not.gif"]:not(".ui_icon_protected")').each(function(e,t){var i=$(this);$(t).attr("src",v___location_prefix+"/images/not.png"),i.addClass("scale-08")})),$('.ui_form[action^="delete_mons"] tr.ui_checked_columns > td > label > img[src="images/up.gif"]:not(".ui_icon_protected"), .ui_form[action^="save_mon"] img[src="images/up.gif"]:not(".ui_icon_protected"), table.ui_buttons_table > tbody > tr.ui_buttons_row > td.ui_buttons_label > img[src="images/up.gif"]:not(".ui_icon_protected")').each(function(e,t){var i=$(this);$(t).attr("src",v___location_prefix+"/images/check.png"),i.addClass("scale-08")}),$('.ui_form[action^="delete_mons"] tr.ui_checked_columns > td > label > img[src="images/down.gif"]:not(".ui_icon_protected"), .ui_form[action^="save_mon"] img[src="images/down.gif"]:not(".ui_icon_protected"), table.ui_buttons_table > tbody > tr.ui_buttons_row > td.ui_buttons_label > img[src="images/down.gif"]:not(".ui_icon_protected")').each(function(e,t){var i=$(this);$(t).attr("src",v___location_prefix+"/images/cross.png"),i.addClass("scale-08")}),$('.ui_form[action^="delete_mons"] tr.ui_checked_columns > td > label > img[src="images/not.gif"]:not(".ui_icon_protected"), .ui_form[action^="save_mon"] img[src="images/not.gif"]:not(".ui_icon_protected"), table.ui_buttons_table > tbody > tr.ui_buttons_row > td.ui_buttons_label > img[src="images/not.gif"]:not(".ui_icon_protected")').each(function(e,t){var i=$(this);$(t).attr("src",v___location_prefix+"/images/not.png"),i.addClass("scale-08")}),(Core.curModule("proc")||Core.curModule("firewall")||Core.curModule("firewall6")||Core.curModule("shorewall")||Core.curModule("shorewall6")||Core.curModuleFile("pam","edit_pam.cgi")||Core.curModule("filter"))&&($("td a img[src], td label a img[src]").parents("td").addClass("text-center"),$('td img[src*="images/gap.gif"]').replaceWith(''),$('td a img[src*="images/down.gif"]').replaceWith(''),$('td a img[src*="images/up.gif"]').replaceWith(''),$('td a img[src*="images/after.gif"]').replaceWith(''),$('td a img[src*="images/before.gif"]').replaceWith('')),(Core.curModule("squid")||Core.curModule("cron"))&&($('td a img[src*="images/movedown.gif"]').replaceWith(''),$('td a img[src*="images/moveup.gif"]').replaceWith('')),Core.curModule("cron")&&($('td a img[src*="images/bottom.gif"]').replaceWith(''),$('td a img[src*="images/top.gif"]').replaceWith('')),$("input").each(function(e,t){"images/ok.gif"==$(this).attr("src")&&($(t).attr("src",v___location_prefix+"/"+$(this).attr("src")),$(this).parents("td").attr("style","white-space: nowrap"))}),!e){if(!$(".ui_table tr td").has(".ui_grid_table.table-hardcoded")||v___location_directory_unslashed_trail_slashed!=v___location_prefix_unslashed_trail_slashed+"passwd/"&&v___location_directory_unslashed_trail_slashed!=v___location_prefix_unslashed_trail_slashed+"mailboxes/"&&v___location_path!=v___location_prefix+"/usermin/list_configs.cgi"||($(".ui_table tr td .ui_grid_table.table-hardcoded").parents("table").css("border","1px solid #f0f0f0"),$(".ui_table tr td .ui_grid_table.table-hardcoded").addClass("table").parents("tr").css("border","1px solid #f0f0f0")),($("body").attr("class")&&$('body[class="custom"]').length||$("body").attr("class")&&0===$("body").attr("class").search(/custom\d+$/))&&"view.cgi"==v___location_file){var y=$('form[action="save.cgi"]').find(".table-title").find("tt").text();$('form[action="save.cgi"]').find(".table-title").find("b").empty().append(""+y+"")}if($.each($("form > table"),function(){$(this).next('input[type="submit"]')&&$(this).attr("style")}),$.each($("table tr"),function(){$(this).is(":empty")&&$(this).remove()}),$.each($("span > input"),function(){var e=$(this).parent("span").next(".chooser_button"),t=$(this).parent("span").next('input[type="button"][onclick]');$(this).parent("span").next("select");e&&e.attr("style","display: inline; width:40px; height: 28px; margin-right:0 !important; margin-top:4px !important;").find("i.fa-files-o").css("margin-top","0").addClass("vertical-align-middle"),$(this).parents(".tab-content")&&e.css("margin-top","4px"),t&&(t.attr("style","display: inline; width:40px; height: 28px; margin-right:0 !important; vertical-align: middle").next("i.fa-files-o").css("margin-top","11px").addClass("vertical-align-middle"),t.attr("style","display: inline; width:40px; height: 28px; margin-right:0 !important; vertical-align: middle").next("i.fa-calendar").attr("style","margin-top: 21px !important; font-size: 11px; margin-left: -27px; pointer-events: none;"))}),$.each($('input[type="button"][onclick^="ifield"]'),function(e,t){$(this).css("margin-left","0").css("width","40px").css("height","28px")}),$('.ui_form[action="switch.cgi"] > input.form-control.ui_textbox').next('input[type="button"][onclick^="ifield"]').attr("style","margin-top: 2px !important; margin-bottom: 2px !important; margin-left: 0 !important"),setTimeout(function(){$('.ui_form[action="switch.cgi"] .file_chooser_button_attached').attr("style","font-size: 11px; pointer-events: none; margin-top: 14px !important;")},10),v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"cshrc/"&&$("textarea").each(function(e,t){$(this).attr("style","height: 20em !important")}),v___location_path!=v___location_prefix+"/acl/"&&v___location_path!=v___location_prefix+"/acl/edit_user.cgi"||$('.ui_grid_table.table-hardcoded .ui_grid_row .ui_grid_cell input[type="checkbox"], .table-hardcoded .col_value input[type="checkbox"]').each(function(e,t){$(this).attr("style","vertical-align: bottom !important")}),($("body").attr("class")&&$('body[class="custom"]').length||$("body").attr("class")&&0===$("body").attr("class").search(/custom\d+$/))&&($(".panel-body > .ui_grid_table.table-hardcoded").each(function(e,t){$(this).attr("style","margin-top: 3px !important")}),$(".panel-body td > .ui_form").each(function(){$(this).attr("style","padding-top: 0 !important")}),$(".panel-body > a.ui_link").each(function(e,t){$(this).addClass("btn btn-inverse btn-tiny ui_link_replaced").removeClass("ui_link"),$(this).text($(this).text().replace(/\.$/,"")),$(this).parent().contents().filter(function(){return 3==this.nodeType}).remove(),0===$(this).attr("href").indexOf("edit_cmd.cgi?new")&&$(this).html(' '+$(this).text()),0===$(this).attr("href").indexOf("edit_file.cgi?new")&&$(this).html(' '+$(this).text()),0===$(this).attr("href").indexOf("edit_sql.cgi?new")&&$(this).html(' '+$(this).text())}),$.each($('td.td_tag:contains("|")'),function(){$(this).find('a[href^="edit_"]').addClass("ui_link_replaced btn btn-xxs btn-transparent btn-link-bordered f__lnk_t_btn-el").css("margin-right","3px").removeClass("ui_link").prepend(' '),$(this).find('a:not([href^="edit_"])').remove(),$(this).parents("table").find("thead > tr > th:eq(2)").addClass("pointer-events-none").html("")}),$('td.td_tag:contains("|")').contents().filter(function(){return 3==this.nodeType}).remove()),theme_buttonify(["/syslog-ng/list_destinations.cgi"],".container-fluid .table tbody tr td:last-child",'a[href*="view_log.cgi"]',"btn btn-transparent btn-link-bordered btn-xxs vertical-align-top margined-top-1",""),theme_buttonify(["/virtual-server/edit_newmysqls.cgi"],".container-fluid .table tbody tr td:last-child","a.ui_link","btn btn-transparent btn-link-bordered btn-xxs vertical-align-top margined-top-1","fa-cog"),theme_buttonify(["/virtualmin-git/","/virtualmin-git/index.cgi"],".container-fluid table td.td_tag",'a[href*="delete.cgi"]',"btn btn-danger btn-xxs vertical-align-top margined-top-2 ---forced","fa-times-circle","","","","|"),theme_buttonify(["/virtualmin-git/","/virtualmin-git/index.cgi"],".container-fluid table td.td_tag",'a[href*="//"]',"btn btn-transparent btn-link-bordered btn-xxs vertical-align-top margined-left--4 margined-top-2 ---forced",""),theme_buttonify(["/virtualmin-git/","/virtualmin-git/index.cgi"],".container-fluid table td.td_tag",'a[href*="help.cgi"]',"btn btn-info btn-xxs vertical-align-top margined-left--4 margined-top-2 ---forced",""),theme_buttonify(["/webalizer/","/webalizer/index.cgi"],".container-fluid .table tbody tr td:last-child","a.ui_link","btn btn-transparent btn-link-bordered btn-xxs vertical-align-top margined-top-1",0),theme_buttonify(["/cpan/edit_mod.cgi"],".container-fluid .table tbody tr td","a.ui_link","btn btn-transparent btn-link-bordered btn-xxs vertical-align-top margined-top-1 margined-right--5 btn-dnwo ---forced","","","","","|"),theme_buttonify(["/forward/index.cgi","/forward/"],".container-fluid",'.panel-body > a:first[href*="simple"]',"btn btn-default _btn-links-top btn-xs vertical-align-top margined-top-2 margined-left-3",0,"","","","|"),theme_buttonify(["/forward/index.cgi","/forward/"],".container-fluid",".panel-body > span[data-unckecked]","btn btn-info _btn-links-top btn-xs vertical-align-top margined-top-2 margined-left-3",0,"","","","|"),theme_buttonify(["/acl/list_sessions.cgi"],".container-fluid table td.td_tag",'a[href*="webminlog/"]',"btn btn-info btn-xxs vertical-align-top margined-top-2 ---forced",0,"","","","|"),theme_buttonify(["/acl/list_sessions.cgi"],".container-fluid table td.td_tag",'a[href*="delete_session.cgi"]',"btn btn-danger btn-xxs vertical-align-top margined-left--4 margined-top-2 ---forced","fa-unplugged"),theme_buttonify(["/firewall/index.cgi","/firewall6/index.cgi","/firewall/","/firewall6/"],".container-fluid","style + b + b:first, style + b + a + b:first, a.ui_link:first","btn btn-link btn-link-bordered _btn-links-top btn-xs vertical-align-top margined-top-2 margined-left-0",0,"","","","|"),theme_buttonify(["/sysinfo.cgi","/virtual-server/edit_newchangelog.cgi","/server-manager/edit_newchangelog.cgi"],".container-fluid #newfeatures-virtual-server-1-collapse dt, .container-fluid #newfeatures-server-manager-1-collapse dt, .container-fluid .table td dt","a","btn btn-link btn-link-bordered btn-xxs btn-dnwo f__lnk_t_btn-el margined-left-3 vertical-align-top margined-top-2","fa-eye","|",""),theme_buttonify(["/virtual-server/cert_form.cgi","/webmin/edit_ssl.cgi","/usermin/edit_ssl.cgi"],".container-fluid #att_current","a","btn btn-link btn-link-bordered btn-xxs btn-dnwo margined-left-3 vertical-align-top margined-top-2 --to-new-tab",0,"","","","|"),theme_buttonify(["/virtual-server/","/virtual-server/index.cgi","/virtual-server/edit_plan.cgi"],".container-fluid form table tbody td",'a[href*="list_users.cgi?"], a[href*="list_aliases.cgi?"]',"btn btn-link btn-link-bordered btn-xxs btn-hover-hide vertical-align-top margined-top-2",0,"(~)"," ~ ",""),theme_buttonify(["/quota/","/quota/index.cgi"],".container-fluid .table tbody td.td_tag",'a[href*="activate.cgi"][href*="&active=3"]',"btn btn-warning btn-xxs vertical-align-top margined-top-2","fa-ban"),theme_buttonify(["/quota/","/quota/index.cgi"],".container-fluid .table tbody td.td_tag",'a[href*="activate.cgi"][href*="&active=0"]',"btn btn-success btn-xxs vertical-align-top margined-top-2","fa-check-circle-o"),theme_buttonify(["/virtualmin-google-analytics/","/virtualmin-google-analytics/index.cgi"],".container-fluid .table tbody td.td_tag",'a[href*="edit.cgi"]',"btn btn-warning btn-xxs vertical-align-top margined-top-2","fa-pencil-square"),theme_buttonify(["/apache/","/apache/index.cgi"],".container-fluid .table tbody tr td:last-child","a.ui_link","btn btn-transparent btn-link-bordered btn-xxs vertical-align-top margined-top-2","fa-external-link"),theme_buttonify(["/ldap-server/edit_schema.cgi"],".container-fluid table tr.ui_checked_columns td",'a[href*="view_sfile.cgi"]',"btn btn-info btn-xxs vertical-align-top margined-top-1 ---forced",0,"","","","|"),theme_buttonify(["/ldap-server/edit_schema.cgi"],".container-fluid table tr.ui_checked_columns td",'a[href*="edit_sfile.cgi"]',"btn btn-warning btn-xxs vertical-align-top margined-left--4 margined-top-1 ---forced","fa-pencil-square-o"),($('body[class*="status"]').length&&"edit_mon.cgi"==v___location_file||v___location_path==v___location_prefix+"/virtual-server/list_sched.cgi"||v___location_path==v___location_prefix+"/software/list_pack.cgi"||v___location_path==v___location_prefix+"/mailboxes/view_mail.cgi"||v___location_path==v___location_prefix+"/mailbox/view_mail.cgi"||v___location_path==v___location_prefix+"/mailbox/list_folders.cgi"||v___location_path==v___location_prefix+"/phpini/"||v___location_path==v___location_prefix+"/phpini/index.cgi"||v___location_path==v___location_prefix+"/fsdump/"||v___location_path==v___location_prefix+"/fsdump/index.cgi"||v___location_path==v___location_prefix+"/fdisk/"||v___location_path==v___location_prefix+"/fdisk/index.cgi"||v___location_path==v___location_prefix+"/virtualmin-awstats/"||v___location_path==v___location_prefix+"/virtualmin-awstats/index.cgi"||v___location_path==v___location_prefix+"/syslog/"||v___location_path==v___location_prefix+"/syslog/index.cgi")&&($.each($('tr td:last-child:contains("|")'),function(){v___location_path==v___location_prefix+"/virtual-server/list_sched.cgi"&&($(this).find('a[href^="backup_form.cgi"]').html($(this).find('a[href^="backup_form.cgi"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-success btn-xxs margined-top--2 f__lnk_t_btn-el").removeClass("ui_link").prepend('  '),$(this).find('a[href^="restore_form.cgi"]').html($(this).find('a[href^="restore_form.cgi"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-primary btn-xxs margined-top--2 f__lnk_t_btn-el").removeClass("ui_link").prepend('  '),$(this).find('a[href^="backuplog.cgi"]').html($(this).find('a[href^="backuplog.cgi"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-info btn-xxs margined-top--2 f__lnk_t_btn-el").removeClass("ui_link").prepend('  ')),v___location_path!=v___location_prefix+"/phpini/"&&v___location_path!=v___location_prefix+"/phpini/index.cgi"||($(this).find('a[href^="list_ini.cgi"]').html($(this).find('a[href^="list_ini.cgi"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-success btn-xxs f__lnk_t_btn-el").removeClass("ui_link").prepend('  '),$(this).find('a[href^="edit_manual.cgi"]').html($(this).find('a[href^="edit_manual.cgi"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-primary btn-xxs f__lnk_t_btn-el").removeClass("ui_link").prepend('  ')),v___location_path!=v___location_prefix+"/fdisk/"&&v___location_path!=v___location_prefix+"/fdisk/index.cgi"||($(this).find('a[href^="edit_hdparm.cgi"]').html($(this).find('a[href^="edit_hdparm.cgi"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-success btn-xxs f__lnk_t_btn-el").removeClass("heighter-34").removeClass("ui_link"),$(this).find('a[href*="smart-status/index.cgi"]').html($(this).find('a[href*="smart-status/index.cgi"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-info btn-xxs f__lnk_t_btn-el").removeClass("heighter-34").removeClass("ui_link"),$(this).find('a[href^="blink.cgi"]').html($(this).find('a[href^="blink.cgi"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-warning btn-xxs f__lnk_t_btn-el").removeClass("heighter-34").removeClass("ui_link")),v___location_path==v___location_prefix+"/mailbox/list_folders.cgi"&&($(this).find('a[href^="index.cgi"]').html($(this).find('a[href^="index.cgi"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-success btn-xxs").removeClass("heighter-34").removeClass("ui_link").removeClass("ui_link").prepend('  '),$(this).find('a[href^="edit_auto.cgi"]').html($(this).find('a[href^="edit_auto.cgi"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-info btn-xxs").removeClass("heighter-34").removeClass("ui_link").removeClass("ui_link").prepend('  '),$(this).find('a[href^="copy_form.cgi"]').html($(this).find('a[href^="copy_form.cgi"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-warning btn-xxs").removeClass("heighter-34").removeClass("ui_link").removeClass("ui_link").prepend('  ')),v___location_path!=v___location_prefix+"/mailboxes/view_mail.cgi"&&v___location_path!=v___location_prefix+"/mailbox/view_mail.cgi"||($(this).find('a[href^="detach.cgi"]:not([href*="&save=1"]):not([target="_blank"])').html($(this).find('a[href^="detach.cgi"]:not([href*="&save=1"]):not([target="_blank"])').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-primary btn-xxs").removeClass("heighter-34").removeClass("ui_link").removeClass("ui_link").prepend('  '),$(this).find('a[href*="detach.cgi"][target="_blank"]').html($(this).find('a[href*="detach.cgi"][target="_blank"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-success btn-xxs").removeClass("heighter-34").removeClass("ui_link").prepend('  '),$(this).find('a[href*="&save=1"]:not([target="_blank"])').html($(this).find('a[href*="&save=1"]:not([target="_blank"])').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-warning btn-xxs").removeClass("heighter-34").removeClass("ui_link").prepend('  ')),v___location_path!=v___location_prefix+"/virtualmin-awstats/"&&v___location_path!=v___location_prefix+"/virtualmin-awstats/index.cgi"||($(this).find('a[href^="view.cgi"]').html($(this).find('a[href^="view.cgi"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-success btn-xxs f__lnk_t_btn-el").removeClass("heighter-34").removeClass("ui_link").prepend('  '), +$(this).find('a[href^="config.cgi"]').html($(this).find('a[href^="config.cgi"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-primary btn-xxs f__lnk_t_btn-el").removeClass("heighter-34").removeClass("ui_link").prepend('  '))}),$('body[class*="status"]').length&&"edit_mon.cgi"==v___location_file?($('a[href*="edit_mon.cgi?id"]').addClass("ui_link_replaced btn btn-default btn-xxs").removeClass("heighter-34").removeClass("ui_link"),$('a[href*="edit_mon.cgi?id"]').last().css("margin-left","-1px"),$('tr td:last-child:contains("|")').replaceText(/\|/gi,"")):$('tr td:last-child:contains("|")').contents().filter(function(){return 3==this.nodeType}).remove(),v___location_path!=v___location_prefix+"/fdisk/"&&v___location_path!=v___location_prefix+"/fdisk/index.cgi"||$("body").find('a[href^="blink.cgi"]:not(.ui_link_replaced)').html($("body").find('a[href^="blink.cgi"]:not(.ui_link_replaced)').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-warning btn-xxs f__lnk_t_btn-el").removeClass("heighter-34").removeClass("ui_link"),v___location_path!=v___location_prefix+"/fsdump/"&&v___location_path!=v___location_prefix+"/fsdump/index.cgi"||$.each($("tr td:last-child"),function(){$(this).find('a[href^="backup.cgi"]').html($(this).find('a[href^="backup.cgi"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-success btn-xxs margined-top--2 f__lnk_t_btn-el").removeClass("heighter-34").removeClass("ui_link").prepend('  '),$(this).find('a[href^="kill.cgi"]').html($(this).find('a[href^="kill.cgi"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-danger btn-xxs margined-top--2 f__lnk_t_btn-el").removeClass("heighter-34").removeClass("ui_link").prepend('  ')}),v___location_path!=v___location_prefix+"/syslog/"&&v___location_path!=v___location_prefix+"/syslog/index.cgi"||$.each($("tr td:last-child"),function(){$(this).find('a[href*="save_log.cgi"][href*="view=1"]').html($(this).find('a[href*="save_log.cgi"][href*="view=1"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-primary btn-xxs f__lnk_t_btn-el").removeClass("heighter-34").removeClass("ui_link")}),v___location_path==v___location_prefix+"/software/list_pack.cgi")){$('td a.ui_link[href*="view.cgi"]').html('').addClass("ui_link_replaced btn btn-default btn-xxs f__lnk_t_btn-el").removeClass("heighter-34").attr("style","margin-top: 2px !important; margin-bottom: 0 !important; margin-right: 15px").removeClass("ui_link").prepend('')}if(v___location_path==v___location_prefix+"/fdisk/edit_disk.cgi"){var w=[];$.each($(".panel-body > table.table.table-striped tbody tr"),function(e,t){($(this).find("td:nth-child(3)").find('img[src*="images/use"]').length||$(this).find("td:nth-child(3)").find('img[src*="images/gap"]').length)&&($(this).find("td:nth-child(3)").remove(),w.push(e))}),$.isEmptyObject(w)||($(".panel-body > table.table.table-striped thead").find("th:nth-child(3)").remove(),delete w)}v___location_path==v___location_prefix+"/virtual-server/edit_link.cgi"&&$(".table-hardcoded").find('input[name="open"]').parent("td").parent("tr").remove(),v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"init/"&&$('.table.table-striped.table-condensed tr.tr_tag td.td_tag input[type="checkbox"]').each(function(e,t){$(this).attr("style","vertical-align: middle !important")}),v___location_directory_unslashed_trail_slashed!=v___location_prefix_unslashed_trail_slashed+"proc/"&&v___location_path_lead_unslashed!=v___location_prefix_unslashed_trail_slashed+"proc/index.cgi"||((v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"proc/"&&v___location_file&&v___location_file.indexOf("index_")>-1||v___location_path_lead_unslashed==v___location_prefix_unslashed_trail_slashed+"proc/index.cgi"||v___location_path===v___location_prefix+"/proc/")&&($("a.ui_link + b").addClass("btn").css("margin-left","3px"),$("b + a.ui_link").addClass("btn").css("margin-left","3px"),$('.panel-body > b:first-child:contains("Display")').length>0&&$(".panel-body > b:first-child").remove(),$(".panel-body > b").addClass("btn btn-success")),$(".panel-body").contents().filter(function(){return 3==this.nodeType}).remove(),$(".panel-body > a.ui_link").addClass("btn").css("margin-left","3px")),v___location_path_lead_unslashed==v___location_prefix_unslashed_trail_slashed+"proc/edit_proc.cgi"&&$("#signal").attr("style","margin-bottom: 0 !important;"),v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"procmail/"&&($(".panel-body p:first-child").next("p").contents().filter(function(){return 3==this.nodeType}).remove(),$(".panel-body p:last-child").prev("a.ui_link").remove()),v___location_directory_unslashed_trail_slashed!=v___location_prefix_unslashed_trail_slashed+"cron/"&&v___location_path_lead_unslashed!=v___location_prefix_unslashed_trail_slashed+"cron/index.cgi"||$('.panel-body form.ui_form[action="index.cgi"]').next("script").next("b").next("p").contents().filter(function(){return 3==this.nodeType}).remove(),v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"filter/"&&$(".panel-body > b").next("p").contents().filter(function(){return 3==this.nodeType}).remove(),v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"dhcpd/"&&$(".panel-body > p").contents().filter(function(){return 3==this.nodeType}).remove(),v___location_directory_unslashed_trail_slashed!=v___location_prefix_unslashed_trail_slashed+"htaccess-htpasswd/"&&v___location_directory_unslashed_trail_slashed!=v___location_prefix_unslashed_trail_slashed+"forward/"||$("td table.table-hardcoded.table.table-subtable").removeClass("table-striped"),$(".ui_buttons_hr > td > table.table-hardcoded > tbody > tr > td[nowrap]").each(function(){$(this).parents("table").attr("style","margin-bottom: 15px !important")}),$("textarea.form-control.ui_textarea").next('button[type="button"].btn-default').each(function(){$(this).prev("textarea").attr("style","margin-bottom: 1px !important"),$(this).attr("style","width:100% !important; padding-top: 0; height:28px !important")}),$("textarea.form-control.ui_textarea").next("br").next('button[type="button"].btn-default').each(function(){$(this).prev("textarea").attr("style","margin-bottom: 1px !important"),$(this).attr("style","width:100% !important; padding-top: 0; height:28px !important")}),$(".table-hardcoded > tbody > tr > td > input.form-control.ui_textbox").next('button[type="button"].ui_button').each(function(){$(this).attr("style","margin-top: 2px !important")}),$(".table-hardcoded > tbody > tr > td.col_label b a, .ui_table_row td a").each(function(e,t){$(this).attr("href")||$(this).attr("style","color: #333; text-decoration: none; cursor:default")}),$('input[name="all_weekdays"], .ui_grid_cell > table.table-condensed, table.table-hardcoded table.table-condensed, select[multiple][name="days"]').each(function(){$(this).parent("td").attr("style","vertical-align: top !important; padding-left:2px; padding-right:2px;")}),$('input[type="submit"]').each(function(){$(this).addClass("btn btn-default")}),$("table tr th").each(function(){$(this).text()&&$(this).attr("style","width: auto")}),$("table thead th:not(.table-title)").each(function(){$(this).css("border-top","none"),$(this).css("border-bottom","none")}),$("body").attr("class")&&$("body").attr("class").indexOf(v___module_file_manager)>-1&&(!$("body").hasClass("file-manager")&&$("body").addClass("file-manager"),$("#headln2l").prepend("'));var k=$(".panel-heading > table.header > tbody > tr > td > a");$.each(k,function(){if($(this).attr("href")&&$(this).attr("href").indexOf("config.cgi")>-1||$(this).attr("href").indexOf("man/search.cgi")>-1||$(this).attr("href").indexOf("/index.cgi")>-1||$(this).attr("href")==v___location_directory_trail_slashed||$(this).attr("href").indexOf("index.cgi")>-1&&v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"openvpn/"||$(this).attr("href").indexOf("index.cgi?")>-1&&v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"spam/"||$(this).attr("href").indexOf("restart_zone.cgi")>-1||$(this).attr("href").indexOf("restart.cgi")>-1||$(this).attr("href").indexOf("apply.cgi")>-1||$(this).attr("href").indexOf("start.cgi")>-1||$(this).attr("href").indexOf("stop.cgi")>-1||"//"==$(this).attr("href")&&(v___location_path_lead_unslashed==v___location_prefix_unslashed_trail_slashed+"settings-editor_read.cgi"||v___location_path_lead_unslashed==v___location_prefix_unslashed_trail_slashed+"settings-upload.cgi")||$(this).attr("href").indexOf("delete_")>-1||$(this).attr("href").indexOf("list_mail.cgi")>-1||$(this).attr("href").indexOf("/virtual-")>-1||$(this).attr("href").indexOf("/virtualmin-")>-1||$(this).attr("href").indexOf("/server-")>-1||$(this).attr("href").indexOf("help.cgi")>-1){if($.each($(this).next("br"),function(){$(this).remove()}),$.each($(this).prev("br"),function(){$(this).remove()}),$(this).attr("href").indexOf("help.cgi")>-1){var e=$(this),t=$(this).parent("td");$(this).remove(),t.append(e)}$(this).attr("href").indexOf("/index.cgi")>-1||$(this).attr("href")==v___location_directory_trail_slashed||$(this).attr("href").indexOf("/virtual-")>-1||$(this).attr("href").indexOf("/virtualmin-")>-1||$(this).attr("href").indexOf("/server-")>-1?($iconized_class="fa-arrow-left",$(this).data("title","").data("back",1)):"//"!=$(this).attr("href")||v___location_path_lead_unslashed!=v___location_prefix_unslashed_trail_slashed+"settings-editor_read.cgi"&&v___location_path_lead_unslashed!=v___location_prefix_unslashed_trail_slashed+"settings-upload.cgi"?$(this).attr("href").indexOf("config.cgi")>-1?($iconized_class="fa-cog",$(this).data("title","")):$(this).attr("href").indexOf("restart.cgi")>-1||$(this).attr("href").indexOf("apply.cgi")>-1?$iconized_class="fa-refresh":$(this).attr("href").indexOf("restart_zone.cgi")>-1?$iconized_class="fa-retweet":$(this).attr("href").indexOf("start.cgi")>-1?$iconized_class="fa-play":$(this).attr("href").indexOf("stop.cgi")>-1?$iconized_class="fa-square":$(this).attr("href").indexOf("man/search.cgi")>-1?$iconized_class="fa-search":$(this).attr("href").indexOf("delete_")>-1?$iconized_class="fa-trash-o":$(this).attr("href").indexOf("list_mail.cgi")>-1?$iconized_class="fa-inbox":$(this).attr("href").indexOf("index.cgi")>-1&&v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"openvpn/"?$iconized_class="fa-cogs":$(this).attr("href").indexOf("index.cgi?")>-1&&v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"spam/"&&($iconized_class="fa-arrow-left",$(this).data("back",1)):($iconized_class="fa-arrow-left",$(this).attr("href",v___location_prefix+"/webmin/edit_themes.cgi").data("title","").data("back",1));var i=$(this).attr("href").indexOf("help.cgi")>-1;i&&($iconized_class="fa-question-circle",$(this).data("title","")),$(this).data("toggle","tooltip").data("title",Convert.strUpInitial(i?theme_language("theme_xhred_global_help"):1===$(this).data("back")?Core.curModule(v___module_file_manager)?"":theme_language("theme_xhred_global_return_to_module_index"):$(this).text())).attr("data-container","body").addClass("btn btn-link text-lighter").removeClass("ui_link").append(''),$(this).contents().filter(function(){return 3==this.nodeType}).remove(),$(this).tooltip({container:"body",placement:"auto top",delay:{show:600,hide:30}}),((v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"apache/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"proftpd/")&&($(this).attr("href").indexOf("restart.cgi")>-1||$(this).attr("href").indexOf("apply.cgi")>-1)||$(this).parent("td").find("a")&&1==$(this).parent("td").find("a").length||$(this).attr("href").indexOf("man/search.cgi")>-1||$(this).attr("href").indexOf("config.cgi")>-1||$(this).attr("href").indexOf("/index.cgi")>-1||$(this).attr("href").indexOf("/index.cgi")>-1||$(this).attr("href").indexOf("/virtual-")>-1||$(this).attr("href").indexOf("/virtualmin-")>-1||$(this).attr("href").indexOf("/server-")>-1)&&(($(this).attr("href").indexOf("/index.cgi")>-1||$(this).attr("href").indexOf("config.cgi")>-1)&&$("body").attr("class")&&$("body").attr("class").indexOf(v___module_file_manager)>-1?$(this).attr("style","margin-right: 0 !important; padding: 6px 12px"):$(this).attr("style","margin-right: 0 !important"))}$("#headln2l").removeClass("invisible")}),$.each($('td.ui_grid_cell:contains("|")'),function(){$(this).contents().filter(function(){return 3==this.nodeType}).remove()}),$('a[href*="help.cgi"][onclick], a[href*="help.cgi/"], a[href*="showpass.cgi?"][onclick]').attr("onclick","").unbind("click").addClass("help_popup"),$(".help_popup").each(function(){$(this).attr("style","color: #333; text-decoration: none; cursor:help")})}if(!e){if(v___location_directory_unslashed_trail_slashed!=v___location_prefix_unslashed_trail_slashed+"fdisk/"&&v___location_directory_unslashed_trail_slashed!=v___location_prefix_unslashed_trail_slashed+"postfix/"&&v___location_directory_unslashed_trail_slashed!=v___location_prefix_unslashed_trail_slashed+"pam/"&&v___location_directory_unslashed_trail_slashed!=v___location_prefix_unslashed_trail_slashed+"syslog/"||$("p > a[href], table + a[href], div.panel-body > a.ui_link").each(function(e,t){$(this).text($(this).text().replace(/\.$/,""))}),$('.panel-body > form > p > a.ui_link, .panel-body > table.table + a.ui_link, .panel-body > p > a:not([href*="config.cgi?bacula-backup"]), body[data-current-product="usermin"] div.panel-body > p > a, div.panel-body > a[href^="edit_"]:not([href^="edit_user.cgi?user="], [href^="edit_group.cgi?group="]), .ui_form > a, .ui_grid_cell > :not(input):not(.acheckbox):not(.aradio):not(label) + a.ui_link:not([href^="edit_acl.cgi"], [href^="edit_rpc.cgi"], [href^="edit_user.cgi?user="], [href^="edit_group.cgi?group="]), .ui_grid_cell > a.select_all, .ui_grid_cell > a.select_invert, .ui_grid_cell > :not(input):not(.acheckbox):not(.aradio):not(label) + a[href*=".cgi"]:not([href^="edit_acl.cgi"], [href^="edit_rpc.cgi"], [href^="edit_user.cgi?user="], [href^="edit_group.cgi?group="]), .ui_grid_cell > a[href*=".cgi"]:first-child:not([href^="edit_rpc.cgi"],[href^="edit_nuser.cgi"],[href*="edit_user.cgi?idx"]), .tab-pane > p > a, .tab-pane > a.ui_link, .tab-pane > .table-condensed > a.ui_link, .tab-pane > a, .panel-body > p > a.ui_link, a.select_all, a.select_invert, form[action="delete.cgi"] > table table.ui_grid_table + a, form + script + a[href*="newdb_form.cgi"]').each(function(){if(!(Core.curModuleFile("samba","edit_epass.cgi")||Core.curModule("acl")&&($(this).is('[href^="edit_user.cgi?user="]')||$(this).parent("td.ui_grid_cell").length)&&!$(this).parents("b").length)&&!Core.curModuleFile("virtual-server","history.cgi")&&!Core.curModuleFile("server-manager","one_history.cgi")&&v___location_directory_unslashed_trail_slashed!=v___location_prefix_unslashed_trail_slashed+"passwd/"&&$(this).text()&&v___location_path!=v___location_prefix+"/mailboxes/"&&v___location_path!=v___location_prefix+"/mailboxes/index.cgi"&&v___location_path!=v___location_prefix+"/usermin/list_configs.cgi"&&!$(this).hasClass("help_popup")){$(this).addClass("btn btn-inverse btn-tiny ui_link_replaced"),$(this).text($(this).text().replace(/\.$/,""));var e=$(this).parent().contents().filter(function(){return 3==this.nodeType});e&&$.each(e,function(){$(this).text()&&$(this).text().length<=3&&$(this).remove()}),$(this).hasClass("select_all")&&$(this).html(' '+$(this).text()),$(this).hasClass("select_invert")&&$(this).html(' '+$(this).text()),(Core.curModuleFile("server-manager","index.cgi")||Core.curModuleFile("server-manager",""))&&$(this).parent('form[action="mass.cgi"]').length&&(($(this).is(":nth-child(1)")||$(this).is(":nth-child(6)"))&&$(this).html(' '+$(this).text()),($(this).is(":nth-child(2)")||$(this).is(":nth-child(7)"))&&$(this).html(' '+$(this).text()),($(this).is(":nth-child(3)")||$(this).is(":nth-child(8)"))&&$(this).html(' '+$(this).text())),$(this).attr("href")&&(0===$(this).attr("href").indexOf("edit")&&0!==$(this).attr("href").indexOf("edit_allow")||0===$(this).attr("href").indexOf("master_form")||0===$(this).attr("href").indexOf("slave_form")||0===$(this).attr("href").indexOf("stub_form")||0===$(this).attr("href").indexOf("forward_form")||0===$(this).attr("href").indexOf("delegation_form")||0===$(this).attr("href").indexOf("mass_form")||0===$(this).attr("href").indexOf("newdb_form"))?$(this).html(' '+$(this).html()):$(this).attr("href")&&0===$(this).attr("href").indexOf("edit_allow")?$(this).html(' '+$(this).text()):($(this).attr("href")&&0===$(this).attr("href").indexOf("mass_ucreate")&&$(this).html(' '+$(this).text()),$(this).attr("href")&&$(this).attr("href").indexOf("grace_form")>-1&&$(this).html(' '+$(this).text())),$(this).attr("href")&&$(this).attr("href").indexOf("edit_manual")>-1&&$(this).html(' '+$(this).text()),v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"custom/"&&($(this).attr("href")&&0===$(this).attr("href").indexOf("edit_cmd.cgi?new")&&$(this).html(' '+$(this).text()),$(this).attr("href")&&0===$(this).attr("href").indexOf("edit_file.cgi?new")&&$(this).html(' '+$(this).text()),$(this).attr("href")&&0===$(this).attr("href").indexOf("edit_sql.cgi?new")&&$(this).html(' '+$(this).text())),$(this).attr("href")||$(this).remove()}}),$.each($(".btn-tiny.ui_link_replaced"),function(){$(this).prev('[class="table table-striped table-condensed"]').length&&$(this).next(':not(".ui_link_replaced")').length&&$(this).removeClass("btn-tiny ui_link_replaced").addClass("ui_link_re-replaced")}),$("a.ui_link_replaced").each(function(){$(this).prev().is("b")&&$(this).prev("b").addClass("btn btn-success btn-tiny"),$(this).next().is("b")&&$(this).next("b").addClass("btn btn-success btn-tiny")}),v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"fetchmail/"&&$("a.ui_link").each(function(){function e(e){return' '}$(this).addClass("btn btn-inverse btn-tiny ui_link_replaced").css("margin-bottom","10px").css("margin-top","4px"),$(this).text($(this).text().replace(/\.$/,"")),$(this).parent().contents().filter(function(){return 3==this.nodeType}).remove(),$(this).attr("href").indexOf("edit_poll")>-1&&$(this).prepend(e("plus-square-o")),$(this).attr("href").indexOf("edit_global")>-1&&$(this).prepend(e("pencil-square-o")),$(this).attr("href").indexOf("check")>-1&&$(this).prepend(e("check-square-o"))}),v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"filter/"&&$("a.ui_link").each(function(){function e(e){return' '}$(this).attr("href").indexOf("edit_auto")>-1&&$(this).find("i").replaceWith(e("reply")),$(this).attr("href").indexOf("edit_forward")>-1&&$(this).find("i").replaceWith(e("reply-all"))}),$('select.ui_select[name="days"]').each(function(){$(this).parent("td").attr("style","vertical-align: top !important")}),v___location_directory_unslashed_trail_slashed!=v___location_prefix_unslashed_trail_slashed+"mailboxes/"&&v___location_path!=v___location_prefix+"/mailboxes/index.cgi"&&v___location_directory_unslashed_trail_slashed!=v___location_prefix_unslashed_trail_slashed+"mailbox/"&&v___location_path!=v___location_prefix+"/postfix/view_mailq.cgi"||(v___location_file?"list_mail.cgi"==v___location_file&&$('.container-fluid input:not([type="checkbox"]), .container-fluid .ui_form_end_submit, .container-fluid select').addClass("heighter-34").removeClass("heighter-28").css("margin-bottom","-1px"):($(".ui_form_end_submit").css("margin-top","0"),$("input#user").addClass("heighter-34 vertical-align-top")),$("body").find("form").removeAttr("onsubmit"),$header_tables=$("body").find('input[name="from"]').parents(".tab-pane").parent("td"),$header_tables.children("table").hide(),$.each($header_tables.find("input, textarea, select"),function(){$(this).hasClass("ui_select")||$(this).attr("onclick")||"checkbox"==$(this).attr("type")||"submit"==$(this).attr("type")||$(this).attr("style","width: 60%").addClass("inline-block"),$(this).attr("onclick")&&$(this).addClass("inline-block")}),onbeforeunload=null,1==$("body").find('input.ui_hidden[name="html_edit"]').val()&&editor_html_init(["body",2,!1,"edit_web"],"basic"),$("body").find('input[name="from"]').parents(".tab-pane").prev("table").remove(),$("body").find('input[name="from"]').parents(".tab-pane ").parent("td").find("div, table").each(function(e,t){$(this).find(".col_label").css("width","20%"),$(this).find('input[name="subject"]').parent("td").prev("td").find("b").attr("style","font-size: 13px !important"),$(this).find('input[name="subject"]').parents("table").show(),$(this).find('input[name="subject"]').parent("td").find(".submitter").remove()}),$editor_mode_link_container=$("body").find('textarea[id="body"]').parents("table").find("thead > tr > th:last-child"),$editor_mode_link=$editor_mode_link_container.find("a").addClass("editor_mode_link"),$editor_mode_link_container.parent("tr").find("th:first-child").append($editor_mode_link),$editor_mode_link_container.remove(),$editor_mode_link_button=$("body").find('textarea[id="body"]').parents("table").find(".editor_mode_link"),$editor_mode_link_button_state=!!$editor_mode_link_button.attr("href")&&$editor_mode_link_button.attr("href").indexOf("html=0"),$editor_mode_link_button.attr("title",$editor_mode_link_button.text()).addClass("editor_mode_link_button pull-right btn btn-sm "+($editor_mode_link_button_state==-1?"btn-success":"btn-primary")).html(' '),$("body").find('textarea[id="body"]').parents("table").find("thead > tr > th").find("b").css("padding-left","45px"),$(".editor_mode_link_button").tooltip(),$fileinput_container=$("body").find('a[onclick="return add_ss_attachment()"]'),$fileinput_container.parent("td").contents().filter(function(){return 3==this.nodeType}).remove(),$fileinput_container.remove(),$fileinput_add_another_attachment=$("body").find('a[onclick="return add_attachment()"]'),$fileinput_add_another_attachment.addClass("btn btn-default"),$fileinput_add_another_attachment.text($fileinput_add_another_attachment.text().replace(/\.$/,"")),(v___location_path.indexOf("view_mail.cgi")>-1||v___location_path.indexOf("view_mailq.cgi")>-1)&&($table_title_header_container=$(".ui_form").find("div.table-responsive").first().find(".table-title"),$table_title_links_container=$table_title_header_container.next(),$table_title_links_container.contents().filter(function(){return 3==this.nodeType}).remove(),$table_title_links_container.find("a").addClass("table_title_links pull-right btn btn-info btn-tiny"),$table_title_links=$table_title_links_container.html(),$table_title_header_container.append($table_title_links),$table_title_links_container.remove(),$table_title_header_container_text_padding=35,$(".table-title > a.table_title_links").each(function(){$table_title_header_container_text_padding=v___location_path==v___location_prefix+"/postfix/view_mailq.cgi"?120:235}),$(".table_title_links_container a").each(function(){$table_title_header_container_text_padding+=$(this).width()}),$table_title_header_container.find("b").css("padding-left",$table_title_header_container_text_padding),$table_title_second_container=$(".ui_form").find("div.table-responsive").first().next("div.table-responsive").find("table:first-child"),$table_title_header_container=$(".ui_form").find("div.table-responsive").first().next("div.table-responsive").find("th:first-child"),$table_title_links_container=$(".ui_form").find("div.table-responsive").first().next("div.table-responsive").find("th:last-child"),2==$(".ui_form").find("div.table-responsive").first().next("div.table-responsive").find("th").length&&$table_title_links_container.remove(),$table_title_links_container.find("a").addClass("table_title_links pull-right btn btn-tiny"),$table_title_links_container.find("a").attr("href")&&$table_title_links_container.find("a").attr("href").indexOf("body=1")>-1?$table_title_links_container.find("a").addClass("btn-info"):$table_title_links_container.find("a").addClass("btn-warning"),$table_title_links=$table_title_links_container.html(),$table_title_header_container.append($table_title_links),$table_title_header_container_text_padding=10,$table_title_header_container.find("a").each(function(){$table_title_header_container_text_padding+=$(this).width()}),setTimeout(function(){if($(".ui_form").find("div.table-responsive").first().find("table:first-child").outerWidth()!=$(".ui_form").find("div.table-responsive").first().next("div.table-responsive").find("table:first-child").outerWidth()){var e=parseInt($(".ui_form").find("div.table-responsive").first().find("table:first-child").width()/2);$table_title_second_container.find(".table-title").addClass("left").find("b").css("padding-left",e-175),$table_title_second_container.find(".pull-right").removeClass("pull-right").addClass("pull-left")}$.each($table_title_second_container.find("table"),function(){$(this).removeClass().addClass("clear-formatting"),$.each($(this).find("td.col_value"),function(){$(this).css("background-color","white")})})},30),$table_title_header_container.find("b").css("padding-left",$table_title_header_container_text_padding),$table_title_header_container.find("b")&&$table_title_header_container.find("b").length>1&&$table_title_header_container.find("b:first-child").text()==$table_title_header_container.find("b:last-child").text()&&$table_title_header_container.find("b:last-child").remove()),$("td > a").on("click",function(){$(this).attr("onclick"),$("input[type=file]").each(function(){$(this).parent("a").hasClass("file-input-wrapper")||$(this).bootstrapFileInput()})}),settings_mailbox_slash_delimiter&&$('.container-fluid select.ui_select[name="id"] > option').each(function(e,t){$(t).text($(t).text().replace(/\./g,"/").replace(/\/\//g,"/"))}),$.each($('table td[align="right"], table td[align="left"]'),function(e,t){$(this).attr("style","border: 0 !important;"),$(this).parents("tbody").attr("style","border: 0 !important;"),$(this).parents("table.table-hardcoded.table.table-striped.table-condensed.table-subtable").removeClass("table-hardcoded table table-striped table-condensed table-subtable")}),$.each($("div.table-responsive > table tbody tr td > table.table-hardcoded"),function(e,t){$(this).find("tr > td.col_label > b").removeAttr("style"),$(this).removeClass("table table-condensed")}),$.each($("div.table-responsive > table tbody tr td > div.tab-pane"),function(e,t){$(this).find("table").removeClass("table"),$(this).parents("div.table-responsive").find("table").removeClass("table-striped table-subtable")}),$.each($('div.table-responsive > table tbody tr td > div.tab-pane .col_value > input[type="button"][onclick^="ifield"]'),function(e,t){$(this).attr("style","margin-left: 0; margin-top: -27px !important")})),$.each($(".barchart"),function(){$(this).find("img").attr("height",4)}),$('#extended_sysinfo-1 div[aria-labelledby^="updates-"] div.panel-body div.table-responsive table.table.table-striped.table-condensed').next("table.ui_form_end_buttons").css("margin-top","10px"),$('#extended_sysinfo-1 div[aria-labelledby^="updates-"] div.panel-body div.table-responsive table.table.table-striped.table-condensed').next("table.ui_form_end_buttons").css("margin-top","10px").prev("table.table-condensed").prev("table.table.table-striped").addClass("invisible"),$("a").each(function(){$(this).attr("href")||$(this).addClass("no_effect")}),v___location_path!=v___location_prefix+"/virtual-server/domain_form.cgi"&&v___location_path!=v___location_prefix+"/server-manager/list_images.cgi"&&v___location_path!=v___location_prefix+"/virtual-server/bwgraph.cgi"||($(".panel-body > a").each(function(){$(this).addClass("btn btn-inverse btn-tiny ui_link_replaced").removeClass("ui_link"),$(this).text($(this).text().replace(/\.$/,""))}),$.each($('.panel-body:contains("|")'),function(){$(this).contents().filter(function(){return 3==this.nodeType}).wrap('')}),$.each($(".btn-automated"),function(){$(this).text().replace(/[\t\n]+/g," ").length<4?$(this).remove():($(this).text($(this).text().replace("|","").replace("|","").replace(/(?:\r\n|\r|\n)/g,"")),$(this).prev().is("img")&&$(this).removeClass().addClass("margined-left-3"))}),$(".panel-body > b").css("margin-right","7px"),v___location_path==v___location_prefix+"/virtual-server/domain_form.cgi"&&$.each($(".btn-automated, .ui_link_replaced"),function(e,t){0==e&&$(this).html(' '+$(this).text()),1==e&&$(this).html(' '+$(this).text()),2==e&&$(this).html(' '+$(this).text()),3==e&&$(this).html(' '+$(this).text())})),v___location_path==v___location_prefix+"/server-manager/edit_serv.cgi"&&setTimeout(function(){$('.opener_container .table-hardcoded .col_value a[href^="edit_serv.cgi"]').each(function(){$(this).addClass("btn btn-inverse btn-xxs ui_link_replaced margined-right--2").removeClass("ui_link").attr("style","margin-top: 0 !important"),$(this).text($(this).text().replace(/\.$/,""))}),$.each($('.opener_container .table-hardcoded .col_value:contains("|")'),function(){$(this).find('a[href^="edit_serv.cgi"]').length&&$(this).contents().filter(function(){return 3==this.nodeType}).wrap(''),$.each($(".btn-automated"),function(){$(this).text().length<4?$(this).remove():$(this).text($(this).text().replace("|","").replace("|","").replace(/(?:\r\n|\r|\n)/g,""))})})},20),$.each($(".container-fluid input:not(.ui_upload)"),function(){"28px"==$(this).css("height")&&$(this).prev("input").addClass("heighter-28")}),(Core.curModule("syslog")||Core.curModule("phpini"))&&$(".container-fluid .chooser_button + .ui_form_end_submit").addClass("heighter-28"),Core.curModuleFile("virtual-server","backuplog.cgi")&&$('.container-fluid input[name="search"]').addClass("margined-top--1"),Core.curModuleFile("usermin","list_sessions.cgi")&&$('.container-fluid input[name="user"] + button + button').addClass("heighter-34-force"),$.each($(".container-fluid select"),function(){32==$(this).next("input").outerHeight()&&$(this).addClass("heighter-34")}), +$.each($(".container-fluid .ui_buttons_row input, .container-fluid .ui_buttons_row select"),function(){$(this).addClass("heighter-34")}),Core.curModuleFile("gnupg","list_keys.cgi")&&$('.container-fluid input[id="id"]').addClass("heighter-34"),Core.curModule("language")&&$('select[name="lang"]').addClass("heighter-34"),Core.curModuleFile("virtual-server","edit_script.cgi")){var C=$('input[name="version"]');C.length&&C.attr("style",C.attr("style").replace("n: middle","n: bottom !important")).addClass("heighter-34")}if($.each($("tr > .ui_form"),function(){$(this).next().next("td").find("input.submitter")&&$(this).next().next("td").find("input.submitter").addClass("heighter-34")}),$.each($("input.heighter-34").next(".chooser_button"),function(){$(this).addClass("heighter-34"),$(this).find(".fa.fa-files-o").css("margin-top","0").addClass("vertical-align-middle")}),setTimeout(function(){$.each($(".container-fluid select"),function(){32==$(this).next("input").outerHeight()||32==$(this).prev("input").outerHeight()?$(this).addClass("heighter-34").removeClass("heighter-28"):28!=$(this).next("input").outerHeight()&&28!=$(this).prev("input").outerHeight()||$(this).addClass("heighter-28").removeClass("heighter-34")})},1),Core.curModule("term")||Core.curModuleFile("server-manager","login.cgi")){var O=$("iframe");if(O.length){var T=O;T.on("load",function(){T.contents().find("#term").css("width","99.3%").css("height","96vh").css("margin-top","1px")}),$(this).next("br").remove().next('input[type="button"]').remove(),$(this).next('input[type="button"]').remove(),$(this).next("p").remove()}}if($.each($(".chooser_button"),function(){$(this).prev("input").attr("style")&&$(this).prev("input").attr("style").indexOf("max-width: 100%")>-1&&$(this).prev("input").css("max-width","93%")}),v___location_path_lead_unslashed==v___location_prefix_unslashed_trail_slashed+"sysinfo.cgi"&&1==settings_sysinfo_link_mini&&$(".navigation > li:not('.has-sub')").removeClass("sub_active").find("span.current-large").remove(),$.each($('input[value="..."], input[value=" ..."], input[value=" ..."], input[value="... "], input[value="... "], input[value=" ... "], input[value=" ... "]'),function(){$(this).after(''),$(this).attr("value","")}),$.each($(".chooser_button"),function(){$(this).prev("input").css("margin-top","2px").css("margin-bottom","2px")}),$.each($(".file_chooser_button_attached"),function(){$(this).prev('input[type="button"]').prev("input").css("margin-top","2px").css("margin-bottom","2px"),$(this).parents(".ui_buttons_label").length||$(this).parents(".table-subtable").length||$(this).css("margin-top","11px")}),$.each($(".container-fluid .ui_form > .file_chooser_button_attached"),function(){($(this).prev(".heighter-34")&&$(this).prev(".heighter-34").length||$(this).next(".heighter-34")&&$(this).next(".heighter-34").length)&&($(this).css("margin-top","16px"),$(this).prev("input[onclick]").css("width","40px"))}),$.each($('.container-fluid .ui_form[action="init_cache.cgi"] > .file_chooser_button_attached'),function(){($(this).prev(".heighter-34")&&$(this).prev(".heighter-34").length||$(this).next(".heighter-34")&&$(this).next(".heighter-34").length)&&$(this).css("margin-top","14px")}),$.each($(".col_value > .file_chooser_button_attached"),function(){$(this).prev("input[onclick]").css("width","40px").css("margin-left","0")}),$("a.ui_link, .btn").each(function(){if("."==$(this).text().substr(-1)&&!$(this).parent().is("label")){var e="."==$(this).text().substr(-1)&&".."==$(this).text().substr(-2)?2:1;$(this).text($(this).text().substr(0,$(this).text().length-e))}}),v___location_path!=v___location_prefix+"/virtualmin-mailman/"&&v___location_path!=v___location_prefix+"/virtualmin-mailman/index.cgi"||$("input[name^=reset_]").addClass("heighter-28"),v___location_path!=v___location_prefix+"/software/edit_pack.cgi"&&v___location_path!=v___location_prefix+"/apache/show.cgi"&&v___location_path!=v___location_prefix+"/proc/index_search.cgi"||$.each($(".container-fluid .panel-body .btn:not(.chooser_button)"),function(){$(this).removeClass("heighter-28").addClass("heighter-34")}),v___location_path!=v___location_prefix+"/virtualmin-svn/"&&v___location_path!=v___location_prefix+"/virtualmin-svn/index.cgi"||$.each($("tr > td.td_tag > button"),function(){$(this).addClass("btn-hover-wash_off-in-row bhw-sm heighter-28 heighter-28-force margined-top-2 margined-bottom-2"),$(this).find(".fa-backup").length&&$(this).removeClass("heighter-28-force")}),v___location_path!=v___location_prefix+"/apache/edit_global.cgi"&&v___location_path!=v___location_prefix+"/virtual-server/edit_newlinks.cgi"&&v___location_path!=v___location_prefix+"/virtualmin-awstats/"&&v___location_path!=v___location_prefix+"/postfix/master.cgi"||$.each($(".container-fluid .panel-body .ui_link_replaced"),function(){$(this).not(".btn-xxs").removeClass("btn-tiny").addClass("heighter-34")}),v___location_path!=v___location_prefix+"/virtualmin-init/"&&v___location_path!=v___location_prefix+"/virtualmin-dav/list_shares.cgi"&&v___location_path!=v___location_prefix+"/squid/edit_acl.cgi"&&v___location_path!=v___location_prefix+"/virtualmin-nginx/"&&v___location_path!=v___location_prefix+"/fdisk/edit_disk.cgi"&&v___location_path!=v___location_prefix+"/server-manager/edit_newlinks.cgi"&&v___location_directory_unslashed_trail_slashed!=v___location_prefix_unslashed_trail_slashed+"backup-config/"||$.each($(".container-fluid .panel-body .ui_link_re-replaced"),function(){$(this).addClass("btn-tiny").removeClass("heighter-34")}),v___location_path==v___location_prefix+"/pam/"&&$(".panel-body > a.ui_link").addClass("btn-tiny"),v___location_path!=v___location_prefix+"/syslog/"&&v___location_path!=v___location_prefix+"/syslog/index.cgi"||$.each($(".btn"),function(){$(this).removeClass("btn-tiny")}),v___location_path!=v___location_prefix+"/software/"&&v___location_path!=v___location_prefix+"/software/index.cgi"||($(".container-fluid input#search").addClass("heighter-34 vertical-align-top"),$('form[action="file_info.cgi"] > .ui_form_end_submit').addClass("heighter-28 heighter-28-force margined-top-0")),v___location_path==v___location_prefix+"/software/tree.cgi"&&$(".ui_link").addClass("margined-top-10"),v___location_path==v___location_prefix+"/syslog/save_log.cgi"&&($.each($(".container-fluid .heighter-34"),function(){$(this).removeClass("heighter-34").addClass("heighter-28")}),$("form:first").next("script").next("br").remove(),$("form:last").css("margin-top","5px")),v___location_path==v___location_prefix+"/status/edit_mon.cgi"&&($('td.col_value > table[cellspacing="1"] tbody').attr("style","border: 0 !important;"),$(".opener_trigger:last-child").css("font-size","16px"),$.each($("table.sub_table_container td > font"),function(){$(this).parents("tbody"),$(this).contents().unwrap().wrap(' ')})),v___location_path!=v___location_prefix+"/shell/"&&v___location_path!=v___location_prefix+"/shell/index.cgi"&&v___location_path!=v___location_prefix+"/server-manager/shell.cgi"||($.each($(".container-fluid .btn:not(.btn-link), .container-fluid select, .container-fluid input"),function(){$(this).removeClass("heighter-28").addClass("heighter-34"),$(this).is('input[type="button"]')&&$($(this).addClass("submitter")),$(".form-control.sidebar-search").val()&&$(".form-control.sidebar-search").val().trim().startsWith("!")&&$(".form-control.sidebar-search").val(""),$(".ui_form").find("input.btn.btn-default:first").addClass("btn-success")}),$(".container-fluid input#cmd").focus()),$.each($("input"),function(){28==$(this).outerHeight()&&28!=$(this).next("input").outerHeight()&&$(this).is(':not([type="hidden"])')&&$(this).next("input").addClass("heighter-28")}),$.each($(".container-fluid select"),function(){32==$(this).outerHeight()&&32!=$(this).next("select").outerHeight()&&$(this).next("select").addClass("heighter-34")}),v___location_path==v___location_prefix+"/cluster-passwd/edit_passwd.cgi"&&$.each($("input + button"),function(e,t){"28px"==$(this).css("height")&&$(this).addClass("heighter-28").css("line-height","12px").css("margin-top","2px")}),v___location.pathname!=v___location_prefix+"/virtual-server/pro/history.cgi"&&v___location.pathname!=v___location_prefix+"/server-manager/bwgraph.cgi"&&v___location.pathname!=v___location_prefix+"/server-manager/history.cgi"&&v___location.pathname!=v___location_prefix+"/server-manager/one_history.cgi"||($("body").find("table.ui_form_end_buttons .btn.btn-default.submitter.ui_submit").addClass("btn-success"),$(".panel-body > table tr td b").each(function(e,t){$(this).addClass("btn btn-success btn-tiny ui_link_replaced")}),$(".panel-body > table a").each(function(e,t){$(this).addClass("btn btn-inverse btn-tiny ui_link_replaced").removeClass("ui_link"),$(this).text($(this).text().replace(/\.$/,"")),$(this).text()&&$(this).text().indexOf("<<")>-1&&($(this).text($(this).text().replace(/\<\ '+$(this).text())),$(this).text()&&$(this).text().indexOf(">>")>-1&&($(this).text($(this).text().replace(/\>\>/,"")),$(this).html($(this).text()+' ')),$(this).parent().contents().filter(function(){return 3==this.nodeType}).remove(),0===$(this).attr("href").indexOf("edit_cmd.cgi?new")&&$(this).html(' '+$(this).text()),0===$(this).attr("href").indexOf("edit_file.cgi?new")&&$(this).html(' '+$(this).text()),0===$(this).attr("href").indexOf("edit_sql.cgi?new")&&$(this).html(' '+$(this).text()),$(this).parents("table").css("margin-bottom","3px")}),$("#history").next("table.ui_grid_table").next("a").length?($("#history").next("table").next("a").addClass("btn btn-info btn-tiny ui_link_replaced").attr("style","margin-top: 4px !important").attr("target","_blank"),$("#history").next("table").next("a").text($("#history").next("table").next("a").text().replace(/\.\.$/,"")),$("#history").next("table").next("a").html(' '+$("#history").next("table").next("a").text())):($("#history").next("a").addClass("btn btn-info btn-tiny ui_link_replaced").attr("style","margin-top: 4px !important").attr("target","_blank"),$("#history").next("a").text($("#history").next("a").text().replace(/\.\.$/,"")),$("#history").next("a").html(' '+$("#history").next("a").text())),$(".panel-body > hr + b").attr("style","font-size: 16px; font-weight: normal;"),$(".panel-body > hr + b").text($(".panel-body > hr + b").text().replace(/\:$/,"")),onLoad()),$.each($('tr > td[valign="top"][width="50%"]'),function(){$(this).attr("style","vertical-align: top !important; "+$(this).attr("style"))}),$("body table").each(function(e,t){$(this);$(t).hasClass("table")||$(t).hasClass("header")||$(t).hasClass("ui_form_end_buttons")||$(t).hasClass("ui_table")||($(t).addClass("table-hardcoded"),$t_uri_usermin&&($(t).addClass("table-subtable"),$(t).find("tr.thead").length||$(t).hasClass("sub_table_container table-hardcoded table-subtable")?($(t).find("tr.thead").attr("style","border: 1px solid #efefef"),$(t).attr("style","border: 1px solid #efefef")):$(t).attr("style")&&v___location_path.indexOf("view_mail.cgi")>-1||$(t).attr("style","margin-top: 10px;")))}),v___location_path!=v___location_prefix+"/bind8/"&&v___location_path!=v___location_prefix+"/postfix/virtual.cgi"||table_data_init($(".table.table-striped.table-hover.table-condensed")),v___location_path==v___location_prefix+"/virtual-server/list_scripts.cgi"&&table_data_init($("#att_existing > form > table.table.table-striped.table-condensed")),v___location_path==v___location_prefix+"/virtual-server/edit_newscripts.cgi"&&table_data_init($("#att_summary > table.table.table-striped.table-condensed")),v___location_path!=v___location_prefix+"/server-manager/index.cgi"&&v___location_path!=v___location_prefix+"/virtualmin-htpasswd/index.cgi"||table_data_init($("body > div > div > div.panel-body > form > table.table.table-striped.table-condensed")),($('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")),$('body[class*="ldap-useradmin"]').length&&table_data_init($("form > table.table.table-striped.table-condensed")),v___location_path==v___location_prefix+"/virtual-server/list_sched.cgi"&&table_data_init($(".table.table-striped.table-hover.table-condensed"),!1,!1,{orderable:!1,targets:[0,-1]}),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(){$(this).find(".fa-files-o").length||$(this).append(''),"28px"==$(this).prev("input").css("height")&&$(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.td_tag').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(){$(this).find(".heighter-34").length&&$.each($(".table-responsive + .table-responsive + .table-hardcoded td"),function(){$(this).find(".btn").addClass("heighter-34")})}),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"),v___location_path==v___location_prefix+"/cpan/"||v___location_path==v___location_prefix+"/cpan/index.cgi"){var S=$('input[name="cpan"]').next("button");S.html('').attr("style","width: 40px; height: 28px; vertical-align:middle !important; margin-top:2px; margin-bottom:2px;"),S.attr("onclick",S.attr("onclick").replace("document.forms[0]","document.forms[1]"))}if($("form").find(".icons-row:not(.inline-row)").length&&($("form").find(".icons-row").addClass("_processed_"),$("form").find(".icons-row").css("border-top","1px solid #efefef").css("border-bottom","1px solid #efefef"),$("form").find(".icons-row").find(".icons-container").addClass("icons-container-stretched")),v___location_path!=v___location_prefix+"/lvm/"&&v___location_path!=v___location_prefix+"/lvm/index.cgi"&&v___location_path!=v___location_prefix+"/virtualmin-support/"&&v___location_path!=v___location_prefix+"/virtualmin-support/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+"/cluster-useradmin/"&&v___location_path!=v___location_prefix+"/cluster-useradmin/index.cgi"&&v___location_path!=v___location_prefix+"/cluster-webmin/"&&v___location_path!=v___location_prefix+"/cluster-webmin/index.cgi"||function(){$("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")}(),v___location_path!=v___location_prefix+"/proftpd/"&&v___location_path!=v___location_prefix+"/proftpd/index.cgi"&&v___location_path!=v___location_prefix+"/bacula-backup/"&&v___location_path!=v___location_prefix+"/bacula-backup/index.cgi"||function(){$("body").find(".icons-row:not(._processed_):not(.inline-row)").css({"padding-top":"8px"}),$("body").find(".icons-row:not(._processed_):not(.inline-row)").css("border-top","1px solid #efefef")}(),v___location_path==v___location_prefix+"//"&&function(){$("body").find(".icons-row:not(._processed_):not(.inline-row)").css({"padding-bottom":"6px"}),$("body").find(".icons-row:not(._processed_):not(.inline-row)").css("border-bottom","1px solid #efefef")}(),$.each($(".row.icons-row.inline-row"),function(e,t){$(this).find("a.icon_link").contents().filter(function(){return 3==this.nodeType}).remove()}),$.each($(".row.icons-row:not(.inline-row) .icons-container"),function(e,t){$(this).removeAttr("data-title").removeAttr("data-toggle").removeAttr("data-placement").removeAttr("data-container")}),($("body").find(".icons-row > div.icons-container").length||$("body").find(".icons-row > div.small-icons-container").length)&&($.each($(".icons-row .hidden-forged-6"),function(){$(this).find("input").is(":checked")&&$(this).parents('div[class*="icons-container"]').addClass("highlighted")}),$.each($(".hidden-forged-7 > a"),function(){$(this).removeClass(),$(this).parents(".hidden-forged-7").hasClass("hidden-forged-7-small")?($(this).html(' '),$(this).parent().parent().prepend('')):($(this).html(' '),$(this).parent().parent().prepend(''))})),v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"virtualmin-registrar/"&&$.each($("td > input "),function(){$(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"))}),v___location_path==v___location_prefix+"/cluster-webmin/edit_host.cgi"&&$.each($(".panel-body > .table-hardcoded"),function(){$(this).attr("style","margin-top: 10px !important")}),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){$(this).prev('input[onclick*=".cgi"]')&&$(this).prev('input[onclick*=".cgi"]').css("width","40px")}),!$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()}),(v___location_path==v___location_prefix+"/mysql/view_table.cgi"||v___location_path==v___location_prefix+"/postgresql/view_table.cgi")&&$("td.td_tag > table.table-hardcoded")){var M=$("td.td_tag > table.table-hardcoded").parents("table").find("thead").find("tr").find("th").length;$("td.td_tag > table.table-hardcoded").parent("td.td_tag").attr("colspan",M).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)),"/config.cgi"===v___location_path&&$("thead tr th.table-title").prepend('  '),$.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")}),(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"),check_location_resource("/ldap-server/edit_ldif.cgi")&&$("span > input.ui_opt_textbox").unwrap(),v___location_path==v___location_prefix+"/server-manager/gvnc.cgi"&&$("body.server-manager p > object").css("height","100%").parent("p").attr("style","display: block; height: "+parseInt($(window).outerHeight()/1.4)+"px"),v___location_path==v___location_prefix+"/spam/edit_simple.cgi"||v___location_path==v___location_prefix+"/spam/edit_header.cgi"){var I=$(".ui_form .table-responsive table.table.table-striped.table-condensed.table-subtable > thead tr th:first-child"),j=$(".ui_form .table-responsive table.table.table-striped.table-condensed.table-subtable > thead tr th:last-child"),q=j.find("a");I.append(q),j.remove(),I.find("a").addClass("table_title_links pull-right btn btn-xs btn-grey").attr("style","position: absolute; right: 23px; margin-top: 7px !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 I=$(".ui_form .table-responsive table.table.table-striped.table-condensed.table-subtable > thead tr th:first-child"),j=$(".ui_form .table-responsive table.table.table-striped.table-condensed.table-subtable > thead tr th:last-child"),q=j.find("a");I.append(q),j.remove(),I.find("a").addClass("table_title_links pull-right btn btn-info btn-tiny").attr("style","position: absolute; right: 20px; margin-top: 3px !important;")}if($('.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"),v___location_directory_trail_slashed==v___location_prefix+"/virtual-server/"?$("#headln2l > a:first-child .fa-arrow-left").parent("a").attr("href",v___location_prefix+"/virtual-server/index.cgi"):v___location_directory_trail_slashed==v___location_prefix+"/server-manager/"&&$("#headln2l > a:first-child .fa-arrow-left").parent("a").attr("href",v___location_prefix+"/server-manager/index.cgi"),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 F=$("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(F,function(e,t){""==$(this).text()&&($(this).next("br").remove(),$(this).remove())}),F.attr("style","margin-bottom: -3px !important").next("br").remove()}$('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;"),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;")),"config.cgi"!=v___location_file&&"uconfig.cgi"!=v___location_file||"mysql"!=v___location_query&&"postgresql"!=v___location_query||$('input[name="style"]').parents("td.col_value").parent("tr").after('\t\t\t\t\t'+theme_language("theme_xhred_xsql_fit_content_screen_height")+'\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t"),$(".ui_post_header.hidden").html()&&$(".ui_post_header.hidden").html().length>5&&($("#headln2c").append(""+$(".ui_post_header.hidden").html()+""),$(".ui_post_header.hidden").remove())}if(v___location_path&&v___location_path.indexOf("/sysinfo.cgi")>-1){if(!e){$('#status_services-status-1-collapse .tr_tag .td_tag > img[src*="images/up.gif"]:not(".ui_icon_protected")').each(function(e,t){var i=$(this);$(t).attr("src",v___location_prefix+"/images/check.png").css("margin-right","3px").attr("title",$.trim(i.parent(".td_tag").text()))}),$('#status_services-status-1-collapse .tr_tag .td_tag > img[src*="images/down.gif"]:not(".ui_icon_protected")').each(function(e,t){var i=$(this);$(t).attr("src",v___location_prefix+"/images/cross.png").css("margin-right","3px").attr("title",$.trim(i.parent(".td_tag").text()))}),$('#status_services-status-1-collapse .tr_tag .td_tag > img[src*="images/not.gif"]:not(".ui_icon_protected")').each(function(e,t){var i=$(this);$(t).attr("src",v___location_prefix+"/images/not.png").css("margin-right","3px").attr("title",$.trim(i.parent(".td_tag").text()))}),$.each($(".piechart"),function(){isNaN($(this).data("percent"))&&$(this).parents(".text-center").remove()}).promise().done(function(){var e=$("span[data-charts]"),t='div[class^="col-md-"]',i=e.parents(".row").find(t).length,a=12/i,n=2===i?"3":"1"===i?"6":"",a=n?n:a;$.each(e.parents(".row"),function(e,n){if($(this).find(t).removeClass().addClass("col-md-"+(2===i?6:a)+" col-md-"+1.5*a+" col-xs-"+1.5*a+" col-xs-"+2*a+" text-center xx"),3===i){$(this).find(t).last().removeClass("col-xs-6 col-xs-8").addClass("col-xs-12")}})});$(".__page .panel-group .panel-default").sort(function(e,t){return $(e).data("sorter")>$(t).data("sorter")?1:-1}).appendTo("#extended_sysinfo-1.panel-group");$('span[data-entry="nf_seen"]').parent("button").on("click",function(e){e.preventDefault();var t=$(this),i=$('form[action*="seen_newfeatures.cgi"]');$.ajax({type:"GET",url:i.attr("action"),data:!1,statusCode:{200:function(){t.parents(".panel.panel-default").remove()}}})}),$('span[data-entry="right_upok"]').parent("button").on("click",function(e){e.preventDefault();var t=($(this),$('form[action*="package-updates/update.cgi"]'));t.attr("method","POST"),$("").attr({type:"submit",value:1}).appendTo(t),$('input[name="u"]').appendTo(t),t.submit()})}time.tictac(1)}if(!e){if(v___location_path==v___location_prefix+"/virtual-server/edit_phpmode.cgi"&&$("#hiddendiv_phpinfo table tbody tr").css("border","1px solid #"+(v___theme_night_mode_enabled?"393b3f":"eee")),$.each($('a[href*="showpass.cgi?"][onclick]'),function(){$(this).html('').css("color","#555")}),v___location_path==v___location_prefix+"/webmin/edit_startpage.cgi"&&($('select[name="deftab"]').parents("td.col_value").parent("tr").hide(),$('select[name="gotomodule"] option').each(function(){("virtual-server"==$(this).val()||"server-manager"==$(this).val())&&$(this).remove()})),v___location_path!=v___location_prefix+"/webmin/edit_ui.cgi"&&v___location_path!=v___location_prefix+"/usermin/edit_ui.cgi"||($('select[name*="sysinfo"], select[name*="dateformat"], input[name*="sizefile_def"], input[name*="sizeuser_def"], input[name*="sizemodule_def"], input[name*="sizeusers_def"], input[name*="sizemodules_w"], input[name*="cs_link_def"], input[name*="cs_header_def"], input[name*="cs_table_def"], input[name*="cs_text_def"], input[name*="cs_page_def"], input[name*="width_def"], input[name*="height_def"], input[name*="sizedate_def"], input[name*="texttitles"]').parents("td.col_value").parent("tr").addClass("hidden"),$(".sub_table_container tr td.no-border").parent("tr").addClass("hidden")),(check_location_resource("/config.cgi?virtual-server")||check_location_resource("/config.cgi?server-manager"))&&$('input[name="theme_image"], input[name="theme_link"], input[name="theme_alt"]').parents("td.col_value").parent("tr").hide(),v___location_path==v___location_prefix+"/virtual-server/edit_resel.cgi"&&$('input[name="logo"][id="logo"], input[name="link"]').parents("td.col_value").parent("tr").hide(),v___location_path==v___location_prefix+"/virtual-server/edit_newfeatures.cgi"&&($('.container-fluid tr td:last-child label:contains("|")').replaceText(/\|/gi,""),$(".container-fluid td a.ui_link").addClass("ui_link_replaced btn btn-transparent btn-link-bordered f__lnk_t_btn-el margined-left--4 btn-xxs").removeClass("heighter-34").removeClass("ui_link").prepend('')),$("#headln2l .btn .fa-arrow-left").length){$("body").attr("class")&&$("body").attr("class").indexOf(v___module_file_manager)>-1||$("#headln2l .btn .fa-arrow-left").parent("a").attr("href",$("#headln2l .btn .fa-arrow-left").parent("a").attr("href").replace("index.cgi",""));var z=URI(v___location);v___location_file=z.filename()}$("#headln2r, #headln2l").prepend('
    ').append("
    "),$("#headln2r a").detach().appendTo("#headln2r .btn-group"),$("#headln2l a").detach().appendTo("#headln2l .btn-group"),v___available_navigation||$("body").hasClass("file-manager")||$("#headln2l .btn-group").prepend(''), +$.each($(".ui_form_end_submit"),function(){if(v___location_path_lead_unslashed!=v___location_prefix_unslashed_trail_slashed+"proc/edit_proc.cgi"&&v___location_path_lead_unslashed!=v___location_prefix_unslashed_trail_slashed+"proc/kill_proc.cgi"&&v___location_path_lead_unslashed!=v___location_prefix_unslashed_trail_slashed+"proc/renice_proc.cgi"&&"edit_dbase.cgi"!=v___location_file&&"edit_pam.cgi"!=v___location_file&&"list_records.cgi"!=v___location_file&&!Core.curModule("mailbox")&&!Core.curModule("mailboxes")){var e=$(this).parent().find(".ui_form_end_submit");!e.parents(".btn-group").length&&e.length>1&&$(this).parent().find(".ui_form_end_submit, .ui_form_end_submit + input").wrapAll('
    ')}}).promise().done(function(){$.each($(".end_submits"),function(e,t){($(this).prev(".heighter-28").length||"28px"==$(this).prev("input, select").css("height"))&&$(this).find(".ui_form_end_submit").addClass("heighter-28")})}),$.each($(".btn-group").find("span"),function(){$(this).not("[class]").length&&!$.trim($(this).text()).length&&$(this).remove()}),2===$(".panel-default").nextAll("a.btn.btn-primary").length&&$(".panel-default").next("a.btn.btn-primary").find(".fa.fa-arrow-left").removeClass("fa-arrow-left").addClass("fa-arrow-circle-o-left"),3===$(".panel-default").nextAll("a.btn.btn-primary").length&&($(".panel-default").next("a.btn.btn-primary").next("a.btn.btn-primary").find(".fa.fa-arrow-left").removeClass("fa-arrow-left").addClass("fa-arrow-circle-left"),$(".panel-default").next("a.btn.btn-primary").find(".fa.fa-arrow-left").removeClass("fa-arrow-left").addClass("fa-arrow-circle-o-left")),v___location_path==v___location_prefix+"/init/reboot.cgi"&&$("input.btn-success").removeClass("btn-success").addClass("btn-warning"),v___location_path==v___location_prefix+"/init/shutdown.cgi"&&$("input.btn-success").removeClass("btn-success").addClass("btn-danger"),v___available_navigation||page_display(),$(".dataTable .ui_checked_checkbox").parent("tr").parent("tbody").prev("thead").find("th:first-child").addClass("opacity-0 pointer-events-none"),$("table tr.thead td").addClass("tdhead"),(Core.curModuleFile("virtual-server","edit_newchroot.cgi")||Core.curModuleFile("virtual-server","edit_newglobal.cgi")||Core.curModuleFile("virtual-server","edit_newshells.cgi")||Core.curModuleFile("virtual-server","edit_newshells.cgi")||Core.curModuleFile("virtual-server","view_backuplog.cgi")||Core.curModuleFile("virtual-server","edit_phpver.cgi")||Core.curModuleFile("virtual-server","edit_spf.cgi")||Core.curModuleFile("server-manager","edit_docker.cgi")||Core.curModuleFile("server-manager","edit_vserver.cgi")||Core.curModuleFile("server-manager","edit_zone.cgi")||Core.curModuleFile("server-manager","edit_openvz.cgi")||Core.curModuleFile("server-manager","list_locations.cgi")||Core.curModuleFile("server-manager","edit_lxc.cgi")||Core.curModuleFile("server-manager","list_ips.cgi")||Core.curModuleFile("squid","edit_cachemgr.cgi")||Core.curModuleFile("fsdump","edit_dump.cgi")||Core.curModuleFile("mysql","backup_form.cgi")||Core.curModuleFile("postgresql","backup_form.cgi")||$('body[class*="bind8"]').length&&v___location_file||$('body[class*="status"]').length&&"edit_mon.cgi"==v___location_file||$('body[class*="custom"]').length&&"edit_sql.cgi"==v___location_file||$('body[class*="custom"]').length&&"edit_cmd.cgi"==v___location_file||$('body[class*="custom"]').length&&"edit_file.cgi"==v___location_file)&&$(".table:not(.opener_table_style)").removeClass("table-hover").addClass("no-hover");var D=$(".fa-toggle-switch-off").parent("button.btn-default");if(1===D.length){"1"==D.parent("td").find('input[type="radio"]:checked').val()&&D.find(".fa-toggle-switch-off").addClass("fa-toggle-switch").removeClass("fa-toggle-switch-off")}var L=D.parents("td");L.find('[type="radio"]').length&&L.addClass("vertical-align-bottom");var R=$('form[action*="manual"] > select[name="file"], form[action*="manual.cgi"] > select[name="manual"], form[action*="edit_"] > select[name="file"]');R.length&&(R.addClass("heighter-34"),$('form[action*="manual"], form[action*="edit_"]').css("margin-bottom","2px")),Core.curModule("firewalld")&&($("select#zone").addClass("heighter-34"),$('form[action="save_ifaces.cgi"] button').addClass("heighter-28-force")),$('body[class*="proftpd"] .table-hardcoded tr td > input + input.btn.btn-default').removeClass("heighter-28").addClass("heighter-34").prev("input").addClass("heighter-34"),$('body[class*="proftpd"] form[action="find_ftpaccess.cgi"] > input:first-child').removeClass("heighter-34").addClass("heighter-28"),"edit_simple.cgi"==v___location_file&&$('body[class*="spam"]').length&&$("tr td").contents().filter(function(){return 3==this.nodeType}).remove(),"edit_awl.cgi"==v___location_file&&$('body[class*="spam"]').length&&$('input[name="user"]').next("input").addBack().addClass("heighter-34"),Core.curModuleFile("usermin","list_sessions.cgi")&&$('.container-fluid #user, .container-fluid input[type="button"]').addClass("heighter-34"),(Core.curModuleFile("htaccess-htpasswd","")||Core.curModuleFile("htaccess-htpasswd","index.cgi"))&&($("#search, .chooser_button").addClass("heighter-34").css("margin-bottom","-1px"),$("#search").css("margin-top","1px"),$('form[action*="search.cgi"] .ui_form_end_submit').css("margin-top","2px").css("margin-right","-4px")),(Core.curModuleFile("mailboxes","")||Core.curModuleFile("mailboxes","index.cgi"))&&($("#user").addClass("heighter-34 vertical-align-middle margined-bottom-1"),$(".chooser_button").addClass("margined-top-2 margined-bottom-2")),Core.curModuleFile("mailboxes","list_mail.cgi")&&$("#mfolder1, #mfolder2").addClass("heighter-34").css("margin-bottom","-1px").css("margin-top","-1px"),Core.curModuleFile("quota","list_users.cgi")&&$("#user, #user + input").addClass("heighter-34"),Core.curModuleFile("quota","list_groups.cgi")&&$("#group, #group + input").addClass("heighter-34"),(Core.curModuleFile("apache","htaccess.cgi")||Core.curModuleFile("virtualmin-registrar","index.cgi")||Core.curModuleFile("virtualmin-registrar",""))&&$(".ui_form_end_submit").addClass("heighter-28-force");var A=$('form:not([action="save_log.cgi"]) .table-responsive .table .sub_table_container .table tbody tr td > select,\t\t\t\t\t\t\t form:not([action="save_log.cgi"], [action="save_net.cgi"]) .table-responsive .table .sub_table_container .table tbody tr td > input,\t\t\t\t\t\t\t form:not([action="save_user.cgi"], [action="save_group.cgi"]) .table td.opener_container td.col_value table tbody tr td > select,\t\t\t\t\t\t\t form:not([action="save_user.cgi"], [action="save_group.cgi"]) .table td.opener_container td.col_value table tbody tr td > input,\t\t\t\t\t\t\t form[action="save_newglobal.cgi"] > table tbody tr td input,\t\t\t\t\t\t\t form[action="save_newfields.cgi"] > table tbody tr td input,\t\t\t\t\t\t\t form[action="save_newfields.cgi"] > table tbody tr td select,\t\t\t\t\t\t\t form[action="save_newshells.cgi"] > table tbody tr td select,\t\t\t\t\t\t\t form[action="save_newshells.cgi"] > table tbody tr td input,\t\t\t\t\t\t\t form[action="save_linkcats.cgi"] > table tbody tr td input,\t\t\t\t\t\t\t form[action="save_gen.cgi"] > table tbody tr td input\t\t\t\t\t\t\t ');if($.each(A,function(e,t){if(!($(this).parent().find("input[data-mmclick]").length||$(this).parent().find("button[data-mmclick]").length||$(this).parent().find('input[onclick*="window.open"]').length||$(this).parent().find('button[onclick*="window.open"]').length))return $(this).prev(".awobject").length?void $(this).css("width","auto"):void(1==$(this).parent().find('input:not([type="checkbox"], [type="radio"]), select').length?$(this).css("width","100%").css("min-width","100%"):2==$(this).parent().find('input:not([type="checkbox"], [type="radio"]), select').length&&($(this).parent().find("input, select").first().css("width","39%"),$(this).parent().find("input, select").last().css("width","60%").css("float","right")))}),Core.curModuleFile("virtual-server","edit_newstyles.cgi")?$('a[onclick^="window.open(\\"thumb_style.cgi?"]').html('').addClass("btn btn-transparent btn-link-bordered btn-xxs margined-top--3"):Core.curModule("virtual-server")&&$('a[onclick^="window.open(\\"thumb_style.cgi?"]').html('').addClass("btn btn-transparent btn-link-bordered heighter-28-force"),Core.curModuleFile("virtual-server","edit_html.cgi")){$('.ui_form_end_submit:not([name="create"], [name="cancel"], [name="save"], [name="delete"])').addClass("heighter-28-force");var E=v___location_query.indexOf("editok")!==-1||v___location_query.indexOf("createok")!==-1,N=v___location_query.indexOf("textok")!==-1;E&&$("#body").length?($("#editok").removeClass("btn-default").addClass("btn-grey"),$("#body").css("display","none"),$("hr + b").addClass("hidden"),$("#body").after('
    '),editor_html_init(["body",2,!0,"edit_web"])):N&&($("#textok").removeClass("btn-default").addClass("btn-grey"),editor_init_check()&&editor_init($("textarea"),!1,!1,"static",!1,!0,!1,e)),$(".ui_form_end_submit").click(function(){set_onbeforeunload_status(0,0)}),$("input:file").change(function(){var e=$(this);setTimeout(function(){$('form[action*="upload_html.cgi"]').append(e)},500)})}var P=' body button[onclick*="window.open"][onclick*="choose"][onclick*="chooser.cgi"]:not([onclick*="_chooser.cgi"]), body input[onclick*="window.open"][onclick*="choose"][onclick*="chooser.cgi"]:not([onclick*="_chooser.cgi"]), body button[onclick*="window.open"][onclick*="choose"][onclick*="standard_chooser.cgi"], body input[onclick*="window.open"][onclick*="choose"][onclick*="standard_chooser.cgi"], body button[onclick*="window.open"][onclick*="choose"][onclick*="third_chooser.cgi"], body input[onclick*="window.open"][onclick*="choose"][onclick*="third_chooser.cgi"], body button[onclick*="window.open"][onclick*="choose"][onclick*="user_chooser.cgi"], body input[onclick*="window.open"][onclick*="choose"][onclick*="user_chooser.cgi"], body button[onclick*="window.open"][onclick*="choose"][onclick*="group_chooser.cgi"], body input[onclick*="window.open"][onclick*="choose"][onclick*="group_chooser.cgi"], body button[onclick*="window.open"][onclick*="choose"][onclick*="my_group_chooser.cgi"], body input[onclick*="window.open"][onclick*="choose"][onclick*="my_group_chooser.cgi"], body button[onclick*="window.open"][onclick*="choose"][onclick*="module_chooser.cgi"], body input[onclick*="window.open"][onclick*="choose"][onclick*="module_chooser.cgi"] ';if($(P).length&&$(P).each(function(){$(this).attr("data-mmclick",$(this).attr("onclick")).removeAttr("onclick");chooser_get_target($(this),0)}),(Core.curModuleFile("virtualmin-nginx","")||Core.curModuleFile("virtualmin-awstats","")||Core.curModuleFile("fdisk","edit_disk.cgi")||Core.curModuleFile("virtualmin-dav","list_shares.cgi")||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"pam/"&&!v___location_file||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"syslog/"&&!v___location_file||v___location_path==v___location_prefix+"/postfix/master.cgi")&&setTimeout(function(){var e=$('.panel-body > .ui_link, .panel-body > .ui_link_replaced,\t\t\t\t\t body[data-uri*="virtualmin-awstats"] .panel-body > form > .ui_link_replaced,\t\t\t\t\t body[data-uri*="edit_disk.cgi"] .panel-body p > a.ui_link_replaced,\t\t\t\t\t body[data-uri*="edit_newlinks.cgi"] .panel-body > form > .ui_link_replaced,\t\t\t\t\t body[data-uri*="edit_newlinks.cgi"] .panel-body > .ui_emptymsg + p > .ui_link_replaced'),t=$.trim(e.first().text()),i=e.first().attr("href");i&&($("#headln2r .btn-group a").addClass("pull-left").attr("style",""),$("#headln2r .btn-group").prepend(' '),e.next("br").remove(),e.remove())},0),Core.curModuleFile("virtual-server","edit_newlinks.cgi")&&$("p > .btn.btn-inverse.ui_link_replaced.heighter-34").removeClass("heighter-34").addClass("btn-tiny"),v___theme_night_mode_enabled||v___theme_night_mode){if($(".opener_shown").length>0){var W=$(".opener_container, .opener_container:hidden").find(".ui_grid_table, .ui_grid_table:hidden");W.length&&$.each(W,function(e,t){$(this).parent("td").attr("style","padding: 0 !important")})}if($(".opener_table_style_small").length>0){var U=$(".opener_table_style_small, .opener_table_style_small:hidden").find(".sub_table_container.table-hardcoded, .sub_table_container.table-hardcoded:hidden");U.length&&$.each(U,function(e,t){$(this).parent("td").attr("style","padding: 0 !important"),$(this).find("tbody tr td").attr("style","padding-left: 3px !important; padding-right: 3px !important")})}}if($('html[data-script-name*="webmin/edit_assignment.cgi"] table table tbody tr td, html[data-script-name*="usermin/edit_assignment.cgi"] table table tbody tr td').hover(function(){$(this).is("td:nth-child(1)")||$(this).is("td:nth-child(3)")?$(this).addClass("hl-ow").next("td").addClass("hl-ow"):($(this).is("td:nth-child(2)")||$(this).is("td:nth-child(4)"))&&$(this).addClass("hl-ow").prev("td").addClass("hl-ow")},function(){$(this).removeClass("hl-ow").next("td").removeClass("hl-ow"),$(this).removeClass("hl-ow").prev("td").removeClass("hl-ow")}),(Core.curModule("changepass")||Core.curModuleFile("server-manager","edit_pass.cgi")||Core.curModuleFile("virtual-server","list_databases.cgi")||Core.curModuleFile("acl","edit_user.cgi")||Core.curModuleFile("virtual-server","clone_form.cgi")||Core.curModuleFile("virtual-server","edit_user.cgi")||Core.curModuleFile("virtual-server","edit_domain.cgi")||Core.curModuleFile("virtual-server","domain_form.cgi")||Core.curModuleFile("samba","edit_euser.cgi")||Core.curModuleFile("samba","ask_epass.cgi")||Core.curModuleFileQuery("virtualmin-registrar","edit.cgi","registrar=")||Core.curModuleFileQuery("htaccess-htpasswd","edit_user.cgi","new=")||Core.curModuleFileQuery("postgresql","edit_user.cgi","new=")||Core.curModuleFileQuery("mysql","edit_user.cgi","new=")||Core.curModuleFile("useradmin","edit_group.cgi")||Core.curModuleFile("useradmin","edit_user.cgi")||Core.curModuleFileQuery("passwd","edit_passwd.cgi","user="))&&setTimeout(function(){$("#headln2r .btn-group a").addClass("pull-left").attr("style",""),$("#headln2r .btn-group").prepend('\t\t\t\t\t\t\t\t')},0),0==v___user_level&&1==Core.moduleAvailable("status")||(settings_side_slider_enabled=!1,settings_side_slider_enabled=!1,get_server_data("data-slider-fixed","0"),$("#right-side-tabs, .right-side-tabs-toggler").addClass("hidden")),Core.curModuleFile("bind8","edit_zonekey.cgi")&&g__text_breaker($("textarea#ds"),$("#headln2c").find("span[data-sub_title]").text()),Core.curModuleFile("virtual-server","edit_script.cgi")&&$('select[name="version"]').addClass("heighter-34 margined-top-4"),Core.curModuleFile("virtual-server","transfer_form.cgi")&&$('input[name="newttl"]').addClass("heighter-34"),$.each($(".gl-icon-container"),function(e,t){$(this).find("a:first").find("i.fa-edit").length||($(this).find("a:first").prepend(''),$(this).find("a:first").prepend(''))}),Core.curModuleFile("virtual-server","index.cgi")&&$('a[href*="edit_domain.cgi"], a[href*="list_users.cgi"], a[href*="list_aliases.cgi"]').on("click",function(e){var t=URI.parseQuery(URI($(this).attr("href")).query()).dom;t!=$('select[name="dom"]').val()&&get_navigation_menu_virtualmin(t)}),Core.curModuleFile("server-manager","index.cgi")&&$('a[href*="edit_serv.cgi"], a[href*="mass_update_form.cgi"]').on("click",function(e){var t=URI.parseQuery(URI($(this).attr("href")).query()).id;t!=$('select[name="sid"]').val()&&get_navigation_menu_cloudmin(t)}),(Core.curModuleFile("webmin","refresh_modules.cgi")||Test.strContains(v___location_query,"refresh=1"))&&navigation_update(-1),v___location_path==v___location_prefix+"/proc/index_search.cgi"&&$(".col_header").removeClass("col_header"),$('input[type="file"]:not([name="upfiles"])').bootstrapFileInput(),setTimeout(function(){$.each($(".file-input-wrapper > span"),function(){$(this).html('')})},1),v___module!=v___module_file_manager&&("config.cgi"===v___location_file||"uconfig.cgi"===v___location_file||"settings-user.cgi"===v___location_file)){var B=[];"settings-user.cgi"===v___location_file&&(B=[1,1,0]),page.render.module_config(B)}}if(editor_init_check()&&editor_init($("textarea"),!1,!1,"static",!1,!0,!1,e),Core.curModule("cshrc")||Core.curModule("plan")||Core.curModuleFile("virtual-server","mass_aedit_form.cgi")){var H=$(".panel-body form:eq(0) > textarea:visible"),K=$(".panel-body form:eq(1) > textarea:visible");e&&page_refresh(1),K.length?(editor_init(H,!1,!1,"static1",!0,!1,!1,e,.36),editor_init(K,!1,!1,"static2",!0,!1,!1,e,.36)):editor_init(H,!1,!1,"static1",!0,!1,!1,e,.51)}if(viewer_init_check()&&viewer_init(),settings_sysinfo_easypie_charts&&v___location_path==v___location_prefix+"/sysinfo.cgi"){var Q=v___theme_night_mode_enabled||v___theme_night_mode?1:0;$("body").find("#system-status").find(".piechart").easyPieChart({barColor:function(e){return e<50?Q?"#269373":"#5cb85c":e<85?Q?"#c38d40":"#f0ad4e":"#cb3935"},trackColor:Q?"#3b424b":"#f8f8f8",scaleColor:Q?"#3b424b":"#dfe0e0",size:parseInt(settings_sysinfo_easypie_charts_size),scaleLength:parseInt(settings_sysinfo_easypie_charts_scale),trackWidth:parseInt(settings_sysinfo_easypie_charts_width),lineWidth:0,lineCap:"square",onStep:function(e,t,i){$(this.el).find(".percent").text(Math.round(i))}})}if(((v___location_path.indexOf(".cgi")===-1||v___location_path.indexOf("link.cgi")!==-1||v___location_path==v___location_prefix+"/proc/open_files.cgi"||v___location_path==v___location_prefix+"/webmin/edit_webmincron.cgi"||v___location_path==v___location_prefix+"/postfix/mailq.cgi"||v___location_path==v___location_prefix+"/webmin_search.cgi"||v___location_path==v___location_prefix+"/useradmin/index.cgi"||v___location_path==v___location_prefix+"/quota/list_users.cgi"||v___location_path==v___location_prefix+"/quota/list_groups.cgi"||v___location_path==v___location_prefix+"/init/index.cgi")&&(v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"webmin/"&&v___location_prefix.indexOf("servers/link.cgi")===-1||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"proc/"||v___location_path_lead_unslashed==v___location_prefix_unslashed_trail_slashed+"webmin_search.cgi"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"postfix/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"virtual-server/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"init/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"mount/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"custom/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"quota/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"php-pear/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"fsdump/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"inittab/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"logrotate/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"mailcap/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"cron/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"software/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"syslog/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"useradmin/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"apache/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"webalizer/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"cpan/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"htaccess-htpasswd/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"fdisk/")||Core.curModuleFile("cron","index.cgi")||Core.curModuleFile("ruby-gems","index.cgi")||Core.curModuleFile("postfix","master.cgi")||Core.curModuleFile("fail2ban","list_filters.cgi")||Core.curModuleFile("fail2ban","list_actions.cgi")||Core.curModuleFile("fail2ban","list_jails.cgi")||Core.curModuleFile("virtual-server","list_databases.cgi")||Core.curModuleFile("virtual-server","connectivity.cgi")||Core.curModuleFile("virtualmin-git","")||Core.curModuleFile("virtualmin-git","index.cgi")||Core.curModuleFile("virtualmin-svn","")||Core.curModuleFile("virtualmin-svn","index.cgi")||Core.curModuleFile("server-manager","edit_domains.cgi")||Core.curModuleFile("net","list_ifcs.cgi")||Core.curModuleFile("net","list_hosts.cgi")||Core.curModuleFile("bind8","edit_recs.cgi")||Core.curModule("firewall")||Core.curModule("firewall6")||Core.curModule("ruby-gems")||v___location_path==v___location_prefix+"/at/"||v___location_path==v___location_prefix+"/at/index.cgi"||v___location_path==v___location_prefix+"/useradmin/list_logins.cgi"||v___location_path==v___location_prefix+"/man/search.cgi"||v___location_path==v___location_prefix+"/proc/index_tree.cgi"||v___location_path==v___location_prefix+"/proc/index_user.cgi"||v___location_path==v___location_prefix+"/proc/index_size.cgi"||v___location_path==v___location_prefix+"/proc/index_cpu.cgi"||v___location_path==v___location_prefix+"/proc/index_search.cgi"||v___location_path==v___location_prefix+"/software/search.cgi"||v___location_path==v___location_prefix+"/software/file_info.cgi"||v___location_path==v___location_prefix+"/software/list_pack.cgi"||v___location_path==v___location_prefix+"/virtual-server/index.cgi"||v___location_path==v___location_prefix+"/virtual-server/list_users.cgi"||v___location_path==v___location_prefix+"/virtual-server/edit_newplan.cgi"||v___location_path==v___location_prefix+"/virtual-server/edit_newfeatures.cgi"||v___location_path==v___location_prefix+"/virtual-server/edit_newtmpl.cgi"||v___location_path==v___location_prefix+"/virtual-server/backuplog.cgi"||v___location_path==v___location_prefix+"/package-updates/"||v___location_path==v___location_prefix+"/package-updates/index.cgi"||v___location_path==v___location_prefix+"/package-updates/update.cgi"||v___location_path==v___location_prefix+"/virtual-server/usage.cgi"||v___location_path==v___location_prefix+"/virtual-server/search.cgi"||v___location_path==v___location_prefix+"/fetchmail/"||v___location_path==v___location_prefix+"/filter/")&&$(".__page table.table").each(function(){if($(this).find("thead")&&$(this).find("thead").length&&$(this).find("thead tr th")&&$(this).find("thead tr th").length>2){if($(this).find("thead")&&$(this).find("thead").length>1){var e=$(this).find("thead:first-child");e.remove(),!$t_uri_webmin||v___location_path!=v___location_prefix+"/quota/list_users.cgi"&&v___location_path!=v___location_prefix+"/quota/list_groups.cgi"||($(this).before(e),$(this).prev("thead").replaceTagName("table"))}table_data_init($(this)),$(this).find("th").each(function(){$(this).text()||$(this).css("opacity","0").css("cursor","default")});var t=-(1/0);$(this).find("tr").each(function(e,i){t=Math.max(t,parseFloat(e))}),t<10&&$(this).parents(".dataTables_wrapper").find(".dataTables_filter").remove();if(($(this).parents(".dataTables_wrapper").find(".dataTables_filter").length?1:0)&&($('body[class="init"]').length||$('body[class^="init"]').length&&null!=$('body[class^="init"]').attr("class").match(/\d+$/)||$('body[class="quota"]').length||$('body[class^="quota"]').length&&null!=$('body[class^="quota"]').attr("class").match(/\d+$/)||$('body[class="cron"]').length||$('body[class^="cron"]').length&&null!=$('body[class^="cron"]').attr("class").match(/\d+$/))){var i=-15,a=$(this).parents(".dataTables_wrapper").attr("style");$('body[class^="quota"]').length&&(i=-27),$(this).parents(".dataTables_wrapper").attr("style","margin-top: "+i+"px !important; "+(a?a:""))}}}).promise().done(function(){page.render.content.filter.init()}),$(".select_all").on("click",function(){$(this).parents("form").find('.icons-row div[class*="icons-container"]').length&&$.each($(".icons-row .hidden-forged-6"),function(){$(this).parents('div[class*="icons-container"]').addClass("highlighted"),$(this).parents('div[class*="icons-container"]').find(".fa-select").removeClass("fa-select").addClass("fa-selected")})}),$(".select_invert").on("click",function(){$.each($(".icons-row .hidden-forged-6"),function(){$(this).find("input").is(":checked")?($(this).parents('div[class*="icons-container"]').addClass("highlighted"),$(this).parents('div[class*="icons-container"]').find(".fa-select, .fa-selected").removeClass("fa-select").addClass("fa-selected")):($(this).parents('div[class*="icons-container"]').removeClass("highlighted"),$(this).parents('div[class*="icons-container"]').find(".fa-select, .fa-selected").removeClass("fa-selected").addClass("fa-select"))})}),$('.icons-row div[class*="icons-container"]').on("mouseover",function(e){$(this).find(".hidden-forged-7").removeClass("hidden-forged")}).on("mouseout",function(e){$(this).find(".hidden-forged-7").addClass("hidden-forged")}),"?dashboard"!=v___location.search&&1==navigation_dashboard_switch_available()&&("sysinfo.cgi"==v___location_file?(set_switch_position("dashboard"),navigation_clear()):$("#open_webmin").length>0&&"open_webmin"!=$(".switch-toggle input:checked").attr("id")?set_switch_position("webmin"):$("#open_virtualmin").length>0&&"open_virtualmin"!=$(".switch-toggle input:checked").attr("id")?set_switch_position("virtualmin"):$("#open_cloudmin").length>0&&"open_cloudmin"!=$(".switch-toggle input:checked").attr("id")?set_switch_position("cloudmin"):$("#open_usermin").length>0&&"open_usermin"!=$(".switch-toggle input:checked").attr("id")&&set_switch_position("usermin")),$('form[action="bootup.cgi"]').on("submit",function(e){$("#starting").length>0?($("#starting").remove(),$(this).append('')):$("#table").length>0?$(this).append(''):$('input[name="boot"][type="hidden"]').length>0&&($('input[name="boot"][type="hidden"]').remove(),$(this).append(''))}),$('input[name="config_portable_module_xsql_fit_content_screen_height"]').on("change",function(){var e=$(this).attr("name"),t=$(this).val();localStorage.setItem(v___server_hostname+"-"+e,t),window[e]=t,theme_config("save")}),v___location_path!=v___location_prefix+"/virtual-server/domain_form.cgi"&&v___location_path!=v___location_prefix+"/virtual-server/edit_domain.cgi"&&v___location_path!=v___location_prefix+"/virtual-server/edit_user.cgi"&&v___location_path!=v___location_prefix+"/virtual-server/edit_alias.cgi"&&v___location_path!=v___location_prefix+"/virtual-server/edit_limits.cgi"||$("input, select").on("blur",function(){!__is_tabbed||$(this).next("input:visible").length||$(this).prev("input:visible").length||$(this).next("select:visible").length||$(this).prev("select:visible").length||(__is_shifted?$(this).parent("td").parent("tr").prev("tr").find("select:visible").length||$(this).parent("td").parent("tr").prev("script").prev("tr").find("select:visible").length||$(this).parent("td").parent("tr").prev("script").prev("script").prev("tr").find("select:visible").length?($(this).parent("td").parent("tr").prev("tr").find("select:first:visible").focus(),$(this).parent("td").parent("tr").prev("script").prev("tr").find("select:first:visible").focus(),$(this).parent("td").parent("tr").prev("script").prev("script").prev("tr").find("select:first:visible").focus()):($(this).parent("td").parent("tr").prev("tr").find('input[type="text"]:first:visible, input[type="password"]:first:visible').focus(),$(this).parent("td").parent("tr").prev("script").prev("tr").find('input[type="text"]:first:visible, input[type="password"]:first:visible').focus(),$(this).parent("td").parent("tr").prev("script").prev("script").prev("tr").find('input[type="text"]:first:visible, input[type="password"]:first:visible').focus()):$(this).parent("td").parent("tr").next("tr").find('input[type="text"]:first:visible, input[type="password"]:first:visible').length||$(this).parent("td").parent("tr").next("script").next("tr").find('input[type="text"]:first:visible, input[type="password"]:first:visible').length||$(this).parent("td").parent("tr").next("script").next("script").next("tr").find('input[type="text"]:first:visible, input[type="password"]:first:visible').length?($(this).parent("td").parent("tr").next("tr").find('input[type="text"]:first:visible, input[type="password"]:first:visible').focus(),$(this).parent("td").parent("tr").next("script").next("tr").find('input[type="text"]:first:visible, input[type="password"]:first:visible').focus(),$(this).parent("td").parent("tr").next("script").next("script").next("tr").find('input[type="text"]:first:visible, input[type="password"]:first:visible').focus()):($(this).parent("td").parent("tr").next("tr").find("select:first:visible").focus(),$(this).parent("td").parent("tr").next("script").next("tr").find("select:first:visible").focus(),$(this).parent("td").parent("tr").next("script").next("script").next("tr").find("select:first:visible").focus()))}),$('.ui_form_end_submit[onclick^="window.open"]').click(function(){var e=$(this);setTimeout(function(){e.removeClass("disabled"),navigation_render_end()},100)}),v___location_path&&v___location_path.indexOf("/sysinfo.cgi")>-1){$("body").undelegate(".piechart canvas","mouseover mouseleave"),$("body").on("mouseover",".piechart canvas",function(){var e=$(this).parent("span").attr("data-charts").split("_")[1];("cpu"!=e&&"mem"!=e&&"virt"!=e||Core.moduleAvailable("proc"))&&("disk"!=e||Core.moduleAvailable("disk-usage")||Core.moduleAvailable("quota"))&&$(this).addClass("cursor-alias")}),$("body").undelegate("canvas","click"),$("body").on("click","canvas",function(e){e.preventDefault();var t,i=$(this).parent("span").attr("data-charts").split("_")[1] +;"cpu"==i&&Core.moduleAvailable("proc")?t=v___location_prefix+"/proc/index_cpu.cgi":"mem"!=i&&"virt"!=i||!Core.moduleAvailable("proc")?"disk"==i&&Core.moduleAvailable("disk-usage")?t=v___location_prefix+"/disk-usage":"disk"==i&&Core.moduleAvailable("quota")&&(t=v___location_prefix+"/quota/list_users.cgi?dir=%2F"):t=v___location_prefix+"/proc/index_size.cgi",t&&t.length&&get_pjax_content(t)}),page_sysinfo_sensor_update_label(),"0"==v___user_level&&information_update();if(172!=settings_sysinfo_easypie_charts_size){var V=parseInt(settings_sysinfo_easypie_charts_size-172),G=.9*V,J=.2*V,Z=settings_sysinfo_easypie_charts_size<172?settings_sysinfo_easypie_charts_size<152?"8px":"8.5px":"9px",X=settings_sysinfo_easypie_charts_size<172?settings_sysinfo_easypie_charts_size<152?"1.6em":"1.7em":"1.8em",Y=$(".piechart .data-cnt .label"),ee=parseInt(Y.css("right")),te=parseInt(Y.css("bottom")),ie=$(".piechart .data-cnt .percent"),ae=parseInt(ie.css("top")),ne=parseInt(ie.css("left"));Y.css({bottom:parseInt(te-G),right:parseInt(ee-G),fontSize:Z}),ie.css({top:parseInt(ae+J),left:parseInt(ne+J),fontSize:X})}}if($t_uri_virtualmin&&Core.curModuleFileQuery("syslog","save_log.cgi","view=1")&&($('select[name="idx"] option').filter(function(){return this.text==$.trim($("span[data-sub_title] tt").text())}).attr("selected",!0),$('select[name="idx"]').addClass("hidden")),Core.curModuleFileQuery("syslog","save_log.cgi","view=1")||Core.curModuleFileQuery("syslog","save_log.cgi","new=")){var I=".panel-body .fa-refresh-fi",se=localStorage.getItem(v___server_hostname+"-option_"+v___module+"_refresh"),_e=I+", .panel-body .refresh-timer-timeout",oe=''+(se?se:"0")+" ";$.each($(I+":not([data-processed])").parent("button"),function(e,t){if($(this).find("i").attr("data-processed",1),$(this).wrap('
    '),$(this).after('"),se&&"0"!=se){var i=$(_e);$(this).find("i").before(oe),$(this).find("i").remove();var a=se;"number"==typeof refreshTimer&&clearInterval(refreshTimer),refreshTimer=setInterval(function(){--a,$(".refresh-timer-timeout").text(a),a<=0&&($(i[0]).parent().trigger("click"),clearInterval(refreshTimer))},1e3)}}).promise().done(function(){$(".refresh-timer-select li").click(function(){"number"==typeof refreshTimer&&clearInterval(refreshTimer);var e=''+(se?se:"0")+" ";localStorage.setItem(v___server_hostname+"-option_"+v___module+"_refresh",$(this).find("a").data("timeout")),se=localStorage.getItem(v___server_hostname+"-option_"+v___module+"_refresh");var t=$(_e),i=t.parent();if(se&&"0"!=se){i.find(".refresh-timer-timeout").length||i.prepend(e),i.find(".refresh-timer-timeout").html(se+" "),$(".fa-refresh-fi").remove();var a=se;refreshTimer=setInterval(function(){if(--a,$(".refresh-timer-timeout").text(a),a<=0){var e=$(_e);$(e[0]).parent().trigger("click"),clearInterval(refreshTimer)}},1e3)}else $(".refresh-timer-timeout").remove(),!i.find(".fa-refresh-fi").length&&i.prepend('')})}),$.each($('form[action*="save_log.cgi"] select[name="idx"]'),function(){$(this).on("change",function(){var e=$("button.ui_submit.ui_form_end_submit");$(this).next().next('[name="filter"]').val(""),e.first().trigger("click"),e.addClass("disabled")})})}if(Core.curModuleFile("virtual-server","summary_domain.cgi")&&$(".__page #headln2l .btn-group, .__page .page_footer_submit").remove(),settings_side_slider_enabled&&(Core.curModule("package-updates")&&slider_mark_group_notifications_read("package_message"),Core.curModule("csf")&&(slider_mark_group_notifications_read("csf_remote_version"),slider_mark_group_notifications_read("csf_title"))),settings_button_tooltip&&($('[data-dcontainer="1"]').tooltip("destroy"), // $('[data-dcontainer="1"] [data-toggle="tooltip"], [data-dcontainer="1"] [data-toggle="virtualmin-license"], [data-dcontainer="1"] .panel-body td a, [data-dcontainer="1"] .icons-container').tooltip('destroy'); $('[data-dcontainer="1"]').tooltip({selector:'[data-toggle="tooltip"]:not([data-skip]), [data-toggle="virtualmin-license"], .panel-body td a:not([data-skip]), .icons-container',placement:"auto "+($(".gl-icon-container").length?"bottom":"top"),html:!0,delay:{show:600,hide:30}})),v___available_navigation&&(window.matchMedia("(max-width: 1080px)").matches||"1"==$("html").attr("data-navigation-collapsed"))&&navigation_lock_width(),v___available_navigation&&(window.matchMedia("(max-width: 1365px)").matches||"1"==$("html").attr("data-navigation-collapsed"))&&set_side_slider_visibility(),"undefined"!=typeof v___user_level&&0!=v___user_level&&(settings_right_virtualmin_default="sysinfo.cgi",settings_right_cloudmin_default="sysinfo.cgi"),e||(Core.curModuleFile("mysql","view_table.cgi")||Core.curModuleFile("postgresql","view_table.cgi"))&&$.each($('select[name="field"]'),function(){var e=$(this),t=e.nextAll().add(this),i=e.parent("td"),a=i.parent("tr"),n=a.find('form[action="view_table.cgi"]').first().addClass("inline-block"),s=n.nextAll('input[name="search"], input[name="db"], input[name="table"]').slice(0,3);e.parent("td").prev("form");n.append(s.detach()),i.append(n.detach()),i.find("form").append(t.detach())}),$("body").hasClass("session_login")&&setTimeout(function(){page_display()},200),theme_to_new_tab(),Core.curModule("syslog")||!Core.curModule("syslog")){var j=$(".container-fluid");Core.curModuleFileQuery("syslog","save_log.cgi","view=")?j.removeClass("col-lg-10 col-lg-offset-1").addClass("margined-top-15"):j.addClass("col-lg-10 col-lg-offset-1").removeClass("margined-top-15")}if(Core.curModuleFile("acl","save_twofactor.cgi")&&setTimeout(function(){var e=$("p > img"),t=e.attr("src");e.attr("src",t.replace(v___location_prefix+"/"+v___module+"/",""))},0),v___location_path_lead_unslashed==v___location_prefix_unslashed_trail_slashed+"proc/edit_proc.cgi"||v___location_path_lead_unslashed==v___location_prefix_unslashed_trail_slashed+"proc/kill_proc.cgi"||v___location_path_lead_unslashed==v___location_prefix_unslashed_trail_slashed+"proc/renice_proc.cgi"){var re='form[action*="renice_proc.cgi"]',le=$(re).next('input[name="pid"]'),ce=$('.col_value select[name="nice"]').parent("td"),de=ce.html();$(re).append(le.detach(),de),ce.html($(re).detach()),$('.proc form[action*="kill_proc.cgi"]').on("submit",function(){var e=quirks.active_element(),t=$(this).find("input").filter(function(){return"pid"!=this.name&&"signal"!=this.name&&this.name!=e.name});return t.attr("disabled","disabled"),setTimeout(function(){},1),!0})}setTimeout(function(){v___blocked_navigation=0},10);var he=$(".date_chooser_button");he.length&&$.each(he,function(){var e=$(this).parent('td:contains("/")'),t=e.find("select"),i=t.prev("input");$year=t.next("input"),cls="margined-left--10",t.addClass(cls),$year.addClass(cls).attr("size",3),i.attr("size",1)}),$.each($(".date_chooser_button"),function(){var e=$('input[name="'+$(this).data("year")+'"]'),t=$('select[name="'+$(this).data("month")+'"]'),i=$('input[name="'+$(this).data("day")+'"]'),a=1==$(t).find("option:eq(0)").val()?0:1;$(this).datepicker({format:" yyyy-m-d",language:get_server_data("language"),autoclose:!0}).on("changeDate",function(n){var s=(n.date.getFullYear()+"-"+(n.date.getMonth()+1)+"-"+n.date.getDate()).split("-");s&&($(i).val(parseInt(s[2])),$(t).val(parseInt(s[1])-a),$(e).val(parseInt(s[0])))}).on("show",function(n){var s=$(this),_=parseInt($(i).val()),o=!!$(t).val()&&parseInt($(t).val())+a,r=$(e).val();_&&o&&r&&s.datepicker("update",r+"-"+o+"-"+_)})}),Core.curModule("mailbox")&&($.each($('[onclick*="document.forms"]'),function(){var e=$(this),t=e.attr("onclick"),i=$("aside form").length;e.attr("onclick",t.replace(/document\.forms\[0\]/g,"document.forms["+i+"]")),e.attr("onclick",t.replace(/document\.forms\[1\]/g,"document.forms["+(i+1)+"]"))}),$("#print").on("click",function(e){e.preventDefault(),e.stopPropagation()})),Core.curModuleFile("forward","edit_alias.cgi")&&$.each($('[onchange*="document.forms"]'),function(){var e=$(this),t=e.attr("onchange"),i=$("aside form").length;e.attr("onchange",t.replace("document.forms[0]","document.forms["+i+"]"))}),(Core.curModuleFile("schedule","edit.cgi")||Core.curModule("mailbox"))&&$.each($('[onclick*="address_chooser"]'),function(e,t){$(this).attr("onclick",$(this).attr("onclick").replace(".forms[0]",".forms[1]")),$(this).next(".file_chooser_button_attached").removeClass("fa-files-o").addClass("fa-address-book-o")}),(Core.curModuleFile("server-manager","index.cgi")||Core.curModuleFile("server-manager",""))&&$.each($('[onclick*="document.forms"]'),function(){var e=$(this),t=e.attr("onclick"),i=$("aside form").length,a=$(".container-fluid .panel-body > form").length-1;e.attr("onclick",t.replace(/document\.forms\[\d*\]/g,"document.forms["+(i+a)+"]"))});var fe=document.querySelectorAll('input[type="password"]');for(i=0,length=fe.length;i30?1:0;pe.classList.add("input_warning_caps"),pe.setAttribute("title","Caps Lock"),ge&&pe.classList.add("large"),fe[i].classList.add("use_input_warning_caps"),fe[i].parentNode.insertBefore(pe,fe[i].nextSibling),fe[i].addEventListener("blur",function(){this.nextSibling.classList.remove("visible")}),fe[i].addEventListener("keydown",function(e){"function"==typeof e.getModifierState&&(state=20===e.keyCode?!e.getModifierState("CapsLock"):e.getModifierState("CapsLock"),state?this.nextSibling.classList.add("visible"):this.nextSibling.classList.remove("visible"))})}var ue=$('select.ui_select[name="module"], select.ui_select[name="user"], select.ui_select[name="nuser"], select.ui_select[name="zone"], select.ui_select[name="serv"], select.ui_select[name="mod"], select.onchange_form_submit_triggger, select[name="idx"], select[name="file"]:first, select[name="manual"]:first'),me="34",ve=0;e&&$.each($(".select2-hidden-accessible + .select2"),function(){ve=1,$(this).prev(".select2-hidden-accessible").removeClass("select2-hidden-accessible"),$(this).remove()}),(Core.curModuleFile("webminlog","")||Core.curModuleFile("webminlog","index.cgi")||Core.curModuleFile("time","")||Core.curModuleFile("time","index.cgi")||Core.curModuleFile("firewalld","edit_serv.cgi")||Core.curModuleFile("php-pear","")||Core.curModuleFile("php-pear","index.cgi")||Core.curModuleFile("mysql","")||Core.curModuleFile("mysql","index.cgi")||Core.curModuleFile("mysql","edit_dbase.cgi")||Core.curModuleFile("postgresql","")||Core.curModuleFile("postgresql","index.cgi")||Core.curModuleFile("postgresql","edit_dbase.cgi")||Core.curModuleFileQuery("syslog","save_log.cgi","view=1")||Core.curModuleFileQuery("syslog","save_log.cgi","new=")||v___page_hasEditor||ve)&&((ue.hasClass("heighter-28")||ue.outerHeight()<=28)&&(me="28"),ue.select2({minimumResultsForSearch:5,containerCssClass:"select2-content heighter-"+me,dropdownCssClass:"select2-content h"+me}),ue.next(".select2").addClass("select2-content-container"),ue.next(".select2").next(".ui_form_end_submit").addClass("heighter-"+me),setTimeout(function(){bind_sameorigin(0)},100))}function page_refresh(e){e&&set_onbeforeunload_status(0,0),get_onbeforeunload_status()?get_onbeforeunload_message(!1,"get_pjax_content(v___location_resource)","ev"):get_pjax_content(v___location_resource)}function page_init(){"undefined"==typeof v___initial_load&&(v___initial_load=1),"undefined"==typeof v___title_initial&&(v___title_initial=get_server_data("title-initial")),v___location=location,$__theme_name__="authentic",$__theme_navigation="xnavigation=1",$__theme_event_deselectors=':not([href*="index.cgi?path="]):not([href*="config.cgi?path="]):not([href*="download.cgi?file="])',$__theme_default_deselectors=':not([target="_blank"]):not([href^="#"]):not([data-href^="#"]):not([data-toggle="collapse"]):not([href*="javascript:"]):not(.has-sub):not([data-has-sub-link]):not([onclick]):not([data-nref])',v___user_level=get_server_data("access-level"),v___shell_type=0==v___user_level?"#":"$",v___shell_processing=0,v___debug=parseInt(get_server_data("debug")),v___source_type=v___debug?"src":"min",v___available_usermin=get_server_data("usermin"),"undefined"==typeof v___available_navigation&&(v___available_navigation=get_server_data("navigation")),v___available_session="1"==get_server_data("session")?1:0,"undefined"==typeof v___blocked_navigation&&(v___blocked_navigation=0),v___server_username=get_server_data("user"),v___server_userhome=get_server_data("user-home"),v___module=get_server_data("module"),v___script_name=get_server_data("script-name").replace(/^\//g,""),v___module_file_manager="file"+(Core.moduleAvailable("file-manager")?"-manager":"min"),v___server_hostname=get_server_data("hostname"),v___server_sestatus=get_server_data("sestatus"),v___theme_version=get_server_data("theme-version").toString(),v___theme_dversion=Test.strContains(v___theme_version,"-"),v___theme_mversion=get_server_data("theme-mversion").toString(),v___theme_version_plain=v___theme_version.replace(/\./g,"").replace(/-beta.*/g,"")+(v___debug||v___theme_dversion?moment().unix()+v___theme_mversion:"9999999999"+v___theme_mversion),v___theme_force_buffered=0,v___theme_reload=0,v___theme_connection_reestablish=0,v___theme_connection_triggered_origin=0,v___theme_ajax_error=0,v___theme_state_visible=1,v___theme_visibility_check=0,v___theme_progress=0,v___theme_stats_error=0,v___theme_processing_default_content=0,"undefined"==typeof v___theme_content_history&&(v___theme_content_history=0),"undefined"==typeof v___location_previous&&(v___location_previous=0),v___theme_night_mode="1"==get_server_data("data-night-mode")?1:0,v___theme_night_mode_enabled="undefined"!=typeof settings_background_color&&"nightRider"===settings_background_color?1:v___theme_night_mode,o___gotten_scripts="undefined"==typeof o___gotten_scripts?[]:o___gotten_scripts,v___page_container=$(".container-fluid"),v___page_signin_form="container session_login",v___page_signin_banner="form-signin-banner",v___page_activeElement=$("body")[0],v___page_hasEditor=editor_init_check(),v___target_servers_index="servers/link.cgi",v___URI=URI(v___location),v___location_protocol=v___URI.protocol(),v___location_port=v___URI.port(),v___location_origin=v___URI.origin(),v___location_hostname=v___URI.hostname(),v___location_href=v___location.href,v___location_path=v___URI.path().replace(/\/+/g,"/"),v___location_path_unslashed=v___location_path.replace(/^\//g,"").replace(/\/$/g,""),v___location_path_lead_unslashed=v___location_path.replace(/^\//g,""),v___location_file=v___URI.filename(),v___location_directory=v___URI.directory(),v___location_directory_trail_slashed=v___location_directory?v___location_directory.endsWith("/")?v___location_directory:v___location_directory+"/":"/",v___location_directory_unslashed=v___location_directory.replace(/^\//g,"").replace(/\/$/g,""),v___location_directory_unslashed_trail_slashed=v___location_directory_unslashed+"/",v___location_query=navigation_trigger(v___URI.query(),1),v___location_resource=navigation_trigger(v___URI.resource(),1),v___location_resource_unslashed=v___location_resource.replace(/^\//g,"").replace(/\/$/g,""),v___location_prefix=get_server_data("webprefix"),v___location_prefix_unslashed_trail_slashed=v___location_prefix.replace(/^\//g,"").replace(/\/$/g,"")+"/","/"===v___location_prefix_unslashed_trail_slashed&&(v___location_prefix_unslashed_trail_slashed=""),v___server_css_path=v___location_prefix+"/unauthenticated/css",v___server_css_palettes_path=v___server_css_path+"/palettes",v___server_js_path=v___location_prefix+"/unauthenticated/js",v___server_extensions_path=v___location_prefix+"/extensions", // $t___license_vm = get_server_data("virtual-server-license"),