From d270dbfa7435488acda3ca6e95ca58fae01dda5e Mon Sep 17 00:00:00 2001 From: Ilia Rostovtsev Date: Sun, 19 Nov 2017 22:58:07 +0300 Subject: [PATCH] Add ability to remove commands from history list of drop-down terminal #828 --- authentic-lib.pm | 32 ++++++++++++++++++++++++-------- unauthenticated/js/bundle.min.js | 4 ++-- 2 files changed, 26 insertions(+), 10 deletions(-) diff --git a/authentic-lib.pm b/authentic-lib.pm index 33e56a262..373a91a2d 100644 --- a/authentic-lib.pm +++ b/authentic-lib.pm @@ -1046,7 +1046,9 @@ sub get_sysinfo_vars use Version::Compare; # Build version response message - if (Version::Compare::version_compare(replace('git-', '', $remote_version), replace('git-', '', $installed_version)) == 1) { + if (Version::Compare::version_compare(replace('git-', '', $remote_version), replace('git-', '', $installed_version)) + == 1) + { my $git_version_remote = $remote_version =~ /-git-/; my $remote_version_tag = $remote_version; my @_remote_version_tag = split /-/, $remote_version_tag; @@ -1197,10 +1199,12 @@ sub get_sysinfo_vars foreach my $t (@{ $info->{'cputemps'} }) { $cpu_temperature .= ' Core ' - . $t->{'core'} - . ': ' . (get_module_config_data('system-status', 'collect_units') ? - (int(($t->{'temp'} * 9.0 / 5) + 32) . "°F") : - (int($t->{'temp'}) . '°C ')) . + . $t->{'core'} . ': ' + . + ( get_module_config_data('system-status', 'collect_units') ? + (int(($t->{'temp'} * 9.0 / 5) + 32) . "°F") : + (int($t->{'temp'}) . '°C ') + ) . '' . ($__settings{'settings_sysinfo_drive_status_on_new_line'} eq 'true' ? '
' : ' '); } @@ -1223,9 +1227,12 @@ sub get_sysinfo_vars } $hdd_temperature .= '' - . $short . ': ' . (get_module_config_data('system-status', 'collect_units') ? - (int(($t->{'temp'} * 9.0 / 5) + 32) . "°F") : - (int($t->{'temp'}) . '°C ')) . + . $short . ': ' + . + ( get_module_config_data('system-status', 'collect_units') ? + (int(($t->{'temp'} * 9.0 / 5) + 32) . "°F") : + (int($t->{'temp'}) . '°C ') + ) . $emsg . '' . ($__settings{'settings_sysinfo_drive_status_on_new_line'} eq 'true' ? '
' : ' '); } @@ -2714,6 +2721,15 @@ sub get_xhr_request } elsif ($in{'xhr-tmp_var_action'} eq 'get') { print get_tmp_var($in{'xhr-tmp_var_name'}, $in{'xhr-tmp_var_keep'}); } + } elsif ($in{'xhr-shell-pop'}) { + my $file = "$config_directory/shell/previous.$remote_user"; + my $index = (int($in{'xhr-shell-pop'}) - 1); + my $history = read_file_lines($file); + if (@$history[$index]) { + splice(@$history, $index, 1); + flush_file_lines($file); + print 1; + } } elsif ($in{'xhr-get_autocompletes'} eq '1') { my @data = get_autocomplete_shell($in{'xhr-get_autocomplete_type'}, $in{'xhr-get_autocomplete_string'}); diff --git a/unauthenticated/js/bundle.min.js b/unauthenticated/js/bundle.min.js index 55acb0cb1..17087c581 100644 --- a/unauthenticated/js/bundle.min.js +++ b/unauthenticated/js/bundle.min.js @@ -168,7 +168,7 @@ 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={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}},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,i,r=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=~e.indexOf("%2F")?"%2F":"/",a=e.split(t);return a.pop(),a.join(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={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:"))&&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:"))&&URI(e.attr("data-href")).hostname()!=v___location_hostname?0:1},moduleAvailable:function(e){return void 0!=get_server_data(e)?Test.true(get_server_data(e)):$.inArray(e,get_server_data("available-modules"))>-1},curModuleFileQuery:function(e,t,a){return $('body[class*="'+e+'"]').length&&v___location_file==t&&v___location_query&&-1!==v___location_query.indexOf(a)},curModuleFile:function(e,t){return $('body[class*="'+e+'"]').length&&v___location_file==t},curModule:function(e){return $('body[class*="'+e+'"]').length}},HTML={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 i='
',r=0;r
'+a[r]+"
"}return i+=""},page_content_preloader:function(e){return'
 '+e+'
'},reauthenticate:function(e){return'

'+theme_language("theme_xhred_session_expired")+"

"+theme_language("theme_xhred_session_expired_details")+'
'+theme_language("theme_xhred_tooltip_switch_user")+"
"}}},page={handle:{content:{preloader:function(e){var t=this,a=$("#content"),n=$(".container-fluid"),i=$(".container-fluid-loading"),r=$("span[data-main_title]").text(),o=HTML.template.page_content_preloader(r);i.length?(i.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"),i=$(".__page .panel-filter"),r=".panel-filter .panel.panel-default",o=$("body");(n.length||i.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}}),$("."+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(r,"shown.bs.collapse.config hidden.bs.collapse.config"),o.on("shown.bs.collapse.config hidden.bs.collapse.config",r,function(e){setTimeout(function(){var e=$(".container-fluid").find(".btn-toggle-accordions").find("i");i.find(".panel-collapse").length===i.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");e?$(i).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")}):$(".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,i=$(".__page .panel-filter:visible");0===n?(i.find(".panel-collapse.in").length,i.find(".panel-collapse").length,i.find(".panel-collapse:not(.in)").filter(function(){$(this).removeData("bs.collapse").collapse({parent:!0,toggle:!1}).collapse("show").removeData("bs.collapse")})):i.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 i=$(this).val(),o=$(".__page .panel-filter:visible");if(e)if(i){$.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"),o.find('.panel tbody tr:containsi("'+i+'")').removeClass("hidden-forged"),$.each($(r=" .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(i):$(this).find("tbody").append(''+theme_language("theme_xhred_filter_content_no_matches_query").replace("%str",""+i+"")+""):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",i),$(".active .dataTables_filter input").val(i).trigger("keyup")):$(".dataTables_filter input").val(i).trigger("keyup")}var s=".btn-filter-top-right span, .btn-accordion-filter span",d=".btn-filter-top-right i, .btn-accordion-filter i";$.trim($(this).val()).length>0?($(s).removeClass("text-lighter"),$(d).addClass("text-danger")):($(s).addClass("text-lighter"),$(d).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 i=$("."+e+", ."+t+", ."+a);$("."+n).length&&($(".active .dataTables_filter").length||$(".active #conf-_-gr").length)||!$("."+n).length&&($(".dataTables_filter").length||$("#conf-_-gr").length)?i.show():i.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").parents(".table:visible"),a=t.parent("div.table-responsive:visible"),n=t.find("tbody > tr > td > table:visible"),i=0,r=1;$.each(n.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 n=$('tr[tj$=":0"]').map(function(){return $.trim($(this).text())});0===n.length&&(n.push(theme_language("theme_xhred_config_configurable_options")),r=0);for(var i=[],o=1;o tr[tj="0:1"]')).map(function(){return this.outerHTML.replace(/\n/g,"")}).get().join("\n"),l+="",i[o-1]=l}var s="conf-_-gr";a.replaceWith(HTML.template.accordion(s,n,i,r?e:[2])),page.render.content.filter.init(1),$(".container-fluid > .panel > .panel-body").on("hide.bs.collapse show.bs.collapse","#conf-_-gr",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&&(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={progress:function(){return"object"==typeof NProgress&&settings_loader_top},start:function(){this.progress()&&NProgress.start()},end:function(){this.progress()&&NProgress.done()},configure:function(){this.progress()&&NProgress.configure({showSpinner:!1,trickleRate:.09,trickleSpeed:100})}},session={reauthenticate:function(){var e="session-reauthenticate";!$("."+e).length&&$.ajax({type:"GET",url:v___location_prefix+"/index.cgi",data:!1,dataType:"text",success:function(t){var a=Test.strContains(t,v___page_signin_form+" pam_");if(!Test.strContains(t,v___page_signin_banner)){var n=$(t).find('input[name="twofactor"]').length,i="aside, aside .navigation, .form-control.sidebar-search, .container-fluid, .right-side-tabs, .right-side-tabs-toggler",r="pointer-events-none bg-filter-grayscale-opacity50 disabled",o=$("body").find(".-shell-port-"),l='';$(i).addClass(r),$("body").append(HTML.template.reauthenticate(e)),navigation_render_end(),navigation_detect(),reset_switch_position(),despinnerfy_buttons(),theme_shell_unlock(),theme_shell_close(o),n||$("."+e).find("[data-container-twofactor]").remove(),$("."+e).find("form").on("submit",function(n){function o(t,a,n,o){if(a){var l="theme_xhred_session_failed"===theme_language(a,1)?theme_language("theme_xhred_session_failed_password"):a;l.endsWith(".")||(l+="."),l=l.replace(/\n/gm,""),p.text(l).addClass("text-danger").removeClass("loading-dots"),c.removeClass("disabled btn-transparent").addClass("btn-success");var s=$(o).find(".alert[data-twofactor]").length?$("."+e).find('input[name="twofactor"]'):$("."+e).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 t&&!n&&(p.text(theme_language("theme_xhred_signing_success")).removeClass("text-danger").removeClass("loading-dots").addClass("text-success"),f.removeClass("fa-lock").addClass("fa-unlock fa-rotate-180 fa-flip-horizontal"),g.text(theme_language("theme_xhred_session_unlocked")),v___available_session=1,setTimeout(function(){v___available_session=1,$("."+e).remove(),$(i).removeClass(r)},1800))}n.preventDefault(),n.stopImmediatePropagation(),a&&$("."+e).find('form input[name="user"]').attr("name","answer").val(get_server_data("user"));var s=$(t).find("form").append(l).attr("action"),d=$("."+e).find("form").serialize(),c=$("."+e).find("[data-submit]"),f=$("."+e+"-header-icon i"),g=$("."+e+"-header-title h3"),p=$("."+e+"-header-title small");c.hasClass("disabled")||(p.text(theme_language("theme_xhred_signing_in")+"").removeClass("text-danger").addClass("loading-dots"),c.addClass("disabled btn-transparent").removeClass("btn-success"),$.ajax({type:"GET",url:s,data:d,dataType:"text",success:function(t){var n=$(t).find(".switch-toggle").text().length,i=$(t).find(".alert span").text(),r=i.length;if(a){var d=$(t).find("form").append(l),c=(d.find('input[name="answer"]').val($("."+e).find('input[type="password"]').val()),d.serialize());$.ajax({type:"GET",url:s,data:c,dataType:"text",success:function(e){n=$(e).find(".switch-toggle").text().length,i=$(e).find(".alert span").text(),r=i.length,o(n,i,r,e)}})}else o(n,i,r,t)},error:function(e){}}))})}}})}},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}},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(settings_window_replaced_timestamp_format_full)),!e&&setInterval(this.tictac,1e3)}},theme={update:function(e){var t=$("body").add($(".__page")),a=$("aside").add($("#right-side-tabs")).add($(".__page")),n=1===e?"-release":"-beta";t.addClass("pointer-events-none"),set_onbeforeunload_status(1,0),a.addClass("bg-filter-blur-grayscale-opacity50"),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="+n,data:!1,dataType:"json",success:function(e){Test.strContains(e,v___page_signin_form)?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.removeClass("bg-filter-blur-grayscale-opacity50"),t.removeClass("pointer-events-none")):(theme_messenger(''+theme_language("theme_xhred_git_patch_update"),20,"error","themeUpgrade"),a.removeClass("bg-filter-blur-grayscale-opacity50"),t.removeClass("pointer-events-none"))},error:function(e){theme_messenger(''+theme_language("theme_xhred_git_patch_update"),20,"error","themeUpgrade"),a.removeClass("bg-filter-blur-grayscale-opacity50"),t.removeClass("pointer-events-none")},complete:function(e){set_onbeforeunload_status(0,0)}})}},quirks={active_element:function(){return document.activeElement&&$(document.activeElement).is("body")?v___page_activeElement:document.activeElement}};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.toLowerCase()).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"+t)})}function g__text_breaker(e,t){if(e.val()){var i=e.val().split(t),a="";$.each(i,function(e,i){i&&(a+=t+i+"\n")}),e.val(a)}}function extract_content(e,t,i,a){if(!e)return 0;var n=a?0:t.length,s=a?i.length:0,_=e.indexOf(t),r=e.indexOf(i,_),o=-1===r?e.length:r;return e.slice(_+n,o+s)}function get_form_data(e){return(e.attr("enctype")&&e.attr("enctype").indexOf("form-data")>-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 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){$("head");var t=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(){$("head");var e=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){var 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="], a.ui_link_replaced[href*="search.cgi/webminlog"] '),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))v___available_session=0;else{$("body").prepend(t);var i=$("#update_notice");e&&i.addClass("r"),i.modal("show")}},error:function(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($t_uri_virtualmin||$t_uri_cloudmin)&&$("aside select option:checked").text()&&$("aside select option:checked").text().length?e&&e.length?$("#webmin_search_form").parent("li").prevAll().has(".sub_active, .current-large").length?document.title=$("aside select option:checked").text()+" - "+e+" — "+v___title_initial:document.title=e+" — "+v___title_initial:document.title=get_navigation_module_name()+" — "+v___title_initial:$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 i=$(".right-side-tabs .list-group-item:not(.no-notifications, .opacity-0_3)").length;settings_side_slider_enabled&&settings_side_slider_notifications_enabled?titlenotifier.set(i):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))navigation_clear();else{if(void 0===t){if(v___blocked_navigation)return;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);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&&(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(),theme_to_new_tab()}function navigation_display(){"none"==$("aside").css("transform")&&($("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";"function"==typeof jQuery().transition&&$("."+e+":visible").length&&$("."+e).attr("style")&&-1==$("."+e).attr("style").indexOf("ease")&&($(".__logo")&&$(".__logo").transition({y:0},1.5*$settings_animation_left_slide_time),$("aside, ."+e).transition({x: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&&-1===t.indexOf("↱")?$(this).html("    ↱ "+t.replace(/\s/g,"")):2===e&&-1===t.indexOf("↴")&&$(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_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 r=$.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()}}}),o={};$("aside select option").each(function(){o[$(this).val()+":::"+$(this).parent("select").attr("name")]=$.trim($(this).text())});var l=$.map(o,function(e,t){if("undefined"!=t)return{value:e,url:t,data:{category:$("aside select").data("autocomplete-title")}}}).concat(s).concat(r).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:l,onSelect:function(e){if(!0===navigation_dashboard_switch_available()&&$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;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||-1==e||""==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,""),i=t.replace("/"+v___module+"/",""),a=$('form[action="'+t+'"]:visible'),n=(a=a.length?a:$('form[action="'+i+'"]:visible')).attr("method");if("multipart/form-data"===a.attr("enctype"))return"post";if(n)return n;if(!n){var n=(n=$('form[action="'+t+'"]').attr("method"))||$('form[action="'+URI(t).filename()+'"]').attr("method"),s=$('form[action="'+t+'"]').attr("enctype");return n||s?"multipart/form-data"===s?"post":n:"get"}}else if("object"==typeof e&&$(e).is("form")){var _=e.attr("method");return _||"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];$.pjax({url:e,timeout:0,push:get_pjax_push(),type:get_pjax_type(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.responseText.replace(/)<[^<]*)*<\/body>/gim,"").replace(/)<[^<]*)*<\/head>/gim,"").replace("","").replace("",""),a=$(i).filter("#xhtml0");$(a[0].attributes).each(function(){"id"!==this.nodeName&&(this.nodeName,v___available_navigation&&"data-redirect"===this.nodeName&&this.nodeValue&&this.nodeValue!="/?"+$__theme_navigation&&history.replaceState({},null,navigation_trigger(this.nodeValue,2)),get_server_data(this.nodeName,this.nodeValue))}).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()}1===v___theme_updated&&(v___theme_updated=0,theme_update_notice(1))})}}function get_pjax_event_end_funcs(e){if(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").find('input:visible:not([readonly]):not([disabled]):not([type="radio"]):not([type="checkbox"]):not([type="submit"]), textarea:visible:not([readonly]):not([disabled])');e.length&&!e.parents(".ui_buttons_table").length&&"config.cgi"!==v___location_file&&"uconfig.cgi"!==v___location_file&&"settings-user.cgi"!==v___location_file&&e[0].focus()},200),v___available_navigation){var t=navigation_trigger(v___location.href,1).replace(v___location_origin+v___location_prefix,"");""==t||"/"==t||"/index.cgi"==t||unbuffered_header_processor_allow(v___location.href)||"csf"===v___module||"config.cgi"===v___location_file||(set_server_tmp_var_timeout=setTimeout(function(){set_server_tmp_var("goto",navigation_trigger(v___location.href,1))},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))unbuffered_header_processor(e,1);else{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,r=i.nodeName.toLowerCase(),o=$(e.target).find('[name="'+a+'"]'),l=o.attr("type");("input"!==r||o.val()==s&&"submit"!==l)&&("button"!==r||$.trim(o.text())==n&&"submit"!==l)||"button"!==l&&"submit"!==l&&"submit"!==_||$("").attr({type:"hidden",name:a,value:n||s}).appendTo($(e.target)),$.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"))return $(e.target).is(".gl-icon-select")?(e.preventDefault(),void $(t).trigger("contextmenu")):t&&t.href&&unbuffered_header_processor_allow(t.href)?(e.preventDefault(),void unbuffered_header_processor(t.href,0)):void $.pjax.click(e,{timeout:0,push:get_pjax_push(),type:get_pjax_type(t),container:"[data-dcontainer]",fragment:"[data-dcontainer]"})}function get_onbeforeunload_message(e,t){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(){set_onbeforeunload_status(0,0),set_onbeforeunload_status(0,1),"object"==typeof progressive_request&&1===progressive_request.readyState&&progressive_request.abort();if(t&&t.href&&Test.strContains(t.href,"::switch::"))$('.switch-toggle input[id="'+t.href.replace("::switch::","")+'"]').trigger("click");else{var i=$(t).is("form");i?i&&get_pjax_action_submit(e,t):t.href&&t.href.length&&get_pjax_content(t.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){var t="body .right-side-tabs";"0"!=get_server_data("access-level")&&"1"!=Core.moduleAvailable("status")||(e?($(t+"-toggler").addClass("hidden"),$(t).css("right","0px").addClass("right-side-tabs-fixed"),settings_side_slider_enabled&&get_server_data("data-slider-fixed","1")):(settings_side_slider_enabled&&$(t+"-toggler").removeClass("hidden opened").css("right","0"),$(t).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&&(r=r.split("~"),e=r[0],s=r[1]),$.each($(t).find(i),function(){if(!$(this).parents(t).hasClass("f__lnk_t_btn")){if(o){var _=new RegExp(RegExp.quote(o),"g");$(this).parent().replaceText(_,l||"")}a&&a.indexOf("__center__")>-1&&$(i).parent().addClass("text-center"),$(this).html(e+$(this).text().replace(/\.\.$/,"")+s).addClass(a).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(1===t){e.find(".fa-moon").removeClass("fa-moon").addClass("fa-sun vertical-align-middle"),$(document).find(".settings_navigation_color_toggle").addClass("hidden");var s=$("html").find('head link[href*="palettes"][data-palette]');$("html").find("head").append(''),$("html").find("head").append(''),setTimeout(function(){get_server_data("data-theme","gunmetal"),s.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 _=$("html").find('head link[href*="gunmetal"]');"blue"!=get_server_data("data-default-theme")&&$("html").find("head").append(''),get_server_data("data-theme",i),_.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_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(){return''}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()}),$('#system-status [href="/?updated"]').removeClass("disabled").find("i").removeClass("fa-spin")}function spinnerfy_buttons(e,t,i,a){var n=!!(e.attr("onclick")&&-1!==e.attr("onclick").indexOf("blank")||e.parents("form").attr("target")&&-1!==e.parents("form").attr("target").indexOf("blank")),s=e.hasClass("heighter-28"),_="28px"==e.css("height"),r=e.hasClass("btn-lg"),o=Core.curModule("server-manager")?2:0,l=e.find(".fa").hasClass("fa-1_25x"),c=e.find(".fa"),d=void 0!==t&&0!=t&&t,h='',p='';setTimeout(function(){!n&&e.addClass("disabled")},10),c.length&&!n&&setTimeout(function(){e.hasClass("btn-default")?c.addClass("invisible").after(p):c.addClass("invisible").after(h)},10),"undefind"==typeof i&&(i=!1),"undefind"==typeof a&&(a=!1),(d[3]||i)&&setTimeout(function(){e.removeClass("disabled"),c.removeClass("invisible"),e.find(".cspinner_container").remove()},i||d[3]),a&&setTimeout(function(){progress.end()},400)}function theme_language(e,t){void 0===t&&(t=!1);var i=get_server_data("language-strings");return t?!!i&&Convert.arrFlip(i)[$.trim(e)]:!!i&&i[e]}function theme_config($action,callBack){var callBack="object"==typeof callBack&&callBack,watched_options=["config_portable_module_csf_style_custom_promoted","config_portable_theme_charset_warning_shown","config_portable_module_xsql_fit_content_screen_height","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){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,"undefind"!=settings_font_family&&(storeStorage.settings_font_family=settings_font_family),"undefind"!=settings_navigation_color&&(storeStorage.settings_navigation_color=settings_navigation_color),"undefind"!=settings_background_color&&(storeStorage.settings_background_color=settings_background_color),"undefind"!=settings_cm_editor_palette&&(storeStorage.settings_cm_editor_palette=settings_cm_editor_palette),"undefind"!=settings_button_tooltip&&(storeStorage.settings_button_tooltip=settings_button_tooltip),"undefind"!=settings_hide_top_loader&&(storeStorage.settings_hide_top_loader=settings_hide_top_loader),"undefind"!=settings_animation_left&&(storeStorage.settings_animation_left=settings_animation_left),"undefind"!=settings_animation_tabs&&(storeStorage.settings_animation_tabs=settings_animation_tabs),"undefind"!=settings_sysinfo_link_mini&&(storeStorage.settings_sysinfo_link_mini=settings_sysinfo_link_mini),"undefind"!=settings_show_night_mode_link&&(storeStorage.settings_show_night_mode_link=settings_show_night_mode_link),"undefind"!=settings_theme_options_button&&(storeStorage.settings_theme_options_button=settings_theme_options_button),"undefind"!=settings_leftmenu_button_refresh&&(storeStorage.settings_leftmenu_button_refresh=settings_leftmenu_button_refresh),"undefind"!=settings_hotkeys_active&&(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){Test.strContains(c,v___page_signin_form)?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){Test.strContains(e,v___page_signin_form)?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})},error:function(){}})}}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 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){Test.strContains(e,v___page_signin_form)?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_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"}}),$("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: 767px)").matches)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(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(get_onbeforeunload_status()||!v___available_session)return e.preventDefault(),void console.log("Disabling theme hotkeys .. ");"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_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 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,_,r){(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===r||0==r)&&(r=!1);$.isArray(i);var o="modal-global-notification",l='";setTimeout(function(){$("body").hasClass("modal-open")||($("body").append(l),$("."+o).modal("show"),$("."+o).on("click",".modal-body a.label",function(e){$("."+o).modal("hide")}),$("."+o).on("hidden.bs.modal",function(e){$("."+o).remove()}))},r)}function theme_alert_charset(){var e=get_server_data("charset");if(e&&-1===e.toLowerCase().indexOf("utf")&&"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){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;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"))}$(".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 r='button[type="submit"]:not(.disabled)';$("body").undelegate(r,"click.cm"),$("body").on("click.cm",r,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 o='button[data-form="submitter"]:not(.disabled)';$("body").undelegate(o,"click.cm"),$("body").on("click.cm",o,function(e){e.preventDefault();var t=$(this).parents("form"),a=(t.attr("enctype")&&t.attr("enctype").indexOf("form-data")>-1?0:1)?t.serialize():new FormData(t[0]);$("button").addClass("disabled").find(".fa.fa-floppy-o").addClass("invisible").after(''),setTimeout(function(){$.ajax({type:"POST",url:i.attr("action"),data:a,dataType:"text",cache:!1,contentType:!1,processData:!1,success:function(e){if(!Test.strContains(e,v___page_signin_form))return 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"));v___available_session=0},error:function(e){}})},300)})}}function page_resized(){navigation_lock_width(),$(".mobile-menu-toggler").hasClass("selected")||($("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(!0!==settings_side_slider_fixed||$(".mobile-menu-toggler:visible").length||!v___available_navigation?0:1)}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_update(){$.each($("#atsettings .ui_form").serializeArray(),function(e,t){if("true"==t.value||"false"==t.value){if("true"==t.value)i=!0;else if("false"==t.value)i=!1}else var i=t.value;window[t.name]=Test.numeric(i)?parseInt(i):i})}function bind_sameorigin(){$("body").on("click",'a[href^="http"], a[href^="https"], a[href^="ftp"], a[href^="ftps"]',function(e){Core.linkSameOrigin($(this))||$(this).attr("target","_blank")}),$.each($('ul.navigation a[href^="http"], ul.navigation a[href^="https"], ul.navigation a[href^="ftp"], ul.navigation a[href^="ftps"], ul.navigation a[data-href^="http"], ul.navigation a[data-href^="https"], ul.navigation a[data-href^="ftp"], 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")})}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){Test.strContains(e,v___page_signin_form)?v___available_session=0:($("body ul.user-links").html(e),theme_shell_link_control())}})}function get_default_content(){get_onbeforeunload_status()||($("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))v___available_session=0;else{$("#____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);(Test.strContains(t,"mysql")||Test.strContains(t,"postgresql"))&&get_bundle_sql(),Test.strContains(t,v___module_file_manager)&&get_bundle_file_manager(),Test.strContains(t,"csf")&&get_bundle_csf(),get_pjax_content(t),$("#____switch").remove()}}}))}function get_default_virtualmin_content(e,t){if(!get_onbeforeunload_status()||t){var i,a="/virtual-server";if(i=1==get_server_data("initial-wizard")?a+"/wizard.cgi":!1!==e?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)}}function get_default_cloudmin_content(e,t){if(!get_onbeforeunload_status()||t){var i;if(i=!1===e||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)}}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&&0==v___user_level){var e=$("body").find("#system-status"),t=e.length?e[0]:0;$("#right-side-tabs-sysinfo .graph-container").length||$("#right-side-tabs .info-container").html(get_right_panel_sysinfo_data()),t&&$(t).find('h3 > a[data-refresh="system-status"]').addClass("disabled").find("i").addClass("fa-spin");var i=$(".right-side-tabs-dismiss .fa-reload");i.addClass("fa-spin-fast"),setTimeout(function(){i.removeClass("fa-spin-fast")},3e3),$.ajax({type:"GET",url:v___location_prefix+"/index.cgi/?xhr-info=1",data:!1,dataType:"json",success:function(e){Test.strContains(e,v___page_signin_form)?v___available_session=0:($.each(e,function(e,i){if("cpu_percent"!=e&&"mem_percent"!=e&&"virt_percent"!=e&&"disk_percent"!=e||(Test.numeric(i)?localStorage.setItem(v___server_hostname+"-sysinfo_"+e+"_stats",i):localStorage.setItem(v___server_hostname+"-sysinfo_"+e+"_stats","")),t){if($(t).find('span[data-id="sysinfo_'+e+'"]').html(i),"local_time"==e||"uptime"==e||"running_proc"==e){var a=$(t).find('span[data-id="sysinfo_'+e+'"]'),n=$(t).find('span[data-id="sysinfo_'+e+'"] a'),s=$(t).find('span[data-id="sysinfo_'+e+'"]').text();"local_time"==e&&settings_window_replace_timestamps?n&&n.length?(s=$(t).find('span[data-id="sysinfo_'+e+'"] a').data("convertible-timestamp-full"),a.html(n.html(moment.unix(s).format(settings_window_replaced_timestamp_format_full)))):(s=$(t).find('span[data-id="sysinfo_'+e+'"] > span').data("convertible-timestamp-full"),a.html(moment.unix(s).format(settings_window_replaced_timestamp_format_full))):n&&n.length&&a.html(n.html(s))}if(page_sysinfo_sensor_update_label(),$(t).find('.piechart[data-charts="sysinfo_'+e+'"]').length){var _=$("body").find('.piechart[data-charts="sysinfo_'+e+'"]');_.length&&!isNaN(parseInt(i))&&_.data("easyPieChart").update(i)}"cpu_percent"!=e&&"mem_percent"!=e&&"virt_percent"!=e&&"disk_percent"!=e||localStorage.setItem(v___server_hostname+"-sysinfo_"+e+"_seen",i),$(t).find(".modal-backdrop").remove()}if($__id__=moment().unix(),"cpu_percent"==e||"mem_percent"==e||"virt_percent"==e||"disk_percent"==e||"csf_title"==e||"csf_remote_version"==e||"authentic_remote_version"==e||"package_message"==e?localStorage.getItem(v___server_hostname+"-sysinfo_"+e)||localStorage.setItem(v___server_hostname+"-sysinfo_"+e,i):i&&null!=i&&NaN!=i?localStorage.setItem(v___server_hostname+"-sysinfo_"+e,i):localStorage.setItem(v___server_hostname+"-sysinfo_"+e,""),localStorage.getItem(v___server_hostname+"-sysinfo_package_message_initial")||localStorage.setItem(v___server_hostname+"-sysinfo_package_message_initial",1),"authentic_theme_version"==e&&!localStorage.getItem(v___server_hostname+"-sysinfo_theme_current_version")&&i&&localStorage.setItem(v___server_hostname+"-sysinfo_theme_current_version",i.match(/^\d+|\d+\b|\d+(?=\w)/g)[0]+"."+i.match(/^\d+|\d+\b|\d+(?=\w)/g)[1]),"csf_data"==e&&!localStorage.getItem(v___server_hostname+"-sysinfo_csf_current_version")&&i&&localStorage.setItem(v___server_hostname+"-sysinfo_csf_current_version",i.match(/^\d+|\d+\b|\d+(?=\w)/g)[0]+"."+i.match(/^\d+|\d+\b|\d+(?=\w)/g)[1]),"csf_title"==e||"csf_data"==e||"csf_remote_version"==e||"authentic_remote_version"==e||"authentic_theme_version"==e||"package_message"==e){if("package_message"===e){if((localStorage.getItem(v___server_hostname+"-sysinfo_"+e)!=i||1==localStorage.getItem(v___server_hostname+"-sysinfo_package_message_initial"))&&i&&i.indexOf("badge-danger")>-1){var r=theme_language("theme_xhred_notifications_packages_updates"),o=$(i).html().replace(/badge-danger/g,"badge-success");localStorage.setItem(v___server_hostname+"-notifications_"+$__id__+"_package_message",JSON.stringify({title:r,time:$__id__,timestamp:$__id__,message:o,readStatus:0,type:e,link:$(i).attr("href")})),slider_mark_group_notifications_read("package_message"),localStorage.setItem(v___server_hostname+"-sysinfo_"+e,i),localStorage.setItem(v___server_hostname+"-sysinfo_package_message_initial",0),notifications(r,o,e)}else"package_message"===e&&localStorage.setItem(v___server_hostname+"-sysinfo_"+e,i);$(i).find("i.badge:first-child").length||slider_mark_group_notifications_read("package_message")}var l=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"),l&&localStorage.getItem(v___server_hostname+"-sysinfo_authentic_remote_version")&&"authentic_remote_version"==e&&l';localStorage.setItem(v___server_hostname+"-notifications_"+$__id__+"_authentic_remote_version",JSON.stringify({title:c,time:$__id__,timestamp:$__id__,message:d,readStatus:0,type:e,link:v___location_prefix+"/sysinfo.cgi"})),localStorage.setItem(v___server_hostname+"-sysinfo_"+e,i),localStorage.setItem(v___server_hostname+"-sysinfo_theme_current_version",i),notifications(c,d,e)}if("authentic_theme_version"!==e||Test.strContains(i,"CHANGELOG.md")||slider_mark_group_notifications_read("authentic_remote_version"),settings_sysinfo_csf_updates){var h=localStorage.getItem(v___server_hostname+"-sysinfo_csf_current_version");if(h&&null!=h&&localStorage.getItem(v___server_hostname+"-sysinfo_csf_remote_version")&&"csf_remote_version"==e&&h-1&&1!=localStorage.getItem(v___server_hostname+"-sysinfo_csf_not_running")){var g=theme_language("theme_xhred_notifications_firewall_danger"),u=theme_language("theme_xhred_notifications_firewall_danger_message").replace("%v",moment.unix($__id__).format(settings_window_replaced_timestamp_format_short));localStorage.setItem(v___server_hostname+"-notifications_"+$__id__+"_csf_title",JSON.stringify({title:g,time:$__id__,timestamp:$__id__,message:u,readStatus:0,type:e,link:v___location_prefix+"/csf/index.cgi"})),slider_mark_group_notifications_read("csf_title"),localStorage.setItem(v___server_hostname+"-sysinfo_csf_not_running",1),notifications(g,u,"csf_remote_version")}else i&&-1===i.indexOf("label-danger")&&(slider_mark_group_notifications_read("csf_title"),localStorage.removeItem(v___server_hostname+"-sysinfo_csf_not_running"))}if("csf_deny"==e){var v=JSON.parse(i);$.each(v,function(t,i){var a=(i=i.split("|"))[0],n=i[1],s=i[2],_=i[3],r=(i[4],i[5],i[6],i[7]);if(r=r.replace("*Port Scan*",s&&_?'Port '+_+" scan":"Port scan"),!localStorage.getItem(v___server_hostname+"-allowed_trigger_"+(a+n.replace(/\./g,"0"))+"_csf_deny")){var o=theme_language("theme_xhred_notifications_firewall_warning"),l=r+(s&&_?" ("+s+":"+_+")":"");localStorage.setItem(v___server_hostname+"-notifications_"+(a+n.replace(/\./g,"0"))+"_csf_deny",JSON.stringify({title:o,time:$__id__,timestamp:$__id__,message:l,readStatus:0,type:e,link:v___location_prefix+"/csf/index.cgi"})),localStorage.setItem(v___server_hostname+"-allowed_trigger_"+(a+n.replace(/\./g,"0"))+"_csf_deny",1)}})}"cpu_percent"!=e&&"mem_percent"!=e&&"virt_percent"!=e&&"disk_percent"!=e||null!==localStorage.getItem(v___server_hostname+"-sysinfo_"+e+"_seen")&&i>=85&&localStorage.getItem(v___server_hostname+"-sysinfo_"+e+"_seen"),setTimeout(function(){if((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 t=!localStorage.getItem(v___server_hostname+"-sysinfo_"+e+"_stats"),a=$(".info-container .graph-container."+e);t?a.addClass("hidden").prev("br").addClass("hidden"):a.removeClass("hidden").prev("br").removeClass("hidden"),"cpu_percent"==e&&($("#right-side-tabs-sysinfo .graph-container."+e+" .description").attr("title",localStorage.getItem(v___server_hostname+"-sysinfo_load")).text(theme_language("theme_xhred_global_cpu_load")+": "+localStorage.getItem(v___server_hostname+"-sysinfo_cpu_percent_stats")+"% ("+localStorage.getItem(v___server_hostname+"-sysinfo_load")+")"),$("#right-side-tabs-sysinfo .graph-container."+e+" .bar").attr("style","width:"+localStorage.getItem(v___server_hostname+"-sysinfo_cpu_percent_stats")+"%")),"mem_percent"==e&&($("#right-side-tabs-sysinfo .graph-container."+e+" .description").attr("title",localStorage.getItem(v___server_hostname+"-sysinfo_real_memory")).text(theme_language("body_real")+": "+localStorage.getItem(v___server_hostname+"-sysinfo_mem_percent_stats")+"% ("+localStorage.getItem(v___server_hostname+"-sysinfo_real_memory")+")"),$("#right-side-tabs-sysinfo .graph-container."+e+" .bar").attr("style","width:"+localStorage.getItem(v___server_hostname+"-sysinfo_mem_percent_stats")+"%")),"virt_percent"==e&&($("#right-side-tabs-sysinfo .graph-container."+e+" .description").attr("title",localStorage.getItem(v___server_hostname+"-sysinfo_virtual_memory")).text(theme_language("body_virt")+": "+localStorage.getItem(v___server_hostname+"-sysinfo_virt_percent_stats")+"% ("+localStorage.getItem(v___server_hostname+"-sysinfo_virtual_memory")+")"),$("#right-side-tabs-sysinfo .graph-container."+e+" .bar").attr("style","width:"+localStorage.getItem(v___server_hostname+"-sysinfo_virt_percent_stats")+"%")),"disk_percent"==e&&($("#right-side-tabs-sysinfo .graph-container."+e+" .description").attr("title",localStorage.getItem(v___server_hostname+"-sysinfo_disk_space")).text(theme_language("body_disk")+": "+localStorage.getItem(v___server_hostname+"-sysinfo_disk_percent_stats")+"% ("+localStorage.getItem(v___server_hostname+"-sysinfo_disk_space")+")"),$("#right-side-tabs-sysinfo .graph-container."+e+" .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="'+e+'"]').html(i),"package_message"==e&&Core.moduleAvailable("package-updates")&&$('#right-side-tabs .info-container .info-list-data span[data-data="'+e+'"]').html($(i).html($(i).html().split(",")[0])[0].outerHTML),"local_time"==e&&settings_window_replace_timestamps){(o=$('#right-side-tabs .info-container .info-list-data span[data-data="'+e+'"] a'))&&o.length&&o.html(o.next("span").detach());var n=$(".info-container").find("span[data-convertible-timestamp-full]"),s=n.attr("data-convertible-timestamp-full");n.html(moment.unix(s).format(settings_window_replaced_timestamp_format_full)),time.tictac(1)}if("cpu_temperature"==e){var _=0;$.each($(i).filter(".badge-cpustatus"),function(e,t){var a,n=parseInt($(this).text().split(":")[1]),s=n,r=$(this).text().indexOf("°C")>-1;"bg-warning"!=(a=$(this).text().indexOf("RPM")>-1?HTML.label.rpm(s):HTML.label.temperature(n,r))&&"bg-danger"!=a||(_=1),$("#right-side-tabs .info-container .badge-drivestatus.badge-cpustatus").length||$('strong[data-stats="cpu"] + br[data-stats="cpu"]').after(i.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(a+"-dark")}).promise().done(function(){_||"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"==e){var r=0;$.each($(i).filter(".badge-drivestatus:not(.badge-cpustatus)"),function(e,t){var a,n=parseInt($(this).text().split(":")[1]),s=$(this).text().indexOf("°C")>-1;"bg-warning"!=(a=HTML.label.temperature(n,s))&&"bg-danger"!=a||(r=1),$("#right-side-tabs .info-container .badge-drivestatus:not(.badge-cpustatus)").length||$('strong[data-stats="drive"] + br[data-stats="drive"]').after(i.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(a+"-dark")}).promise().done(function(){r||"undefined"!=typeof config_custom_force_display_drive_sensors?$('.info-container [data-stats="drive"]').removeClass("hidden"):$('.info-container [data-stats="drive"]').addClass("hidden")})}if("uptime"==e||"running_proc"==e){var o=$('#right-side-tabs .info-container .info-list-data span[data-data="'+e+'"] a');if(o&&o.length){var l=o.parent(),c=l.text();l.html(o.text(c))}}if("warning_si"==e&&((d=$("#right-side-tabs .info-container .warning-list-data")).html(i.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")),"
"==i&&d.empty()),"extended_si"==e){var d=$("#right-side-tabs .info-container .extended-list-data"),h=i.replace(/aria-expanded="true"/gi,'aria-expanded="false"').replace(/collapse in/gi,"collapse");opened_tabs=$("#extended_sysinfo .panel .in").map(function(){h=h.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+'"'),h=h.replace('div id="'+this.id+'" class="panel-collapse collapse"','div id="'+this.id+'" class="panel-collapse collapse in"')}).promise().done(function(){d.html('
'+h);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("+")})})}$.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)},101)}),setTimeout(function(){slider_check_notifications()},3e3),t&&$(t).find('h3 > a[data-refresh="system-status"]').removeClass("disabled").find("i").removeClass("fa-spin"))}})}}function information_check(){if(setTimeout(function(){information_update()},1e4),settings_side_slider_enabled&&!$("body .modal.in").length)return 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,r=a.message,o=a.readStatus,l=a.type,c=a.link;$current_localData_notifications[s+"_"+n]=i+"~~~~"+n+"~~~~"+s+"~~~~"+_+"~~~~"+r+"~~~~"+o+"~~~~"+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,_,r){$(".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_init(e){CKEDITOR_BASEPATH=v___location_prefix+"/unauthenticated/js/ckeditor/",$.getScript(v___location_prefix+"/unauthenticated/js/ckeditor/ckeditor.js",function(t,i,a){/** +const browser={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}},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,i,r=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=~e.indexOf("%2F")?"%2F":"/",a=e.split(t);return a.pop(),a.join(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={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:"))&&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:"))&&URI(e.attr("data-href")).hostname()!=v___location_hostname?0:1},moduleAvailable:function(e){return void 0!=get_server_data(e)?Test.true(get_server_data(e)):$.inArray(e,get_server_data("available-modules"))>-1},curModuleFileQuery:function(e,t,a){return $('body[class*="'+e+'"]').length&&v___location_file==t&&v___location_query&&-1!==v___location_query.indexOf(a)},curModuleFile:function(e,t){return $('body[class*="'+e+'"]').length&&v___location_file==t},curModule:function(e){return $('body[class*="'+e+'"]').length}},HTML={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 i='
',r=0;r
'+a[r]+"
"}return i+=""},page_content_preloader:function(e){return'
 '+e+'
'},reauthenticate:function(e){return'

'+theme_language("theme_xhred_session_expired")+"

"+theme_language("theme_xhred_session_expired_details")+'
'+theme_language("theme_xhred_tooltip_switch_user")+"
"}}},page={handle:{content:{preloader:function(e){var t=this,a=$("#content"),n=$(".container-fluid"),i=$(".container-fluid-loading"),r=$("span[data-main_title]").text(),o=HTML.template.page_content_preloader(r);i.length?(i.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"),i=$(".__page .panel-filter"),r=".panel-filter .panel.panel-default",o=$("body");(n.length||i.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}}),$("."+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(r,"shown.bs.collapse.config hidden.bs.collapse.config"),o.on("shown.bs.collapse.config hidden.bs.collapse.config",r,function(e){setTimeout(function(){var e=$(".container-fluid").find(".btn-toggle-accordions").find("i");i.find(".panel-collapse").length===i.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");e?$(i).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")}):$(".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,i=$(".__page .panel-filter:visible");0===n?(i.find(".panel-collapse.in").length,i.find(".panel-collapse").length,i.find(".panel-collapse:not(.in)").filter(function(){$(this).removeData("bs.collapse").collapse({parent:!0,toggle:!1}).collapse("show").removeData("bs.collapse")})):i.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 i=$(this).val(),o=$(".__page .panel-filter:visible");if(e)if(i){$.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"),o.find('.panel tbody tr:containsi("'+i+'")').removeClass("hidden-forged"),$.each($(r=" .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(i):$(this).find("tbody").append(''+theme_language("theme_xhred_filter_content_no_matches_query").replace("%str",""+i+"")+""):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",i),$(".active .dataTables_filter input").val(i).trigger("keyup")):$(".dataTables_filter input").val(i).trigger("keyup")}var s=".btn-filter-top-right span, .btn-accordion-filter span",d=".btn-filter-top-right i, .btn-accordion-filter i";$.trim($(this).val()).length>0?($(s).removeClass("text-lighter"),$(d).addClass("text-danger")):($(s).addClass("text-lighter"),$(d).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 i=$("."+e+", ."+t+", ."+a);$("."+n).length&&($(".active .dataTables_filter").length||$(".active #conf-_-gr").length)||!$("."+n).length&&($(".dataTables_filter").length||$("#conf-_-gr").length)?i.show():i.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").parents(".table:visible"),a=t.parent("div.table-responsive:visible"),n=t.find("tbody > tr > td > table:visible"),i=0,r=1;$.each(n.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 n=$('tr[tj$=":0"]').map(function(){return $.trim($(this).text())});0===n.length&&(n.push(theme_language("theme_xhred_config_configurable_options")),r=0);for(var i=[],o=1;o tr[tj="0:1"]')).map(function(){return this.outerHTML.replace(/\n/g,"")}).get().join("\n"),l+="",i[o-1]=l}var s="conf-_-gr";a.replaceWith(HTML.template.accordion(s,n,i,r?e:[2])),page.render.content.filter.init(1),$(".container-fluid > .panel > .panel-body").on("hide.bs.collapse show.bs.collapse","#conf-_-gr",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&&(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={progress:function(){return"object"==typeof NProgress&&settings_loader_top},start:function(){this.progress()&&NProgress.start()},end:function(){this.progress()&&NProgress.done()},configure:function(){this.progress()&&NProgress.configure({showSpinner:!1,trickleRate:.09,trickleSpeed:100})}},session={reauthenticate:function(){var e="session-reauthenticate";!$("."+e).length&&$.ajax({type:"GET",url:v___location_prefix+"/index.cgi",data:!1,dataType:"text",success:function(t){var a=Test.strContains(t,v___page_signin_form+" pam_");if(!Test.strContains(t,v___page_signin_banner)){var n=$(t).find('input[name="twofactor"]').length,i="aside, aside .navigation, .form-control.sidebar-search, .container-fluid, .right-side-tabs, .right-side-tabs-toggler",r="pointer-events-none bg-filter-grayscale-opacity50 disabled",o=$("body").find(".-shell-port-"),l='';$(i).addClass(r),$("body").append(HTML.template.reauthenticate(e)),navigation_render_end(),navigation_detect(),reset_switch_position(),despinnerfy_buttons(),theme_shell_unlock(),theme_shell_close(o),n||$("."+e).find("[data-container-twofactor]").remove(),$("."+e).find("form").on("submit",function(n){function o(t,a,n,o){if(a){var l="theme_xhred_session_failed"===theme_language(a,1)?theme_language("theme_xhred_session_failed_password"):a;l.endsWith(".")||(l+="."),l=l.replace(/\n/gm,""),p.text(l).addClass("text-danger").removeClass("loading-dots"),c.removeClass("disabled btn-transparent").addClass("btn-success");var s=$(o).find(".alert[data-twofactor]").length?$("."+e).find('input[name="twofactor"]'):$("."+e).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 t&&!n&&(p.text(theme_language("theme_xhred_signing_success")).removeClass("text-danger").removeClass("loading-dots").addClass("text-success"),f.removeClass("fa-lock").addClass("fa-unlock fa-rotate-180 fa-flip-horizontal"),g.text(theme_language("theme_xhred_session_unlocked")),v___available_session=1,setTimeout(function(){v___available_session=1,$("."+e).remove(),$(i).removeClass(r)},1800))}n.preventDefault(),n.stopImmediatePropagation(),a&&$("."+e).find('form input[name="user"]').attr("name","answer").val(get_server_data("user"));var s=$(t).find("form").append(l).attr("action"),d=$("."+e).find("form").serialize(),c=$("."+e).find("[data-submit]"),f=$("."+e+"-header-icon i"),g=$("."+e+"-header-title h3"),p=$("."+e+"-header-title small");c.hasClass("disabled")||(p.text(theme_language("theme_xhred_signing_in")+"").removeClass("text-danger").addClass("loading-dots"),c.addClass("disabled btn-transparent").removeClass("btn-success"),$.ajax({type:"GET",url:s,data:d,dataType:"text",success:function(t){var n=$(t).find(".switch-toggle").text().length,i=$(t).find(".alert span").text(),r=i.length;if(a){var d=$(t).find("form").append(l),c=(d.find('input[name="answer"]').val($("."+e).find('input[type="password"]').val()),d.serialize());$.ajax({type:"GET",url:s,data:c,dataType:"text",success:function(e){n=$(e).find(".switch-toggle").text().length,i=$(e).find(".alert span").text(),r=i.length,o(n,i,r,e)}})}else o(n,i,r,t)}}))})}}})}},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}},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(settings_window_replaced_timestamp_format_full)),!e&&setInterval(this.tictac,1e3)}},theme={update:function(e){var t=$("body").add($(".__page")),a=$("aside").add($("#right-side-tabs")).add($(".__page")),n=1===e?"-release":"-beta";t.addClass("pointer-events-none"),set_onbeforeunload_status(1,0),a.addClass("bg-filter-blur-grayscale-opacity50"),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="+n,data:!1,dataType:"json",success:function(e){Test.strContains(e,v___page_signin_form)?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.removeClass("bg-filter-blur-grayscale-opacity50"),t.removeClass("pointer-events-none")):(theme_messenger(''+theme_language("theme_xhred_git_patch_update"),20,"error","themeUpgrade"),a.removeClass("bg-filter-blur-grayscale-opacity50"),t.removeClass("pointer-events-none"))},error:function(e){theme_messenger(''+theme_language("theme_xhred_git_patch_update"),20,"error","themeUpgrade"),a.removeClass("bg-filter-blur-grayscale-opacity50"),t.removeClass("pointer-events-none")},complete:function(e){set_onbeforeunload_status(0,0)}})}},quirks={active_element:function(){return document.activeElement&&$(document.activeElement).is("body")?v___page_activeElement:document.activeElement}};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.toLowerCase()).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"+t)})}function g__text_breaker(e,t){if(e.val()){var i=e.val().split(t),a="";$.each(i,function(e,i){i&&(a+=t+i+"\n")}),e.val(a)}}function extract_content(e,t,i,a){if(!e)return 0;var n=a?0:t.length,s=a?i.length:0,_=e.indexOf(t),r=e.indexOf(i,_),o=-1===r?e.length:r;return e.slice(_+n,o+s)}function get_form_data(e){return(e.attr("enctype")&&e.attr("enctype").indexOf("form-data")>-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 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){$("head");var t=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(){$("head");var e=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){var 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="], a.ui_link_replaced[href*="search.cgi/webminlog"] '),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))v___available_session=0;else{$("body").prepend(t);var i=$("#update_notice");e&&i.addClass("r"),i.modal("show")}},error:function(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($t_uri_virtualmin||$t_uri_cloudmin)&&$("aside select option:checked").text()&&$("aside select option:checked").text().length?e&&e.length?$("#webmin_search_form").parent("li").prevAll().has(".sub_active, .current-large").length?document.title=$("aside select option:checked").text()+" - "+e+" — "+v___title_initial:document.title=e+" — "+v___title_initial:document.title=get_navigation_module_name()+" — "+v___title_initial:$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 i=$(".right-side-tabs .list-group-item:not(.no-notifications, .opacity-0_3)").length;settings_side_slider_enabled&&settings_side_slider_notifications_enabled?titlenotifier.set(i):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))navigation_clear();else{if(void 0===t){if(v___blocked_navigation)return;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);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&&(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(),theme_to_new_tab()}function navigation_display(){"none"==$("aside").css("transform")&&($("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";"function"==typeof jQuery().transition&&$("."+e+":visible").length&&$("."+e).attr("style")&&-1==$("."+e).attr("style").indexOf("ease")&&($(".__logo")&&$(".__logo").transition({y:0},1.5*$settings_animation_left_slide_time),$("aside, ."+e).transition({x: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&&-1===t.indexOf("↱")?$(this).html("    ↱ "+t.replace(/\s/g,"")):2===e&&-1===t.indexOf("↴")&&$(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_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 r=$.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()}}}),o={};$("aside select option").each(function(){o[$(this).val()+":::"+$(this).parent("select").attr("name")]=$.trim($(this).text())});var l=$.map(o,function(e,t){if("undefined"!=t)return{value:e,url:t,data:{category:$("aside select").data("autocomplete-title")}}}).concat(s).concat(r).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:l,onSelect:function(e){if(!0===navigation_dashboard_switch_available()&&$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;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||-1==e||""==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,""),i=t.replace("/"+v___module+"/",""),a=$('form[action="'+t+'"]:visible'),n=(a=a.length?a:$('form[action="'+i+'"]:visible')).attr("method");if("multipart/form-data"===a.attr("enctype"))return"post";if(n)return n;if(!n){var n=(n=$('form[action="'+t+'"]').attr("method"))||$('form[action="'+URI(t).filename()+'"]').attr("method"),s=$('form[action="'+t+'"]').attr("enctype");return n||s?"multipart/form-data"===s?"post":n:"get"}}else if("object"==typeof e&&$(e).is("form")){var _=e.attr("method");return _||"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];$.pjax({url:e,timeout:0,push:get_pjax_push(),type:get_pjax_type(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.responseText.replace(/)<[^<]*)*<\/body>/gim,"").replace(/)<[^<]*)*<\/head>/gim,"").replace("","").replace("",""),a=$(i).filter("#xhtml0");$(a[0].attributes).each(function(){"id"!==this.nodeName&&(this.nodeName,v___available_navigation&&"data-redirect"===this.nodeName&&this.nodeValue&&this.nodeValue!="/?"+$__theme_navigation&&history.replaceState({},null,navigation_trigger(this.nodeValue,2)),get_server_data(this.nodeName,this.nodeValue))}).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()}1===v___theme_updated&&(v___theme_updated=0,theme_update_notice(1))})}}function get_pjax_event_end_funcs(e){if(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").find('input:visible:not([readonly]):not([disabled]):not([type="radio"]):not([type="checkbox"]):not([type="submit"]), textarea:visible:not([readonly]):not([disabled])');e.length&&!e.parents(".ui_buttons_table").length&&"config.cgi"!==v___location_file&&"uconfig.cgi"!==v___location_file&&"settings-user.cgi"!==v___location_file&&e[0].focus()},200),v___available_navigation){var t=navigation_trigger(v___location.href,1).replace(v___location_origin+v___location_prefix,"");""==t||"/"==t||"/index.cgi"==t||unbuffered_header_processor_allow(v___location.href)||"csf"===v___module||"config.cgi"===v___location_file||(set_server_tmp_var_timeout=setTimeout(function(){set_server_tmp_var("goto",navigation_trigger(v___location.href,1))},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))unbuffered_header_processor(e,1);else{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,r=i.nodeName.toLowerCase(),o=$(e.target).find('[name="'+a+'"]'),l=o.attr("type");("input"!==r||o.val()==s&&"submit"!==l)&&("button"!==r||$.trim(o.text())==n&&"submit"!==l)||"button"!==l&&"submit"!==l&&"submit"!==_||$("").attr({type:"hidden",name:a,value:n||s}).appendTo($(e.target)),$.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"))return $(e.target).is(".gl-icon-select")?(e.preventDefault(),void $(t).trigger("contextmenu")):t&&t.href&&unbuffered_header_processor_allow(t.href)?(e.preventDefault(),void unbuffered_header_processor(t.href,0)):void $.pjax.click(e,{timeout:0,push:get_pjax_push(),type:get_pjax_type(t),container:"[data-dcontainer]",fragment:"[data-dcontainer]"})}function get_onbeforeunload_message(e,t){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(){set_onbeforeunload_status(0,0),set_onbeforeunload_status(0,1),"object"==typeof progressive_request&&1===progressive_request.readyState&&progressive_request.abort();if(t&&t.href&&Test.strContains(t.href,"::switch::"))$('.switch-toggle input[id="'+t.href.replace("::switch::","")+'"]').trigger("click");else{var i=$(t).is("form");i?i&&get_pjax_action_submit(e,t):t.href&&t.href.length&&get_pjax_content(t.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){var t="body .right-side-tabs";"0"!=get_server_data("access-level")&&"1"!=Core.moduleAvailable("status")||(e?($(t+"-toggler").addClass("hidden"),$(t).css("right","0px").addClass("right-side-tabs-fixed"),settings_side_slider_enabled&&get_server_data("data-slider-fixed","1")):(settings_side_slider_enabled&&$(t+"-toggler").removeClass("hidden opened").css("right","0"),$(t).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&&(r=r.split("~"),e=r[0],s=r[1]),$.each($(t).find(i),function(){if(!$(this).parents(t).hasClass("f__lnk_t_btn")){if(o){var _=new RegExp(RegExp.quote(o),"g");$(this).parent().replaceText(_,l||"")}a&&a.indexOf("__center__")>-1&&$(i).parent().addClass("text-center"),$(this).html(e+$(this).text().replace(/\.\.$/,"")+s).addClass(a).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(1===t){e.find(".fa-moon").removeClass("fa-moon").addClass("fa-sun vertical-align-middle"),$(document).find(".settings_navigation_color_toggle").addClass("hidden");var s=$("html").find('head link[href*="palettes"][data-palette]');$("html").find("head").append(''),$("html").find("head").append(''),setTimeout(function(){get_server_data("data-theme","gunmetal"),s.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 _=$("html").find('head link[href*="gunmetal"]');"blue"!=get_server_data("data-default-theme")&&$("html").find("head").append(''),get_server_data("data-theme",i),_.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_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(){return''}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()}),$('#system-status [href="/?updated"]').removeClass("disabled").find("i").removeClass("fa-spin")}function spinnerfy_buttons(e,t,i,a){var n=!!(e.attr("onclick")&&-1!==e.attr("onclick").indexOf("blank")||e.parents("form").attr("target")&&-1!==e.parents("form").attr("target").indexOf("blank")),s=e.hasClass("heighter-28"),_="28px"==e.css("height"),r=e.hasClass("btn-lg"),o=Core.curModule("server-manager")?2:0,l=e.find(".fa").hasClass("fa-1_25x"),c=e.find(".fa"),d=void 0!==t&&0!=t&&t,h='',p='';setTimeout(function(){!n&&e.addClass("disabled")},10),c.length&&!n&&setTimeout(function(){e.hasClass("btn-default")?c.addClass("invisible").after(p):c.addClass("invisible").after(h)},10),"undefind"==typeof i&&(i=!1),"undefind"==typeof a&&(a=!1),(d[3]||i)&&setTimeout(function(){e.removeClass("disabled"),c.removeClass("invisible"),e.find(".cspinner_container").remove()},i||d[3]),a&&setTimeout(function(){progress.end()},400)}function theme_language(e,t){void 0===t&&(t=!1);var i=get_server_data("language-strings");return t?!!i&&Convert.arrFlip(i)[$.trim(e)]:!!i&&i[e]}function theme_config($action,callBack){var callBack="object"==typeof callBack&&callBack,watched_options=["config_portable_module_csf_style_custom_promoted","config_portable_theme_charset_warning_shown","config_portable_module_xsql_fit_content_screen_height","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){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,"undefind"!=settings_font_family&&(storeStorage.settings_font_family=settings_font_family),"undefind"!=settings_navigation_color&&(storeStorage.settings_navigation_color=settings_navigation_color),"undefind"!=settings_background_color&&(storeStorage.settings_background_color=settings_background_color),"undefind"!=settings_cm_editor_palette&&(storeStorage.settings_cm_editor_palette=settings_cm_editor_palette),"undefind"!=settings_button_tooltip&&(storeStorage.settings_button_tooltip=settings_button_tooltip),"undefind"!=settings_hide_top_loader&&(storeStorage.settings_hide_top_loader=settings_hide_top_loader),"undefind"!=settings_animation_left&&(storeStorage.settings_animation_left=settings_animation_left),"undefind"!=settings_animation_tabs&&(storeStorage.settings_animation_tabs=settings_animation_tabs),"undefind"!=settings_sysinfo_link_mini&&(storeStorage.settings_sysinfo_link_mini=settings_sysinfo_link_mini),"undefind"!=settings_show_night_mode_link&&(storeStorage.settings_show_night_mode_link=settings_show_night_mode_link),"undefind"!=settings_theme_options_button&&(storeStorage.settings_theme_options_button=settings_theme_options_button),"undefind"!=settings_leftmenu_button_refresh&&(storeStorage.settings_leftmenu_button_refresh=settings_leftmenu_button_refresh),"undefind"!=settings_hotkeys_active&&(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){Test.strContains(c,v___page_signin_form)?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){Test.strContains(e,v___page_signin_form)?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})},error:function(){}})}}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 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){Test.strContains(e,v___page_signin_form)?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_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"}}),$("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: 767px)").matches)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(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(get_onbeforeunload_status()||!v___available_session)return e.preventDefault(),void console.log("Disabling theme hotkeys .. ");"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_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 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,_,r){(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===r||0==r)&&(r=!1);$.isArray(i);var o="modal-global-notification",l='";setTimeout(function(){$("body").hasClass("modal-open")||($("body").append(l),$("."+o).modal("show"),$("."+o).on("click",".modal-body a.label",function(e){$("."+o).modal("hide")}),$("."+o).on("hidden.bs.modal",function(e){$("."+o).remove()}))},r)}function theme_alert_charset(){var e=get_server_data("charset");if(e&&-1===e.toLowerCase().indexOf("utf")&&"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){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;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"))}$(".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 r='button[type="submit"]:not(.disabled)';$("body").undelegate(r,"click.cm"),$("body").on("click.cm",r,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 o='button[data-form="submitter"]:not(.disabled)';$("body").undelegate(o,"click.cm"),$("body").on("click.cm",o,function(e){e.preventDefault();var t=$(this).parents("form"),a=(t.attr("enctype")&&t.attr("enctype").indexOf("form-data")>-1?0:1)?t.serialize():new FormData(t[0]);$("button").addClass("disabled").find(".fa.fa-floppy-o").addClass("invisible").after(''),setTimeout(function(){$.ajax({type:"POST",url:i.attr("action"),data:a,dataType:"text",cache:!1,contentType:!1,processData:!1,success:function(e){if(!Test.strContains(e,v___page_signin_form))return 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"));v___available_session=0},error:function(e){}})},300)})}}function page_resized(){navigation_lock_width(),$(".mobile-menu-toggler").hasClass("selected")||($("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(!0!==settings_side_slider_fixed||$(".mobile-menu-toggler:visible").length||!v___available_navigation?0:1)}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_update(){$.each($("#atsettings .ui_form").serializeArray(),function(e,t){if("true"==t.value||"false"==t.value){if("true"==t.value)i=!0;else if("false"==t.value)i=!1}else var i=t.value;window[t.name]=Test.numeric(i)?parseInt(i):i})}function bind_sameorigin(){$("body").on("click",'a[href^="http"], a[href^="https"], a[href^="ftp"], a[href^="ftps"]',function(e){Core.linkSameOrigin($(this))||$(this).attr("target","_blank")}),$.each($('ul.navigation a[href^="http"], ul.navigation a[href^="https"], ul.navigation a[href^="ftp"], ul.navigation a[href^="ftps"], ul.navigation a[data-href^="http"], ul.navigation a[data-href^="https"], ul.navigation a[data-href^="ftp"], 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")})}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){Test.strContains(e,v___page_signin_form)?v___available_session=0:($("body ul.user-links").html(e),theme_shell_link_control())}})}function get_default_content(){get_onbeforeunload_status()||($("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))v___available_session=0;else{$("#____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);(Test.strContains(t,"mysql")||Test.strContains(t,"postgresql"))&&get_bundle_sql(),Test.strContains(t,v___module_file_manager)&&get_bundle_file_manager(),Test.strContains(t,"csf")&&get_bundle_csf(),get_pjax_content(t),$("#____switch").remove()}}}))}function get_default_virtualmin_content(e,t){if(!get_onbeforeunload_status()||t){var i,a="/virtual-server";if(i=1==get_server_data("initial-wizard")?a+"/wizard.cgi":!1!==e?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)}}function get_default_cloudmin_content(e,t){if(!get_onbeforeunload_status()||t){var i;if(i=!1===e||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)}}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&&0==v___user_level){var e=$("body").find("#system-status"),t=e.length?e[0]:0;$("#right-side-tabs-sysinfo .graph-container").length||$("#right-side-tabs .info-container").html(get_right_panel_sysinfo_data()),t&&$(t).find('h3 > a[data-refresh="system-status"]').addClass("disabled").find("i").addClass("fa-spin");var i=$(".right-side-tabs-dismiss .fa-reload");i.addClass("fa-spin-fast"),setTimeout(function(){i.removeClass("fa-spin-fast")},3e3),$.ajax({type:"GET",url:v___location_prefix+"/index.cgi/?xhr-info=1",data:!1,dataType:"json",success:function(e){Test.strContains(e,v___page_signin_form)?v___available_session=0:($.each(e,function(e,i){if("cpu_percent"!=e&&"mem_percent"!=e&&"virt_percent"!=e&&"disk_percent"!=e||(Test.numeric(i)?localStorage.setItem(v___server_hostname+"-sysinfo_"+e+"_stats",i):localStorage.setItem(v___server_hostname+"-sysinfo_"+e+"_stats","")),t){if($(t).find('span[data-id="sysinfo_'+e+'"]').html(i),"local_time"==e||"uptime"==e||"running_proc"==e){var a=$(t).find('span[data-id="sysinfo_'+e+'"]'),n=$(t).find('span[data-id="sysinfo_'+e+'"] a'),s=$(t).find('span[data-id="sysinfo_'+e+'"]').text();"local_time"==e&&settings_window_replace_timestamps?n&&n.length?(s=$(t).find('span[data-id="sysinfo_'+e+'"] a').data("convertible-timestamp-full"),a.html(n.html(moment.unix(s).format(settings_window_replaced_timestamp_format_full)))):(s=$(t).find('span[data-id="sysinfo_'+e+'"] > span').data("convertible-timestamp-full"),a.html(moment.unix(s).format(settings_window_replaced_timestamp_format_full))):n&&n.length&&a.html(n.html(s))}if(page_sysinfo_sensor_update_label(),$(t).find('.piechart[data-charts="sysinfo_'+e+'"]').length){var _=$("body").find('.piechart[data-charts="sysinfo_'+e+'"]');_.length&&!isNaN(parseInt(i))&&_.data("easyPieChart").update(i)}"cpu_percent"!=e&&"mem_percent"!=e&&"virt_percent"!=e&&"disk_percent"!=e||localStorage.setItem(v___server_hostname+"-sysinfo_"+e+"_seen",i),$(t).find(".modal-backdrop").remove()}if($__id__=moment().unix(),"cpu_percent"==e||"mem_percent"==e||"virt_percent"==e||"disk_percent"==e||"csf_title"==e||"csf_remote_version"==e||"authentic_remote_version"==e||"package_message"==e?localStorage.getItem(v___server_hostname+"-sysinfo_"+e)||localStorage.setItem(v___server_hostname+"-sysinfo_"+e,i):i&&null!=i&&NaN!=i?localStorage.setItem(v___server_hostname+"-sysinfo_"+e,i):localStorage.setItem(v___server_hostname+"-sysinfo_"+e,""),localStorage.getItem(v___server_hostname+"-sysinfo_package_message_initial")||localStorage.setItem(v___server_hostname+"-sysinfo_package_message_initial",1),"authentic_theme_version"==e&&!localStorage.getItem(v___server_hostname+"-sysinfo_theme_current_version")&&i&&localStorage.setItem(v___server_hostname+"-sysinfo_theme_current_version",i.match(/^\d+|\d+\b|\d+(?=\w)/g)[0]+"."+i.match(/^\d+|\d+\b|\d+(?=\w)/g)[1]),"csf_data"==e&&!localStorage.getItem(v___server_hostname+"-sysinfo_csf_current_version")&&i&&localStorage.setItem(v___server_hostname+"-sysinfo_csf_current_version",i.match(/^\d+|\d+\b|\d+(?=\w)/g)[0]+"."+i.match(/^\d+|\d+\b|\d+(?=\w)/g)[1]),"csf_title"==e||"csf_data"==e||"csf_remote_version"==e||"authentic_remote_version"==e||"authentic_theme_version"==e||"package_message"==e){if("package_message"===e){if((localStorage.getItem(v___server_hostname+"-sysinfo_"+e)!=i||1==localStorage.getItem(v___server_hostname+"-sysinfo_package_message_initial"))&&i&&i.indexOf("badge-danger")>-1){var r=theme_language("theme_xhred_notifications_packages_updates"),o=$(i).html().replace(/badge-danger/g,"badge-success");localStorage.setItem(v___server_hostname+"-notifications_"+$__id__+"_package_message",JSON.stringify({title:r,time:$__id__,timestamp:$__id__,message:o,readStatus:0,type:e,link:$(i).attr("href")})),slider_mark_group_notifications_read("package_message"),localStorage.setItem(v___server_hostname+"-sysinfo_"+e,i),localStorage.setItem(v___server_hostname+"-sysinfo_package_message_initial",0),notifications(r,o,e)}else"package_message"===e&&localStorage.setItem(v___server_hostname+"-sysinfo_"+e,i);$(i).find("i.badge:first-child").length||slider_mark_group_notifications_read("package_message")}var l=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"),l&&localStorage.getItem(v___server_hostname+"-sysinfo_authentic_remote_version")&&"authentic_remote_version"==e&&l';localStorage.setItem(v___server_hostname+"-notifications_"+$__id__+"_authentic_remote_version",JSON.stringify({title:c,time:$__id__,timestamp:$__id__,message:d,readStatus:0,type:e,link:v___location_prefix+"/sysinfo.cgi"})),localStorage.setItem(v___server_hostname+"-sysinfo_"+e,i),localStorage.setItem(v___server_hostname+"-sysinfo_theme_current_version",i),notifications(c,d,e)}if("authentic_theme_version"!==e||Test.strContains(i,"CHANGELOG.md")||slider_mark_group_notifications_read("authentic_remote_version"),settings_sysinfo_csf_updates){var h=localStorage.getItem(v___server_hostname+"-sysinfo_csf_current_version");if(h&&null!=h&&localStorage.getItem(v___server_hostname+"-sysinfo_csf_remote_version")&&"csf_remote_version"==e&&h-1&&1!=localStorage.getItem(v___server_hostname+"-sysinfo_csf_not_running")){var g=theme_language("theme_xhred_notifications_firewall_danger"),u=theme_language("theme_xhred_notifications_firewall_danger_message").replace("%v",moment.unix($__id__).format(settings_window_replaced_timestamp_format_short));localStorage.setItem(v___server_hostname+"-notifications_"+$__id__+"_csf_title",JSON.stringify({title:g,time:$__id__,timestamp:$__id__,message:u,readStatus:0,type:e,link:v___location_prefix+"/csf/index.cgi"})),slider_mark_group_notifications_read("csf_title"),localStorage.setItem(v___server_hostname+"-sysinfo_csf_not_running",1),notifications(g,u,"csf_remote_version")}else i&&-1===i.indexOf("label-danger")&&(slider_mark_group_notifications_read("csf_title"),localStorage.removeItem(v___server_hostname+"-sysinfo_csf_not_running"))}if("csf_deny"==e){var v=JSON.parse(i);$.each(v,function(t,i){var a=(i=i.split("|"))[0],n=i[1],s=i[2],_=i[3],r=(i[4],i[5],i[6],i[7]);if(r=r.replace("*Port Scan*",s&&_?'Port '+_+" scan":"Port scan"),!localStorage.getItem(v___server_hostname+"-allowed_trigger_"+(a+n.replace(/\./g,"0"))+"_csf_deny")){var o=theme_language("theme_xhred_notifications_firewall_warning"),l=r+(s&&_?" ("+s+":"+_+")":"");localStorage.setItem(v___server_hostname+"-notifications_"+(a+n.replace(/\./g,"0"))+"_csf_deny",JSON.stringify({title:o,time:$__id__,timestamp:$__id__,message:l,readStatus:0,type:e,link:v___location_prefix+"/csf/index.cgi"})),localStorage.setItem(v___server_hostname+"-allowed_trigger_"+(a+n.replace(/\./g,"0"))+"_csf_deny",1)}})}"cpu_percent"!=e&&"mem_percent"!=e&&"virt_percent"!=e&&"disk_percent"!=e||null!==localStorage.getItem(v___server_hostname+"-sysinfo_"+e+"_seen")&&i>=85&&localStorage.getItem(v___server_hostname+"-sysinfo_"+e+"_seen"),setTimeout(function(){if((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 t=!localStorage.getItem(v___server_hostname+"-sysinfo_"+e+"_stats"),a=$(".info-container .graph-container."+e);t?a.addClass("hidden").prev("br").addClass("hidden"):a.removeClass("hidden").prev("br").removeClass("hidden"),"cpu_percent"==e&&($("#right-side-tabs-sysinfo .graph-container."+e+" .description").attr("title",localStorage.getItem(v___server_hostname+"-sysinfo_load")).text(theme_language("theme_xhred_global_cpu_load")+": "+localStorage.getItem(v___server_hostname+"-sysinfo_cpu_percent_stats")+"% ("+localStorage.getItem(v___server_hostname+"-sysinfo_load")+")"),$("#right-side-tabs-sysinfo .graph-container."+e+" .bar").attr("style","width:"+localStorage.getItem(v___server_hostname+"-sysinfo_cpu_percent_stats")+"%")),"mem_percent"==e&&($("#right-side-tabs-sysinfo .graph-container."+e+" .description").attr("title",localStorage.getItem(v___server_hostname+"-sysinfo_real_memory")).text(theme_language("body_real")+": "+localStorage.getItem(v___server_hostname+"-sysinfo_mem_percent_stats")+"% ("+localStorage.getItem(v___server_hostname+"-sysinfo_real_memory")+")"),$("#right-side-tabs-sysinfo .graph-container."+e+" .bar").attr("style","width:"+localStorage.getItem(v___server_hostname+"-sysinfo_mem_percent_stats")+"%")),"virt_percent"==e&&($("#right-side-tabs-sysinfo .graph-container."+e+" .description").attr("title",localStorage.getItem(v___server_hostname+"-sysinfo_virtual_memory")).text(theme_language("body_virt")+": "+localStorage.getItem(v___server_hostname+"-sysinfo_virt_percent_stats")+"% ("+localStorage.getItem(v___server_hostname+"-sysinfo_virtual_memory")+")"),$("#right-side-tabs-sysinfo .graph-container."+e+" .bar").attr("style","width:"+localStorage.getItem(v___server_hostname+"-sysinfo_virt_percent_stats")+"%")),"disk_percent"==e&&($("#right-side-tabs-sysinfo .graph-container."+e+" .description").attr("title",localStorage.getItem(v___server_hostname+"-sysinfo_disk_space")).text(theme_language("body_disk")+": "+localStorage.getItem(v___server_hostname+"-sysinfo_disk_percent_stats")+"% ("+localStorage.getItem(v___server_hostname+"-sysinfo_disk_space")+")"),$("#right-side-tabs-sysinfo .graph-container."+e+" .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="'+e+'"]').html(i),"package_message"==e&&Core.moduleAvailable("package-updates")&&$('#right-side-tabs .info-container .info-list-data span[data-data="'+e+'"]').html($(i).html($(i).html().split(",")[0])[0].outerHTML),"local_time"==e&&settings_window_replace_timestamps){(o=$('#right-side-tabs .info-container .info-list-data span[data-data="'+e+'"] a'))&&o.length&&o.html(o.next("span").detach());var n=$(".info-container").find("span[data-convertible-timestamp-full]"),s=n.attr("data-convertible-timestamp-full");n.html(moment.unix(s).format(settings_window_replaced_timestamp_format_full)),time.tictac(1)}if("cpu_temperature"==e){var _=0;$.each($(i).filter(".badge-cpustatus"),function(e,t){var a,n=parseInt($(this).text().split(":")[1]),s=n,r=$(this).text().indexOf("°C")>-1;"bg-warning"!=(a=$(this).text().indexOf("RPM")>-1?HTML.label.rpm(s):HTML.label.temperature(n,r))&&"bg-danger"!=a||(_=1),$("#right-side-tabs .info-container .badge-drivestatus.badge-cpustatus").length||$('strong[data-stats="cpu"] + br[data-stats="cpu"]').after(i.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(a+"-dark")}).promise().done(function(){_||"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"==e){var r=0;$.each($(i).filter(".badge-drivestatus:not(.badge-cpustatus)"),function(e,t){var a,n=parseInt($(this).text().split(":")[1]),s=$(this).text().indexOf("°C")>-1;"bg-warning"!=(a=HTML.label.temperature(n,s))&&"bg-danger"!=a||(r=1),$("#right-side-tabs .info-container .badge-drivestatus:not(.badge-cpustatus)").length||$('strong[data-stats="drive"] + br[data-stats="drive"]').after(i.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(a+"-dark")}).promise().done(function(){r||"undefined"!=typeof config_custom_force_display_drive_sensors?$('.info-container [data-stats="drive"]').removeClass("hidden"):$('.info-container [data-stats="drive"]').addClass("hidden")})}if("uptime"==e||"running_proc"==e){var o=$('#right-side-tabs .info-container .info-list-data span[data-data="'+e+'"] a');if(o&&o.length){var l=o.parent(),c=l.text();l.html(o.text(c))}}if("warning_si"==e&&((d=$("#right-side-tabs .info-container .warning-list-data")).html(i.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")),"
"==i&&d.empty()),"extended_si"==e){var d=$("#right-side-tabs .info-container .extended-list-data"),h=i.replace(/aria-expanded="true"/gi,'aria-expanded="false"').replace(/collapse in/gi,"collapse");opened_tabs=$("#extended_sysinfo .panel .in").map(function(){h=h.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+'"'),h=h.replace('div id="'+this.id+'" class="panel-collapse collapse"','div id="'+this.id+'" class="panel-collapse collapse in"')}).promise().done(function(){d.html('
'+h);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("+")})})}$.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)},101)}),setTimeout(function(){slider_check_notifications()},3e3),t&&$(t).find('h3 > a[data-refresh="system-status"]').removeClass("disabled").find("i").removeClass("fa-spin"))}})}}function information_check(){if(setTimeout(function(){information_update()},1e4),settings_side_slider_enabled&&!$("body .modal.in").length)return 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,r=a.message,o=a.readStatus,l=a.type,c=a.link;$current_localData_notifications[s+"_"+n]=i+"~~~~"+n+"~~~~"+s+"~~~~"+_+"~~~~"+r+"~~~~"+o+"~~~~"+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,_,r){$(".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_init(e){CKEDITOR_BASEPATH=v___location_prefix+"/unauthenticated/js/ckeditor/",$.getScript(v___location_prefix+"/unauthenticated/js/ckeditor/ckeditor.js",function(t,i,a){/** * Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or http://ckeditor.com/license */ @@ -177,4 +177,4 @@ CKEDITOR.env.ie&&CKEDITOR.env.version<9&&CKEDITOR.tools.enableHtml5Elements(docu $('#content [data-dcontainer="1"]').tooltip({selector:'[data-toggle="tooltip"]:not([data-skip]), [data-toggle="virtualmin-license"], .panel-body td a:not([data-skip]), .icons-container',container:"body",placement:"auto "+($(".gl-icon-container").length?"bottom":"top"),html:!0,delay:{show:600,hide:30}})),v___available_navigation&&window.matchMedia("(max-width: 767px)").matches&&(navigation_lock_width(),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"),(Core.curModule("firewall")||Core.curModule("firewall6"))&&$.each($('select[name="table"], input[name="chain"]'),function(){var e=$(this),t=e.prev().addClass("margined-right-3"),i=e.parent("td"),a=e.parent("td").prev("form");i.append(a.detach()),i.find("form").append(e.add(t).detach())}),(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").find('form[action="view_table.cgi"]').first().addClass("inline-block"),n=a.nextAll('input[name="search"], input[name="db"], input[name="table"]').slice(0,3);e.parent("td").prev("form");a.append(n.detach()),i.append(a.detach()),i.find("form").append(t.detach())}),$("body").hasClass("session_login")&&setTimeout(function(){page_display()},200),moment.locale(get_server_data("language-full")),theme_to_new_tab(),Core.curModule("syslog")){var A=$(".container-fluid");Core.curModuleFileQuery("syslog","save_log.cgi","view=")?A.removeClass("col-lg-10 col-lg-offset-1").addClass("margined-top-15"):A.addClass("col-lg-10 col-lg-offset-1").removeClass("margined-top-15")}Core.curModuleFile("acl","save_twofactor.cgi")&&(console.log(333),setTimeout(function(){var e=$("p > img"),t=e.attr("src");e.attr("src",t.replace(v___location_prefix+"/"+v___module+"/",""))},0))}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")),"undefined"==typeof v___theme_updated&&(v___theme_updated=0),v___location=location,$__theme_name__="authentic",$__theme_navigation="xnavigation=1",v___user_level=get_server_data("access-level"),v___shell_type=0==v___user_level?"#":"$",v___shell_processing=0,v___debug=get_server_data("debug"),v___source_type="debug"==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,v___blocked_navigation=$(quirks.active_element()).is("li.has-sub, a[data-has-sub-link]")?1: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_version_git=get_server_data("theme-git-version").toString(),v___theme_version_plain=v___theme_version.replace(".",""),v___theme_force_buffered=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___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_extensions_path=v___location_prefix+"/extensions", // $t___license_vm = get_server_data("virtual-server-license"), // $t___license_cm = get_server_data("server-manager-license"), -update_navigation_module_name()}function editor_init_check(){return 1===$("textarea").length&&("data"===$("textarea").attr("name")||"text"===$("textarea").attr("name")||"conf"===$("textarea").attr("name")||"script"===$("textarea").attr("name")||Core.curModuleFileQuery("virtual-server","edit_html.cgi","textok=")||v___location_file.indexOf("manual")>-1)?Core.curModule("gnupg")||Core.curModuleFile("virtual-server","mass_ucreate_form.cgi")||Core.curModuleFile("virtual-server","mass_create_form.cgi")||Core.curModuleFile("server-manager","edit_pubkey.cgi")||Core.curModuleFile("server-manager","edit_key.cgi")||check_location_resource("/config.cgi?server-manager")||Core.curModuleFile("useradmin","batch_form.cgi")||Core.curModuleFile("useradmin","gbatch_form.cgi")||"mass_form.cgi"==v___location_file||"notes"===$("textarea").attr("id")?0:1:0}function editor_init(e,t,i,a,n,s,_,r){(_=void 0!==_&&0!=_)||(n=void 0!==n&&0!=n,s=void 0!==s&&0!=s,$.each(e,function(_,o){$(this);var l=["phpini","bind8"];$("#headln2l a").attr("href")?$page=$("#headln2l a").attr("href").split("/")[1]:$page=null,l.indexOf($page)>=0&&$(this).data("name","data"),CodeMirror.modeURL=v___location_prefix+"/unauthenticated/js/codemirror/mode/%N/%N.js";var c=null,d="text/plain",h=!1;v___location_path==v___location_prefix+"/custom/view.cgi"?h=$('form[action="save.cgi"]').find(".table-title").find("tt").text():$('body[class^="'+v___module_file_manager+'"]').length?(h=t.replace(/<(?:.|\n)*?>/gm,"").replace(/ *\([^)]*\) */g,""),t=h):h=$('select[name="file"]').val();var p,f=t||h;if(p=/.+\.([^.]+)$/.exec(f))(g=CodeMirror.findModeByExtension(p[1]))&&(c=g.mode,d=g.mime);else if(/\//.test(f)){var g=CodeMirror.findModeByMIME(f);g&&(c=g.mode,d=f)}else c=null,d="text/plain";if("apache"==$page||"postfix"==$page||"dovecot"==$page||"spam"==$page||"virtualmin-nginx"==$page||"sendmail"==$page||"samba"==$page||"proftpd"==$page||"fail2ban"==$page||"sshd"==$page||"squid"==$page||"ldap-server"==$page?(c="rpm",d="rpm-spec"):"phpini"==$page?(c="z80",d="text/x-z80"):"bind8"==$page||"procmail"==$page||Core.curModuleFile("virtual-server","manual_records.cgi")?(c="clike",d="text/x-java"):"virtual-server"==$page&&"body"==$(this).attr("name")&&(c="htmlmixed",d="text/html"),$current_file=v___location_path.replace(/^\//g,""),$current_file&&($current_file=$current_file.split("/")[1]),editor_init_check()||$(".jsPanel").length||n){CodeMirror.commands.autocomplete=function(e){e.showHint({hint:CodeMirror.hint.anyword})},window["__cm_editor_"+a]=CodeMirror.fromTextArea(o,{tabMode:"indent",matchBrackets:!0,lineNumbers:!0,keyMap:"sublime",highlightSelectionMatches:{showToken:/\w/,annotateScrollbar:!0},lineWrapping:!0,indentUnit:0,autofocus:!0,foldGutter:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:{"Ctrl-Space":"autocomplete"},styleActiveLine:!0,theme:v___theme_night_mode?"monokai":settings_cm_editor_palette}),window["__cm_editor_"+a].setOption("mode",d),"rpm"!=c&&CodeMirror.autoLoadMode(window["__cm_editor_"+a],c),setTimeout(function(){$("body").find(".jsPanel").length||$(".CodeMirror").before('');var e=$(".fa.fa-question-circle.__helper, .__helper___");e.popover({container:"body",placement:"auto left",title:''+theme_language("theme_xhred_editor_help_title"),content:theme_language("theme_xhred_editor_help_content"),trigger:"click",html:!0}),e.on("inserted.bs.popover",function(){$("body").find(".theme_xhred_editor_help").parents(".popover").addClass("_helper")})},100),s&&window["__cm_editor_"+a].on("change",function(e,t){set_onbeforeunload_status(1,0)});var u=$(".container-fluid > .panel > .panel-body").attr("data-cm-line"),v=$(".container-fluid > .panel > .panel-body").attr("data-cm-state");r&&u&&__cm_editor_static.setCursor(parseInt(u.split(",")[0]),parseInt(u.split(",")[1])),"edit_cron.cgi"!=$current_file&&v___location_path!=v___location_prefix+"/virtualmin-password-recovery/"&&v___location_path!=v___location_prefix+"/bind8/forward_form.cgi"&&($resize=i||2.8,i?(window["__cm_editor_"+a].on("change",function(t,i){e.val(window["__cm_editor_"+a].getValue()),$(":focus").parents(".jsPanel").is(".jsPanel")&&($(":focus").parents(".jsPanel").find("._filemanager_file_editor_save").addClass("text-danger __locked__"),$(":focus").parents(".jsPanel").find("select[data-encoding]").addClass("pointer-events-none"))}),window["__cm_editor_"+a].setSize($resize[0],$resize[1])):($window_height=$(window).outerHeight()-$(window).outerHeight()/$resize,window["__cm_editor_"+a].setSize(null,$window_height),$(window).resize(function(){$window_height=$(window).outerHeight()-$(window).outerHeight()/$resize,window["__cm_editor_"+a].setSize(null,$window_height)}))),$(".sub_table_container").find(".CodeMirror").length&&($(".sub_table_container").addClass("xcontent-force-no-styling"),$(".panel-body").addClass("xqcontent-forced")),editor_background_save(r&&!!u&&"true"==v)}}))}function viewer_init_check(){return $('body[class^="syslog"]').length&&v___location_query&&v___location_query.indexOf("view=1")>-1?1:0}function viewer_init(){if($("pre[data-cm-viewer]").remove(),$(".panel-body pre").find("i").length)$(".panel-body pre > i").addClass("label label-transparent-15");else{var e=!1;$(".panel-body pre").each(function(t,i){var a=$(this),n=Convert.htmlStrip(a.html());a.addClass("hidden"),a.after("
"),$target=$("pre[data-cm-viewer-id-"+(t+1)+"]"),e=CodeMirror($target[0],{value:n,lineNumbers:!1,mode:null,theme:v___theme_night_mode?"monokai":settings_cm_editor_palette,readOnly:!0})}).promise().done(function(){})}}function notifications(e,t,i){if(settings_side_slider_enabled&&settings_side_slider_notifications_enabled){var e=Convert.htmlUnEscape($.trim(e.replace(/(<([^>]+)>)/gi,""))).replace(/\s+/g," "),t=Convert.htmlUnEscape($.trim(t.replace(/(<([^>]+)>)/gi,""))).replace(/\s+/g," ");"granted"===Notification.permission?new Notification(e,{body:t,icon:v___location_prefix+"/images/notifications_"+i+".png"}).onclick=function(){window.focus()}:"denied"!==Notification.permission&&Notification.requestPermission(function(a){"granted"===a&&(new Notification(e,{body:t,icon:v___location_prefix+"/images/notifications_"+i+".png"}).onclick=function(){window.focus()})})}}function unbuffered_header_post(e){if(Test.strContains(e.responseText,"theme_post_save")){var t=e.responseText.match(/theme_post_save(.*)$/gm);t&&navigation_update(t[0].split("=")[1])}}function unbuffered_header_processor_allow(e){var t=URI(v___location).path();return void 0!==e&&(t=e),t&&Test.strContains(t,".cgi")&&(Test.strContains(t,"webmin/install_theme.cgi")||Test.strContains(t,"usermin/install_theme.cgi")||t.indexOf("/virtual-server/import.cgi")>-1||t.indexOf("/virtual-server/edit_newlinks.cgi")>-1||t.indexOf("/virtual-server/postsave.cgi")>-1||t.indexOf("/virtual-server/validate.cgi")>-1||t.indexOf("/server-manager/edit_serv.cgi")>-1||t.indexOf("/server-manager/save_serv.cgi")>-1||t.indexOf("/server-manager/index.cgi")>-1||t.indexOf("/server-manager/list_ifaces.cgi")>-1||t.indexOf("/server-manager/mass_update.cgi")>-1||t.indexOf("/server-manager/get_images.cgi")>-1||t.indexOf("/server-manager/edit_newlinks.cgi")>-1||t.indexOf("/server-manager/list_gces.cgi")>-1||t.indexOf("/server-manager/list_ec2s.cgi")>-1||t.indexOf("/server-manager/unpause.cgi")>-1||t.indexOf("/server-manager/find.cgi")>-1||t.indexOf("useradmin/batch_exec.cgi")>-1||t.indexOf("useradmin/gbatch_exec.cgi")>-1||t.indexOf("useradmin/mass_delete_user.cgi")>-1||t.indexOf("virtual-server/domain_setup.cgi")>-1||t.indexOf("virtual-server/upgrade.cgi")>-1||t.indexOf("virtual-server/mass_create.cgi")>-1||t.indexOf("virtual-server/restore.cgi")>-1||t.indexOf("virtual-server/save_newip.cgi")>-1||t.indexOf("virtual-server/mass_domains_change.cgi")>-1||t.indexOf("virtual-server/save_domain.cgi")>-1||t.indexOf("virtual-server/backup.cgi")>-1||t.indexOf("virtual-server/save_phpmode.cgi")>-1||t.indexOf("virtual-server/script_install.cgi")>-1||t.indexOf("virtual-server/mass_change.cgi")>-1||t.indexOf("virtual-server/save_ratelimit.cgi")>-1||t.indexOf("virtual-server/mass_scripts.cgi")>-1||t.indexOf("virtual-server/mass_upgrade.cgi")>-1||t.indexOf("virtual-server/save_newips.cgi")>-1||t.indexOf("virtual-server/letsencrypt.cgi")>-1||t.indexOf("virtual-server/migrate.cgi")>-1||t.indexOf("virtual-server/save_mail.cgi")>-1||t.indexOf("virtual-server/mass_delete_domains.cgi")>-1||t.indexOf("virtual-server/delete_domain.cgi")>-1||t.indexOf("virtual-server/unscript_install.cgi")>-1||t.indexOf("virtual-server/mass_uninstall.cgi")>-1||t.indexOf("virtual-server/clone.cgi")>-1||t.indexOf("virtual-server/fix_symlinks.cgi")>-1||t.indexOf("virtual-server/disable_domain.cgi")>-1||t.indexOf("virtual-server/delete_databases.cgi")>-1||t.indexOf("virtual-server/move.cgi")>-1||t.indexOf("virtual-server/enable_domain.cgi")>-1||t.indexOf("virtual-server/transfer.cgi")>-1||t.indexOf("virtual-server/mass_disable.cgi")>-1||t.indexOf("virtual-server/rename.cgi")>-1||t.indexOf("virtual-server/save_dbname.cgi")>-1||t.indexOf("virtual-server/mass_enable.cgi")>-1||t.indexOf("virtual-server/save_frame.cgi")>-1||t.indexOf("virtual-server/check.cgi")>-1||t.indexOf("virtual-server/save_newchroot.cgi")>-1||t.indexOf("virtual-server/enable_dkim.cgi")>-1||t.indexOf("virtual-server/save_proxy.cgi")>-1||t.indexOf("virtual-server/save_dbpass.cgi")>-1||t.indexOf("virtual-server/save_dbhosts.cgi")>-1||t.indexOf("virtual-server/unalias.cgi")>-1||t.indexOf("virtual-server/save_newautoconfig.cgi")>-1||t.indexOf("virtual-server/quotacheck.cgi")>-1||t.indexOf("virtual-server/unsub.cgi")>-1||t.indexOf("virtual-server/save_domdkim.cgi")>-1||t.indexOf("virtual-server/fix_modphp.cgi")>-1||t.indexOf("virtual-server/connectivity.cgi")>-1||t.indexOf("virtual-server/all_webmin.cgi")>-1||t.indexOf("virtualmin-support/send_ticket.cgi")>-1||t.indexOf("virtualmin-support/enable_login.cgi")>-1||t.indexOf("virtualmin-support/disable_login.cgi")>-1||t.indexOf("server-manager/create.cgi")>-1||t.indexOf("server-manager/mass.cgi")>-1||t.indexOf("server-manager/manual_image.cgi")>-1||t.indexOf("server-manager/save_limits.cgi")>-1||t.indexOf("server-manager/upgrade.cgi")>-1||t.indexOf("server-manager/empty.cgi")>-1||t.indexOf("server-manager/save_pass.cgi")>-1||t.indexOf("server-manager/create_image.cgi")>-1||t.indexOf("server-manager/restore.cgi")>-1||t.indexOf("server-manager/clone.cgi")>-1||t.indexOf("server-manager/scan.cgi")>-1||t.indexOf("server-manager/add.cgi")>-1||t.indexOf("server-manager/gcescan.cgi")>-1||t.indexOf("server-manager/create_gceattach.cgi")>-1||t.indexOf("server-manager/ec2scan.cgi")>-1||t.indexOf("server-manager/create_domain.cgi")>-1||t.indexOf("server-manager/restore_domain.cgi")>-1||t.indexOf("server-manager/create_ec2attach.cgi")>-1||t.indexOf("server-manager/newami.cgi")>-1||t.indexOf("server-manager/move_disk.cgi")>-1||t.indexOf("server-manager/convert_image.cgi")>-1||t.indexOf("server-manager/save_vcpus.cgi")>-1||t.indexOf("server-manager/boot.cgi")>-1||t.indexOf("server-manager/delete_backuplogs.cgi")>-1||t.indexOf("server-manager/mass_script.cgi")>-1||t.indexOf("server-manager/save_ec2address.cgi")>-1||t.indexOf("server-manager/mass_move.cgi")>-1||t.indexOf("server-manager/delete_ec2attach.cgi")>-1||t.indexOf("server-manager/move.cgi")>-1||t.indexOf("server-manager/backup.cgi")>-1||t.indexOf("server-manager/create_dimage.cgi")>-1||t.indexOf("server-manager/massupload.cgi")>-1||t.indexOf("server-manager/delete_volumes.cgi")>-1||t.indexOf("server-manager/delete_ec2_snapshots.cgi")>-1||t.indexOf("server-manager/download.cgi")>-1||t.indexOf("server-manager/create_gdisk.cgi")>-1||t.indexOf("server-manager/failover.cgi")>-1||t.indexOf("server-manager/create_dkvolume.cgi")>-1||t.indexOf("server-manager/upload.cgi")>-1||t.indexOf("server-manager/transfer.cgi")>-1||t.indexOf("server-manager/delete_gceattach.cgi")>-1||t.indexOf("server-manager/reset.cgi")>-1||t.indexOf("server-manager/find.cgi")>-1||t.indexOf("server-manager/create_volume.cgi")>-1||t.indexOf("server-manager/create_gsnapshot.cgi")>-1||t.indexOf("server-manager/create_gimage.cgi")>-1||t.indexOf("server-manager/exec_vbackup.cgi")>-1||t.indexOf("server-manager/unpause.cgi")>-1||t.indexOf("server-manager/pause.cgi")>-1||t.indexOf("server-manager/create_ec2_snapshot.cgi")>-1||t.indexOf("server-manager/delete_addresses.cgi")>-1||t.indexOf("server-manager/exec_vsync.cgi")>-1||t.indexOf("server-manager/create_address.cgi")>-1||t.indexOf("cluster-usermin/upgrade.cgi")>-1||t.indexOf("cluster-usermin/install.cgi")>-1||t.indexOf("cluster-usermin/update.cgi")>-1||t.indexOf("ldap-useradmin/batch_exec.cgi")>-1||t.indexOf("ldap-useradmin/mass_delete_user.cgi")>-1||t.indexOf("usermin/upgrade.cgi")>-1||t.indexOf("usermin/update.cgi")>-1||t.indexOf("cpan/download.cgi")>-1||t.indexOf("cpan/install.cgi")>-1||t.indexOf("burner/save_profile.cgi")>-1||t.indexOf("burner/burn.cgi")>-1||t.indexOf("bind8/mass_create.cgi")>-1||t.indexOf("bind8/mass_rcreate.cgi")>-1||t.indexOf("bind8/mass_delete.cgi")>-1||t.indexOf("bind8/mass_update.cgi")>-1||t.indexOf("bind8/zone_dnssecmigrate_dt.cgi")>-1||t.indexOf("bind8/mass_rdelete.cgi")>-1||t.indexOf("bind8/enable_zonekey.cgi")>-1||t.indexOf("bind8/enable_zonedt.cgi")>-1||t.indexOf("bind8/disable_zonedt.cgi")>-1||t.indexOf("webalizer/save_log.cgi")>-1||t.indexOf("bacula-backup/restore.cgi")>-1||t.indexOf("bacula-backup/backup.cgi")>-1||t.indexOf("bacula-backup/gbackup.cgi")>-1||t.indexOf("bacula-backup/label.cgi")>-1||t.indexOf("bacula-backup/mount.cgi")>-1||t.indexOf("cluster-software/install_pack.cgi")>-1||t.indexOf("updown/download.cgi")>-1||t.indexOf("software/install_pack.cgi")>-1||t.indexOf("software/do_install.cgi")>-1||t.indexOf("software/apt_upgrade.cgi")>-1||t.indexOf("software/rhn_check.cgi")>-1||t.indexOf("software/yum_upgrade.cgi")>-1||t.indexOf("software/urpmi_upgrade.cgi")>-1||t.indexOf("software/csw_upgrade.cgi")>-1||t.indexOf("software/ports_upgrade.cgi")>-1||t.indexOf("webmin/letsencrypt.cgi")>-1||t.indexOf("webmin/delete_webmincron.cgi")>-1||t.indexOf("webmin/test_sendmail.cgi")>-1||t.indexOf("package-updates/update.cgi")>-1||t.indexOf("custom/run.cgi")>-1||t.indexOf("custom/sql.cgi")>-1||t.indexOf("virtualmin-init/save.cgi")>-1||t.indexOf("virtualmin-init/mass.cgi")>-1||t.indexOf("backup-config/save.cgi")>-1||t.indexOf("squid/init_cache.cgi")>-1||t.indexOf("squid/clear.cgi")>-1||t.indexOf("squid/chown.cgi")>-1||t.indexOf("ldap-client/check.cgi")>-1||t.indexOf("sendmail/del_mailqs.cgi")>-1||t.indexOf("sendmail/flushq.cgi")>-1||t.indexOf("init/mass_start_stop.cgi")>-1||t.indexOf("init/mass_launchd.cgi")>-1||t.indexOf("init/mass_systemd.cgi")>-1||t.indexOf("init/mass_upstarts.cgi")>-1||t.indexOf("init/mass_rcs.cgi")>-1||t.indexOf("init/save_services.cgi")>-1||t.indexOf("ldap-server/create.cgi")>-1||t.indexOf("change-user/change.cgi")>-1||t.indexOf("virtualmin-slavedns/save.cgi")>-1||t.indexOf("proc/trace.cgi")>-1||t.indexOf("proc/run.cgi")>-1||t.indexOf("proc/kill_proc_list.cgi")>-1||t.indexOf("fsdump/backup.cgi")>-1||t.indexOf("fsdump/restore.cgi")>-1||t.indexOf("webmin_search.cgi")>-1||t.indexOf("security-updates/update.cgi")>-1||t.indexOf("virtualmin-mailrelay/save.cgi")>-1||t.indexOf("cluster-copy/exec.cgi")>-1||t.indexOf("cron/exec_cron.cgi")>-1||t.indexOf("virtualmin-registrar/import.cgi")>-1||t.indexOf("virtualmin-registrar/save_ns.cgi")>-1||t.indexOf("virtualmin-registrar/transfer.cgi")>-1||t.indexOf("virtualmin-registrar/renew.cgi")>-1||t.indexOf("virtualmin-registrar/create.cgi")>-1||t.indexOf("htaccess-htpasswd/search.cgi")>-1||t.indexOf("acl/makedn.cgi")>-1||t.indexOf("acl/cert_issue.cgi")>-1||t.indexOf("acl/maketables.cgi")>-1||t.indexOf("acl/schema.cgi")>-1||t.indexOf("filter/move.cgi")>-1||t.indexOf("fetchmail/check.cgi")>-1||t.indexOf("servers/find.cgi")>-1||t.indexOf("cluster-cron/exec.cgi")>-1||t.indexOf("raid/mkfs.cgi")>-1||t.indexOf("lvm/pvmove.cgi")>-1||t.indexOf("lvm/mkfs.cgi")>-1||t.indexOf("ppp-client/init.cgi")>-1||t.indexOf("fdisk/mkfs.cgi")>-1||t.indexOf("fdisk/tunefs.cgi")>-1||t.indexOf("fdisk/fsck.cgi")>-1||t.indexOf("spam/deleteall_awl.cgi")>-1||t.indexOf("quota/check_quotas.cgi")>-1||t.indexOf("virtualmin-awstats/generate.cgi")>-1||t.indexOf("postfix/flushq.cgi")>-1||t.indexOf("status/delete_mons.cgi")>-1||t.indexOf("status/refresh.cgi")>-1||t.indexOf("/webmin/upgrade.cgi")>-1||t.indexOf("sysstats/display_all.cgi")>-1)?1:0}function unbuffered_header_processor_allow_scroll(){var e=["webmin_search.cgi","display_all.cgi"];return Test.arrContains(e,v___location_file)?0:1}function unbuffered_header_processor(e,t){if(t){var i=e,a=$(i.target),n=i.target.action,s=$(quirks.active_element()).attr("name"),_=$.trim(quirks.active_element().innerText),r=quirks.active_element().value;a.find('input[name="'+s+'"]')&&a.find('input[name="'+s+'"]').val()==(_||r)||$("").attr({type:"hidden",name:s,value:_||r}).appendTo(a);var o=Test.strContains(a.attr("enctype"),"multipart/form-data"),l=o?new FormData(a[0]):a.serialize();if(o||(l=Test.strContains(l,s+"=")?l:l+"&"+s+"="+r),$("input:file:visible").val())return v___theme_force_buffered=1,void a.submit()}var c=0,d=0,h=t?n:e,p=0,f=$('div[data-dcontainer="1"] > .panel.panel-default').clone();progress.start(),set_onbeforeunload_status(1,1),progressive_request=$.ajax({xhr:function(){var e=new window.XMLHttpRequest;return e.addEventListener("progress",function(e){var t=e.target.responseText,i=$(t).filter('div[data-dcontainer="1"]').html();if(Test.strContains(t,v___page_signin_form))return v___available_session=0,void progressive_request.abort();if(!!i&&d++,0===p&&(window.history.pushState(null,"",e.currentTarget.responseURL+(Test.strContains(e.currentTarget.responseURL,"?")?"&":"?")+$__theme_navigation),p=1,$(window).on("popstate.unbuffered",function(){$('.container-fluid[data-dcontainer="1"]').html(f),$(this).unbind("popstate.unbuffered"),setTimeout(function(){get_pjax_event_end_funcs(0)},40)})),d>3&&!c)i&&($('div[data-dcontainer="1"]').html(i),c++,unbuffered_header_processor_allow_scroll()&&($(".__page").hasScrollBar()?$(".__page").scrollTop($(".__page")[0].scrollHeight):$(".__page").scrollTop(0)),$(".__page").addClass("progressing"),get_pjax_event_end(!1,e.target));else if(c){var a=extract_content(t,'
',"
",0);a&&$('div[data-dcontainer="1"]').find(".panel-body").html(a),unbuffered_header_processor_allow_scroll()&&$(".__page").scrollTop($(".__page")[0].scrollHeight)}},!1),e},type:get_pjax_type(a||h),url:h,processData:!t||!o,contentType:(!t||!o)&&"application/x-www-form-urlencoded; charset=UTF-8",data:!!t&&l,complete:function(e){$('div[data-dcontainer="1"]').html($(e.responseText).filter('div[data-dcontainer="1"]').html()),get_pjax_event_end(!1,e),unbuffered_header_processor_allow_scroll()&&$(".__page").scrollTop($(".__page")[0].scrollHeight),$(".__page").removeClass("progressing"),progress.end(),set_onbeforeunload_status(0,1),unbuffered_header_post(e),Core.curModuleFile("package-updates","update.cgi")&&information_update()}})}function check_selected_text(){return getSelection?getSelection().toString():document.selection?document.selection.createRange().text:""}function check_location_resource(e){return v___location_resource===v___location_prefix+e}function check_current_file(e){return v___location_file==e}browser.internet_explorer()>5&&browser.internet_explorer()<=11&&(setTimeout(function(){var e="

"+theme_language("theme_xhred_browser_warning")+"

";theme_alert(theme_language("theme_xhred_global_warning"),e,!1,"md","danger",!1,"10 modal-ie-warning",0)},2e3),String.prototype.endsWith||(String.prototype.endsWith=function(e,t){var i=this.toString();("number"!=typeof t||!isFinite(t)||Math.floor(t)!==t||t>i.length)&&(t=i.length),t-=e.length;var a=i.lastIndexOf(e,t);return-1!==a&&a===t}),String.prototype.startsWith||String.prototype.startsWith||(String.prototype.startsWith=function(e,t){return t=t||0,this.indexOf(e,t)===t})),$.extend($.expr[":"],{containsi:function(e,t,i,a){return(e.textContent||e.innerText||"").toLowerCase().indexOf((i[3]||"").toLowerCase())>=0}}),Object.defineProperty(Array.prototype,"reOrder",{enumerable:!1,value:function(e,t){if(t>=this.length)for(var i=t-this.length;1+i--;)this.push(void 0);return this.splice(t,0,this.splice(e,1)[0]),this}}),jQuery.fn.simulateUserClick=function(){return this.each(function(){if("createEvent"in document){var e=this.ownerDocument,t=e.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,e.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null),this.dispatchEvent(t)}else this.click()})},function(e){e.fn.replaceTagName=function(t){for(var i=[],a=this.length;a--;){for(var n=document.createElement(t),s=this[a],_=s.attributes,r=_.length-1;r>=0;r--){var o=_[r];n.setAttribute(o.name,o.value)}n.innerHTML=s.innerHTML,e(s).after(n).remove(),i[a-1]=n}return e(i)}}(jQuery),jQuery.fn.selectText=function(){var e=document,t=this[0];if(e.body.createTextRange)(a=document.body.createTextRange()).moveToElementText(t),a.select();else if(window.getSelection){var i=window.getSelection(),a=document.createRange();a.selectNodeContents(t),i.removeAllRanges(),i.addRange(a)}},function(e){e.fn.replaceText=function(t,i,a){return this.each(function(){var n,s,_=this.firstChild,r=[];if(_)do{3===_.nodeType&&(s=(n=_.nodeValue).replace(t,i))!==n&&(!a&&/this.height()},$.fn.toggleCheckbox=function(){"checkbox"==$(this).attr("type")&&$(this).prop("checked",!$(this).is(":checked"))},jQuery.fn.confirmation=function(e,t){return e=$.extend({className:"btn-danger",timeout:2500},e),$(this).each(function(i,a){function n(){_.removeClass(e.className).data("confirmed",!1).find(".tmp_question").remove()}var s,_=$(a);_.html();_.data("confirmed",!1),_.on("click.confirm",function(i){i.preventDefault(),_.data("confirmed")?(t.call(_,i),n()):(_.data("confirmed",!0),_.append('?').addClass(e.className).bind("mouseout.confirm",function(){s=setTimeout(n,e.timeout)}).bind("mouseover.confirm",function(){clearTimeout(s)}))}).removeClass(e.className)}),$(this)},RegExp.quote=function(e){return e.replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")},$(function(){var e,t=".blinking-default:not(.hidden)";setInterval(function(){0==e?($(t).css("opacity","1"),e=1):(e=1)&&($(t).css("opacity","0"),e=0)},900)});if(get_server_data("debug")){if("object"==typeof localStorage)try{localStorage.setItem("d41d8cd98f00",1),localStorage.removeItem("d41d8cd98f00"),$_v__ls__a=1}catch(e){Storage.prototype._setItem=Storage.prototype.setItem,Storage.prototype.setItem=function(){},$_v__ls__a=0}if(page_init(),$___________lrs_r_l=0,$___________left=v___available_navigation?1:0,"undefined"==typeof settings_mailbox_slash_delimiter&&(settings_mailbox_slash_delimiter=!0),"undefined"==typeof settings_right_reload&&(settings_right_reload=!0),"undefined"==typeof settings_right_default_tab_usermin&&(settings_right_default_tab_usermin="/"),"undefined"==typeof settings_right_virtualmin_default&&(settings_right_virtualmin_default="sysinfo.cgi"),"undefined"==typeof settings_right_cloudmin_default&&(settings_right_cloudmin_default="sysinfo.cgi"),"undefined"==typeof settings_font_family&&(settings_font_family=0),"undefined"==typeof settings_navigation_color&&(settings_navigation_color="blue"),"undefined"==typeof settings_background_color&&(settings_background_color="gainsboro"),"undefined"==typeof settings_hide_top_loader&&(settings_hide_top_loader=!1),"undefined"==typeof settings_show_night_mode_link&&(settings_show_night_mode_link=!0),"undefined"==typeof settings_theme_options_button&&(settings_theme_options_button=!0),"undefined"==typeof settings_leftmenu_button_refresh&&(settings_leftmenu_button_refresh=!1),"undefined"==typeof settings_cm_view_palette&&(settings_cm_view_palette="monokai"),"undefined"==typeof settings_cm_editor_palette&&(settings_cm_editor_palette="monokai"),"undefined"==typeof settings_side_slider_palette&&(settings_side_slider_palette="grey"),"undefined"==typeof settings_side_slider_enabled&&(settings_side_slider_enabled=!0),"undefined"==typeof settings_side_slider_fixed&&(settings_side_slider_fixed=!1),"undefined"==typeof settings_side_slider_sysinfo_enabled&&(settings_side_slider_sysinfo_enabled=!0),"undefined"==typeof settings_side_slider_notifications_enabled&&(settings_side_slider_notifications_enabled=!0),"undefined"==typeof settings_side_slider_favorites_enabled&&(settings_side_slider_favorites_enabled=!0),config_portable_module_filemanager_hide_actions="undefined"==typeof localStorage||"false"!=localStorage.getItem(v___server_hostname+"-config_portable_module_filemanager_hide_actions"),config_portable_module_filemanager_hide_toolbar="undefined"!=typeof localStorage&&"true"==localStorage.getItem(v___server_hostname+"-config_portable_module_filemanager_hide_toolbar"),config_portable_module_filemanager_hovered_toolbar="undefined"!=typeof localStorage&&"true"==localStorage.getItem(v___server_hostname+"-config_portable_module_filemanager_hovered_toolbar"),config_portable_module_filemanager_notification_type="undefined"!=typeof localStorage&&localStorage.getItem(v___server_hostname+"-config_portable_module_filemanager_notification_type")?localStorage.getItem(v___server_hostname+"-config_portable_module_filemanager_notification_type"):2,config_portable_module_filemanager_calculate_size="undefined"!=typeof localStorage&&"true"==localStorage.getItem(v___server_hostname+"-config_portable_module_filemanager_calculate_size"),config_portable_module_filemanager_switch_user="undefined"==typeof localStorage||"false"!=localStorage.getItem(v___server_hostname+"-config_portable_module_filemanager_switch_user"),config_portable_module_filemanager_remember_tabs="undefined"==typeof localStorage||"false"!=localStorage.getItem(v___server_hostname+"-config_portable_module_filemanager_remember_tabs"),config_portable_module_xsql_fit_content_screen_height="undefined"!=typeof localStorage&&"true"==localStorage.getItem(v___server_hostname+"-config_portable_module_xsql_fit_content_screen_height"),"undefined"==typeof settings_hotkeys_active&&(settings_hotkeys_active=!0),"undefined"==typeof settings_button_tooltip&&(settings_button_tooltip=!0),"undefined"==typeof settings_hotkey_toggle_modifier&&(settings_hotkey_toggle_modifier="altKey"),"undefined"==typeof settings_hotkey_toggle_key_webmin&&(settings_hotkey_toggle_key_webmin="w"),"undefined"==typeof settings_hotkey_toggle_key_virtualmin&&(settings_hotkey_toggle_key_virtualmin="v"),"undefined"==typeof settings_hotkey_toggle_key_cloudmin&&(settings_hotkey_toggle_key_cloudmin="c"),"undefined"==typeof settings_hotkey_toggle_key_usermin&&(settings_hotkey_toggle_key_usermin="u"),"undefined"==typeof settings_hotkey_toggle_key_webmail&&(settings_hotkey_toggle_key_webmail="m"),"undefined"==typeof settings_hotkey_toggle_key_night_mode&&(settings_hotkey_toggle_key_night_mode="l"),"undefined"==typeof settings_hotkey_shell&&(settings_hotkey_shell="k"),"undefined"==typeof settings_hotkey_sysinfo&&(settings_hotkey_sysinfo="i"),"undefined"==typeof settings_hotkey_favorites&&(settings_hotkey_favorites="f"),"undefined"==typeof settings_hotkey_focus_search&&(settings_hotkey_focus_search="s"),"undefined"==typeof settings_hotkey_toggle_slider&&(settings_hotkey_toggle_slider="n"),"undefined"==typeof settings_hotkey_reload&&(settings_hotkey_reload="r"),"undefined"==typeof settings_global_passgen_format&&(settings_global_passgen_format="12|a-z,A-Z,0-9,#"),"undefined"==typeof settings_window_replace_timestamps&&(settings_window_replace_timestamps=!0),"undefined"==typeof settings_window_replaced_timestamp_format_full&&(settings_window_replaced_timestamp_format_full="LLLL"),"undefined"==typeof settings_window_replaced_timestamp_format_short&&(settings_window_replaced_timestamp_format_short="L, LTS"),"undefined"==typeof settings_leftmenu_vm_cm_dropdown_icons&&(settings_leftmenu_vm_cm_dropdown_icons=!0),"undefined"==typeof settings_hotkey_custom_1&&(settings_hotkey_custom_1=!1),"undefined"==typeof settings_hotkey_custom_2&&(settings_hotkey_custom_2=!1),"undefined"==typeof settings_hotkey_custom_3&&(settings_hotkey_custom_3=!1),"undefined"==typeof settings_hotkey_custom_4&&(settings_hotkey_custom_4=!1),"undefined"==typeof settings_hotkey_custom_5&&(settings_hotkey_custom_5=!1),"undefined"==typeof settings_hotkey_custom_6&&(settings_hotkey_custom_6=!1),"undefined"==typeof settings_hotkey_custom_7&&(settings_hotkey_custom_7=!1),"undefined"==typeof settings_hotkey_custom_8&&(settings_hotkey_custom_8=!1),"undefined"==typeof settings_hotkey_custom_9&&(settings_hotkey_custom_9=!1),"undefined"==typeof settings_side_slider_background_refresh_time&&(settings_side_slider_background_refresh_time=5),"undefined"==typeof settings_leftmenu_width&&(settings_leftmenu_width=260),"undefined"==typeof settings_sysinfo_easypie_charts&&(settings_sysinfo_easypie_charts=!0),"undefined"==typeof settings_sysinfo_easypie_charts_size?settings_sysinfo_easypie_charts_size=172:settings_sysinfo_easypie_charts_size=parseInt(settings_sysinfo_easypie_charts_size),"undefined"==typeof settings_sysinfo_easypie_charts_width?settings_sysinfo_easypie_charts_width=2:settings_sysinfo_easypie_charts_width=parseInt(settings_sysinfo_easypie_charts_width),"undefined"==typeof settings_sysinfo_easypie_charts_scale?settings_sysinfo_easypie_charts_scale=8:settings_sysinfo_easypie_charts_scale=parseInt(settings_sysinfo_easypie_charts_scale),"undefined"==typeof settings_sysinfo_theme_updates&&(settings_sysinfo_theme_updates=!1),"undefined"==typeof settings_sysinfo_theme_patched_updates&&(settings_sysinfo_theme_patched_updates=!1),"undefined"==typeof settings_sysinfo_csf_updates&&(settings_sysinfo_csf_updates=!1),"undefined"==typeof settings_sysinfo_link_mini&&(settings_sysinfo_link_mini=!1),"undefined"==typeof settings_loader_top&&(settings_loader_top=!0),"undefined"==typeof settings_animation_left&&(settings_animation_left=!0),settings_animation_left?$settings_animation_left_slide_time=175:$settings_animation_left_slide_time=0,"undefined"==typeof settings_animation_tabs&&(settings_animation_tabs=!1),settings_animation_tabs?$settings_animation_tabs_slide_time=350:$settings_animation_tabs_slide_time=0,"undefined"==typeof settings_show_terminal_link&&(settings_show_terminal_link=!0),"undefined"==typeof settings_favorites&&(settings_favorites=!0),$_v__ls__a?_v__ls__a="":_v__ls__a=" hidden",$(".mobile-menu-toggler:visible").length&&set_side_slider_visibility(0),navigation_display(),v___available_navigation?(page_adjust(settings_leftmenu_width,0),navigation_lock_width()):$("head").append(''),$("html").on("dblclick","body",function(){1!=$(this).find(".container-fluid").css("opacity")&&page_display()}),$.support.pjax&&v___available_navigation){var $t_av__excluded_selectors=':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])';$(document).on("submit","form",function(e){e.preventDefault(),get_onbeforeunload_status()?get_onbeforeunload_message(e,this):get_pjax_action_submit(e,this)}),$(document).on("click","a"+$t_av__excluded_selectors,function(e){get_onbeforeunload_status()?(e.preventDefault(),get_onbeforeunload_message(e,this)):get_pjax_action_click(e,this)}),$(document).on("pjax:error",function(e,t,i,a,n){if("error"===i){var s=$.active;if(s&&($.active=s-1),Test.strContains(n.url,"/csf/index.cgi"))return void theme_reload()}}),$(document).on("pjax:start",function(e,t){get_server_data("loading",1),"number"==typeof set_server_tmp_var_timeout&&clearTimeout(set_server_tmp_var_timeout)}),$(document).on("pjax:beforeReplace",function(e,t,i){navigation_form_control(0),pjax.clear.modules(i)}),$(document).on("ready pjax:beforeSend",function(e,t,i){progress.start();var a=$(e.relatedTarget),n=a.attr("href");n=n||i.url.replace(v___location_origin,""),clicked_in_nav_menu=a.parent().is("[data-linked], .favorites-dcontainer, .menu-exclude.ui-sortable-handle")||"object"==typeof i.callback&&"reference"===i.callback[0],clicked_in_nav_menu&&((Test.strContains(n,"mysql")||Test.strContains(n,"postgresql"))&&get_bundle_sql(),Test.strContains(n,v___module_file_manager)&&get_bundle_file_manager(),Test.strContains(n,"csf")&&get_bundle_csf()),"object"==typeof i.callback&&"beforeSend"===i.callback[0]&&(i.callback[3]?setTimeout(function(){window[i.callback[1].apply(this,i.callback[2])]},i.callback[3]):window[i.callback[1].apply(this,i.callback[2])])}),$(document).on("pjax:success",function(e,t,i,a,n){"object"==typeof n.callback&&"success"===n.callback[0]&&(n.callback[3]?setTimeout(function(){window[n.callback[1].apply(this,n.callback[2])]},n.callback[3]):window[n.callback[1].apply(this,n.callback[2])])}),$(document).on("pjax:complete",function(e,t,i){setTimeout(function(){$(".container-fluid-loading").length||progress.end()},10),get_server_data("loading",0,1)}),$(document).on("ready pjax:end",function(e,t){0!==v___available_session&&(navigation_form_control(1),get_pjax_event_end(e,t))}),$(document).on("pjax:popstate",function(e,t){setTimeout(function(){get_pjax_event_end_funcs(0)},40)})}v___available_session&&($.ajax({type:"GET",url:v___location_prefix+"/index.cgi/?xhr-get_theme_language=1",data:!1,dataType:"text",async:v___available_navigation,success:function(e){Test.strContains(e,v___page_signin_form)?v___available_session=0:(get_server_data("language-strings",JSON.parse(e)),"function"==typeof set_side_slider_labels&&set_side_slider_labels())}}),$.ajax({type:"GET",url:v___location_prefix+"/index.cgi/?xhr-get_available_modules=1",data:!1,dataType:"text",async:v___available_navigation,success:function(e){Test.strContains(e,v___page_signin_form)?v___available_session=0:get_server_data("available-modules",JSON.parse(e))}}),theme_config("load")),$(function(){if(1===v___initial_load&&v___available_navigation&&(page_display(),navigation_display()),bind_sameorigin(),time.tictac(),browser.safari(1)&&$("html").css("overflow","auto"),browser.safari()&&$(".__page").addClass("browser_safari"),!v___available_navigation&&$(".container-fluid").removeClass("col-lg-10 col-lg-offset-1").addClass("margined-top-15").parents("html").addClass("single_tab"),$("body").on("click","#quota-virtual-server-collapse a.ui_link, #quota-virtual-server-1-collapse a.ui_link, #bw-virtual-server-collapse a.ui_link, #bw-virtual-server-1-collapse a.ui_link",function(){var e=URI.parseQuery(URI($(this).attr("href")).query()).dom,t="virtualmin";$('.switch-toggle input:not([id="open_'+t+'"]):checked').length&&set_switch_position(t),setTimeout(function(){$("aside select").val()!=e&&get_navigation_menu_virtualmin(e)},300)}),$("body").on("click",".file-input-wrapper",function(){var e=$(this).prev('input[type="radio"]').add($(this).parent("td").prev("td").find('input[type="radio"]'));1===e.length&&e.prop("checked",!0)}),$("body").on("click",".--to-new-tab",function(){$(this).attr("target","_blank")}),$("body").on("click",".favorites-menu a.menu-exclude-link, .right_pane_favorites_link",function(){var e=Test.strContains($(this).attr("href"),"/virtual-server/")?"dom":!!Test.strContains($(this).attr("href"),"/server-manager/")&&"id",t=Test.strContains($(this).attr("href"),"gparent")?"gparent":e,i=URI.parseQuery(URI($(this).attr("href")).query())[t],a="dom"===e?"virtualmin":"id"===e?"cloudmin":"webmin",n=$('.switch-toggle input:not([id="open_'+a+'"]):checked').length;n&&set_switch_position(a),e?setTimeout(function(){$("aside select").val()!=i&&("dom"===e?get_navigation_menu_virtualmin(i):"id"===e&&get_navigation_menu_cloudmin(i))},300):n&&get_navigation_menu_webmin()}),$("body").on("click",function(e){var t=$("aside select");$(e.target).attr("class")&&0===$(e.target).attr("class").indexOf("select2")||t&&t.length>0&&t.hasClass("select2-hidden-accessible")&&t.select2("close")}),$("a").each(function(){$(this).find("img").length&&$(this).css("text-decoration","none")}),$("body").on("keydown",function(e){var t=e.keyCode?e.keyCode:e.which,i=String.fromCharCode(t).toLowerCase();!$('aside input[name="search"]').is(":focus")&&v___available_session&&($(".-shell-port-").hasClass("opened")||v___location_path!=v___location_prefix+"/server-manager/gvnc.cgi"&&v___location_path!=v___location_prefix+"/server-manager/login.cgi"&&v___location_path!=v___location_prefix+"/telnet/"&&v___location_path!=v___location_prefix+"/telnet/index.cgi"&&v___location_path!=v___location_prefix+"/stunnel/"&&v___location_path!=v___location_prefix+"/stunnel/index.cgi"&&($("input").is(":focus")||$("select").is(":focus")||$("textarea").is(":focus")||$(".modal.in").length||!i||!/[a-zA-Z0-9]/.test(i)||e.ctrlKey||e.altKey||e.metaKey||106===t||107===t||109===t||112===t||113===t||114===t||115===t||116===t||117===t||118===t||119===t||120===t||121===t||122===t||123===t||($(".dataTables_filter label input").length||$(".btn-accordion-filter").length?($(".btn-filter-top-right, .btn-accordion-filter").trigger("click"),$(".btn-filter-top-right .dataTable-mirror, .btn-accordion-filter .dataTable-mirror").focus().trigger("keyup")):setTimeout(function(){e.shiftKey&&"1"==i?$('aside input[name="search"]').focus().val("!"):$('aside input[name="search"]').focus().val(i)},1))))}),v___available_navigation&&($(document).ajaxSend(function(e,t,i){}).ajaxStop(function(){setTimeout(function(){0===v___available_session&&session.reauthenticate()},300)}).ajaxError(function(e,t){if(0===t.status){!$(".modal-connection-warning").length&&$.ajax({type:"GET",url:v___location_prefix+"/index.cgi/?xhr-error=1",data:!1,dataType:"text",error:function(e){var t=theme_language("theme_xhred_connection_error_details").replace("%server",location.host+v___location_prefix);theme_alert(theme_language("theme_xhred_connection_error"),t,!1,"md","danger","unplugged fa-lg","7 modal-connection-warning",0),setTimeout(function(){navigation_render_end(),navigation_detect(),reset_switch_position(),despinnerfy_buttons(),theme_shell_unlock()},200)}})}}),$.ajaxSetup({complete:function(e,t){(Test.strContains(e.responseText,v___page_signin_form)||e&&("auth-required=1"===e.getResponseHeader("Auth-type")||e.responseText&&e.responseText.indexOf("reset-fonts-grids-base")>-1&&e.responseText.indexOf("window.top.location = window.location;")>-1))&&session.reauthenticate()},beforeSend:function(e,t){t.url=navigation_trigger(t.url,1)}})),function(){if("function"==typeof Messenger.Message){var e,t,i,a={}.hasOwnProperty,n=function(e,t){function i(){this.constructor=e}for(var n in t)a.call(t,n)&&(e[n]=t[n]);return i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype,e};e=jQuery,i='
\n \n \n \n \n \n \n
',t=function(t){function a(){return a.__super__.constructor.apply(this,arguments)}return n(a,t),a.prototype.template=function(t){var n;return(n=a.__super__.template.apply(this,arguments)).append(e(i)),n},a}(Messenger.Message),Messenger.themes.air={Message:t},Messenger.options={extraClasses:"messenger-fixed messenger-on-bottom",theme:"air"}}}.call(this),v___available_navigation){0==v___user_level&&settings_side_slider_enabled&&settings_side_slider_fixed&&get_server_data("data-slider-fixed","1"),1===v___initial_load&&(console.log("Welcome to Authentic Theme "+(v___theme_version_git||v___theme_version)+"\nhttps://github.com/qooob/authentic-theme"),v___theme_navigation_active=$(".switch-toggle input:checked").attr("id"),v___theme_navigation_active=v___theme_navigation_active?v___theme_navigation_active.replace("open_",""):get_server_data("product"),setTimeout(function(){var e=function(){$t_uri_virtualmin&&(get_navigation_menu_virtualmin_summary(),get_default_virtualmin_content(!1)),$t_uri_cloudmin&&get_default_cloudmin_content(!1),$t_uri_virtualmin||$t_uri_cloudmin||get_default_content()};$.when(get_server_tmp_var("goto",0,e)).then(function(t,i,a){if(a.responseText&&!get_server_data("initial-wizard")){if(URI(a.responseText).hostname()!==URI(location.href).hostname())return void get_pjax_content(v___location_prefix+"/sysinfo.cgi");if(Test.strContains(a.responseText,"virtual-server")){var n=URI.parseQuery(URI(a.responseText).query()).dom;(!$t_uri_virtualmin||$t_uri_virtualmin&&n!=$('select[name="dom"]').val())&&(set_switch_position("virtualmin"),get_navigation_menu_virtualmin(n||!1))}else if(Test.strContains(a.responseText,"server-manager")){var s=URI.parseQuery(URI(a.responseText).query()).id;(!$t_uri_cloudmin||$t_uri_cloudmin&&s!=$('select[name="sid"]').val())&&(set_switch_position("cloudmin"),get_navigation_menu_cloudmin(s))}else $t_uri_webmin||3==v___user_level||(set_switch_position("webmin"),get_navigation_menu_webmin("webmin")),3==v___user_level&&!$t_uri_webmail&&Test.strContains(a.responseText,"mailbox")&&Core.moduleAvailable("mailbox")?(set_switch_position("webmail"),setTimeout(function(){get_navigation_menu_webmin("webmail")},10)):3!=v___user_level||$t_uri_usermin||Test.strContains(a.responseText,"mailbox")||(set_switch_position("usermin"),setTimeout(function(){get_navigation_menu_webmin("webmin")},10));get_pjax_content(a.responseText)}else e()})},20),$.each(theme_config("get_options"),function(e,t){localStorage.setItem(v___server_hostname+"-"+t,window[t])}),navigation_select_label(),setTimeout(function(){fetch_right_pane_favorites()},300)),$("body").on("focus",".sidebar-search",function(){navigation_init_autocomplete("c",!1)}),$("body").on("blur",".sidebar-search",function(){setTimeout(function(){navigation_init_autocomplete("c",!0)},150)});information_check();progress.configure(),navigator.userAgent.match(/(iPod|iPhone|iPad)/)&&$("#content").attr("style","-webkit-overflow-scrolling: touch !important; overflow-y: scroll !important;"),$('a[target="page"][href="link/"]').first().length&&$('a[target="page"][href="link/"]').first().attr("target","blank"),$("aside").on("click",".select2-container .select2-selection__arrow b",function(e){e.preventDefault(),e.stopPropagation()}),$("aside").on("click",'a[href*="/file/"], a[href*="history.cgi"]',function(e){e.preventDefault(),e.stopPropagation(),window.open($(this).attr("href"),"_blank")}),$("body").on("keydown",".sidebar-search",function(e){if(-1!==get_server_data("webmail")&&13==e.keyCode)return e.preventDefault(),!1}),$("body").on("click",".mobile-menu-toggler",function(e){$this=$(this),$("aside").hasClass("hidden-xs")?($(this).addClass("selected").find("button").addClass("btn-primary").removeClass("btn-default"),$(".__logo")&&($(".__logo").css("transform","translate(0px, 0px)"),setTimeout(function(){$(".__logo").transition({y:"-140px"},1.5*$settings_animation_left_slide_time)},1100)),$this.css("transform","translate(0px, 0px)"),$("aside").css("transform","translate(0px, 0px)"),$(".switch-toggle").css("display","none"),$("aside").removeClass("hidden-xs"),$("aside, .mobile-menu-toggler").transition({x:settings_leftmenu_width},2.5*$settings_animation_left_slide_time),$(".switch-toggle").css("display","table")):navigation_hide()}),$.each($('ul.navigation li.navigation_external a[href^="../servers/link.cgi/"]'),function(e,t){$(this).attr("href",v___location_href+$(this).attr("href").replace("../","").replace(/\/$/g,""))}),$("body").on("click",'.navigation a[target="page"], .user-links a[target="page"]',function(){navigation_hide()}),$("body").on("click",".navigation > li .navigation_external_link",function(e){e.preventDefault(),e.stopPropagation(),b=$(this),window.open(b.attr("href"),"_blank")}),$("body").on("click",".navigation > li:not('.sub-wrapper'):not('.menu-container'):not('.navigation_external'):not([data-linked])",function(e){if(e.preventDefault(),e.stopPropagation(),v___blocked_navigation=1,"undefined"==typeof $processing&&($processing=!1),!$processing){$processing=!0;var t=$("a",this).attr("href"),i=$("a",this).attr("target"),a=$(this);i&&$(".navigation > li > ul.sub > li").each(function(){$(this).removeClass("sub_active").find("span.current").remove()}),$.when($("#sidebar .navigation > li").each(function(){var e=$(this),t=e.find("a").is("[data-has-sub-link]");e.is(a)||(e.removeClass("active"),"#search"!=e.find("a").attr("href")&&t&&$(e.find("a").attr("href")).slideUp($settings_animation_left_slide_time))})).done(function(){a.hasClass("active")?a.removeClass("active"):"#hide"!=t&&!i&&a.addClass("active"),setTimeout(function(){$(t).is(":visible")&&"#hide"!=t&&!i?a.addClass("active"):a.removeClass("active"),$processing=!1},2*$settings_animation_left_slide_time>0?2*$settings_animation_left_slide_time:1),$(t).slideToggle($settings_animation_left_slide_time)}),"#search"==t&&$('#sidebar input[name="search"]').focus()}}),$("body").on("click",".navigation > li > ul.sub > li:not('.menu-container')",function(e){if(!e.target||!$(e.target).is("li")){var t=$(this);$(".navigation > li:not('.has-sub')").removeClass("sub_active").find("span.current-large").remove(),$(".navigation > li > ul.sub > li").each(function(){$(this).removeClass("sub_active").find("span.current").remove()}),$("#webmin_search_form").find('input[name="search"]').val(""),t.addClass("sub_active").append('')}}),$(".navigation > li > ul.sub").each(function(){""===$(this).attr("id")&&$(this).remove()}),$('.switch-toggle label[for^="reserve_empty"]').on("click",function(e){e.preventDefault()}),$("body").on("click",'a[data-refresh="true"]',function(e){e.preventDefault(),get_pjax_content(v___location_resource)}),$("body").on("click",function(e){$("ul.dropdown").is(e.target)||0!==$("ul.dropdown").has(e.target).length||0!==$(".open").has(e.target).length||$("ul.dropdown").removeClass("open")}),$(".switch-toggle").on("contextmenu","label",function(e){e.preventDefault();var t=$(this).attr("for").replace("open_","");if($(this).prev("input").is(":checked")){var i=v___location_href;set_server_tmp_var("goto",navigation_trigger(i,1)),setTimeout(function(){theme_open_new_tab(i)},200)}else if("virtualmin"===t||"cloudmin"===t){var a;a="cloudmin"===t?"/server-manager/index.cgi":"/virtual-server/index.cgi";var n=navigation_trigger(a,2);set_server_tmp_var("goto",navigation_trigger(n,1)),setTimeout(function(){theme_open_new_tab(n)},200)}else if("webmail"===t){s=v___location_prefix+"/mailbox/index.cgi?"+$__theme_navigation;set_server_tmp_var("goto",navigation_trigger(s,1)),setTimeout(function(){theme_open_new_tab(s)},200)}else{var s=v___location_prefix+"/sysinfo.cgi?"+$__theme_navigation;set_server_tmp_var("goto",navigation_trigger(s,1)),setTimeout(function(){theme_open_new_tab(s)},200)}}),$(".switch-toggle").on("click","input.dynamic",function(e){if(get_onbeforeunload_status()){e.preventDefault();var t=$(".switch-toggle input:checked").attr("id");get_onbeforeunload_message([],{href:"::switch::"+t})}else"open_thirdlane"!=$(this).attr("id")?(set_switch_position($(this).attr("id").replace("open_","")),"open_dashboard"!=$(this).attr("id")?get_navigation_and_content($(this).attr("id").replace("open_",""),0,0):get_pjax_content(v___location_prefix+"/sysinfo.cgi")):location.href=v___location_prefix+"/asterisk/index.cgi"}),navigation_init_select(),$("aside").mCustomScrollbar({axis:"y",theme:"minimal",scrollInertia:100,scrollButtons:!1,callbacks:{onScroll:function(){$(".mobile-menu-toggler").is(":visible")||($(".form-control.sidebar-search").blur(),$("aside select")&&$("aside select").length>0&&$("aside select").hasClass("select2-hidden-accessible")&&$("aside select").select2("close"))}}}),$(".loader").append('
'),$("body").on("mouseover","#loader-close, #loader-close-sm",function(){$(this).find(".fa").removeClass("hidden")}).on("mouseout","#loader-close, #loader-close-sm",function(){$(this).find(".fa").addClass("hidden")}),$("body").on("click","#loader-close-sm > .fa",function(e){navigation_render_end()}),__shell_commands__i__=0,$(".form-control.sidebar-search").focus(function(e){$(".__logo").addClass("inited"),e.preventDefault(),e.stopPropagation(),__shell_commands__i__=0});var e=$("body").find(".-shell-port-"),t=e.find('input[data-command="true"]'),a=e.find("div[data-output]"),n=e.find(".-shell-port-container"),s=e.data("autocomplete");if($(window).keydown(function(i){var o=$("body").find(".-shell-port-").hasClass("opened");if(!o&&v___available_session&&(navigation_focus_search(i),theme_shortcuts(i)),38===i.keyCode&&(t.is(":focus")&&o||$(".form-control.sidebar-search").is(":focus"))&&i.preventDefault(),9===i.keyCode&&t.is(":focus")&&o){if(i.preventDefault(),!s)return;var _=t.val().trim().split(/\s+(?!-)/),r=_.length,l=_[0]&&-1===_[0].indexOf("-")?0:1,d=_[1]&&-1===_[1].indexOf(":")?0:1,c=t.val().endsWith(" "),p="service"===$.trim(_[0]),f="systemctl"===$.trim(_[0]),g=$.trim(_[0])&&$.trim(_[0]).startsWith("chown"),u=1!==_.length||!t.val().length||l||c?p||f?"services":g?"permissions":"lists":"commands";if(!$.trim(t.val()).length)return;var m=t.val(),h=e.find(".-shell-port-pwd").attr("data-pwd");if("services"===u){if("systemctl"===(u=p?"service":"systemctl")&&3!==_.length)return;m="service"==u?$.trim(_[1]):$.trim(_[2]),"service"===$.trim(_[0])&&(2===_.length&&c||3===_.length)&&(m=3===_.length?"::::"+$.trim(_[1])+"::::"+$.trim(_[2]):"::::"+$.trim(_[1]))}if(g){if(1===r&&!c)return void t.val($.trim(_[0])+" ");d&&$.trim(_[1])?c||_[2]?(u="lists",m=h+"/::::"+$.trim(_[2])):(u="groups",m=$.trim($.trim(_[1]).split(":")[1])):(u="users",m=$.trim(_[1]))}"lists"!==u||g||(m=h+"/::::"+$.trim(_[1])+"::::"+$.trim(_[0])+"::::"+$.trim(_[2])),$.ajax({type:"POST",url:v___location_prefix+"/index.cgi?xhr-get_autocompletes=1&xhr-get_autocomplete_type="+u+"&xhr-get_autocomplete_string="+m,data:!1,dataType:"json",success:function(e){if(Test.strContains(e,v___page_signin_form))v___available_session=0;else{var i=e.length;if(1===i)if("service"===u||"systemctl"===u||"lists"===u){var s=$.trim(_[0]),o=$.trim(_[0])+" "+$.trim(_[1]);"lists"===u?("cd"===s&&e[0].endsWith("/")||"cd"!==s)&&("cd"===s||"cat"===s?t.val(s+" "+e[0]):$.trim(_[2])?t.val(o+" "+e[0]):t.val(s+" "+e[0])):"service"!==s||2!==_.length&&3!==_.length?"systemctl"===s&&3===_.length&&t.val(s+" "+$.trim(_[1])+" "+e[0]):2===_.length?t.val(s+" "+e[0]+" "):3===_.length&&t.val($.trim(_[0])+" "+$.trim(_[1])+" "+e[0])}else g?d?c||_[2]?t.val($.trim(_[0])+" "+$.trim(_[1])+" "+e[0]):t.val($.trim(_[0])+" "+$.trim($.trim(_[1]).split(":")[0])+":"+e[0]+" "):t.val($.trim(_[0])+" "+e[0]+":"):t.val(e[0]+" ");else if(i>1){var r=""+$(".-shell-port-type").text()+" "+Convert.htmlEscape(t.val())+"\n";a.find("pre").append(r),a.find("pre").append(Convert.htmlEscape(e.join("\n")+"\n")),n.scrollTop(n[0].scrollHeight)}setTimeout(function(){t.focus().mousedown()},10)}},error:function(){}})}}),$(window).keyup(function(n){var s=$("body").find(".-shell-port-").hasClass("opened");if(s){var o=0,_=0,r=0,l=$(".form-control.sidebar-search"),d=$t_uri_cloudmin&&$('a[target="page"][href*="/server-manager/save_serv.cgi"][href*="shell=1"]').length,c=0,p=0;if(d)p=v___location_prefix+"/server-manager/shell.cgi";else{if(!Core.moduleAvailable("shell"))return;p=v___location_prefix+"/shell/index.cgi"}if((s||l.is(":focus"))&&8===n.keyCode&&(__shell_commands__i__=0),s?(o=$.trim(t.val()),_=1,r=1):(o=l.val(),_=void 0!==l.val(),r=0),(r||_&&(!o.trim()||o.trim().startsWith("!")))&&(38==n.keyCode||40==n.keyCode)){n.preventDefault(),n.stopPropagation(),void 0===localStorage.getItem(v___server_hostname+"-shell_commands")&&localStorage.setItem(v___server_hostname+"-shell_commands",JSON.stringify({}));var f=JSON.parse(localStorage.getItem(v___server_hostname+"-shell_commands")),g=f?f.length:0;if(0===__shell_commands__i__&&!o&&40==n.keyCode)return;if(0===__shell_commands__i__&&o&&38==n.keyCode)return void(c=1);if(__shell_commands__i__=40==n.keyCode?++__shell_commands__i__:--__shell_commands__i__,__shell_commands__i__<0&&38===n.keyCode?__shell_commands__i__=g-1:__shell_commands__i__>g&&(__shell_commands__i__=0),f&&f[__shell_commands__i__%g]){if(!$.isEmptyObject(f)&&(__shell_commands__i__==g&&38===n.keyCode||__shell_commands__i__==g&&40===n.keyCode||c))return s?t.val("").focus():l.val("").focus(),void(__shell_commands__i__=0);if(s){var u=f[__shell_commands__i__%g].replace(/^!/,"");t.val(Convert.htmlUnEscape(u)).focus()}}return}if(_&&o.trim().startsWith("!")&&27==n.keyCode)return n.preventDefault(),n.stopPropagation(),void l.val("").focus();if(_&&o.trim().startsWith("!")&&13==n.keyCode&&(l.addClass("_shell_form_"),n.preventDefault(),n.stopPropagation(),1==Core.moduleAvailable("shell")||d)){t.val(o.trim().substring(1)).focus(),theme_shell_open(e);var m=$.Event("keyup");m.keyCode=13,t.trigger(m)}var h=e.find(".-shell-port-container"),v=e.find(".-shell-port-pwd"),b=v.attr("data-pwd"),y=$.trim(t.val()),k=0,x=n.keyCode?n.keyCode:n.which,w=n.altKey&&"l"==String.fromCharCode(n.which).toLowerCase();if(27===x)return void theme_shell_close(e);if(t.is(":focus")||check_selected_text()||(n.ctrlKey||n.altKey||n.shiftKey||n.metaKey||t.val(t.val()+String.fromCharCode(n.which).toLowerCase()),t.focus()),(y&&13===x||w)&&(Core.moduleAvailable("shell")||d)){if(1===v___shell_processing)return;v___shell_processing=1,("clear"==y||"reset"==y||"exit"==y||w)&&(a.find("pre").html(""),theme_shell_clear(t),"exit"==y&&theme_shell_close(e)),"cd ~"==y&&(k=y,y="cd "+v.attr("data-home"));var C=!1;if("cd /"==y&&(C="/"),"history -c"==y){localStorage.setItem(v___server_hostname+"-shell_commands",JSON.stringify({}));P=""+$(".-shell-port-type").text()+" "+y+"\n";a.find("pre").append(P),theme_shell_clear(t),h.scrollTop(h[0].scrollHeight);var T='',S=new FormData($(T)[0]);$.ajax({type:"POST",url:p+"?stripped=1&stripped=2",data:S,dataType:"text",cache:!1,contentType:!1,processData:!1,success:function(e){Test.strContains(e,v___page_signin_form)&&(v___available_session=0)},error:function(e){}})}else if(y.startsWith("history")){theme_shell_clear(t);var j=JSON.parse(localStorage.getItem(v___server_hostname+"-shell_commands")),I=j?j.length:0,D=I?I.toString().length:0,P=""+$(".-shell-port-type").text()+" "+y+"\n";$.each($(j),function(e,t){var a=e.toString().length,n="";for(i=0;i '+(d?'':"")+' ',O=new FormData($(q)[0]);t.attr("readonly","true"),$.ajax({type:"POST",url:p+"?stripped=1&stripped=2",data:O,dataType:"text",cache:!1,contentType:!1,processData:!1,success:function(e){if(Test.strContains(e,v___page_signin_form))v___available_session=0;else{var i=$(".-shell-port-type").text(),n=$(e).find("pre").html().replace(/>>/g,">"+i),s=$(e).find('select[name="pcmd"] option').map(function(){return Convert.htmlEscape($(this).val())}).get().reOrder(-1,0).reverse();localStorage.setItem(v___server_hostname+"-shell_commands",JSON.stringify(s)),newPwd=$(e).find('input[name="pwd"]').val(),a.find("pre").append(k?n.replace(new RegExp(y,"g"),k):n),v.text(C||(newPwd==v.attr("data-home")?"~":newPwd.split("/").filter(function(e){return""!=$.trim(e)}).slice(-1)[0])).attr("data-pwd",C||newPwd).attr("title",C||newPwd),theme_shell_adapt(),theme_shell_clear(t),h.scrollTop(h[0].scrollHeight),setTimeout(function(){v___shell_processing=0,__shell_commands__i__=0,t.removeAttr("readonly").focus()},100)}},error:function(e){}})}}}),$("body").on("keyup","#webmin_search_form",function(e){var t=$(this).find("input.sidebar-search"),i=t.val(),a=$("body").find(".-shell-port-");i&&13==e.keyCode&&(i.startsWith("!")?theme_shell_open(a,i):($(this).trigger("submit"),t.val("")))}),$("body").on("click","#right-side-tabs .right_pane_favorites_link",function(e){$(".favorites-menu-outer.hover + .favorites-menu-close").trigger("click")}),$("aside").on("click",".user-links > li.favorites",function(e){$(".favorites-menu-outer").addClass("hover")}),$("body").on("click","nav.favorites-menu li a",function(){}),$("body").on("click",".favorites-menu-close, nav.favorites-menu li a",function(){$(".favorites-menu-outer").removeClass("hover")}),$(document).on("keydown",function(e){"0px"==$(".favorites-menu-outer").css("left")&&27==e.keyCode&&$(".favorites-menu-outer").removeClass("hover")}),favicon=new Favico({animation:"none"}),0==v___user_level&&1==Core.moduleAvailable("status")){var o=localStorage.getItem(v___server_hostname+"-right-side-tab")?localStorage.getItem(v___server_hostname+"-right-side-tab"):"#right-side-tabs-sysinfo";$("body").append(' \t\t \t\t \t'),$('a[href="'+o+'"]:visible').length||$("#right-side-tabs ul.nav-tabs li a:visible").trigger("click"),$('#right-side-tabs .nav.nav-tabs a[data-toggle="tab"]').on("shown.bs.tab",function(e){var t=$(e.target).attr("href");localStorage.setItem(v___server_hostname+"-right-side-tab",t)}),$("body").on("click",".right-side-tabs-favorites-ctl",function(e){$(".favorites-menu-outer").hasClass("hover")?$(".favorites-menu-close").trigger("click"):$(".user-link.favorites").trigger("click")}),$("body").on("click",'#right-side-tabs a:not([data-toggle="collapse"]):not([role="tab"]):not(.list-group-item)',function(e){$(".right-side-tabs-toggler:not(.hidden) .btn-menu-toggler").trigger("click")}),$("body").on("click","#right-side-tabs .info-container .graph-container-fw",function(e){var t,i=Core.moduleAvailable("proc"),a=$(this).attr("class"),n=a.indexOf("cpu_")>-1?"cpu":a.indexOf("mem_")>-1?"mem":a.indexOf("virt_")>-1?"virt":"disk";"cpu"==n&&i?t=v___location_prefix+"/proc/index_cpu.cgi":"mem"!=n&&"virt"!=n||!i?"disk"==n&&Core.moduleAvailable("disk-usage")?t=v___location_prefix+"/disk-usage":"disk"==n&&Core.moduleAvailable("quota")&&(t=v___location_prefix+"/quota/list_users.cgi?dir=%2F"):t=v___location_prefix+"/proc/index_size.cgi",t&&get_pjax_content(t),$(".right-side-tabs-toggler:not(.hidden) .btn-menu-toggler").trigger("click")}),$("body").on("click","#right-side-tabs .fa-dashboard",function(e){get_onbeforeunload_status()?(this.href=v___location_prefix+"/sysinfo.cgi",get_onbeforeunload_message(e,this)):get_pjax_content(v___location_prefix+"/sysinfo.cgi"),$(".right-side-tabs-toggler:not(.hidden) .btn-menu-toggler").trigger("click")}),$("body").on("click","#right-side-tabs [data-click-about]",function(e){theme_update_notice(0),$(".right-side-tabs-toggler:not(.hidden) .btn-menu-toggler").trigger("click")})}else get_server_data("data-slider-fixed","0"),$(".right-side-tabs-toggler").addClass("hidden");$(".right-side-tabs .tab-pane").each(function(){$(this).css("height",$(window).height()-92)}),$(".right-side-tabs").on("mouseover",".list-group-item",function(e){$(this).find(".fa.fa-trash-o").removeClass("hidden"),!$(this).hasClass("opacity-0_3")&&$(this).find(".fa-clear-all").removeClass("hidden")}).on("mouseout",".list-group-item",function(e){$(this).find(".fa.fa-trash-o").addClass("hidden"),$(this).find(".fa-clear-all").addClass("hidden")}),$(".right-side-tabs").on("click","[data-port-href]",function(e){e.preventDefault(),e.stopPropagation(),open($(this).data("port-href"))}),$("body").on("click",'a[data-id^="csf_"], a[data-type^="csf_"]',function(e){get_bundle_csf()}),$("body").on("click",'a[href*="mysql"], a[href*="postgresql"]',function(e){get_bundle_sql()}),$(".right-side-tabs").on("click",'a.list-group-item[data-type="csf_deny"]',function(e){e.preventDefault(),e.stopPropagation(),$(e.target).is(".fa.fa-trash-o")||$(e.target).is(".fa-clear-all")||$(e.target).is("[data-port-href]")||(get_bundle_csf(),$("body").append(' \t\t\t\t\t\t'),$("form#csf_temporary_ip_entries").submit().remove(),$(".right-side-tabs-toggler:not(.hidden) .btn-menu-toggler").trigger("click"))}),$(".right-side-tabs").on("click contextmenu","a.list-group-item",function(e){if(e.preventDefault(),"contextmenu"==e.type)return $(this).find(".fa-clear-all").trigger("click"),e.preventDefault(),void e.stopPropagation();if($(e.target).is(".fa.fa-trash-o")||$(e.target).is(".fa-clear-all")||$(e.target).is("[data-port-href]")){if($(e.target).is(".fa-clear-all"))return $(this).addClass("opacity-0_3"),$(this).find(".fa-clear-all").addClass("hidden"),void slider_mark_notification_read($(this).attr("id"),$(this).data("type"),1,1);$(this).animate({opacity:"0"},$settings_animation_left_slide_time,function(){$(this).remove(),localStorage.removeItem(v___server_hostname+"-notifications_"+$(this).attr("id")+"_"+$(this).data("type")),slider_add_no_notifications()})}else $(this).attr("href")&&$(this).attr("href").length&&"undefined"!=$(this).attr("href")&&"csf_deny"!=$(this).attr("data-type")?($(this).addClass("opacity-0_3"),$(this).find(".fa-clear-all").addClass("hidden"),slider_mark_notification_read($(this).attr("id"),$(this).data("type"),1,1),$(".right-side-tabs-toggler:not(.hidden) .btn-menu-toggler").trigger("click"),get_pjax_content($(this).attr("href"))):($(this).addClass("opacity-0_3"),slider_mark_notification_read($(this).attr("id"),$(this).data("type"),1,1))}),$(".right-side-tabs-dismiss i.fa-reload").click(function(e){information_update()}),$(".right-side-tabs-dismiss i.fa-clear-all").click(function(e){slider_mark_group_notifications_read(!1)}),$(".right-side-tabs-dismiss i.fa-trash").click(function(e){$(".right-side-tabs .list-group-item:not(.no-notifications)").animate({opacity:"0"},$settings_animation_left_slide_time,function(){$(this).remove(),slider_remove_all_notifications(),slider_add_no_notifications()})}),$("body").on("click",".right-side-tabs-toggler:not(.hidden)",function(e){$(this).hasClass("opened")?($(this).removeClass("opened"),$(this).animate({right:"0"},$settings_animation_left_slide_time),$(".right-side-tabs").animate({right:"-302"},$settings_animation_left_slide_time)):($(this).addClass("opened"),$(this).animate({right:"300"},$settings_animation_left_slide_time),$(".right-side-tabs").animate({right:"0"},$settings_animation_left_slide_time))}),$(".right-side-tabs .tab-pane").mCustomScrollbar({axis:"y",theme:"minimal",scrollInertia:100,scrollButtons:!1}),settings_button_tooltip&&$("body").tooltip({selector:'li[data-toggle="tooltip"], li > a[data-toggle="tooltip"].menu-exclude-link, label[data-toggle="tooltip"]',container:"body",html:!0,delay:{show:800,hide:30}}),$("body").on("click",".user-link.palette-toggle",function(e){theme_toggle_night_mode()}),$("body").on("click",".user-link.ported-console",function(t){theme_shell_check_available()&&theme_shell_open(e)}),slider_add_no_notifications(),slider_check_notifications()}$("body").on("click","#headln2c > .favorites:not(.dummy), .xcustom-favorites:not(.dummy)",function(e){e.preventDefault();var t=URI(v___location).resource();if($(this).hasClass("fa-star-o")){$(this).removeClass("fa-star-o").addClass("fa-star text-warning");var i=$("#headln2c > span[data-main_title]").text(),a=$(".has-sub.active").text().trim(),n=$(".sub_active").text().trim(),s="",o="";($t_uri_virtualmin||$t_uri_cloudmin)&&(s=$("aside .ui_select option:selected").text()),$('body[class^="'+v___module_file_manager+'"]').length&&(o=(o=URI.parseQuery(URI(v___location).query()).path)?"["+o+"]":"[/]"),favorites_add(t,(s.length?s+" - ":"")+(a.length?a+"/":"")+(n.length?n+(i.trim().length?": ":""):"")+i.trim()+(o.length?" "+o:""),$t_uri_virtualmin?"virtualmin":$t_uri_cloudmin?"cloudmin":"webmin"),favorites_save()}else $(this).addClass("fa-star-o").removeClass("fa-star text-warning"),favorites_remove(t)}),1===v___initial_load&&favorites_init(),$("#favorites-menu .favorites-menu-content").on("mouseover","li:not(.exclude) span.f__c, li:not(.exclude) span.f__c small",function(){$(this).find("small").removeClass("hidden")}).on("mouseleave","li:not(.exclude) span.f__c, li:not(.exclude) span.f__c small",function(){$(this).find("small").addClass("hidden")}),$("#favorites-menu .favorites-menu-content").on("mouseover","li:not(.exclude) small",function(){$(this).find(".fa-times").removeClass("fa-times").addClass("fa-times-circle"),$(this).animate({"font-size":"0.7em","margin-top":"-2px","margin-left":"-1px"},160)}).on("mouseleave","li:not(.exclude) small",function(){$(this).find(".fa-times-circle").removeClass("fa-times-circle").addClass("fa-times"),$(this).animate({"font-size":"0.6em","margin-top":"-1px","margin-left":"0"},80)}),$("#favorites-menu .favorites-menu-content").on("click","li:not(.exclude) small .fa-times-circle",function(e){e.preventDefault(),e.stopPropagation(),favorites_remove($(this).parents("a").attr("href"))}),$(document).on("keydown",function(e){"0px"==$(".favorites-menu-outer").css("left")&&27==e.keyCode&&$(".favorites-menu-outer").removeClass("hover")}),$("body").on("shown.bs.modal",".modal.in",function(){$(this).focus()}),$("body").on("click",".module-help",function(e){popover_visibility_position($(this))}),$("body").on("click",function(e){$(e.target).is(".close-popover-trigger")&&$(e.target).parent().parent().popover("hide");var t=".showpass-popover";$(t).length&&$(t).each(function(){$(this).is(e.target)||0!==$(this).has(e.target).length||0!==$(".popover").has(e.target).length||$(this).popover("hide")})}),$('body:not(".mobile-menu-toggler")').on("click",function(e){$(e.target).is('.wbm-sm, input[name="product-switcher"], label[for*="open_"], span, .sidebar-search, .select2-selection__rendered, .select2-selection')||navigation_hide()}),$("body").on("change",'input[type="checkbox"], input[type="radio"]',function(e){var t=$(this).parents("tr.ui_checked_columns");t.length&&t.find("input:first").is($(this))&&($(this).is(":checked")?t.addClass("hl-aw"):t.removeClass("hl-aw"),"function"==typeof __r____changed&&__r____changed())}),$("body").on("click",".ui_link, .ui_link_replaced",function(){$.each($('input[type="checkbox"]'),function(){$(this).is(":checked")?$(this).parents("tr.ui_checked_columns").addClass("hl-aw"):$(this).parents("tr.ui_checked_columns").removeClass("hl-aw"),"function"==typeof __r____changed&&__r____changed()})}),$("body").on("click",'#extended_sysinfo-1 span[data-entry="nf_seen"]',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()}}})}),$("body").on("click",'#extended_sysinfo-1 span[data-entry="right_upok"]',function(e){e.preventDefault();$(this);var t=$('form[action*="package-updates/update.cgi"]');t.attr("method","POST"),$("").attr({type:"submit",value:1}).appendTo(t),$('input[name="u"]').appendTo(t),t.submit()}),$("body").on("click","a#atclearcache",function(e){set_onbeforeunload_status(0,0),Object.keys(localStorage).forEach(function(e){/^allowed_trigger|^notifications_|^sysinfo_/.test(e)&&localStorage.removeItem(v___server_hostname+"-"+e)}),$(".right-side-tabs-dismiss .fa-trash").trigger("click"),$(".right-side-tabs-dismiss .fa-refresh").trigger("click");var t=$(this);spinnerfy_buttons(t,[1.5,-33,"small",1e3])}),$("body").on("click",function(e){$(e.target).is('select[name="settings_navigation_color"], select[name="settings_background_color"], select[name="settings_side_slider_palette"], input[name="settings_side_slider_fixed"], label[for^="settings_side_slider_fixed"], div.aradio')||$(".right-side-tabs-toggler").hasClass("hidden")||!$(".right-side-tabs-toggler").hasClass("opened")||$(e.target).parents("#right-side-tabs").is("#right-side-tabs")||$(e.target).is(".btn-menu-toggler")||$(e.target).is(".fa-bell")||$(e.target).is("li.user-link.favorites")||$(e.target).is(".badge.badge-danger")||$(".right-side-tabs-toggler:not(.hidden) .btn-menu-toggler").trigger("click")}),$("body").on("click",".authentic_update:not(.disabled)",function(e){e.preventDefault(),e.stopPropagation();var t="1"==$(this).data("stable")?1:0;theme.update(t)}),$("body").on("click",'a[data-href="#theme-info"]',function(){theme_update_notice(0)}),$("body").on("hide.bs.modal","#update_notice",function(){$(this).hasClass("r")?($("body").append('
'),$("div.update_notice_overlay").animate({opacity:1},560,function(){setTimeout(function(){theme_reload()},100)})):($("#content").animate({"margin-left":___________content_initial_},280),$("aside").animate({"margin-left":0},280,function(){$(".right-side-tabs, .right-side-tabs-toggler").removeClass("pointer-events-none bg-filter-grayscale-opacity50"),$(".container-fluid").removeClass("bg-filter-blur-grayscale-opacity50")})),$("#update_notice").remove()}).on("show.bs.modal","#update_notice",function(){$("#update_notice").length;$(this);var e=$("aside").css("left");___________content_initial_=$("#content").css("margin-left"),________version_date_obj=$(this).find(".modal-body > h4:first-child"),________version_curr_text=________version_date_obj.text().split(/\s+/)[1],________version_first_text=$(".version_separator:last").text(),________multi_in_branch=$(".version_separator").length,_____version__x=________version_first_text+"..."+________version_curr_text,__release_time=v___theme_version_git.slice(-4,-2)+":"+v___theme_version_git.slice(-2),_____release_date_=________version_date_obj.text().match(/\(([^)]+)\)/),_____release_date=!!_____release_date_&&_____release_date_[1],__release_date_time=_____release_date+(__release_time.length>2?", "+__release_time:"");var t=$(".version_separator"),i=theme_language("theme_xhred_global_development_version");$.each(t,function(){$(this).attr("target","_blank")}),setTimeout(function(){$(".container-fluid").addClass("bg-filter-blur-grayscale-opacity50")},0),$("#content").animate({"margin-left":0},450),$("aside").animate({"margin-left":e},450),$(".right-side-tabs, .right-side-tabs-toggler").addClass("pointer-events-none bg-filter-grayscale-opacity50");var a=$(this).find(".modal-body h4"),n=$(this).find(".modal-body h4:first");if(!$(this).find(".modal-body h4:first .diffctl").length){_=new RegExp(RegExp.quote(________version_curr_text),"g");________multi_in_branch&&(a.replaceText(_,""+_____version__x+""),a.replaceText(/Version/,"Versions"));var s=$(this).find('.modal-body h4:contains("patch")').length;if(a.length&&s){var o=parseFloat($(this).find('.modal-body a[href*="authentic-theme/releases"]:first').text().match(/-?(?:\d+(?:\.\d*)?|\.\d+)/)[0]);n.append('
"+theme_language("theme_xhred_global_committed_on")+": "+__release_date_time+'" class="btn btn-transparent diffctl text-dark text-force-link-hover" href="https://github.com/qooob/authentic-theme/compare/'+o+'...master">
'),n.after(' '+i+"")}else n.append('
"+theme_language("theme_xhred_global_released_on")+": "+__release_date_time+'" class="btn btn-transparent diffctl changelogctl text-dark text-force-link-hover" href="https://github.com/qooob/authentic-theme/blob/master/CHANGELOG.md">
').append(''+________version_curr_text+"")}var _=new RegExp(RegExp.quote("("+_____release_date+")"),"g");a.replaceText(_,"");var r=[];$.each($(this).find('li span:contains("Fixed bugs")'),function(){var e=$(this),t=$(this).parent("li"),i=t.parent("ul"),a=t.find("a:not(.bctl)"),n=a.length;________multi_in_branch?(r.push(a),1===i.find("li").length&&(i.prev("hr").prev("a").remove(),i.prev("hr").remove(),i.addClass("no-data")),t.remove()):(e.html([e.text().slice(0,6),n+" ",e.text().slice(6)].join("")),t.find("a:first").before(''),t.find("a.bctl").click(function(e){a.toggleClass("hidden"),t.find("a.bctl i").toggleClass("fa-minus-square-o")}),a.addClass("obj-popup hidden"))}).promise().done(function(){if(________multi_in_branch&&!$(".bctl").length){$(".modal-body h4[data-development]").prev("hr").before('
  • Fixed bugs
'),$(".modal-body span[data-bugs-container]").append(r);function e(e,t){return parseInt($(t).text().replace("#",""))'),t.find("a.bctl").click(function(e){i.toggleClass("hidden"),t.find("a.bctl i").toggleClass("fa-minus-square-o")}),i.addClass("obj-popup hidden");var n=$("div[data-bugs]"),s=n.find("a:not(.bctl)").length;!s&&n.prev(".hr-dashed").remove(),!s&&n.remove()}var o=$(".modal#update_notice h4 span");if(Test.strContains(o.text(),"...")&&Test.strContains(o.text(),"patch")){var _=parseInt(o.text().split("...")[1].substr(-1,1));_&&$.each($(".version_separator:not(.version_dev)"),function(e,t){e+1!=_?$(this).addClass("hidden"):$(this).text($(this).text()+"-"+theme_language("theme_xhred_global_release").toLowerCase())})}})}),$("body").on("click contextmenu",'a[data-href*="/webmin/edit_webmincron.cgi"]',function(e){e.preventDefault(),e.stopPropagation();var t=Core.moduleAvailable("virtual-server")?"virtual-server":"system-status";theme_messenger(''+theme_language("theme_xhred_sysinfo_update_start")+'.   ',1800,"info","sysinfoRecollect",0),$("body").find("#system-status").find('h3 > a[data-refresh="system-status"]').addClass("disabled btn-inverse").removeClass("btn-success"),$.ajax({type:"GET",url:v___location_prefix+"/"+t+"/recollect.cgi",data:!1,dataType:"text",success:function(e){Test.strContains(e,v___page_signin_form)?v___available_session=0:(get_pjax_content(v___location_prefix+"/sysinfo.cgi",["success",theme_messenger,[''+theme_language("theme_xhred_sysinfo_update_end"),4,"success","sysinfoRecollect"],0]),information_update())},error:function(e){theme_messenger(''+theme_language("theme_xhred_sysinfo_update_failed"),20,"error","sysinfoRecollect")}})}),$("body").on("click",".csf-submit",function(e){e.preventDefault();var t=$(this).data("id");$("#"+t).submit()}),$("body").on("click",".inline-row input",function(e){$(this).is(":checked")?$(this).parents(".gl-icon-container").addClass("highlighted"):$(this).parents(".gl-icon-container").removeClass("highlighted")}),$("body").on("click contextmenu","div.icons-container, div.small-icons-container",function(e){if("click"===e.type&&$(e.target).is(".gl-icon-select")&&!v___available_navigation)e.preventDefault(),$(this).trigger("contextmenu");else if("contextmenu"===e.type){e.preventDefault(),$(this).find("input").is(":checked")?($(this).find("input").prop("checked",!1),$(this).removeClass("highlighted")):$(this).find("input").length&&($(this).find("input").prop("checked",!0),$(this).addClass("highlighted"));var t=$(e.target).is(".icon_link")?$(e.target).parent(".gl-icon-container").find(".fa-select, .fa-selected"):$(e.target).is(".gl-icon-select")?$(e.target):$(e.target).is("img")?$(e.target).parent("a").parent(".gl-icon-container").find(".fa-select, .fa-selected"):$(e.target).find(".fa-select, .fa-selected");t.hasClass("fa-select")?t.removeClass("fa-select").addClass("fa-selected"):t.removeClass("fa-selected").addClass("fa-select")}"function"==typeof db_check_selected&&db_check_selected()}),$("body").on("click",".row.icons-row.vertical-align .icons-container, .row.icons-row.vertical-align .small-icons-container",function(){$(this).hasClass("forged-xx-skip")}),__is_shifted=!1,__is_tabbed=!1,$(document).on("keyup keydown",function(e){var t=e.keyCode?e.keyCode:e.which;__is_shifted=e.shiftKey,__is_tabbed=9==t}),$("body").on("change",".onchange_form_submit_triggger",function(e){e.preventDefault(),$(this).parent("form").submit()}),$("body").on("click",'button.ui_form_end_submit[type="button"]:not(.disabled)',function(){var e=$(this).next('input[type="submit"].hidden'),t=$(this).parent(".btn-group").next('input[type="submit"].hidden');e.length||(e=t);var i=e.parent(),a=(i.parent("tr").find("form"),e.parents("form"));if(!a.length)return(a=e.closest("form")).length||(a=i.prev("form")),a.length||(a=i.prev().prev("form")),a.length||(a=i.prev().prev().prev("form")),a.append(a.nextUntil(i)),void $.each(i.find("select, input"),function(){$("").attr({type:"hidden",name:$(this).attr("name")?$(this).attr("name"):$(this).attr("id"),value:$(this).val()}).appendTo(a)}).promise().done(function(){a.submit()});$("").attr({type:"hidden",name:e.attr("name")?e.attr("name"):e.attr("id"),value:$.trim(e.val())}).appendTo(a),e.trigger("click")}),$("body").on("click",'.ui_form_end_submit:not(.disabled), .page_footer_submit:not(.disabled):not([href*="javascript:history"])',function(){var e=!1,t=!1;($(this).parents('form[action="fetch.cgi"]').length||$(this).parents('form[action="download.cgi"]').length&&!Core.curModule("cpan"))&&(e=1e3,t=1),Core.curModule("csf")?spinnerfy_buttons($(this),[2,-29,"small",t]):spinnerfy_buttons($(this),!1,e,t)}),$("body").on("dblclick",'.mppopup a[onclick*="fileclick("], .mppopup a[onclick*="parentdir("]',function(e){e.preventDefault()});var _=0,r=null;$("body").on("dblclick",'.mppopup a[onclick*="select("]',function(e){$(".mppopup button[data-mppopup_confirm]").trigger("click")}),$("body").on("click",'.mppopup a[onclick*="fileclick("], .mppopup a[onclick*="parentdir("]',function(e){if(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation(),_++,$data_mppopup_value.val($v__mpp__g_ol),1===_)r=setTimeout(function(){if(_=0,"undefined"==typeof $v__mpp__g_gp&&($v__mpp__g_gp=0),$v__mpp__g_gp){var e=chooser_get_link($v__mpp__g_op);chooser_get(e)}else chooser_control($v__mpp__g_ol,0,0);$v__mpp__g_gp=0},240);else if(clearTimeout(r),_=0,$v__mpp__g_olt){var t=chooser_get_link($v__mpp__g_op);chooser_get(t)}else chooser_control($v__mpp__g_ol,1,1)}),$("body").on("click",".mppopup button[data-mppopup_confirm]",function(){chooser_control($data_mppopup_value.val(),1,1)}),$("body").on("show.bs.modal",".mppopup",function(){v__mpp__ml_t__e=0,$data_mppopup_value=$(".mppopup input[data-mppopup_value]"),$('.mppopup input[data-role="tagsinput"]').tagsinput({onTagExists:function(e,t){t.hide().fadeIn(),v__mpp__ml_t__e=1}})}),$("body").on("shown.bs.modal",".mppopup",function(){var e=$("body .mppopup").find(".modal-head");$("body .mppopup").find(".modal-body"),$("body .mppopup").find(".modal-body table"),e.find(".mppopup_filter > input");setTimeout(function(){$(".mppopup_filter_input").animate({opacity:1},$settings_animation_tabs_slide_time),$(".mppopup_filter_input").focus()},0)}),$("body").on("hidden.bs.modal",".mppopup",function(){refInput.removeClass("refInputData"),$('.mppopup input[data-role="tagsinput"]').tagsinput("destroy"),$("body .mppopup").remove(),$("button[data-mmclick].disabled, input[data-mmclick].disabled").removeClass("disabled").removeAttr("disabled")}),$("body").on("click",".mppopup_multi_done",function(e){refInput.val($.trim($('.mppopup input[data-role="tagsinput"]').val().replace(/,/g," "))),$('.mppopup span[aria-hidden="true"]').trigger("click")}),$("body").on("keyup",".mppopup_filter_input",function(e){var t=e.which,i=$(".mppopup table tbody tr:visible"),a=i.find("td:first-child a");if(!$(".mppopup .breadcrumbx").length){if(13!=t||1!==i.length||e.shiftKey){if(13==t&&1===i.length&&e.shiftKey){a.trigger("click").trigger("dblclick");var n=$(".mppopup .mppopup_multi_done:visible");n.length&&setTimeout(function(){n.trigger("click")},240)}}else a.trigger("click");$(".mppopup table tbody tr.noresults").length||$(".mppopup table tbody").append(''+theme_language("theme_xhred_global_no_results_found")+"");var s=$(".mppopup table tbody tr:visible:not(.noresults)"),o=$(".mppopup table tbody tr.noresults");s.length?o.addClass("hidden"):o.removeClass("hidden")}}),$("body").on("click","button[data-mmclick]:not(.disabled), input[data-mmclick]:not(.disabled)",function(e){e.preventDefault(),e.stopPropagation(),refInput=chooser_get_target($(this),1);var t=$(this),i=refInput.val(),a=encodeURIComponent(i),n=$(this).attr("data-mmclick").match("window.open\\(['\"]*(.*?)(\\s*['\"]*,.*?)"),s=n[1].match(/(\w+\.[a-z]{3,4})/gi)[0].replace(".cgi","");if(t.addClass("disabled").attr("disabled","disabled"),n[1]){var o=n[1].replace("encodeURIComponent(ifield.value)","refInputCurrValSafe");o=o.replace('"+"',"").replace('"+',"").replace("refInputCurrValSafe",a);function _(e,t,a,n,o){var _;_=o?' ":' ";var r=' ";$("body").append(r),refInput.addClass("refInputData"),$("body .mppopup").modal("show")}function r(e){e[1].startsWith("/")?$v__mpp__g_op=e[1]:$v__mpp__g_op="/"+e[1]}$.ajax({type:"POST",url:o,data:!1,dataType:"text",success:function(e){if(Test.strContains(e,v___page_signin_form))v___available_session=0;else{var t=e,i=e.match(')<[^<]*)*<\/(script|link|meta)>/gi,"").replace(/<\/body>|<\/html>/gi,""),i=$(t).filter(".table").html(),a=$(t).filter(".table").prev("b").html();_(t=chooser_breadcrumbs(a)+''+i+"
",0,0,refInput,0)}}});else if($.isArray(i))r(i),$.ajax({type:"POST",url:$v__mpp__g_op,data:!1,dataType:"text",success:function(e){if(Test.strContains(e,v___page_signin_form))v___available_session=0;else{var t=e.replace(/<(!doctype|script|link|meta)\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/(script|link|meta)>/gi,"").replace(/<\/body>|<\/html>/gi,"");_(t=''+$(t).filter("table").html()+"
",0,0,refInput,1)}}});else{if($.isArray(i)&&-1===i[1].indexOf("&multi=1"))return;var a=t,n=$(a).filter("table").html();_(''+n+"
",0,0,refInput,0)}}}})}else $(this).removeClass("disabled"),$(this).attr("onclick",$(this).attr("data-mmclick")).removeAttr("data-mmclick"),$(this).trigger("click")}),$("body").on("click",".generate-password-key",function(e){var t=theme_password_generator();$("body").append('');var i=new Clipboard(".tmp-clipboard-obj");$(".tmp-clipboard-obj").trigger("click"),$(".tmp-clipboard-obj").remove(),i.destroy(),theme_messenger(''+theme_language("theme_xhred_password_generator_new_success").replace("%password",' '+Convert.htmlEscape(t)+" "),10,"success","newGeneratedPassword")}),$("body").on("click",'aside li[data-linked] a[href="'+v___location_prefix+'/shell/"], aside a[href="'+v___location_prefix+'/server-manager/shell.cgi"], aside a[href*="shell=1"]',function(e){e.preventDefault(),e.stopPropagation(),$(".user-link.ported-console:visible").trigger("click")}),$("body").on("change",'form[action*="save_log.cgi"] select[name="idx"]',function(e){var t=$("button.ui_submit.ui_form_end_submit");t.first().trigger("click"),t.addClass("disabled")}),$("body").on("keydown",'form[action*="save_log.cgi"] input[name="filter"], form[action*="save_log.cgi"] input[name="lines"]',function(e){if(13==e.keyCode){e.preventDefault();var t=$("button.ui_submit.ui_form_end_submit");t.first().trigger("click"),t.addClass("disabled")}}),$("aside").on("click",".__logout-link",function(e){progress.start(),get_server_tmp_var("goto",0)}),$("body").on("click",'button, input[type="submit"], a',function(e){v___page_activeElement=this}),$("body").on("click","._c__op_d",function(e){if($(e.target).is(this)){var t=$(this).find(".opener_trigger").first()[0];t&&t.click()}}),$(window).on("resize",function(){page_resized(),theme_shell_adapt()}),setTimeout(function(){window.onbeforeunload=function(){if(get_onbeforeunload_status())return progress.end(),!0;window.setTimeout(function(){v___available_navigation?"csf"===v___module&&(window.location=v___location_prefix?v___location_prefix+"/":"/"):progress.start()},0),window.onbeforeunload=null},$(function(){v___available_navigation||progress.end()})},100),theme_alert_charset(),favorites_detect(),page_render(0),setTimeout(function(){v___initial_load=0},1e3)})} \ No newline at end of file +update_navigation_module_name()}function editor_init_check(){return 1===$("textarea").length&&("data"===$("textarea").attr("name")||"text"===$("textarea").attr("name")||"conf"===$("textarea").attr("name")||"script"===$("textarea").attr("name")||Core.curModuleFileQuery("virtual-server","edit_html.cgi","textok=")||v___location_file.indexOf("manual")>-1)?Core.curModule("gnupg")||Core.curModuleFile("virtual-server","mass_ucreate_form.cgi")||Core.curModuleFile("virtual-server","mass_create_form.cgi")||Core.curModuleFile("server-manager","edit_pubkey.cgi")||Core.curModuleFile("server-manager","edit_key.cgi")||check_location_resource("/config.cgi?server-manager")||Core.curModuleFile("useradmin","batch_form.cgi")||Core.curModuleFile("useradmin","gbatch_form.cgi")||"mass_form.cgi"==v___location_file||"notes"===$("textarea").attr("id")?0:1:0}function editor_init(e,t,i,a,n,s,_,r){(_=void 0!==_&&0!=_)||(n=void 0!==n&&0!=n,s=void 0!==s&&0!=s,$.each(e,function(_,o){$(this);var l=["phpini","bind8"];$("#headln2l a").attr("href")?$page=$("#headln2l a").attr("href").split("/")[1]:$page=null,l.indexOf($page)>=0&&$(this).data("name","data"),CodeMirror.modeURL=v___location_prefix+"/unauthenticated/js/codemirror/mode/%N/%N.js";var c=null,d="text/plain",h=!1;v___location_path==v___location_prefix+"/custom/view.cgi"?h=$('form[action="save.cgi"]').find(".table-title").find("tt").text():$('body[class^="'+v___module_file_manager+'"]').length?(h=t.replace(/<(?:.|\n)*?>/gm,"").replace(/ *\([^)]*\) */g,""),t=h):h=$('select[name="file"]').val();var p,f=t||h;if(p=/.+\.([^.]+)$/.exec(f))(g=CodeMirror.findModeByExtension(p[1]))&&(c=g.mode,d=g.mime);else if(/\//.test(f)){var g=CodeMirror.findModeByMIME(f);g&&(c=g.mode,d=f)}else c=null,d="text/plain";if("apache"==$page||"postfix"==$page||"dovecot"==$page||"spam"==$page||"virtualmin-nginx"==$page||"sendmail"==$page||"samba"==$page||"proftpd"==$page||"fail2ban"==$page||"sshd"==$page||"squid"==$page||"ldap-server"==$page?(c="rpm",d="rpm-spec"):"phpini"==$page?(c="z80",d="text/x-z80"):"bind8"==$page||"procmail"==$page||Core.curModuleFile("virtual-server","manual_records.cgi")?(c="clike",d="text/x-java"):"virtual-server"==$page&&"body"==$(this).attr("name")&&(c="htmlmixed",d="text/html"),$current_file=v___location_path.replace(/^\//g,""),$current_file&&($current_file=$current_file.split("/")[1]),editor_init_check()||$(".jsPanel").length||n){CodeMirror.commands.autocomplete=function(e){e.showHint({hint:CodeMirror.hint.anyword})},window["__cm_editor_"+a]=CodeMirror.fromTextArea(o,{tabMode:"indent",matchBrackets:!0,lineNumbers:!0,keyMap:"sublime",highlightSelectionMatches:{showToken:/\w/,annotateScrollbar:!0},lineWrapping:!0,indentUnit:0,autofocus:!0,foldGutter:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:{"Ctrl-Space":"autocomplete"},styleActiveLine:!0,theme:v___theme_night_mode?"monokai":settings_cm_editor_palette}),window["__cm_editor_"+a].setOption("mode",d),"rpm"!=c&&CodeMirror.autoLoadMode(window["__cm_editor_"+a],c),setTimeout(function(){$("body").find(".jsPanel").length||$(".CodeMirror").before('');var e=$(".fa.fa-question-circle.__helper, .__helper___");e.popover({container:"body",placement:"auto left",title:''+theme_language("theme_xhred_editor_help_title"),content:theme_language("theme_xhred_editor_help_content"),trigger:"click",html:!0}),e.on("inserted.bs.popover",function(){$("body").find(".theme_xhred_editor_help").parents(".popover").addClass("_helper")})},100),s&&window["__cm_editor_"+a].on("change",function(e,t){set_onbeforeunload_status(1,0)});var u=$(".container-fluid > .panel > .panel-body").attr("data-cm-line"),v=$(".container-fluid > .panel > .panel-body").attr("data-cm-state");r&&u&&__cm_editor_static.setCursor(parseInt(u.split(",")[0]),parseInt(u.split(",")[1])),"edit_cron.cgi"!=$current_file&&v___location_path!=v___location_prefix+"/virtualmin-password-recovery/"&&v___location_path!=v___location_prefix+"/bind8/forward_form.cgi"&&($resize=i||2.8,i?(window["__cm_editor_"+a].on("change",function(t,i){e.val(window["__cm_editor_"+a].getValue()),$(":focus").parents(".jsPanel").is(".jsPanel")&&($(":focus").parents(".jsPanel").find("._filemanager_file_editor_save").addClass("text-danger __locked__"),$(":focus").parents(".jsPanel").find("select[data-encoding]").addClass("pointer-events-none"))}),window["__cm_editor_"+a].setSize($resize[0],$resize[1])):($window_height=$(window).outerHeight()-$(window).outerHeight()/$resize,window["__cm_editor_"+a].setSize(null,$window_height),$(window).resize(function(){$window_height=$(window).outerHeight()-$(window).outerHeight()/$resize,window["__cm_editor_"+a].setSize(null,$window_height)}))),$(".sub_table_container").find(".CodeMirror").length&&($(".sub_table_container").addClass("xcontent-force-no-styling"),$(".panel-body").addClass("xqcontent-forced")),editor_background_save(r&&!!u&&"true"==v)}}))}function viewer_init_check(){return $('body[class^="syslog"]').length&&v___location_query&&v___location_query.indexOf("view=1")>-1?1:0}function viewer_init(){if($("pre[data-cm-viewer]").remove(),$(".panel-body pre").find("i").length)$(".panel-body pre > i").addClass("label label-transparent-15");else{var e=!1;$(".panel-body pre").each(function(t,i){var a=$(this),n=Convert.htmlStrip(a.html());a.addClass("hidden"),a.after("
"),$target=$("pre[data-cm-viewer-id-"+(t+1)+"]"),e=CodeMirror($target[0],{value:n,lineNumbers:!1,mode:null,theme:v___theme_night_mode?"monokai":settings_cm_editor_palette,readOnly:!0})}).promise().done(function(){})}}function notifications(e,t,i){if(settings_side_slider_enabled&&settings_side_slider_notifications_enabled){var e=Convert.htmlUnEscape($.trim(e.replace(/(<([^>]+)>)/gi,""))).replace(/\s+/g," "),t=Convert.htmlUnEscape($.trim(t.replace(/(<([^>]+)>)/gi,""))).replace(/\s+/g," ");"granted"===Notification.permission?new Notification(e,{body:t,icon:v___location_prefix+"/images/notifications_"+i+".png"}).onclick=function(){window.focus()}:"denied"!==Notification.permission&&Notification.requestPermission(function(a){"granted"===a&&(new Notification(e,{body:t,icon:v___location_prefix+"/images/notifications_"+i+".png"}).onclick=function(){window.focus()})})}}function unbuffered_header_post(e){if(Test.strContains(e.responseText,"theme_post_save")){var t=e.responseText.match(/theme_post_save(.*)$/gm);t&&navigation_update(t[0].split("=")[1])}}function unbuffered_header_processor_allow(e){var t=URI(v___location).path();return void 0!==e&&(t=e),t&&Test.strContains(t,".cgi")&&(Test.strContains(t,"webmin/install_theme.cgi")||Test.strContains(t,"usermin/install_theme.cgi")||t.indexOf("/virtual-server/import.cgi")>-1||t.indexOf("/virtual-server/edit_newlinks.cgi")>-1||t.indexOf("/virtual-server/postsave.cgi")>-1||t.indexOf("/virtual-server/validate.cgi")>-1||t.indexOf("/server-manager/edit_serv.cgi")>-1||t.indexOf("/server-manager/save_serv.cgi")>-1||t.indexOf("/server-manager/index.cgi")>-1||t.indexOf("/server-manager/list_ifaces.cgi")>-1||t.indexOf("/server-manager/mass_update.cgi")>-1||t.indexOf("/server-manager/get_images.cgi")>-1||t.indexOf("/server-manager/edit_newlinks.cgi")>-1||t.indexOf("/server-manager/list_gces.cgi")>-1||t.indexOf("/server-manager/list_ec2s.cgi")>-1||t.indexOf("/server-manager/unpause.cgi")>-1||t.indexOf("/server-manager/find.cgi")>-1||t.indexOf("useradmin/batch_exec.cgi")>-1||t.indexOf("useradmin/gbatch_exec.cgi")>-1||t.indexOf("useradmin/mass_delete_user.cgi")>-1||t.indexOf("virtual-server/domain_setup.cgi")>-1||t.indexOf("virtual-server/upgrade.cgi")>-1||t.indexOf("virtual-server/mass_create.cgi")>-1||t.indexOf("virtual-server/restore.cgi")>-1||t.indexOf("virtual-server/save_newip.cgi")>-1||t.indexOf("virtual-server/mass_domains_change.cgi")>-1||t.indexOf("virtual-server/save_domain.cgi")>-1||t.indexOf("virtual-server/backup.cgi")>-1||t.indexOf("virtual-server/save_phpmode.cgi")>-1||t.indexOf("virtual-server/script_install.cgi")>-1||t.indexOf("virtual-server/mass_change.cgi")>-1||t.indexOf("virtual-server/save_ratelimit.cgi")>-1||t.indexOf("virtual-server/mass_scripts.cgi")>-1||t.indexOf("virtual-server/mass_upgrade.cgi")>-1||t.indexOf("virtual-server/save_newips.cgi")>-1||t.indexOf("virtual-server/letsencrypt.cgi")>-1||t.indexOf("virtual-server/migrate.cgi")>-1||t.indexOf("virtual-server/save_mail.cgi")>-1||t.indexOf("virtual-server/mass_delete_domains.cgi")>-1||t.indexOf("virtual-server/delete_domain.cgi")>-1||t.indexOf("virtual-server/unscript_install.cgi")>-1||t.indexOf("virtual-server/mass_uninstall.cgi")>-1||t.indexOf("virtual-server/clone.cgi")>-1||t.indexOf("virtual-server/fix_symlinks.cgi")>-1||t.indexOf("virtual-server/disable_domain.cgi")>-1||t.indexOf("virtual-server/delete_databases.cgi")>-1||t.indexOf("virtual-server/move.cgi")>-1||t.indexOf("virtual-server/enable_domain.cgi")>-1||t.indexOf("virtual-server/transfer.cgi")>-1||t.indexOf("virtual-server/mass_disable.cgi")>-1||t.indexOf("virtual-server/rename.cgi")>-1||t.indexOf("virtual-server/save_dbname.cgi")>-1||t.indexOf("virtual-server/mass_enable.cgi")>-1||t.indexOf("virtual-server/save_frame.cgi")>-1||t.indexOf("virtual-server/check.cgi")>-1||t.indexOf("virtual-server/save_newchroot.cgi")>-1||t.indexOf("virtual-server/enable_dkim.cgi")>-1||t.indexOf("virtual-server/save_proxy.cgi")>-1||t.indexOf("virtual-server/save_dbpass.cgi")>-1||t.indexOf("virtual-server/save_dbhosts.cgi")>-1||t.indexOf("virtual-server/unalias.cgi")>-1||t.indexOf("virtual-server/save_newautoconfig.cgi")>-1||t.indexOf("virtual-server/quotacheck.cgi")>-1||t.indexOf("virtual-server/unsub.cgi")>-1||t.indexOf("virtual-server/save_domdkim.cgi")>-1||t.indexOf("virtual-server/fix_modphp.cgi")>-1||t.indexOf("virtual-server/connectivity.cgi")>-1||t.indexOf("virtual-server/all_webmin.cgi")>-1||t.indexOf("virtualmin-support/send_ticket.cgi")>-1||t.indexOf("virtualmin-support/enable_login.cgi")>-1||t.indexOf("virtualmin-support/disable_login.cgi")>-1||t.indexOf("server-manager/create.cgi")>-1||t.indexOf("server-manager/mass.cgi")>-1||t.indexOf("server-manager/manual_image.cgi")>-1||t.indexOf("server-manager/save_limits.cgi")>-1||t.indexOf("server-manager/upgrade.cgi")>-1||t.indexOf("server-manager/empty.cgi")>-1||t.indexOf("server-manager/save_pass.cgi")>-1||t.indexOf("server-manager/create_image.cgi")>-1||t.indexOf("server-manager/restore.cgi")>-1||t.indexOf("server-manager/clone.cgi")>-1||t.indexOf("server-manager/scan.cgi")>-1||t.indexOf("server-manager/add.cgi")>-1||t.indexOf("server-manager/gcescan.cgi")>-1||t.indexOf("server-manager/create_gceattach.cgi")>-1||t.indexOf("server-manager/ec2scan.cgi")>-1||t.indexOf("server-manager/create_domain.cgi")>-1||t.indexOf("server-manager/restore_domain.cgi")>-1||t.indexOf("server-manager/create_ec2attach.cgi")>-1||t.indexOf("server-manager/newami.cgi")>-1||t.indexOf("server-manager/move_disk.cgi")>-1||t.indexOf("server-manager/convert_image.cgi")>-1||t.indexOf("server-manager/save_vcpus.cgi")>-1||t.indexOf("server-manager/boot.cgi")>-1||t.indexOf("server-manager/delete_backuplogs.cgi")>-1||t.indexOf("server-manager/mass_script.cgi")>-1||t.indexOf("server-manager/save_ec2address.cgi")>-1||t.indexOf("server-manager/mass_move.cgi")>-1||t.indexOf("server-manager/delete_ec2attach.cgi")>-1||t.indexOf("server-manager/move.cgi")>-1||t.indexOf("server-manager/backup.cgi")>-1||t.indexOf("server-manager/create_dimage.cgi")>-1||t.indexOf("server-manager/massupload.cgi")>-1||t.indexOf("server-manager/delete_volumes.cgi")>-1||t.indexOf("server-manager/delete_ec2_snapshots.cgi")>-1||t.indexOf("server-manager/download.cgi")>-1||t.indexOf("server-manager/create_gdisk.cgi")>-1||t.indexOf("server-manager/failover.cgi")>-1||t.indexOf("server-manager/create_dkvolume.cgi")>-1||t.indexOf("server-manager/upload.cgi")>-1||t.indexOf("server-manager/transfer.cgi")>-1||t.indexOf("server-manager/delete_gceattach.cgi")>-1||t.indexOf("server-manager/reset.cgi")>-1||t.indexOf("server-manager/find.cgi")>-1||t.indexOf("server-manager/create_volume.cgi")>-1||t.indexOf("server-manager/create_gsnapshot.cgi")>-1||t.indexOf("server-manager/create_gimage.cgi")>-1||t.indexOf("server-manager/exec_vbackup.cgi")>-1||t.indexOf("server-manager/unpause.cgi")>-1||t.indexOf("server-manager/pause.cgi")>-1||t.indexOf("server-manager/create_ec2_snapshot.cgi")>-1||t.indexOf("server-manager/delete_addresses.cgi")>-1||t.indexOf("server-manager/exec_vsync.cgi")>-1||t.indexOf("server-manager/create_address.cgi")>-1||t.indexOf("cluster-usermin/upgrade.cgi")>-1||t.indexOf("cluster-usermin/install.cgi")>-1||t.indexOf("cluster-usermin/update.cgi")>-1||t.indexOf("ldap-useradmin/batch_exec.cgi")>-1||t.indexOf("ldap-useradmin/mass_delete_user.cgi")>-1||t.indexOf("usermin/upgrade.cgi")>-1||t.indexOf("usermin/update.cgi")>-1||t.indexOf("cpan/download.cgi")>-1||t.indexOf("cpan/install.cgi")>-1||t.indexOf("burner/save_profile.cgi")>-1||t.indexOf("burner/burn.cgi")>-1||t.indexOf("bind8/mass_create.cgi")>-1||t.indexOf("bind8/mass_rcreate.cgi")>-1||t.indexOf("bind8/mass_delete.cgi")>-1||t.indexOf("bind8/mass_update.cgi")>-1||t.indexOf("bind8/zone_dnssecmigrate_dt.cgi")>-1||t.indexOf("bind8/mass_rdelete.cgi")>-1||t.indexOf("bind8/enable_zonekey.cgi")>-1||t.indexOf("bind8/enable_zonedt.cgi")>-1||t.indexOf("bind8/disable_zonedt.cgi")>-1||t.indexOf("webalizer/save_log.cgi")>-1||t.indexOf("bacula-backup/restore.cgi")>-1||t.indexOf("bacula-backup/backup.cgi")>-1||t.indexOf("bacula-backup/gbackup.cgi")>-1||t.indexOf("bacula-backup/label.cgi")>-1||t.indexOf("bacula-backup/mount.cgi")>-1||t.indexOf("cluster-software/install_pack.cgi")>-1||t.indexOf("updown/download.cgi")>-1||t.indexOf("software/install_pack.cgi")>-1||t.indexOf("software/do_install.cgi")>-1||t.indexOf("software/apt_upgrade.cgi")>-1||t.indexOf("software/rhn_check.cgi")>-1||t.indexOf("software/yum_upgrade.cgi")>-1||t.indexOf("software/urpmi_upgrade.cgi")>-1||t.indexOf("software/csw_upgrade.cgi")>-1||t.indexOf("software/ports_upgrade.cgi")>-1||t.indexOf("webmin/letsencrypt.cgi")>-1||t.indexOf("webmin/delete_webmincron.cgi")>-1||t.indexOf("webmin/test_sendmail.cgi")>-1||t.indexOf("package-updates/update.cgi")>-1||t.indexOf("custom/run.cgi")>-1||t.indexOf("custom/sql.cgi")>-1||t.indexOf("virtualmin-init/save.cgi")>-1||t.indexOf("virtualmin-init/mass.cgi")>-1||t.indexOf("backup-config/save.cgi")>-1||t.indexOf("squid/init_cache.cgi")>-1||t.indexOf("squid/clear.cgi")>-1||t.indexOf("squid/chown.cgi")>-1||t.indexOf("ldap-client/check.cgi")>-1||t.indexOf("sendmail/del_mailqs.cgi")>-1||t.indexOf("sendmail/flushq.cgi")>-1||t.indexOf("init/mass_start_stop.cgi")>-1||t.indexOf("init/mass_launchd.cgi")>-1||t.indexOf("init/mass_systemd.cgi")>-1||t.indexOf("init/mass_upstarts.cgi")>-1||t.indexOf("init/mass_rcs.cgi")>-1||t.indexOf("init/save_services.cgi")>-1||t.indexOf("ldap-server/create.cgi")>-1||t.indexOf("change-user/change.cgi")>-1||t.indexOf("virtualmin-slavedns/save.cgi")>-1||t.indexOf("proc/trace.cgi")>-1||t.indexOf("proc/run.cgi")>-1||t.indexOf("proc/kill_proc_list.cgi")>-1||t.indexOf("fsdump/backup.cgi")>-1||t.indexOf("fsdump/restore.cgi")>-1||t.indexOf("webmin_search.cgi")>-1||t.indexOf("security-updates/update.cgi")>-1||t.indexOf("virtualmin-mailrelay/save.cgi")>-1||t.indexOf("cluster-copy/exec.cgi")>-1||t.indexOf("cron/exec_cron.cgi")>-1||t.indexOf("virtualmin-registrar/import.cgi")>-1||t.indexOf("virtualmin-registrar/save_ns.cgi")>-1||t.indexOf("virtualmin-registrar/transfer.cgi")>-1||t.indexOf("virtualmin-registrar/renew.cgi")>-1||t.indexOf("virtualmin-registrar/create.cgi")>-1||t.indexOf("htaccess-htpasswd/search.cgi")>-1||t.indexOf("acl/makedn.cgi")>-1||t.indexOf("acl/cert_issue.cgi")>-1||t.indexOf("acl/maketables.cgi")>-1||t.indexOf("acl/schema.cgi")>-1||t.indexOf("filter/move.cgi")>-1||t.indexOf("fetchmail/check.cgi")>-1||t.indexOf("servers/find.cgi")>-1||t.indexOf("cluster-cron/exec.cgi")>-1||t.indexOf("raid/mkfs.cgi")>-1||t.indexOf("lvm/pvmove.cgi")>-1||t.indexOf("lvm/mkfs.cgi")>-1||t.indexOf("ppp-client/init.cgi")>-1||t.indexOf("fdisk/mkfs.cgi")>-1||t.indexOf("fdisk/tunefs.cgi")>-1||t.indexOf("fdisk/fsck.cgi")>-1||t.indexOf("spam/deleteall_awl.cgi")>-1||t.indexOf("quota/check_quotas.cgi")>-1||t.indexOf("virtualmin-awstats/generate.cgi")>-1||t.indexOf("postfix/flushq.cgi")>-1||t.indexOf("status/delete_mons.cgi")>-1||t.indexOf("status/refresh.cgi")>-1||t.indexOf("/webmin/upgrade.cgi")>-1||t.indexOf("sysstats/display_all.cgi")>-1)?1:0}function unbuffered_header_processor_allow_scroll(){var e=["webmin_search.cgi","display_all.cgi"];return Test.arrContains(e,v___location_file)?0:1}function unbuffered_header_processor(e,t){if(t){var i=e,a=$(i.target),n=i.target.action,s=$(quirks.active_element()).attr("name"),_=$.trim(quirks.active_element().innerText),r=quirks.active_element().value;a.find('input[name="'+s+'"]')&&a.find('input[name="'+s+'"]').val()==(_||r)||$("").attr({type:"hidden",name:s,value:_||r}).appendTo(a);var o=Test.strContains(a.attr("enctype"),"multipart/form-data"),l=o?new FormData(a[0]):a.serialize();if(o||(l=Test.strContains(l,s+"=")?l:l+"&"+s+"="+r),$("input:file:visible").val())return v___theme_force_buffered=1,void a.submit()}var c=0,d=0,h=t?n:e,p=0,f=$('div[data-dcontainer="1"] > .panel.panel-default').clone();progress.start(),set_onbeforeunload_status(1,1),progressive_request=$.ajax({xhr:function(){var e=new window.XMLHttpRequest;return e.addEventListener("progress",function(e){var t=e.target.responseText,i=$(t).filter('div[data-dcontainer="1"]').html();if(Test.strContains(t,v___page_signin_form))return v___available_session=0,void progressive_request.abort();if(!!i&&d++,0===p&&(window.history.pushState(null,"",e.currentTarget.responseURL+(Test.strContains(e.currentTarget.responseURL,"?")?"&":"?")+$__theme_navigation),p=1,$(window).on("popstate.unbuffered",function(){$('.container-fluid[data-dcontainer="1"]').html(f),$(this).unbind("popstate.unbuffered"),setTimeout(function(){get_pjax_event_end_funcs(0)},40)})),d>3&&!c)i&&($('div[data-dcontainer="1"]').html(i),c++,unbuffered_header_processor_allow_scroll()&&($(".__page").hasScrollBar()?$(".__page").scrollTop($(".__page")[0].scrollHeight):$(".__page").scrollTop(0)),$(".__page").addClass("progressing"),get_pjax_event_end(!1,e.target));else if(c){var a=extract_content(t,'
',"
",0);a&&$('div[data-dcontainer="1"]').find(".panel-body").html(a),unbuffered_header_processor_allow_scroll()&&$(".__page").scrollTop($(".__page")[0].scrollHeight)}},!1),e},type:get_pjax_type(a||h),url:h,processData:!t||!o,contentType:(!t||!o)&&"application/x-www-form-urlencoded; charset=UTF-8",data:!!t&&l,complete:function(e){$('div[data-dcontainer="1"]').html($(e.responseText).filter('div[data-dcontainer="1"]').html()),get_pjax_event_end(!1,e),unbuffered_header_processor_allow_scroll()&&$(".__page").scrollTop($(".__page")[0].scrollHeight),$(".__page").removeClass("progressing"),progress.end(),set_onbeforeunload_status(0,1),unbuffered_header_post(e),Core.curModuleFile("package-updates","update.cgi")&&information_update()}})}function check_selected_text(){return getSelection?getSelection().toString():document.selection?document.selection.createRange().text:""}function check_location_resource(e){return v___location_resource===v___location_prefix+e}function check_current_file(e){return v___location_file==e}browser.internet_explorer()>5&&browser.internet_explorer()<=11&&(setTimeout(function(){var e="

"+theme_language("theme_xhred_browser_warning")+"

";theme_alert(theme_language("theme_xhred_global_warning"),e,!1,"md","danger",!1,"10 modal-ie-warning",0)},2e3),String.prototype.endsWith||(String.prototype.endsWith=function(e,t){var i=this.toString();("number"!=typeof t||!isFinite(t)||Math.floor(t)!==t||t>i.length)&&(t=i.length),t-=e.length;var a=i.lastIndexOf(e,t);return-1!==a&&a===t}),String.prototype.startsWith||String.prototype.startsWith||(String.prototype.startsWith=function(e,t){return t=t||0,this.indexOf(e,t)===t})),$.extend($.expr[":"],{containsi:function(e,t,i,a){return(e.textContent||e.innerText||"").toLowerCase().indexOf((i[3]||"").toLowerCase())>=0}}),Object.defineProperty(Array.prototype,"reOrder",{enumerable:!1,value:function(e,t){if(t>=this.length)for(var i=t-this.length;1+i--;)this.push(void 0);return this.splice(t,0,this.splice(e,1)[0]),this}}),jQuery.fn.simulateUserClick=function(){return this.each(function(){if("createEvent"in document){var e=this.ownerDocument,t=e.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,e.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null),this.dispatchEvent(t)}else this.click()})},function(e){e.fn.replaceTagName=function(t){for(var i=[],a=this.length;a--;){for(var n=document.createElement(t),s=this[a],_=s.attributes,r=_.length-1;r>=0;r--){var o=_[r];n.setAttribute(o.name,o.value)}n.innerHTML=s.innerHTML,e(s).after(n).remove(),i[a-1]=n}return e(i)}}(jQuery),jQuery.fn.selectText=function(){var e=document,t=this[0];if(e.body.createTextRange)(a=document.body.createTextRange()).moveToElementText(t),a.select();else if(window.getSelection){var i=window.getSelection(),a=document.createRange();a.selectNodeContents(t),i.removeAllRanges(),i.addRange(a)}},function(e){e.fn.replaceText=function(t,i,a){return this.each(function(){var n,s,_=this.firstChild,r=[];if(_)do{3===_.nodeType&&(s=(n=_.nodeValue).replace(t,i))!==n&&(!a&&/this.height()},$.fn.toggleCheckbox=function(){"checkbox"==$(this).attr("type")&&$(this).prop("checked",!$(this).is(":checked"))},jQuery.fn.confirmation=function(e,t){return e=$.extend({className:"btn-danger",timeout:2500},e),$(this).each(function(i,a){function n(){_.removeClass(e.className).data("confirmed",!1).find(".tmp_question").remove()}var s,_=$(a);_.html();_.data("confirmed",!1),_.on("click.confirm",function(i){i.preventDefault(),_.data("confirmed")?(t.call(_,i),n()):(_.data("confirmed",!0),_.append('?').addClass(e.className).bind("mouseout.confirm",function(){s=setTimeout(n,e.timeout)}).bind("mouseover.confirm",function(){clearTimeout(s)}))}).removeClass(e.className)}),$(this)},RegExp.quote=function(e){return e.replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")},$(function(){var e,t=".blinking-default:not(.hidden)";setInterval(function(){0==e?($(t).css("opacity","1"),e=1):(e=1)&&($(t).css("opacity","0"),e=0)},900)});if(get_server_data("debug")){if("object"==typeof localStorage)try{localStorage.setItem("d41d8cd98f00",1),localStorage.removeItem("d41d8cd98f00"),$_v__ls__a=1}catch(e){Storage.prototype._setItem=Storage.prototype.setItem,Storage.prototype.setItem=function(){},$_v__ls__a=0}if(page_init(),$___________lrs_r_l=0,$___________left=v___available_navigation?1:0,"undefined"==typeof settings_mailbox_slash_delimiter&&(settings_mailbox_slash_delimiter=!0),"undefined"==typeof settings_right_reload&&(settings_right_reload=!0),"undefined"==typeof settings_right_default_tab_usermin&&(settings_right_default_tab_usermin="/"),"undefined"==typeof settings_right_virtualmin_default&&(settings_right_virtualmin_default="sysinfo.cgi"),"undefined"==typeof settings_right_cloudmin_default&&(settings_right_cloudmin_default="sysinfo.cgi"),"undefined"==typeof settings_font_family&&(settings_font_family=0),"undefined"==typeof settings_navigation_color&&(settings_navigation_color="blue"),"undefined"==typeof settings_background_color&&(settings_background_color="gainsboro"),"undefined"==typeof settings_hide_top_loader&&(settings_hide_top_loader=!1),"undefined"==typeof settings_show_night_mode_link&&(settings_show_night_mode_link=!0),"undefined"==typeof settings_theme_options_button&&(settings_theme_options_button=!0),"undefined"==typeof settings_leftmenu_button_refresh&&(settings_leftmenu_button_refresh=!1),"undefined"==typeof settings_cm_view_palette&&(settings_cm_view_palette="monokai"),"undefined"==typeof settings_cm_editor_palette&&(settings_cm_editor_palette="monokai"),"undefined"==typeof settings_side_slider_palette&&(settings_side_slider_palette="grey"),"undefined"==typeof settings_side_slider_enabled&&(settings_side_slider_enabled=!0),"undefined"==typeof settings_side_slider_fixed&&(settings_side_slider_fixed=!1),"undefined"==typeof settings_side_slider_sysinfo_enabled&&(settings_side_slider_sysinfo_enabled=!0),"undefined"==typeof settings_side_slider_notifications_enabled&&(settings_side_slider_notifications_enabled=!0),"undefined"==typeof settings_side_slider_favorites_enabled&&(settings_side_slider_favorites_enabled=!0),config_portable_module_filemanager_hide_actions="undefined"==typeof localStorage||"false"!=localStorage.getItem(v___server_hostname+"-config_portable_module_filemanager_hide_actions"),config_portable_module_filemanager_hide_toolbar="undefined"!=typeof localStorage&&"true"==localStorage.getItem(v___server_hostname+"-config_portable_module_filemanager_hide_toolbar"),config_portable_module_filemanager_hovered_toolbar="undefined"!=typeof localStorage&&"true"==localStorage.getItem(v___server_hostname+"-config_portable_module_filemanager_hovered_toolbar"),config_portable_module_filemanager_notification_type="undefined"!=typeof localStorage&&localStorage.getItem(v___server_hostname+"-config_portable_module_filemanager_notification_type")?localStorage.getItem(v___server_hostname+"-config_portable_module_filemanager_notification_type"):2,config_portable_module_filemanager_calculate_size="undefined"!=typeof localStorage&&"true"==localStorage.getItem(v___server_hostname+"-config_portable_module_filemanager_calculate_size"),config_portable_module_filemanager_switch_user="undefined"==typeof localStorage||"false"!=localStorage.getItem(v___server_hostname+"-config_portable_module_filemanager_switch_user"),config_portable_module_filemanager_remember_tabs="undefined"==typeof localStorage||"false"!=localStorage.getItem(v___server_hostname+"-config_portable_module_filemanager_remember_tabs"),config_portable_module_xsql_fit_content_screen_height="undefined"!=typeof localStorage&&"true"==localStorage.getItem(v___server_hostname+"-config_portable_module_xsql_fit_content_screen_height"),"undefined"==typeof settings_hotkeys_active&&(settings_hotkeys_active=!0),"undefined"==typeof settings_button_tooltip&&(settings_button_tooltip=!0),"undefined"==typeof settings_hotkey_toggle_modifier&&(settings_hotkey_toggle_modifier="altKey"),"undefined"==typeof settings_hotkey_toggle_key_webmin&&(settings_hotkey_toggle_key_webmin="w"),"undefined"==typeof settings_hotkey_toggle_key_virtualmin&&(settings_hotkey_toggle_key_virtualmin="v"),"undefined"==typeof settings_hotkey_toggle_key_cloudmin&&(settings_hotkey_toggle_key_cloudmin="c"),"undefined"==typeof settings_hotkey_toggle_key_usermin&&(settings_hotkey_toggle_key_usermin="u"),"undefined"==typeof settings_hotkey_toggle_key_webmail&&(settings_hotkey_toggle_key_webmail="m"),"undefined"==typeof settings_hotkey_toggle_key_night_mode&&(settings_hotkey_toggle_key_night_mode="l"),"undefined"==typeof settings_hotkey_shell&&(settings_hotkey_shell="k"),"undefined"==typeof settings_hotkey_sysinfo&&(settings_hotkey_sysinfo="i"),"undefined"==typeof settings_hotkey_favorites&&(settings_hotkey_favorites="f"),"undefined"==typeof settings_hotkey_focus_search&&(settings_hotkey_focus_search="s"),"undefined"==typeof settings_hotkey_toggle_slider&&(settings_hotkey_toggle_slider="n"),"undefined"==typeof settings_hotkey_reload&&(settings_hotkey_reload="r"),"undefined"==typeof settings_global_passgen_format&&(settings_global_passgen_format="12|a-z,A-Z,0-9,#"),"undefined"==typeof settings_window_replace_timestamps&&(settings_window_replace_timestamps=!0),"undefined"==typeof settings_window_replaced_timestamp_format_full&&(settings_window_replaced_timestamp_format_full="LLLL"),"undefined"==typeof settings_window_replaced_timestamp_format_short&&(settings_window_replaced_timestamp_format_short="L, LTS"),"undefined"==typeof settings_leftmenu_vm_cm_dropdown_icons&&(settings_leftmenu_vm_cm_dropdown_icons=!0),"undefined"==typeof settings_hotkey_custom_1&&(settings_hotkey_custom_1=!1),"undefined"==typeof settings_hotkey_custom_2&&(settings_hotkey_custom_2=!1),"undefined"==typeof settings_hotkey_custom_3&&(settings_hotkey_custom_3=!1),"undefined"==typeof settings_hotkey_custom_4&&(settings_hotkey_custom_4=!1),"undefined"==typeof settings_hotkey_custom_5&&(settings_hotkey_custom_5=!1),"undefined"==typeof settings_hotkey_custom_6&&(settings_hotkey_custom_6=!1),"undefined"==typeof settings_hotkey_custom_7&&(settings_hotkey_custom_7=!1),"undefined"==typeof settings_hotkey_custom_8&&(settings_hotkey_custom_8=!1),"undefined"==typeof settings_hotkey_custom_9&&(settings_hotkey_custom_9=!1),"undefined"==typeof settings_side_slider_background_refresh_time&&(settings_side_slider_background_refresh_time=5),"undefined"==typeof settings_leftmenu_width&&(settings_leftmenu_width=260),"undefined"==typeof settings_sysinfo_easypie_charts&&(settings_sysinfo_easypie_charts=!0),"undefined"==typeof settings_sysinfo_easypie_charts_size?settings_sysinfo_easypie_charts_size=172:settings_sysinfo_easypie_charts_size=parseInt(settings_sysinfo_easypie_charts_size),"undefined"==typeof settings_sysinfo_easypie_charts_width?settings_sysinfo_easypie_charts_width=2:settings_sysinfo_easypie_charts_width=parseInt(settings_sysinfo_easypie_charts_width),"undefined"==typeof settings_sysinfo_easypie_charts_scale?settings_sysinfo_easypie_charts_scale=8:settings_sysinfo_easypie_charts_scale=parseInt(settings_sysinfo_easypie_charts_scale),"undefined"==typeof settings_sysinfo_theme_updates&&(settings_sysinfo_theme_updates=!1),"undefined"==typeof settings_sysinfo_theme_patched_updates&&(settings_sysinfo_theme_patched_updates=!1),"undefined"==typeof settings_sysinfo_csf_updates&&(settings_sysinfo_csf_updates=!1),"undefined"==typeof settings_sysinfo_link_mini&&(settings_sysinfo_link_mini=!1),"undefined"==typeof settings_loader_top&&(settings_loader_top=!0),"undefined"==typeof settings_animation_left&&(settings_animation_left=!0),settings_animation_left?$settings_animation_left_slide_time=175:$settings_animation_left_slide_time=0,"undefined"==typeof settings_animation_tabs&&(settings_animation_tabs=!1),settings_animation_tabs?$settings_animation_tabs_slide_time=350:$settings_animation_tabs_slide_time=0,"undefined"==typeof settings_show_terminal_link&&(settings_show_terminal_link=!0),"undefined"==typeof settings_favorites&&(settings_favorites=!0),$_v__ls__a?_v__ls__a="":_v__ls__a=" hidden",$(".mobile-menu-toggler:visible").length&&set_side_slider_visibility(0),navigation_display(),v___available_navigation?(page_adjust(settings_leftmenu_width,0),navigation_lock_width()):$("head").append(''),$("html").on("dblclick","body",function(){1!=$(this).find(".container-fluid").css("opacity")&&page_display()}),$.support.pjax&&v___available_navigation){var $t_av__excluded_selectors=':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])';$(document).on("submit","form",function(e){e.preventDefault(),get_onbeforeunload_status()?get_onbeforeunload_message(e,this):get_pjax_action_submit(e,this)}),$(document).on("click","a"+$t_av__excluded_selectors,function(e){get_onbeforeunload_status()?(e.preventDefault(),get_onbeforeunload_message(e,this)):get_pjax_action_click(e,this)}),$(document).on("pjax:error",function(e,t,i,a,s){if("error"===i){var n=$.active;if(n&&($.active=n-1),Test.strContains(s.url,"/csf/index.cgi"))return void theme_reload()}}),$(document).on("pjax:start",function(e,t){get_server_data("loading",1),"number"==typeof set_server_tmp_var_timeout&&clearTimeout(set_server_tmp_var_timeout)}),$(document).on("pjax:beforeReplace",function(e,t,i){navigation_form_control(0),pjax.clear.modules(i)}),$(document).on("ready pjax:beforeSend",function(e,t,i){progress.start();var a=$(e.relatedTarget),s=a.attr("href");s=s||i.url.replace(v___location_origin,""),clicked_in_nav_menu=a.parent().is("[data-linked], .favorites-dcontainer, .menu-exclude.ui-sortable-handle")||"object"==typeof i.callback&&"reference"===i.callback[0],clicked_in_nav_menu&&((Test.strContains(s,"mysql")||Test.strContains(s,"postgresql"))&&get_bundle_sql(),Test.strContains(s,v___module_file_manager)&&get_bundle_file_manager(),Test.strContains(s,"csf")&&get_bundle_csf()),"object"==typeof i.callback&&"beforeSend"===i.callback[0]&&(i.callback[3]?setTimeout(function(){window[i.callback[1].apply(this,i.callback[2])]},i.callback[3]):window[i.callback[1].apply(this,i.callback[2])])}),$(document).on("pjax:success",function(e,t,i,a,s){"object"==typeof s.callback&&"success"===s.callback[0]&&(s.callback[3]?setTimeout(function(){window[s.callback[1].apply(this,s.callback[2])]},s.callback[3]):window[s.callback[1].apply(this,s.callback[2])])}),$(document).on("pjax:complete",function(e,t,i){setTimeout(function(){$(".container-fluid-loading").length||progress.end()},10),get_server_data("loading",0,1)}),$(document).on("ready pjax:end",function(e,t){0!==v___available_session&&(navigation_form_control(1),get_pjax_event_end(e,t))}),$(document).on("pjax:popstate",function(e,t){setTimeout(function(){get_pjax_event_end_funcs(0)},40)})}v___available_session&&($.ajax({type:"GET",url:v___location_prefix+"/index.cgi/?xhr-get_theme_language=1",data:!1,dataType:"text",async:v___available_navigation,success:function(e){Test.strContains(e,v___page_signin_form)?v___available_session=0:(get_server_data("language-strings",JSON.parse(e)),"function"==typeof set_side_slider_labels&&set_side_slider_labels())}}),$.ajax({type:"GET",url:v___location_prefix+"/index.cgi/?xhr-get_available_modules=1",data:!1,dataType:"text",async:v___available_navigation,success:function(e){Test.strContains(e,v___page_signin_form)?v___available_session=0:get_server_data("available-modules",JSON.parse(e))}}),theme_config("load")),$(function(){if(1===v___initial_load&&v___available_navigation&&(page_display(),navigation_display()),bind_sameorigin(),time.tictac(),browser.safari(1)&&$("html").css("overflow","auto"),browser.safari()&&$(".__page").addClass("browser_safari"),!v___available_navigation&&$(".container-fluid").removeClass("col-lg-10 col-lg-offset-1").addClass("margined-top-15").parents("html").addClass("single_tab"),$("body").on("click","#quota-virtual-server-collapse a.ui_link, #quota-virtual-server-1-collapse a.ui_link, #bw-virtual-server-collapse a.ui_link, #bw-virtual-server-1-collapse a.ui_link",function(){var e=URI.parseQuery(URI($(this).attr("href")).query()).dom,t="virtualmin";$('.switch-toggle input:not([id="open_'+t+'"]):checked').length&&set_switch_position(t),setTimeout(function(){$("aside select").val()!=e&&get_navigation_menu_virtualmin(e)},300)}),$("body").on("click",".file-input-wrapper",function(){var e=$(this).prev('input[type="radio"]').add($(this).parent("td").prev("td").find('input[type="radio"]'));1===e.length&&e.prop("checked",!0)}),$("body").on("click",".--to-new-tab",function(){$(this).attr("target","_blank")}),$("body").on("click",".favorites-menu a.menu-exclude-link, .right_pane_favorites_link",function(){var e=Test.strContains($(this).attr("href"),"/virtual-server/")?"dom":!!Test.strContains($(this).attr("href"),"/server-manager/")&&"id",t=Test.strContains($(this).attr("href"),"gparent")?"gparent":e,i=URI.parseQuery(URI($(this).attr("href")).query())[t],a="dom"===e?"virtualmin":"id"===e?"cloudmin":"webmin",s=$('.switch-toggle input:not([id="open_'+a+'"]):checked').length;s&&set_switch_position(a),e?setTimeout(function(){$("aside select").val()!=i&&("dom"===e?get_navigation_menu_virtualmin(i):"id"===e&&get_navigation_menu_cloudmin(i))},300):s&&get_navigation_menu_webmin()}),$("body").on("click",function(e){var t=$("aside select");$(e.target).attr("class")&&0===$(e.target).attr("class").indexOf("select2")||t&&t.length>0&&t.hasClass("select2-hidden-accessible")&&t.select2("close")}),$("a").each(function(){$(this).find("img").length&&$(this).css("text-decoration","none")}),$("body").on("keydown",function(e){var t=e.keyCode?e.keyCode:e.which,i=String.fromCharCode(t).toLowerCase();!$('aside input[name="search"]').is(":focus")&&v___available_session&&($(".-shell-port-").hasClass("opened")||v___location_path!=v___location_prefix+"/server-manager/gvnc.cgi"&&v___location_path!=v___location_prefix+"/server-manager/login.cgi"&&v___location_path!=v___location_prefix+"/telnet/"&&v___location_path!=v___location_prefix+"/telnet/index.cgi"&&v___location_path!=v___location_prefix+"/stunnel/"&&v___location_path!=v___location_prefix+"/stunnel/index.cgi"&&($("input").is(":focus")||$("select").is(":focus")||$("textarea").is(":focus")||$(".modal.in").length||!i||!/[a-zA-Z0-9]/.test(i)||e.ctrlKey||e.altKey||e.metaKey||106===t||107===t||109===t||112===t||113===t||114===t||115===t||116===t||117===t||118===t||119===t||120===t||121===t||122===t||123===t||($(".dataTables_filter label input").length||$(".btn-accordion-filter").length?($(".btn-filter-top-right, .btn-accordion-filter").trigger("click"),$(".btn-filter-top-right .dataTable-mirror, .btn-accordion-filter .dataTable-mirror").focus().trigger("keyup")):setTimeout(function(){e.shiftKey&&"1"==i?$('aside input[name="search"]').focus().val("!"):$('aside input[name="search"]').focus().val(i)},1))))}),v___available_navigation&&($(document).ajaxSend(function(e,t,i){}).ajaxStop(function(){setTimeout(function(){0===v___available_session&&session.reauthenticate()},300)}).ajaxError(function(e,t){if(0===t.status){!$(".modal-connection-warning").length&&$.ajax({type:"GET",url:v___location_prefix+"/index.cgi/?xhr-error=1",data:!1,dataType:"text",error:function(e){var t=theme_language("theme_xhred_connection_error_details").replace("%server",location.host+v___location_prefix);theme_alert(theme_language("theme_xhred_connection_error"),t,!1,"md","danger","unplugged fa-lg","7 modal-connection-warning",0),setTimeout(function(){navigation_render_end(),navigation_detect(),reset_switch_position(),despinnerfy_buttons(),theme_shell_unlock()},200)}})}}),$.ajaxSetup({complete:function(e,t){(Test.strContains(e.responseText,v___page_signin_form)||e&&("auth-required=1"===e.getResponseHeader("Auth-type")||e.responseText&&e.responseText.indexOf("reset-fonts-grids-base")>-1&&e.responseText.indexOf("window.top.location = window.location;")>-1))&&session.reauthenticate()},beforeSend:function(e,t){t.url=navigation_trigger(t.url,1)}})),function(){if("function"==typeof Messenger.Message){var e,t,i,a={}.hasOwnProperty,s=function(e,t){function i(){this.constructor=e}for(var s in t)a.call(t,s)&&(e[s]=t[s]);return i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype,e};e=jQuery,i='
\n \n \n \n \n \n \n
',t=function(t){function a(){return a.__super__.constructor.apply(this,arguments)}return s(a,t),a.prototype.template=function(t){var s;return(s=a.__super__.template.apply(this,arguments)).append(e(i)),s},a}(Messenger.Message),Messenger.themes.air={Message:t},Messenger.options={extraClasses:"messenger-fixed messenger-on-bottom",theme:"air"}}}.call(this),v___available_navigation){0==v___user_level&&settings_side_slider_enabled&&settings_side_slider_fixed&&get_server_data("data-slider-fixed","1"),1===v___initial_load&&(console.log("Welcome to Authentic Theme "+(v___theme_version_git||v___theme_version)+"\nhttps://github.com/qooob/authentic-theme"),v___theme_navigation_active=$(".switch-toggle input:checked").attr("id"),v___theme_navigation_active=v___theme_navigation_active?v___theme_navigation_active.replace("open_",""):get_server_data("product"),setTimeout(function(){var e=function(){$t_uri_virtualmin&&(get_navigation_menu_virtualmin_summary(),get_default_virtualmin_content(!1)),$t_uri_cloudmin&&get_default_cloudmin_content(!1),$t_uri_virtualmin||$t_uri_cloudmin||get_default_content()};$.when(get_server_tmp_var("goto",0,e)).then(function(t,i,a){if(a.responseText&&!get_server_data("initial-wizard")){if(URI(a.responseText).hostname()!==URI(location.href).hostname())return void get_pjax_content(v___location_prefix+"/sysinfo.cgi");if(Test.strContains(a.responseText,"virtual-server")){var s=URI.parseQuery(URI(a.responseText).query()).dom;(!$t_uri_virtualmin||$t_uri_virtualmin&&s!=$('select[name="dom"]').val())&&(set_switch_position("virtualmin"),get_navigation_menu_virtualmin(s||!1))}else if(Test.strContains(a.responseText,"server-manager")){var n=URI.parseQuery(URI(a.responseText).query()).id;(!$t_uri_cloudmin||$t_uri_cloudmin&&n!=$('select[name="sid"]').val())&&(set_switch_position("cloudmin"),get_navigation_menu_cloudmin(n))}else $t_uri_webmin||3==v___user_level||(set_switch_position("webmin"),get_navigation_menu_webmin("webmin")),3==v___user_level&&!$t_uri_webmail&&Test.strContains(a.responseText,"mailbox")&&Core.moduleAvailable("mailbox")?(set_switch_position("webmail"),setTimeout(function(){get_navigation_menu_webmin("webmail")},10)):3!=v___user_level||$t_uri_usermin||Test.strContains(a.responseText,"mailbox")||(set_switch_position("usermin"),setTimeout(function(){get_navigation_menu_webmin("webmin")},10));get_pjax_content(a.responseText)}else e()})},20),$.each(theme_config("get_options"),function(e,t){localStorage.setItem(v___server_hostname+"-"+t,window[t])}),navigation_select_label(),setTimeout(function(){fetch_right_pane_favorites()},300)),$("body").on("focus",".sidebar-search",function(){navigation_init_autocomplete("c",!1)}),$("body").on("blur",".sidebar-search",function(){setTimeout(function(){navigation_init_autocomplete("c",!0)},150)});information_check();progress.configure(),navigator.userAgent.match(/(iPod|iPhone|iPad)/)&&$("#content").attr("style","-webkit-overflow-scrolling: touch !important; overflow-y: scroll !important;"),$('a[target="page"][href="link/"]').first().length&&$('a[target="page"][href="link/"]').first().attr("target","blank"),$("aside").on("click",".select2-container .select2-selection__arrow b",function(e){e.preventDefault(),e.stopPropagation()}),$("aside").on("click",'a[href*="/file/"], a[href*="history.cgi"]',function(e){e.preventDefault(),e.stopPropagation(),window.open($(this).attr("href"),"_blank")}),$("body").on("keydown",".sidebar-search",function(e){if(-1!==get_server_data("webmail")&&13==e.keyCode)return e.preventDefault(),!1}),$("body").on("click",".mobile-menu-toggler",function(e){$this=$(this),$("aside").hasClass("hidden-xs")?($(this).addClass("selected").find("button").addClass("btn-primary").removeClass("btn-default"),$(".__logo")&&($(".__logo").css("transform","translate(0px, 0px)"),setTimeout(function(){$(".__logo").transition({y:"-140px"},1.5*$settings_animation_left_slide_time)},1100)),$this.css("transform","translate(0px, 0px)"),$("aside").css("transform","translate(0px, 0px)"),$(".switch-toggle").css("display","none"),$("aside").removeClass("hidden-xs"),$("aside, .mobile-menu-toggler").transition({x:settings_leftmenu_width},2.5*$settings_animation_left_slide_time),$(".switch-toggle").css("display","table")):navigation_hide()}),$.each($('ul.navigation li.navigation_external a[href^="../servers/link.cgi/"]'),function(e,t){$(this).attr("href",v___location_href+$(this).attr("href").replace("../","").replace(/\/$/g,""))}),$("body").on("click",'.navigation a[target="page"], .user-links a[target="page"]',function(){navigation_hide()}),$("body").on("click",".navigation > li .navigation_external_link",function(e){e.preventDefault(),e.stopPropagation(),b=$(this),window.open(b.attr("href"),"_blank")}),$("body").on("click",".navigation > li:not('.sub-wrapper'):not('.menu-container'):not('.navigation_external'):not([data-linked])",function(e){if(e.preventDefault(),e.stopPropagation(),v___blocked_navigation=1,"undefined"==typeof $processing&&($processing=!1),!$processing){$processing=!0;var t=$("a",this).attr("href"),i=$("a",this).attr("target"),a=$(this);i&&$(".navigation > li > ul.sub > li").each(function(){$(this).removeClass("sub_active").find("span.current").remove()}),$.when($("#sidebar .navigation > li").each(function(){var e=$(this),t=e.find("a").is("[data-has-sub-link]");e.is(a)||(e.removeClass("active"),"#search"!=e.find("a").attr("href")&&t&&$(e.find("a").attr("href")).slideUp($settings_animation_left_slide_time))})).done(function(){a.hasClass("active")?a.removeClass("active"):"#hide"!=t&&!i&&a.addClass("active"),setTimeout(function(){$(t).is(":visible")&&"#hide"!=t&&!i?a.addClass("active"):a.removeClass("active"),$processing=!1},2*$settings_animation_left_slide_time>0?2*$settings_animation_left_slide_time:1),$(t).slideToggle($settings_animation_left_slide_time)}),"#search"==t&&$('#sidebar input[name="search"]').focus()}}),$("body").on("click",".navigation > li > ul.sub > li:not('.menu-container')",function(e){if(!e.target||!$(e.target).is("li")){var t=$(this);$(".navigation > li:not('.has-sub')").removeClass("sub_active").find("span.current-large").remove(),$(".navigation > li > ul.sub > li").each(function(){$(this).removeClass("sub_active").find("span.current").remove()}),$("#webmin_search_form").find('input[name="search"]').val(""),t.addClass("sub_active").append('')}}),$(".navigation > li > ul.sub").each(function(){""===$(this).attr("id")&&$(this).remove()}),$('.switch-toggle label[for^="reserve_empty"]').on("click",function(e){e.preventDefault()}),$("body").on("click",'a[data-refresh="true"]',function(e){e.preventDefault(),get_pjax_content(v___location_resource)}),$("body").on("click",function(e){$("ul.dropdown").is(e.target)||0!==$("ul.dropdown").has(e.target).length||0!==$(".open").has(e.target).length||$("ul.dropdown").removeClass("open")}),$(".switch-toggle").on("contextmenu","label",function(e){e.preventDefault();var t=$(this).attr("for").replace("open_","");if($(this).prev("input").is(":checked")){var i=v___location_href;set_server_tmp_var("goto",navigation_trigger(i,1)),setTimeout(function(){theme_open_new_tab(i)},200)}else if("virtualmin"===t||"cloudmin"===t){var a;a="cloudmin"===t?"/server-manager/index.cgi":"/virtual-server/index.cgi";var s=navigation_trigger(a,2);set_server_tmp_var("goto",navigation_trigger(s,1)),setTimeout(function(){theme_open_new_tab(s)},200)}else if("webmail"===t){n=v___location_prefix+"/mailbox/index.cgi?"+$__theme_navigation;set_server_tmp_var("goto",navigation_trigger(n,1)),setTimeout(function(){theme_open_new_tab(n)},200)}else{var n=v___location_prefix+"/sysinfo.cgi?"+$__theme_navigation;set_server_tmp_var("goto",navigation_trigger(n,1)),setTimeout(function(){theme_open_new_tab(n)},200)}}),$(".switch-toggle").on("click","input.dynamic",function(e){if(get_onbeforeunload_status()){e.preventDefault();var t=$(".switch-toggle input:checked").attr("id");get_onbeforeunload_message([],{href:"::switch::"+t})}else"open_thirdlane"!=$(this).attr("id")?(set_switch_position($(this).attr("id").replace("open_","")),"open_dashboard"!=$(this).attr("id")?get_navigation_and_content($(this).attr("id").replace("open_",""),0,0):get_pjax_content(v___location_prefix+"/sysinfo.cgi")):location.href=v___location_prefix+"/asterisk/index.cgi"}),navigation_init_select(),$("aside").mCustomScrollbar({axis:"y",theme:"minimal",scrollInertia:100,scrollButtons:!1,callbacks:{onScroll:function(){$(".mobile-menu-toggler").is(":visible")||($(".form-control.sidebar-search").blur(),$("aside select")&&$("aside select").length>0&&$("aside select").hasClass("select2-hidden-accessible")&&$("aside select").select2("close"))}}}),$(".loader").append('
'),$("body").on("mouseover","#loader-close, #loader-close-sm",function(){$(this).find(".fa").removeClass("hidden")}).on("mouseout","#loader-close, #loader-close-sm",function(){$(this).find(".fa").addClass("hidden")}),$("body").on("click","#loader-close-sm > .fa",function(e){navigation_render_end()}),__shell_commands__i__=0,$(".form-control.sidebar-search").focus(function(e){$(".__logo").addClass("inited"),e.preventDefault(),e.stopPropagation(),__shell_commands__i__=0});var e=$("body").find(".-shell-port-"),t=e.find('input[data-command="true"]'),a=e.find("div[data-output]"),s=e.find(".-shell-port-container"),n=e.data("autocomplete");if($(window).keydown(function(i){var o=$("body").find(".-shell-port-").hasClass("opened");if(!o&&v___available_session&&(navigation_focus_search(i),theme_shortcuts(i)),38===i.keyCode&&(t.is(":focus")&&o||$(".form-control.sidebar-search").is(":focus"))&&i.preventDefault(),9===i.keyCode&&t.is(":focus")&&o){if(i.preventDefault(),!n)return;var r=t.val().trim().split(/\s+(?!-)/),_=r.length,l=r[0]&&-1===r[0].indexOf("-")?0:1,d=r[1]&&-1===r[1].indexOf(":")?0:1,c=t.val().endsWith(" "),p="service"===$.trim(r[0]),f="systemctl"===$.trim(r[0]),g=$.trim(r[0])&&$.trim(r[0]).startsWith("chown"),u=1!==r.length||!t.val().length||l||c?p||f?"services":g?"permissions":"lists":"commands";if(!$.trim(t.val()).length)return;var m=t.val(),h=e.find(".-shell-port-pwd").attr("data-pwd");if("services"===u){if("systemctl"===(u=p?"service":"systemctl")&&3!==r.length)return;m="service"==u?$.trim(r[1]):$.trim(r[2]),"service"===$.trim(r[0])&&(2===r.length&&c||3===r.length)&&(m=3===r.length?"::::"+$.trim(r[1])+"::::"+$.trim(r[2]):"::::"+$.trim(r[1]))}if(g){if(1===_&&!c)return void t.val($.trim(r[0])+" ");d&&$.trim(r[1])?c||r[2]?(u="lists",m=h+"/::::"+$.trim(r[2])):(u="groups",m=$.trim($.trim(r[1]).split(":")[1])):(u="users",m=$.trim(r[1]))}"lists"!==u||g||(m=h+"/::::"+$.trim(r[1])+"::::"+$.trim(r[0])+"::::"+$.trim(r[2])),$.ajax({type:"POST",url:v___location_prefix+"/index.cgi?xhr-get_autocompletes=1&xhr-get_autocomplete_type="+u+"&xhr-get_autocomplete_string="+m,data:!1,dataType:"json",success:function(e){if(Test.strContains(e,v___page_signin_form))v___available_session=0;else{var i=e.length;if(1===i)if("service"===u||"systemctl"===u||"lists"===u){var n=$.trim(r[0]),o=$.trim(r[0])+" "+$.trim(r[1]);"lists"===u?("cd"===n&&e[0].endsWith("/")||"cd"!==n)&&("cd"===n||"cat"===n?t.val(n+" "+e[0]):$.trim(r[2])?t.val(o+" "+e[0]):t.val(n+" "+e[0])):"service"!==n||2!==r.length&&3!==r.length?"systemctl"===n&&3===r.length&&t.val(n+" "+$.trim(r[1])+" "+e[0]):2===r.length?t.val(n+" "+e[0]+" "):3===r.length&&t.val($.trim(r[0])+" "+$.trim(r[1])+" "+e[0])}else g?d?c||r[2]?t.val($.trim(r[0])+" "+$.trim(r[1])+" "+e[0]):t.val($.trim(r[0])+" "+$.trim($.trim(r[1]).split(":")[0])+":"+e[0]+" "):t.val($.trim(r[0])+" "+e[0]+":"):t.val(e[0]+" ");else if(i>1){var _=""+$(".-shell-port-type").text()+" "+Convert.htmlEscape(t.val())+"\n";a.find("pre").append(_),a.find("pre").append(Convert.htmlEscape(e.join("\n")+"\n")),s.scrollTop(s[0].scrollHeight)}setTimeout(function(){t.focus().mousedown()},10)}},error:function(){}})}}),$(window).keyup(function(s){var n=$("body").find(".-shell-port-").hasClass("opened");if(n){var o=0,r=0,_=0,l=$(".form-control.sidebar-search"),d=$t_uri_cloudmin&&$('a[target="page"][href*="/server-manager/save_serv.cgi"][href*="shell=1"]').length,c=0,p=0;if(d)p=v___location_prefix+"/server-manager/shell.cgi";else{if(!Core.moduleAvailable("shell"))return;p=v___location_prefix+"/shell/index.cgi"}if((n||l.is(":focus"))&&8===s.keyCode&&(__shell_commands__i__=0),n?(o=$.trim(t.val()),r=1,_=1):(o=l.val(),r=void 0!==l.val(),_=0),(_||r&&(!o.trim()||o.trim().startsWith("!")))&&(38==s.keyCode||40==s.keyCode)){s.preventDefault(),s.stopPropagation(),void 0===localStorage.getItem(v___server_hostname+"-shell_commands")&&localStorage.setItem(v___server_hostname+"-shell_commands",JSON.stringify({}));var f=JSON.parse(localStorage.getItem(v___server_hostname+"-shell_commands")),g=f?f.length:0;if(0===__shell_commands__i__&&!o&&40==s.keyCode)return;if(0===__shell_commands__i__&&o&&38==s.keyCode)return void(c=1);if(__shell_commands__i__=40==s.keyCode?++__shell_commands__i__:--__shell_commands__i__,__shell_commands__i__<0&&38===s.keyCode?__shell_commands__i__=g-1:__shell_commands__i__>g&&(__shell_commands__i__=0),f&&f[__shell_commands__i__%g]){if(!$.isEmptyObject(f)&&(__shell_commands__i__==g&&38===s.keyCode||__shell_commands__i__==g&&40===s.keyCode||c))return n?t.val("").focus():l.val("").focus(),void(__shell_commands__i__=0);if(n){var u=f[__shell_commands__i__%g].replace(/^!/,"");t.val(Convert.htmlUnEscape(u)).focus()}}return}if(r&&o.trim().startsWith("!")&&27==s.keyCode)return s.preventDefault(),s.stopPropagation(),void l.val("").focus();if(r&&o.trim().startsWith("!")&&13==s.keyCode&&(l.addClass("_shell_form_"),s.preventDefault(),s.stopPropagation(),1==Core.moduleAvailable("shell")||d)){t.val(o.trim().substring(1)).focus(),theme_shell_open(e);var m=$.Event("keyup");m.keyCode=13,t.trigger(m)}var h=e.find(".-shell-port-container"),v=e.find(".-shell-port-pwd"),b=v.attr("data-pwd"),y=$.trim(t.val()),k=0,x=s.keyCode?s.keyCode:s.which,w=s.altKey&&"l"==String.fromCharCode(s.which).toLowerCase();if(27===x)return void theme_shell_close(e);if(t.is(":focus")||check_selected_text()||(s.ctrlKey||s.altKey||s.shiftKey||s.metaKey||t.val(t.val()+String.fromCharCode(s.which).toLowerCase()),t.focus()),(y&&13===x||w)&&(Core.moduleAvailable("shell")||d)){if(1===v___shell_processing)return;v___shell_processing=1,("clear"==y||"reset"==y||"exit"==y||w)&&(a.find("pre").html(""),theme_shell_clear(t),"exit"==y&&theme_shell_close(e)),"cd ~"==y&&(k=y,y="cd "+v.attr("data-home"));var C=!1;if("cd /"==y&&(C="/"),"history -c"==y){localStorage.setItem(v___server_hostname+"-shell_commands",JSON.stringify({}));O=""+$(".-shell-port-type").text()+" "+y+"\n";a.find("pre").append(O),theme_shell_clear(t),h.scrollTop(h[0].scrollHeight);var T='',S=new FormData($(T)[0]);$.ajax({type:"POST",url:p+"?stripped=1&stripped=2",data:S,dataType:"text",cache:!1,contentType:!1,processData:!1,success:function(e){Test.strContains(e,v___page_signin_form)&&(v___available_session=0)},error:function(e){}})}else if($.trim(y).startsWith("history -d")){var I=y.split(" ")[2];I&&I.length&&Test.numeric(I)&&$.ajax({type:"POST",url:v___location_prefix+"/index.cgi/?xhr-shell-pop="+I,data:!1,dataType:"text",cache:!1,contentType:!1,processData:!1,success:function(e){if("1"==e){var t=JSON.parse(localStorage.getItem(v___server_hostname+"-shell_commands"));localStorage.setItem(v___server_hostname+"-shell_commands",JSON.stringify(t.filter(function(e,t){return t!==parseInt(I)-1})))}},error:function(e){}}),theme_shell_clear(t)}else if(y.startsWith("history")){theme_shell_clear(t);var j=JSON.parse(localStorage.getItem(v___server_hostname+"-shell_commands")),D=j?j.length:0,P=D?D.toString().length:0,O=""+$(".-shell-port-type").text()+" "+y+"\n";$.each($(j),function(e,t){var a=e.toString().length,s="";for(i=0;i '+(d?'':"")+' ',A=new FormData($(q)[0]);t.attr("readonly","true"),$.ajax({type:"POST",url:p+"?stripped=1&stripped=2",data:A,dataType:"text",cache:!1,contentType:!1,processData:!1,success:function(e){if(Test.strContains(e,v___page_signin_form))v___available_session=0;else{var i=$(".-shell-port-type").text(),s=$(e).find("pre").html().replace(/>>/g,">"+i),n=$(e).find('select[name="pcmd"] option').map(function(){return Convert.htmlEscape($(this).val())}).get().reOrder(-1,0).reverse();localStorage.setItem(v___server_hostname+"-shell_commands",JSON.stringify(n)),newPwd=$(e).find('input[name="pwd"]').val(),a.find("pre").append(k?s.replace(new RegExp(y,"g"),k):s),v.text(C||(newPwd==v.attr("data-home")?"~":newPwd.split("/").filter(function(e){return""!=$.trim(e)}).slice(-1)[0])).attr("data-pwd",C||newPwd).attr("title",C||newPwd),theme_shell_adapt(),theme_shell_clear(t),h.scrollTop(h[0].scrollHeight),setTimeout(function(){v___shell_processing=0,__shell_commands__i__=0,t.removeAttr("readonly").focus()},100)}},error:function(e){}})}}}),$("body").on("keyup","#webmin_search_form",function(e){var t=$(this).find("input.sidebar-search"),i=t.val(),a=$("body").find(".-shell-port-");i&&13==e.keyCode&&(i.startsWith("!")?theme_shell_open(a,i):($(this).trigger("submit"),t.val("")))}),$("body").on("click","#right-side-tabs .right_pane_favorites_link",function(e){$(".favorites-menu-outer.hover + .favorites-menu-close").trigger("click")}),$("aside").on("click",".user-links > li.favorites",function(e){$(".favorites-menu-outer").addClass("hover")}),$("body").on("click","nav.favorites-menu li a",function(){}),$("body").on("click",".favorites-menu-close, nav.favorites-menu li a",function(){$(".favorites-menu-outer").removeClass("hover")}),$(document).on("keydown",function(e){"0px"==$(".favorites-menu-outer").css("left")&&27==e.keyCode&&$(".favorites-menu-outer").removeClass("hover")}),favicon=new Favico({animation:"none"}),0==v___user_level&&1==Core.moduleAvailable("status")){var o=localStorage.getItem(v___server_hostname+"-right-side-tab")?localStorage.getItem(v___server_hostname+"-right-side-tab"):"#right-side-tabs-sysinfo";$("body").append(' \t\t \t\t \t'),$('a[href="'+o+'"]:visible').length||$("#right-side-tabs ul.nav-tabs li a:visible").trigger("click"),$('#right-side-tabs .nav.nav-tabs a[data-toggle="tab"]').on("shown.bs.tab",function(e){var t=$(e.target).attr("href");localStorage.setItem(v___server_hostname+"-right-side-tab",t)}),$("body").on("click",".right-side-tabs-favorites-ctl",function(e){$(".favorites-menu-outer").hasClass("hover")?$(".favorites-menu-close").trigger("click"):$(".user-link.favorites").trigger("click")}),$("body").on("click",'#right-side-tabs a:not([data-toggle="collapse"]):not([role="tab"]):not(.list-group-item)',function(e){$(".right-side-tabs-toggler:not(.hidden) .btn-menu-toggler").trigger("click")}),$("body").on("click","#right-side-tabs .info-container .graph-container-fw",function(e){var t,i=Core.moduleAvailable("proc"),a=$(this).attr("class"),s=a.indexOf("cpu_")>-1?"cpu":a.indexOf("mem_")>-1?"mem":a.indexOf("virt_")>-1?"virt":"disk";"cpu"==s&&i?t=v___location_prefix+"/proc/index_cpu.cgi":"mem"!=s&&"virt"!=s||!i?"disk"==s&&Core.moduleAvailable("disk-usage")?t=v___location_prefix+"/disk-usage":"disk"==s&&Core.moduleAvailable("quota")&&(t=v___location_prefix+"/quota/list_users.cgi?dir=%2F"):t=v___location_prefix+"/proc/index_size.cgi",t&&get_pjax_content(t),$(".right-side-tabs-toggler:not(.hidden) .btn-menu-toggler").trigger("click")}),$("body").on("click","#right-side-tabs .fa-dashboard",function(e){get_onbeforeunload_status()?(this.href=v___location_prefix+"/sysinfo.cgi",get_onbeforeunload_message(e,this)):get_pjax_content(v___location_prefix+"/sysinfo.cgi"),$(".right-side-tabs-toggler:not(.hidden) .btn-menu-toggler").trigger("click")}),$("body").on("click","#right-side-tabs [data-click-about]",function(e){theme_update_notice(0),$(".right-side-tabs-toggler:not(.hidden) .btn-menu-toggler").trigger("click")})}else get_server_data("data-slider-fixed","0"),$(".right-side-tabs-toggler").addClass("hidden");$(".right-side-tabs .tab-pane").each(function(){$(this).css("height",$(window).height()-92)}),$(".right-side-tabs").on("mouseover",".list-group-item",function(e){$(this).find(".fa.fa-trash-o").removeClass("hidden"),!$(this).hasClass("opacity-0_3")&&$(this).find(".fa-clear-all").removeClass("hidden")}).on("mouseout",".list-group-item",function(e){$(this).find(".fa.fa-trash-o").addClass("hidden"),$(this).find(".fa-clear-all").addClass("hidden")}),$(".right-side-tabs").on("click","[data-port-href]",function(e){e.preventDefault(),e.stopPropagation(),open($(this).data("port-href"))}),$("body").on("click",'a[data-id^="csf_"], a[data-type^="csf_"]',function(e){get_bundle_csf()}),$("body").on("click",'a[href*="mysql"], a[href*="postgresql"]',function(e){get_bundle_sql()}),$(".right-side-tabs").on("click",'a.list-group-item[data-type="csf_deny"]',function(e){e.preventDefault(),e.stopPropagation(),$(e.target).is(".fa.fa-trash-o")||$(e.target).is(".fa-clear-all")||$(e.target).is("[data-port-href]")||(get_bundle_csf(),$("body").append(' \t\t\t\t\t\t'),$("form#csf_temporary_ip_entries").submit().remove(),$(".right-side-tabs-toggler:not(.hidden) .btn-menu-toggler").trigger("click"))}),$(".right-side-tabs").on("click contextmenu","a.list-group-item",function(e){if(e.preventDefault(),"contextmenu"==e.type)return $(this).find(".fa-clear-all").trigger("click"),e.preventDefault(),void e.stopPropagation();if($(e.target).is(".fa.fa-trash-o")||$(e.target).is(".fa-clear-all")||$(e.target).is("[data-port-href]")){if($(e.target).is(".fa-clear-all"))return $(this).addClass("opacity-0_3"),$(this).find(".fa-clear-all").addClass("hidden"),void slider_mark_notification_read($(this).attr("id"),$(this).data("type"),1,1);$(this).animate({opacity:"0"},$settings_animation_left_slide_time,function(){$(this).remove(),localStorage.removeItem(v___server_hostname+"-notifications_"+$(this).attr("id")+"_"+$(this).data("type")),slider_add_no_notifications()})}else $(this).attr("href")&&$(this).attr("href").length&&"undefined"!=$(this).attr("href")&&"csf_deny"!=$(this).attr("data-type")?($(this).addClass("opacity-0_3"),$(this).find(".fa-clear-all").addClass("hidden"),slider_mark_notification_read($(this).attr("id"),$(this).data("type"),1,1),$(".right-side-tabs-toggler:not(.hidden) .btn-menu-toggler").trigger("click"),get_pjax_content($(this).attr("href"))):($(this).addClass("opacity-0_3"),slider_mark_notification_read($(this).attr("id"),$(this).data("type"),1,1))}),$(".right-side-tabs-dismiss i.fa-reload").click(function(e){information_update()}),$(".right-side-tabs-dismiss i.fa-clear-all").click(function(e){slider_mark_group_notifications_read(!1)}),$(".right-side-tabs-dismiss i.fa-trash").click(function(e){$(".right-side-tabs .list-group-item:not(.no-notifications)").animate({opacity:"0"},$settings_animation_left_slide_time,function(){$(this).remove(),slider_remove_all_notifications(),slider_add_no_notifications()})}),$("body").on("click",".right-side-tabs-toggler:not(.hidden)",function(e){$(this).hasClass("opened")?($(this).removeClass("opened"),$(this).animate({right:"0"},$settings_animation_left_slide_time),$(".right-side-tabs").animate({right:"-302"},$settings_animation_left_slide_time)):($(this).addClass("opened"),$(this).animate({right:"300"},$settings_animation_left_slide_time),$(".right-side-tabs").animate({right:"0"},$settings_animation_left_slide_time))}),$(".right-side-tabs .tab-pane").mCustomScrollbar({axis:"y",theme:"minimal",scrollInertia:100,scrollButtons:!1}),settings_button_tooltip&&$("body").tooltip({selector:'li[data-toggle="tooltip"], li > a[data-toggle="tooltip"].menu-exclude-link, label[data-toggle="tooltip"]',container:"body",html:!0,delay:{show:800,hide:30}}),$("body").on("click",".user-link.palette-toggle",function(e){theme_toggle_night_mode()}),$("body").on("click",".user-link.ported-console",function(t){theme_shell_check_available()&&theme_shell_open(e)}),slider_add_no_notifications(),slider_check_notifications()}$("body").on("click","#headln2c > .favorites:not(.dummy), .xcustom-favorites:not(.dummy)",function(e){e.preventDefault();var t=URI(v___location).resource();if($(this).hasClass("fa-star-o")){$(this).removeClass("fa-star-o").addClass("fa-star text-warning");var i=$("#headln2c > span[data-main_title]").text(),a=$(".has-sub.active").text().trim(),s=$(".sub_active").text().trim(),n="",o="";($t_uri_virtualmin||$t_uri_cloudmin)&&(n=$("aside .ui_select option:selected").text()),$('body[class^="'+v___module_file_manager+'"]').length&&(o=(o=URI.parseQuery(URI(v___location).query()).path)?"["+o+"]":"[/]"),favorites_add(t,(n.length?n+" - ":"")+(a.length?a+"/":"")+(s.length?s+(i.trim().length?": ":""):"")+i.trim()+(o.length?" "+o:""),$t_uri_virtualmin?"virtualmin":$t_uri_cloudmin?"cloudmin":"webmin"),favorites_save()}else $(this).addClass("fa-star-o").removeClass("fa-star text-warning"),favorites_remove(t)}),1===v___initial_load&&favorites_init(),$("#favorites-menu .favorites-menu-content").on("mouseover","li:not(.exclude) span.f__c, li:not(.exclude) span.f__c small",function(){$(this).find("small").removeClass("hidden")}).on("mouseleave","li:not(.exclude) span.f__c, li:not(.exclude) span.f__c small",function(){$(this).find("small").addClass("hidden")}),$("#favorites-menu .favorites-menu-content").on("mouseover","li:not(.exclude) small",function(){$(this).find(".fa-times").removeClass("fa-times").addClass("fa-times-circle"),$(this).animate({"font-size":"0.7em","margin-top":"-2px","margin-left":"-1px"},160)}).on("mouseleave","li:not(.exclude) small",function(){$(this).find(".fa-times-circle").removeClass("fa-times-circle").addClass("fa-times"),$(this).animate({"font-size":"0.6em","margin-top":"-1px","margin-left":"0"},80)}),$("#favorites-menu .favorites-menu-content").on("click","li:not(.exclude) small .fa-times-circle",function(e){e.preventDefault(),e.stopPropagation(),favorites_remove($(this).parents("a").attr("href"))}),$(document).on("keydown",function(e){"0px"==$(".favorites-menu-outer").css("left")&&27==e.keyCode&&$(".favorites-menu-outer").removeClass("hover")}),$("body").on("shown.bs.modal",".modal.in",function(){$(this).focus()}),$("body").on("click",".module-help",function(e){popover_visibility_position($(this))}),$("body").on("click",function(e){$(e.target).is(".close-popover-trigger")&&$(e.target).parent().parent().popover("hide");var t=".showpass-popover";$(t).length&&$(t).each(function(){$(this).is(e.target)||0!==$(this).has(e.target).length||0!==$(".popover").has(e.target).length||$(this).popover("hide")})}),$('body:not(".mobile-menu-toggler")').on("click",function(e){$(e.target).is('.wbm-sm, input[name="product-switcher"], label[for*="open_"], span, .sidebar-search, .select2-selection__rendered, .select2-selection')||navigation_hide()}),$("body").on("change",'input[type="checkbox"], input[type="radio"]',function(e){var t=$(this).parents("tr.ui_checked_columns");t.length&&t.find("input:first").is($(this))&&($(this).is(":checked")?t.addClass("hl-aw"):t.removeClass("hl-aw"),"function"==typeof __r____changed&&__r____changed())}),$("body").on("click",".ui_link, .ui_link_replaced",function(){$.each($('input[type="checkbox"]'),function(){$(this).is(":checked")?$(this).parents("tr.ui_checked_columns").addClass("hl-aw"):$(this).parents("tr.ui_checked_columns").removeClass("hl-aw"),"function"==typeof __r____changed&&__r____changed()})}),$("body").on("click",'#extended_sysinfo-1 span[data-entry="nf_seen"]',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()}}})}),$("body").on("click",'#extended_sysinfo-1 span[data-entry="right_upok"]',function(e){e.preventDefault();$(this);var t=$('form[action*="package-updates/update.cgi"]');t.attr("method","POST"),$("").attr({type:"submit",value:1}).appendTo(t),$('input[name="u"]').appendTo(t),t.submit()}),$("body").on("click","a#atclearcache",function(e){set_onbeforeunload_status(0,0),Object.keys(localStorage).forEach(function(e){/^allowed_trigger|^notifications_|^sysinfo_/.test(e)&&localStorage.removeItem(v___server_hostname+"-"+e)}),$(".right-side-tabs-dismiss .fa-trash").trigger("click"),$(".right-side-tabs-dismiss .fa-refresh").trigger("click");var t=$(this);spinnerfy_buttons(t,[1.5,-33,"small",1e3])}),$("body").on("click",function(e){$(e.target).is('select[name="settings_navigation_color"], select[name="settings_background_color"], select[name="settings_side_slider_palette"], input[name="settings_side_slider_fixed"], label[for^="settings_side_slider_fixed"], div.aradio')||$(".right-side-tabs-toggler").hasClass("hidden")||!$(".right-side-tabs-toggler").hasClass("opened")||$(e.target).parents("#right-side-tabs").is("#right-side-tabs")||$(e.target).is(".btn-menu-toggler")||$(e.target).is(".fa-bell")||$(e.target).is("li.user-link.favorites")||$(e.target).is(".badge.badge-danger")||$(".right-side-tabs-toggler:not(.hidden) .btn-menu-toggler").trigger("click")}),$("body").on("click",".authentic_update:not(.disabled)",function(e){e.preventDefault(),e.stopPropagation();var t="1"==$(this).data("stable")?1:0;theme.update(t)}),$("body").on("click",'a[data-href="#theme-info"]',function(){theme_update_notice(0)}),$("body").on("hide.bs.modal","#update_notice",function(){$(this).hasClass("r")?($("body").append('
'),$("div.update_notice_overlay").animate({opacity:1},560,function(){setTimeout(function(){theme_reload()},100)})):($("#content").animate({"margin-left":___________content_initial_},280),$("aside").animate({"margin-left":0},280,function(){$(".right-side-tabs, .right-side-tabs-toggler").removeClass("pointer-events-none bg-filter-grayscale-opacity50"),$(".container-fluid").removeClass("bg-filter-blur-grayscale-opacity50")})),$("#update_notice").remove()}).on("show.bs.modal","#update_notice",function(){$("#update_notice").length;$(this);var e=$("aside").css("left");___________content_initial_=$("#content").css("margin-left"),________version_date_obj=$(this).find(".modal-body > h4:first-child"),________version_curr_text=________version_date_obj.text().split(/\s+/)[1],________version_first_text=$(".version_separator:last").text(),________multi_in_branch=$(".version_separator").length,_____version__x=________version_first_text+"..."+________version_curr_text,__release_time=v___theme_version_git.slice(-4,-2)+":"+v___theme_version_git.slice(-2),_____release_date_=________version_date_obj.text().match(/\(([^)]+)\)/),_____release_date=!!_____release_date_&&_____release_date_[1],__release_date_time=_____release_date+(__release_time.length>2?", "+__release_time:"");var t=$(".version_separator"),i=theme_language("theme_xhred_global_development_version");$.each(t,function(){$(this).attr("target","_blank")}),setTimeout(function(){$(".container-fluid").addClass("bg-filter-blur-grayscale-opacity50")},0),$("#content").animate({"margin-left":0},450),$("aside").animate({"margin-left":e},450),$(".right-side-tabs, .right-side-tabs-toggler").addClass("pointer-events-none bg-filter-grayscale-opacity50");var a=$(this).find(".modal-body h4"),s=$(this).find(".modal-body h4:first");if(!$(this).find(".modal-body h4:first .diffctl").length){r=new RegExp(RegExp.quote(________version_curr_text),"g");________multi_in_branch&&(a.replaceText(r,""+_____version__x+""),a.replaceText(/Version/,"Versions"));var n=$(this).find('.modal-body h4:contains("patch")').length;if(a.length&&n){var o=parseFloat($(this).find('.modal-body a[href*="authentic-theme/releases"]:first').text().match(/-?(?:\d+(?:\.\d*)?|\.\d+)/)[0]);s.append('
"+theme_language("theme_xhred_global_committed_on")+": "+__release_date_time+'" class="btn btn-transparent diffctl text-dark text-force-link-hover" href="https://github.com/qooob/authentic-theme/compare/'+o+'...master">
'),s.after(' '+i+"")}else s.append('
"+theme_language("theme_xhred_global_released_on")+": "+__release_date_time+'" class="btn btn-transparent diffctl changelogctl text-dark text-force-link-hover" href="https://github.com/qooob/authentic-theme/blob/master/CHANGELOG.md">
').append(''+________version_curr_text+"")}var r=new RegExp(RegExp.quote("("+_____release_date+")"),"g");a.replaceText(r,"");var _=[];$.each($(this).find('li span:contains("Fixed bugs")'),function(){var e=$(this),t=$(this).parent("li"),i=t.parent("ul"),a=t.find("a:not(.bctl)"),s=a.length;________multi_in_branch?(_.push(a),1===i.find("li").length&&(i.prev("hr").prev("a").remove(),i.prev("hr").remove(),i.addClass("no-data")),t.remove()):(e.html([e.text().slice(0,6),s+" ",e.text().slice(6)].join("")),t.find("a:first").before(''),t.find("a.bctl").click(function(e){a.toggleClass("hidden"),t.find("a.bctl i").toggleClass("fa-minus-square-o")}),a.addClass("obj-popup hidden"))}).promise().done(function(){if(________multi_in_branch&&!$(".bctl").length){$(".modal-body h4[data-development]").prev("hr").before('
  • Fixed bugs
'),$(".modal-body span[data-bugs-container]").append(_);function e(e,t){return parseInt($(t).text().replace("#",""))'),t.find("a.bctl").click(function(e){i.toggleClass("hidden"),t.find("a.bctl i").toggleClass("fa-minus-square-o")}),i.addClass("obj-popup hidden");var s=$("div[data-bugs]"),n=s.find("a:not(.bctl)").length;!n&&s.prev(".hr-dashed").remove(),!n&&s.remove()}var o=$(".modal#update_notice h4 span");if(Test.strContains(o.text(),"...")&&Test.strContains(o.text(),"patch")){var r=parseInt(o.text().split("...")[1].substr(-1,1));r&&$.each($(".version_separator:not(.version_dev)"),function(e,t){e+1!=r?$(this).addClass("hidden"):$(this).text($(this).text()+"-"+theme_language("theme_xhred_global_release").toLowerCase())})}})}),$("body").on("click contextmenu",'a[data-href*="/webmin/edit_webmincron.cgi"]',function(e){e.preventDefault(),e.stopPropagation();var t=Core.moduleAvailable("virtual-server")?"virtual-server":"system-status";theme_messenger(''+theme_language("theme_xhred_sysinfo_update_start")+'.   ',1800,"info","sysinfoRecollect",0),$("body").find("#system-status").find('h3 > a[data-refresh="system-status"]').addClass("disabled btn-inverse").removeClass("btn-success"),$.ajax({type:"GET",url:v___location_prefix+"/"+t+"/recollect.cgi",data:!1,dataType:"text",success:function(e){Test.strContains(e,v___page_signin_form)?v___available_session=0:(get_pjax_content(v___location_prefix+"/sysinfo.cgi",["success",theme_messenger,[''+theme_language("theme_xhred_sysinfo_update_end"),4,"success","sysinfoRecollect"],0]),information_update())},error:function(e){theme_messenger(''+theme_language("theme_xhred_sysinfo_update_failed"),20,"error","sysinfoRecollect")}})}),$("body").on("click",".csf-submit",function(e){e.preventDefault();var t=$(this).data("id");$("#"+t).submit()}),$("body").on("click",".inline-row input",function(e){$(this).is(":checked")?$(this).parents(".gl-icon-container").addClass("highlighted"):$(this).parents(".gl-icon-container").removeClass("highlighted")}),$("body").on("click contextmenu","div.icons-container, div.small-icons-container",function(e){if("click"===e.type&&$(e.target).is(".gl-icon-select")&&!v___available_navigation)e.preventDefault(),$(this).trigger("contextmenu");else if("contextmenu"===e.type){e.preventDefault(),$(this).find("input").is(":checked")?($(this).find("input").prop("checked",!1),$(this).removeClass("highlighted")):$(this).find("input").length&&($(this).find("input").prop("checked",!0),$(this).addClass("highlighted"));var t=$(e.target).is(".icon_link")?$(e.target).parent(".gl-icon-container").find(".fa-select, .fa-selected"):$(e.target).is(".gl-icon-select")?$(e.target):$(e.target).is("img")?$(e.target).parent("a").parent(".gl-icon-container").find(".fa-select, .fa-selected"):$(e.target).find(".fa-select, .fa-selected");t.hasClass("fa-select")?t.removeClass("fa-select").addClass("fa-selected"):t.removeClass("fa-selected").addClass("fa-select")}"function"==typeof db_check_selected&&db_check_selected()}),$("body").on("click",".row.icons-row.vertical-align .icons-container, .row.icons-row.vertical-align .small-icons-container",function(){$(this).hasClass("forged-xx-skip")}),__is_shifted=!1,__is_tabbed=!1,$(document).on("keyup keydown",function(e){var t=e.keyCode?e.keyCode:e.which;__is_shifted=e.shiftKey,__is_tabbed=9==t}),$("body").on("change",".onchange_form_submit_triggger",function(e){e.preventDefault(),$(this).parent("form").submit()}),$("body").on("click",'button.ui_form_end_submit[type="button"]:not(.disabled)',function(){var e=$(this).next('input[type="submit"].hidden'),t=$(this).parent(".btn-group").next('input[type="submit"].hidden');e.length||(e=t);var i=e.parent(),a=(i.parent("tr").find("form"),e.parents("form"));if(!a.length)return(a=e.closest("form")).length||(a=i.prev("form")),a.length||(a=i.prev().prev("form")),a.length||(a=i.prev().prev().prev("form")),a.append(a.nextUntil(i)),void $.each(i.find("select, input"),function(){$("").attr({type:"hidden",name:$(this).attr("name")?$(this).attr("name"):$(this).attr("id"),value:$(this).val()}).appendTo(a)}).promise().done(function(){a.submit()});$("").attr({type:"hidden",name:e.attr("name")?e.attr("name"):e.attr("id"),value:$.trim(e.val())}).appendTo(a),e.trigger("click")}),$("body").on("click",'.ui_form_end_submit:not(.disabled), .page_footer_submit:not(.disabled):not([href*="javascript:history"])',function(){var e=!1,t=!1;($(this).parents('form[action="fetch.cgi"]').length||$(this).parents('form[action="download.cgi"]').length&&!Core.curModule("cpan"))&&(e=1e3,t=1),Core.curModule("csf")?spinnerfy_buttons($(this),[2,-29,"small",t]):spinnerfy_buttons($(this),!1,e,t)}),$("body").on("dblclick",'.mppopup a[onclick*="fileclick("], .mppopup a[onclick*="parentdir("]',function(e){e.preventDefault()});var r=0,_=null;$("body").on("dblclick",'.mppopup a[onclick*="select("]',function(e){$(".mppopup button[data-mppopup_confirm]").trigger("click")}),$("body").on("click",'.mppopup a[onclick*="fileclick("], .mppopup a[onclick*="parentdir("]',function(e){if(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation(),r++,$data_mppopup_value.val($v__mpp__g_ol),1===r)_=setTimeout(function(){if(r=0,"undefined"==typeof $v__mpp__g_gp&&($v__mpp__g_gp=0),$v__mpp__g_gp){var e=chooser_get_link($v__mpp__g_op);chooser_get(e)}else chooser_control($v__mpp__g_ol,0,0);$v__mpp__g_gp=0},240);else if(clearTimeout(_),r=0,$v__mpp__g_olt){var t=chooser_get_link($v__mpp__g_op);chooser_get(t)}else chooser_control($v__mpp__g_ol,1,1)}),$("body").on("click",".mppopup button[data-mppopup_confirm]",function(){chooser_control($data_mppopup_value.val(),1,1)}),$("body").on("show.bs.modal",".mppopup",function(){v__mpp__ml_t__e=0,$data_mppopup_value=$(".mppopup input[data-mppopup_value]"),$('.mppopup input[data-role="tagsinput"]').tagsinput({onTagExists:function(e,t){t.hide().fadeIn(),v__mpp__ml_t__e=1}})}),$("body").on("shown.bs.modal",".mppopup",function(){var e=$("body .mppopup").find(".modal-head");$("body .mppopup").find(".modal-body"),$("body .mppopup").find(".modal-body table"),e.find(".mppopup_filter > input");setTimeout(function(){$(".mppopup_filter_input").animate({opacity:1},$settings_animation_tabs_slide_time),$(".mppopup_filter_input").focus()},0)}),$("body").on("hidden.bs.modal",".mppopup",function(){refInput.removeClass("refInputData"),$('.mppopup input[data-role="tagsinput"]').tagsinput("destroy"),$("body .mppopup").remove(),$("button[data-mmclick].disabled, input[data-mmclick].disabled").removeClass("disabled").removeAttr("disabled")}),$("body").on("click",".mppopup_multi_done",function(e){refInput.val($.trim($('.mppopup input[data-role="tagsinput"]').val().replace(/,/g," "))),$('.mppopup span[aria-hidden="true"]').trigger("click")}),$("body").on("keyup",".mppopup_filter_input",function(e){var t=e.which,i=$(".mppopup table tbody tr:visible"),a=i.find("td:first-child a");if(!$(".mppopup .breadcrumbx").length){if(13!=t||1!==i.length||e.shiftKey){if(13==t&&1===i.length&&e.shiftKey){a.trigger("click").trigger("dblclick");var s=$(".mppopup .mppopup_multi_done:visible");s.length&&setTimeout(function(){s.trigger("click")},240)}}else a.trigger("click");$(".mppopup table tbody tr.noresults").length||$(".mppopup table tbody").append(''+theme_language("theme_xhred_global_no_results_found")+"");var n=$(".mppopup table tbody tr:visible:not(.noresults)"),o=$(".mppopup table tbody tr.noresults");n.length?o.addClass("hidden"):o.removeClass("hidden")}}),$("body").on("click","button[data-mmclick]:not(.disabled), input[data-mmclick]:not(.disabled)",function(e){e.preventDefault(),e.stopPropagation(),refInput=chooser_get_target($(this),1);var t=$(this),i=refInput.val(),a=encodeURIComponent(i),s=$(this).attr("data-mmclick").match("window.open\\(['\"]*(.*?)(\\s*['\"]*,.*?)"),n=s[1].match(/(\w+\.[a-z]{3,4})/gi)[0].replace(".cgi","");if(t.addClass("disabled").attr("disabled","disabled"),s[1]){var o=s[1].replace("encodeURIComponent(ifield.value)","refInputCurrValSafe");o=o.replace('"+"',"").replace('"+',"").replace("refInputCurrValSafe",a);function r(e,t,a,s,o){var r;r=o?' ":' ";var _=' ";$("body").append(_),refInput.addClass("refInputData"),$("body .mppopup").modal("show")}function _(e){e[1].startsWith("/")?$v__mpp__g_op=e[1]:$v__mpp__g_op="/"+e[1]}$.ajax({type:"POST",url:o,data:!1,dataType:"text",success:function(e){if(Test.strContains(e,v___page_signin_form))v___available_session=0;else{var t=e,i=e.match(')<[^<]*)*<\/(script|link|meta)>/gi,"").replace(/<\/body>|<\/html>/gi,""),i=$(t).filter(".table").html(),a=$(t).filter(".table").prev("b").html();r(t=chooser_breadcrumbs(a)+''+i+"
",0,0,refInput,0)}}});else if($.isArray(i))_(i),$.ajax({type:"POST",url:$v__mpp__g_op,data:!1,dataType:"text",success:function(e){if(Test.strContains(e,v___page_signin_form))v___available_session=0;else{var t=e.replace(/<(!doctype|script|link|meta)\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/(script|link|meta)>/gi,"").replace(/<\/body>|<\/html>/gi,"");r(t=''+$(t).filter("table").html()+"
",0,0,refInput,1)}}});else{if($.isArray(i)&&-1===i[1].indexOf("&multi=1"))return;var a=t,s=$(a).filter("table").html();r(''+s+"
",0,0,refInput,0)}}}})}else $(this).removeClass("disabled"),$(this).attr("onclick",$(this).attr("data-mmclick")).removeAttr("data-mmclick"),$(this).trigger("click")}),$("body").on("click",".generate-password-key",function(e){var t=theme_password_generator();$("body").append('');var i=new Clipboard(".tmp-clipboard-obj");$(".tmp-clipboard-obj").trigger("click"),$(".tmp-clipboard-obj").remove(),i.destroy(),theme_messenger(''+theme_language("theme_xhred_password_generator_new_success").replace("%password",' '+Convert.htmlEscape(t)+" "),10,"success","newGeneratedPassword")}),$("body").on("click",'aside li[data-linked] a[href="'+v___location_prefix+'/shell/"], aside a[href="'+v___location_prefix+'/server-manager/shell.cgi"], aside a[href*="shell=1"]',function(e){e.preventDefault(),e.stopPropagation(),$(".user-link.ported-console:visible").trigger("click")}),$("body").on("change",'form[action*="save_log.cgi"] select[name="idx"]',function(e){var t=$("button.ui_submit.ui_form_end_submit");t.first().trigger("click"),t.addClass("disabled")}),$("body").on("keydown",'form[action*="save_log.cgi"] input[name="filter"], form[action*="save_log.cgi"] input[name="lines"]',function(e){if(13==e.keyCode){e.preventDefault();var t=$("button.ui_submit.ui_form_end_submit");t.first().trigger("click"),t.addClass("disabled")}}),$("aside").on("click",".__logout-link",function(e){progress.start(),get_server_tmp_var("goto",0)}),$("body").on("click",'button, input[type="submit"], a',function(e){v___page_activeElement=this}),$("body").on("click","._c__op_d",function(e){if($(e.target).is(this)){var t=$(this).find(".opener_trigger").first()[0];t&&t.click()}}),$(window).on("resize",function(){page_resized(),theme_shell_adapt()}),setTimeout(function(){window.onbeforeunload=function(){if(get_onbeforeunload_status())return progress.end(),!0;window.setTimeout(function(){v___available_navigation?"csf"===v___module&&(window.location=v___location_prefix?v___location_prefix+"/":"/"):progress.start()},0),window.onbeforeunload=null},$(function(){v___available_navigation||progress.end()})},100),theme_alert_charset(),favorites_detect(),page_render(0),setTimeout(function(){v___initial_load=0},1e3)})} \ No newline at end of file