From 326f36521dfc361122c81cefbd1b6a0bc07b432d Mon Sep 17 00:00:00 2001 From: Ilia Rostovtsev Date: Fri, 21 Apr 2017 10:13:34 +0300 Subject: [PATCH] Version 18.40 [hot-fix #721] --- CHANGELOG.md | 4 ++-- lang/ca.UTF-8 | 2 +- lang/cz.UTF-8 | 2 +- lang/da.UTF-8 | 2 +- lang/de.UTF-8 | 2 +- lang/en.UTF-8 | 2 +- lang/es.UTF-8 | 2 +- lang/fr.UTF-8 | 2 +- lang/it.UTF-8 | 2 +- lang/nl.UTF-8 | 2 +- lang/no.UTF-8 | 2 +- lang/pl.UTF-8 | 2 +- lang/pt.UTF-8 | 2 +- lang/ro_RO.UTF-8 | 2 +- lang/ru.UTF-8 | 2 +- unauthenticated/js/parent.js | 8 ++++++-- unauthenticated/js/parent.min.js | 2 +- unauthenticated/js/postinit.js | 16 +++++++++++++--- unauthenticated/js/postinit.min.js | 2 +- version | 2 +- 20 files changed, 38 insertions(+), 24 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9d2e996e9..892f95dd7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ ## Changelog -#### Version 18.41-beta41 (20 April, 2017) +#### Version 18.41-beta42 (21 April, 2017) * Added PGP signature to verify authenticity of the package * Added ability to install patched version of the theme directly from GitHub, to get early access on the new features [#707](https://github.com/qooob/authentic-theme/issues/707) * Added console script for updating the theme [#703](https://github.com/qooob/authentic-theme/issues/703) @@ -8,7 +8,7 @@ * Added error handler for saving files in background calls [#689](https://github.com/qooob/authentic-theme/issues/689) * Added controls for operations in icon mode [#684](https://github.com/qooob/authentic-theme/issues/684) * Added buttons instead of having plain links [#719](https://github.com/qooob/authentic-theme/issues/719) -* Fixed bugs [#687](https://github.com/qooob/authentic-theme/issues/687) [#688](https://github.com/qooob/authentic-theme/issues/688) [#692](https://github.com/qooob/authentic-theme/issues/692) [#693](https://github.com/qooob/authentic-theme/issues/693) [#695](https://github.com/qooob/authentic-theme/issues/695) [#696](https://github.com/qooob/authentic-theme/issues/696) [#697](https://github.com/qooob/authentic-theme/issues/697) [#698](https://github.com/qooob/authentic-theme/issues/698) [#699](https://github.com/qooob/authentic-theme/issues/699) [#700](https://github.com/qooob/authentic-theme/issues/700) [#701](https://github.com/qooob/authentic-theme/issues/701) [#702](https://github.com/qooob/authentic-theme/issues/702) [#704](https://github.com/qooob/authentic-theme/issues/704) [#706](https://github.com/qooob/authentic-theme/issues/706) [#710](https://github.com/qooob/authentic-theme/issues/710) [#711](https://github.com/qooob/authentic-theme/issues/711) [#713](https://github.com/qooob/authentic-theme/issues/713) [#714](https://github.com/qooob/authentic-theme/issues/714) [#716](https://github.com/qooob/authentic-theme/issues/716) [#718](https://github.com/qooob/authentic-theme/issues/718) [#720](https://github.com/qooob/authentic-theme/issues/720) [#51526](https://www.virtualmin.com/node/51526) [#51807](https://www.virtualmin.com/node/51807) +* Fixed bugs [#687](https://github.com/qooob/authentic-theme/issues/687) [#688](https://github.com/qooob/authentic-theme/issues/688) [#692](https://github.com/qooob/authentic-theme/issues/692) [#693](https://github.com/qooob/authentic-theme/issues/693) [#695](https://github.com/qooob/authentic-theme/issues/695) [#696](https://github.com/qooob/authentic-theme/issues/696) [#697](https://github.com/qooob/authentic-theme/issues/697) [#698](https://github.com/qooob/authentic-theme/issues/698) [#699](https://github.com/qooob/authentic-theme/issues/699) [#700](https://github.com/qooob/authentic-theme/issues/700) [#701](https://github.com/qooob/authentic-theme/issues/701) [#702](https://github.com/qooob/authentic-theme/issues/702) [#704](https://github.com/qooob/authentic-theme/issues/704) [#706](https://github.com/qooob/authentic-theme/issues/706) [#710](https://github.com/qooob/authentic-theme/issues/710) [#711](https://github.com/qooob/authentic-theme/issues/711) [#713](https://github.com/qooob/authentic-theme/issues/713) [#714](https://github.com/qooob/authentic-theme/issues/714) [#716](https://github.com/qooob/authentic-theme/issues/716) [#718](https://github.com/qooob/authentic-theme/issues/718) [#720](https://github.com/qooob/authentic-theme/issues/720) [#721](https://github.com/qooob/authentic-theme/issues/721) [#51526](https://www.virtualmin.com/node/51526) [#51807](https://www.virtualmin.com/node/51807) ### Version 18.40 (21 March, 2017) * Added ability to use theme configuration for all users [#640](https://github.com/qooob/authentic-theme/issues/640#issuecomment-287572703) diff --git a/lang/ca.UTF-8 b/lang/ca.UTF-8 index 57943b65f..53b93c5d4 100644 --- a/lang/ca.UTF-8 +++ b/lang/ca.UTF-8 @@ -178,7 +178,7 @@ settings_hotkey_toggle_key_cloudmin=Drecera per Cloudmin settings_hotkey_toggle_key_usermin=Drecera per Usermin settings_hotkey_toggle_key_webmail=Drecera pel Correu settings_hotkey_sysinfo=Drecera del tauler -settings_hotkey_shell=Drecera pel shell +settings_hotkey_shell=Drecera pel terminal settings_hotkey_favorites=Drecera pels favorits settings_hotkey_focus_search=Drecera per cerques settings_hotkey_reload=Drecera per recarregar pàgina diff --git a/lang/cz.UTF-8 b/lang/cz.UTF-8 index ea370ec6f..87313541c 100644 --- a/lang/cz.UTF-8 +++ b/lang/cz.UTF-8 @@ -177,7 +177,7 @@ settings_hotkey_toggle_key_cloudmin=Klávesová zkratka pro Cloudmin settings_hotkey_toggle_key_usermin=Klávesová zkratka pro Usermin settings_hotkey_toggle_key_webmail=Klávesová zkratka pro Mail settings_hotkey_sysinfo=Hotkey for dashboard -settings_hotkey_shell=Hotkey for shell +settings_hotkey_shell=Hotkey for terminal settings_hotkey_favorites=Hotkey for favorites settings_hotkey_focus_search=Klávesová zkratka pro hledání settings_hotkey_reload=Klávesová zkratka pro opetovné načtení stránky diff --git a/lang/da.UTF-8 b/lang/da.UTF-8 index b8deb8a1e..f3f4cf5c3 100644 --- a/lang/da.UTF-8 +++ b/lang/da.UTF-8 @@ -178,7 +178,7 @@ settings_hotkey_toggle_key_cloudmin=Hotkey for Cloudmin settings_hotkey_toggle_key_usermin=Hotkey for Usermin settings_hotkey_toggle_key_webmail=Hotkey for Mail settings_hotkey_sysinfo=Hotkey for dashboard -settings_hotkey_shell=Hotkey for shell +settings_hotkey_shell=Hotkey for terminal settings_hotkey_favorites=Hotkey for favorites settings_hotkey_focus_search=Hotkey for search field settings_hotkey_reload=Hotkey for page reload diff --git a/lang/de.UTF-8 b/lang/de.UTF-8 index b7d84a712..60a1e1ee4 100644 --- a/lang/de.UTF-8 +++ b/lang/de.UTF-8 @@ -178,7 +178,7 @@ settings_hotkey_toggle_key_cloudmin=Hotkey for Cloudmin settings_hotkey_toggle_key_usermin=Hotkey for Usermin settings_hotkey_toggle_key_webmail=Hotkey for Mail settings_hotkey_sysinfo=Hotkey for dashboard -settings_hotkey_shell=Hotkey for shell +settings_hotkey_shell=Hotkey for terminal settings_hotkey_favorites=Hotkey for favorites settings_hotkey_focus_search=Hotkey for search field settings_hotkey_reload=Hotkey for page reload diff --git a/lang/en.UTF-8 b/lang/en.UTF-8 index 85c01d8a5..565bb02f9 100644 --- a/lang/en.UTF-8 +++ b/lang/en.UTF-8 @@ -177,7 +177,7 @@ settings_hotkey_toggle_key_cloudmin=Hotkey for Cloudmin settings_hotkey_toggle_key_usermin=Hotkey for Usermin settings_hotkey_toggle_key_webmail=Hotkey for Mail settings_hotkey_sysinfo=Hotkey for dashboard -settings_hotkey_shell=Hotkey for shell +settings_hotkey_shell=Hotkey for terminal settings_hotkey_favorites=Hotkey for favorites settings_hotkey_focus_search=Hotkey for search field settings_hotkey_reload=Hotkey for page reload diff --git a/lang/es.UTF-8 b/lang/es.UTF-8 index 7cf9a207b..5f952018b 100644 --- a/lang/es.UTF-8 +++ b/lang/es.UTF-8 @@ -178,7 +178,7 @@ settings_hotkey_toggle_key_cloudmin=Hotkey for Cloudmin settings_hotkey_toggle_key_usermin=Hotkey for Usermin settings_hotkey_toggle_key_webmail=Hotkey for Mail settings_hotkey_sysinfo=Hotkey for dashboard -settings_hotkey_shell=Hotkey for shell +settings_hotkey_shell=Hotkey for terminal settings_hotkey_favorites=Hotkey for favorites settings_hotkey_focus_search=Hotkey for search field settings_hotkey_reload=Hotkey for page reload diff --git a/lang/fr.UTF-8 b/lang/fr.UTF-8 index 0a7f25541..8c5775ef5 100644 --- a/lang/fr.UTF-8 +++ b/lang/fr.UTF-8 @@ -178,7 +178,7 @@ settings_hotkey_toggle_key_cloudmin=Hotkey for Cloudmin settings_hotkey_toggle_key_usermin=Hotkey for Usermin settings_hotkey_toggle_key_webmail=Hotkey for Mail settings_hotkey_sysinfo=Hotkey for dashboard -settings_hotkey_shell=Hotkey for shell +settings_hotkey_shell=Hotkey for terminal settings_hotkey_favorites=Hotkey for favorites settings_hotkey_focus_search=Hotkey for search field settings_hotkey_reload=Hotkey for page reload diff --git a/lang/it.UTF-8 b/lang/it.UTF-8 index 4ea3b6ded..564cbd7f1 100644 --- a/lang/it.UTF-8 +++ b/lang/it.UTF-8 @@ -178,7 +178,7 @@ settings_hotkey_toggle_key_cloudmin=Hotkey for Cloudmin settings_hotkey_toggle_key_usermin=Hotkey for Usermin settings_hotkey_toggle_key_webmail=Hotkey for Mail settings_hotkey_sysinfo=Hotkey for dashboard -settings_hotkey_shell=Hotkey for shell +settings_hotkey_shell=Hotkey for terminal settings_hotkey_favorites=Hotkey for favorites settings_hotkey_focus_search=Hotkey for search field settings_hotkey_reload=Hotkey for page reload diff --git a/lang/nl.UTF-8 b/lang/nl.UTF-8 index 05bb7c3ab..d4a3e765e 100644 --- a/lang/nl.UTF-8 +++ b/lang/nl.UTF-8 @@ -178,7 +178,7 @@ settings_hotkey_toggle_key_cloudmin=Hotkey for Cloudmin settings_hotkey_toggle_key_usermin=Hotkey for Usermin settings_hotkey_toggle_key_webmail=Hotkey for Mail settings_hotkey_sysinfo=Hotkey for dashboard -settings_hotkey_shell=Hotkey for shell +settings_hotkey_shell=Hotkey for terminal settings_hotkey_favorites=Hotkey for favorites settings_hotkey_focus_search=Hotkey for search field settings_hotkey_reload=Hotkey for page reload diff --git a/lang/no.UTF-8 b/lang/no.UTF-8 index 75fcc735f..278502fe0 100644 --- a/lang/no.UTF-8 +++ b/lang/no.UTF-8 @@ -178,7 +178,7 @@ settings_hotkey_toggle_key_cloudmin=Hotkey for Cloudmin settings_hotkey_toggle_key_usermin=Hotkey for Usermin settings_hotkey_toggle_key_webmail=Hotkey for Mail settings_hotkey_sysinfo=Hotkey for dashboard -settings_hotkey_shell=Hotkey for shell +settings_hotkey_shell=Hotkey for terminal settings_hotkey_favorites=Hotkey for favorites settings_hotkey_focus_search=Hotkey for search field settings_hotkey_reload=Hotkey for page reload diff --git a/lang/pl.UTF-8 b/lang/pl.UTF-8 index 799ebf42f..d653129bd 100644 --- a/lang/pl.UTF-8 +++ b/lang/pl.UTF-8 @@ -178,7 +178,7 @@ settings_hotkey_toggle_key_cloudmin=Hotkey for Cloudmin settings_hotkey_toggle_key_usermin=Hotkey for Usermin settings_hotkey_toggle_key_webmail=Hotkey for Mail settings_hotkey_sysinfo=Hotkey for dashboard -settings_hotkey_shell=Hotkey for shell +settings_hotkey_shell=Hotkey for terminal settings_hotkey_favorites=Hotkey for favorites settings_hotkey_focus_search=Hotkey for search field settings_hotkey_reload=Hotkey for page reload diff --git a/lang/pt.UTF-8 b/lang/pt.UTF-8 index 9ca578560..57a31ffa9 100644 --- a/lang/pt.UTF-8 +++ b/lang/pt.UTF-8 @@ -178,7 +178,7 @@ settings_hotkey_toggle_key_cloudmin=Hotkey for Cloudmin settings_hotkey_toggle_key_usermin=Hotkey for Usermin settings_hotkey_toggle_key_webmail=Hotkey for Mail settings_hotkey_sysinfo=Hotkey for dashboard -settings_hotkey_shell=Hotkey for shell +settings_hotkey_shell=Hotkey for terminal settings_hotkey_favorites=Hotkey for favorites settings_hotkey_focus_search=Hotkey for search field settings_hotkey_reload=Hotkey for page reload diff --git a/lang/ro_RO.UTF-8 b/lang/ro_RO.UTF-8 index 1b19265b7..19be1bfff 100644 --- a/lang/ro_RO.UTF-8 +++ b/lang/ro_RO.UTF-8 @@ -178,7 +178,7 @@ settings_hotkey_toggle_key_cloudmin=Tastă Rapidă pentru Cloudmin settings_hotkey_toggle_key_usermin=Tastă Rapidă pentru Usermin settings_hotkey_toggle_key_webmail=Tastă Rapidă pentru Mail settings_hotkey_sysinfo=Hotkey for dashboard -settings_hotkey_shell=Hotkey for shell +settings_hotkey_shell=Hotkey for terminal settings_hotkey_favorites=Tastă Rapidă pentru Favorite settings_hotkey_focus_search=Tastă Rapidă pentru câmpul de căutare settings_hotkey_reload=Tastă Rapidă pentru reîncărcarea paginii diff --git a/lang/ru.UTF-8 b/lang/ru.UTF-8 index fefb34674..f7c8edfe8 100644 --- a/lang/ru.UTF-8 +++ b/lang/ru.UTF-8 @@ -181,7 +181,7 @@ settings_hotkey_toggle_key_cloudmin=Hotkey for Cloudmin settings_hotkey_toggle_key_usermin=Hotkey for Usermin settings_hotkey_toggle_key_webmail=Hotkey for Mail settings_hotkey_sysinfo=Hotkey for dashboard -settings_hotkey_shell=Hotkey for shell +settings_hotkey_shell=Hotkey for terminal settings_hotkey_favorites=Hotkey for favorites settings_hotkey_focus_search=Hotkey for search field settings_hotkey_reload=Hotkey for page reload diff --git a/unauthenticated/js/parent.js b/unauthenticated/js/parent.js index cfbae8a18..2c5a11b1b 100644 --- a/unauthenticated/js/parent.js +++ b/unauthenticated/js/parent.js @@ -1059,10 +1059,14 @@ $(window).keyup(function(D) { }); $("body").on("submit", "#webmin_search_form", function(c) { var e = $(this), - d = !e.find("input.sidebar-search").val().trim().startsWith("!"), + g = e.find("input.sidebar-search"), + d = !g.val().trim().startsWith("!"), f = t__wi_p.$(".form-control.sidebar-search"); if (!d || !$.trim(f.val())) { - c.preventDefault() + c.preventDefault(); + if (ported_shell_available()) { + ported_shell_open(shell, g.val()) + } } setTimeout(function() { t__wi_p.$(".navigation > li:not('.has-sub')").removeClass("sub_active").find("span.current-large").remove(); diff --git a/unauthenticated/js/parent.min.js b/unauthenticated/js/parent.min.js index 763544442..05802e96a 100644 --- a/unauthenticated/js/parent.min.js +++ b/unauthenticated/js/parent.min.js @@ -3,4 +3,4 @@ * Copyright 2014-2017 Ilia Rostovtsev * Licensed under MIT (https://github.com/qooob/authentic-theme/blob/master/LICENSE) */ -;if($access_level==0){if(settings_side_slider_enabled&&settings_side_slider_fixed){t__wi_p.$("html").attr("data-slider-fixed","1")}}if(t__wi_p.$___________initial===1){console.log("Welcome to Authentic Theme "+($g__t__gver?$g__t__gver:$g__t__ver)+"\nhttps://github.com/qooob/authentic-theme")}typeof t__wi_p.t___p__xhr_l=="undefined"?t__wi_p.t___p__xhr_l=0:false;typeof t__wi_p.t___p__ll=="undefined"?t__wi_p.t___p__ll=0:false;$(function(){t___wi.parent.$___________left=1});t__wi_p.$("body").on("focus",".sidebar-search",function(){if(typeof t__wi_p.$('iframe[name="page"]').get(0).contentWindow.t__au__c___i=="function"){t__wi_p.$('iframe[name="page"]').get(0).contentWindow.t__au__c___i("c",false)}else{t__wi_p.t__au__c___i("c",false)}});t__wi_p.$("body").on("blur",".sidebar-search",function(){setTimeout(function(){t__wi_p.t__au__c___i("c",true)},150)});function __si__bg_upd_exec(){if(t__wi_p.$___ajax_requested_url.indexOf("?xhr-buttons=1")>-1||t__wi_p.$___ajax_requested_url.indexOf("?xhr-navigation=1")>-1){return}if(t__wi_p.$('iframe[name="page"]').contents().find("body .modal.in").length){return}if($access_level==0){t__wi_p.$___ajax_requested_url="/index.cgi/?xhr-info=1";var d=t__wi_p.$('iframe[name="page"]').contents().find("body").find(".page.__sytem_information"),a=(d.length&&__num())?d:0;if(!$("#right-side-tabs-sysinfo .graph-container").length){$("#right-side-tabs .info-container").html(get_right_panel_sysinfo_data())}if(a){$(a).find('h3 > a[data-refresh="system-status"]').addClass("disabled").find("i").addClass("fa-spin")}var c=$(".right-side-tabs-dismiss .fa-reload");c.addClass("fa-spin-fast");setTimeout(function(){c.removeClass("fa-spin-fast")},3000);$.ajax({type:"GET",url:$_____link_full+"/index.cgi/?xhr-info=1",data:false,dataType:"json",success:function(e){$.each(e,function(l,n){if(l=="cpu_percent"||l=="mem_percent"||l=="virt_percent"||l=="disk_percent"){if(is_numeric(n)){localStorage.setItem($hostname+"-sysinfo_"+l+"_stats",n)}else{localStorage.setItem($hostname+"-sysinfo_"+l+"_stats","")}}else{}if(a){$(a).find('span[data-id="sysinfo_'+l+'"]').html(n);if(l=="local_time"||l=="uptime"||l=="running_proc"){var f=$(a).find('span[data-id="sysinfo_'+l+'"]'),m=$(a).find('span[data-id="sysinfo_'+l+'"] a'),o=$(a).find('span[data-id="sysinfo_'+l+'"]').text();if(l=="local_time"&&settings_window_replace_timestamps){if(m&&m.length){o=$(a).find('span[data-id="sysinfo_'+l+'"] a').data("convertible-timestamp-full");f.html(m.html(moment.unix(o).format(settings_window_replaced_timestamp_format_full)))}else{o=$(a).find('span[data-id="sysinfo_'+l+'"] > span').data("convertible-timestamp-full");f.html(moment.unix(o).format(settings_window_replaced_timestamp_format_full))}}else{(m&&m.length)&&f.html(m.html(o))}}if($(a).find('.piechart[data-charts="sysinfo_'+l+'"]').length){var j=t__wi_p.$('iframe[name="page"]').get(0),h=(typeof t__wi_p.$('iframe[name="page"]').get(0).contentWindow.$==="function"),g=(h?t__wi_p.$('iframe[name="page"]').get(0).contentWindow.$("body").find('.piechart[data-charts="sysinfo_'+l+'"]'):0);if(j&&j.contentWindow&&g.length){g.data("easyPieChart").update(n)}}if(l=="cpu_percent"||l=="mem_percent"||l=="virt_percent"||l=="disk_percent"){localStorage.setItem($hostname+"-sysinfo_"+l+"_seen",n)}$(a).find(".modal-backdrop").remove()}$__id__=moment().unix();if(l=="cpu_percent"||l=="mem_percent"||l=="virt_percent"||l=="disk_percent"||l=="csf_title"||l=="csf_remote_version"||l=="authentic_remote_version"||l=="package_message"){if(!localStorage.getItem($hostname+"-sysinfo_"+l)){localStorage.setItem($hostname+"-sysinfo_"+l,n)}}else{if(n==null||n==NaN){localStorage.setItem($hostname+"-sysinfo_"+l,"")}else{localStorage.setItem($hostname+"-sysinfo_"+l,n)}}if(!localStorage.getItem($hostname+"-sysinfo_package_message_initial")){localStorage.setItem($hostname+"-sysinfo_package_message_initial",1)}if(l=="authentic_theme_version"){if(!localStorage.getItem($hostname+"-sysinfo_theme_current_version")&&n){localStorage.setItem($hostname+"-sysinfo_theme_current_version",(n.match(/^\d+|\d+\b|\d+(?=\w)/g)[0]+"."+n.match(/^\d+|\d+\b|\d+(?=\w)/g)[1]))}}if(l=="csf_data"){if(!localStorage.getItem($hostname+"-sysinfo_csf_current_version")&&n){localStorage.setItem($hostname+"-sysinfo_csf_current_version",(n.match(/^\d+|\d+\b|\d+(?=\w)/g)[0]+"."+n.match(/^\d+|\d+\b|\d+(?=\w)/g)[1]))}}if(l=="csf_title"||l=="csf_remote_version"||l=="authentic_remote_version"||l=="package_message"){if(l=="package_message"&&(localStorage.getItem($hostname+"-sysinfo_"+l)!=n||localStorage.getItem($hostname+"-sysinfo_package_message_initial")==1)&&n&&n.indexOf("badge-danger")>-1){localStorage.setItem($hostname+"-notifications_"+$__id__+"_package_message",JSON.stringify({title:lang("theme_xhred_notifications_packages_updates"),time:$__id__,timestamp:$__id__,message:($(n).html().replace(/badge-danger/g,"badge-success")),readStatus:0,type:l,link:$(n).attr("href")}));localStorage.setItem($hostname+"-sysinfo_"+l,n);localStorage.setItem($hostname+"-sysinfo_package_message_initial",0)}else{if(l==="package_message"){localStorage.setItem($hostname+"-sysinfo_"+l,n)}}if(settings_sysinfo_theme_updates){if(localStorage.getItem($hostname+"-sysinfo_authentic_remote_version")==0){localStorage.removeItem($hostname+"-sysinfo_authentic_remote_version")}if(localStorage.getItem($hostname+"-sysinfo_theme_current_version")&&localStorage.getItem($hostname+"-sysinfo_authentic_remote_version")){if(l=="authentic_remote_version"&&localStorage.getItem($hostname+"-sysinfo_theme_current_version")',readStatus:0,type:l,link:$_____link_full+"/sysinfo.cgi"}));localStorage.setItem($hostname+"-sysinfo_"+l,n);localStorage.setItem($hostname+"-sysinfo_theme_current_version",n)}}}if(settings_sysinfo_csf_updates){if(localStorage.getItem($hostname+"-sysinfo_csf_current_version")&&localStorage.getItem($hostname+"-sysinfo_csf_current_version")!=null&&localStorage.getItem($hostname+"-sysinfo_csf_remote_version")){if(l=="csf_remote_version"&&localStorage.getItem($hostname+"-sysinfo_csf_current_version")-1&&localStorage.getItem($hostname+"-sysinfo_csf_not_running")!=1){localStorage.setItem($hostname+"-notifications_"+$__id__+"_csf_title",JSON.stringify({title:lang("theme_xhred_notifications_firewall_danger"),time:$__id__,timestamp:$__id__,message:lang("theme_xhred_notifications_firewall_danger_message").replace("%v",moment.unix($__id__).format(settings_window_replaced_timestamp_format_short)),readStatus:0,type:l,link:$_____link_full+"/csf"}));localStorage.setItem($hostname+"-sysinfo_csf_not_running",1)}else{if(l=="csf_title"&&n&&n.indexOf("label-danger")===-1){localStorage.removeItem($hostname+"-sysinfo_csf_not_running")}}}if(l=="csf_deny"){var k=JSON.parse(n);$.each(k,function(w,t){var t=t.split("|"),x=t[0],q=t[1],y=t[2],p=t[3],v=t[4],r=t[5],u=t[6],s=t[7];s=s.replace("*Port Scan*",((y&&p)?'Port '+p+" scan":"Port scan"));if(!localStorage.getItem($hostname+"-allowed_trigger_"+(x+q.replace(/\./g,"0"))+"_csf_deny")){localStorage.setItem($hostname+"-notifications_"+(x+q.replace(/\./g,"0"))+"_csf_deny",JSON.stringify({title:lang("theme_xhred_notifications_firewall_warning"),time:$__id__,timestamp:$__id__,message:s+((y&&p)?" ("+y+":"+p+")":""),readStatus:0,type:l,link:$_____link_full+"/csf"}));localStorage.setItem($hostname+"-allowed_trigger_"+(x+q.replace(/\./g,"0"))+"_csf_deny",1)}})}if(l=="cpu_percent"||l=="mem_percent"||l=="virt_percent"||l=="disk_percent"){if(localStorage.getItem($hostname+"-sysinfo_"+l+"_seen")!==null&&n>=85&&localStorage.getItem($hostname+"-sysinfo_"+l+"_seen")30&&A<=60?"--bg-success":(A>60&&A<=80)?"bg-warning":(A>80)?"bg-danger":"")),E=$(this).text().indexOf("°C")>-1;if(!E){D=(A<=86?"--bg-info":(A>86&&A<=140?"--bg-success":(A>140&&A<=176)?"bg-warning":(A>176)?"bg-danger":""))}if(D=="bg-warning"||D=="bg-danger"){q=1}if(!$("#right-side-tabs .info-container .badge-drivestatus.badge-cpustatus").length){$('strong[data-stats="cpu"] + br[data-stats="cpu"]').after(n.replace(/
| /gi,""))}$($("#right-side-tabs .info-container .badge-drivestatus.badge-cpustatus")[B]).html($(this).text()).removeClass((function(F,G){return(G.match(/(^|\s)bg-\S+/g)||[]).join(" ")})).addClass(D)}).promise().done(function(){if(q){$('[data-stats="cpu"]').removeClass("hidden")}else{$('[data-stats="cpu"]').addClass("hidden")}})}if(l=="hdd_temperature"){var r=0;$.each($(n),function(B,C){var A=parseInt($(this).text().split(":")[1]),D=(A<=30?"--bg-info":(A>30&&A<=60?"--bg-success":(A>60&&A<=80)?"bg-warning":(A>80)?"bg-danger":"")),E=$(this).text().indexOf("°C")>-1;if(!E){D=(A<=86?"--bg-info":(A>86&&A<=140?"--bg-success":(A>140&&A<=176)?"bg-warning":(A>176)?"bg-danger":""))}if(D=="bg-warning"||D=="bg-danger"){r=1}if(!$("#right-side-tabs .info-container .badge-drivestatus:not(.badge-cpustatus)").length){$('strong[data-stats="drive"] + br[data-stats="drive"]').after(n.replace(/
| /gi,""))}$($("#right-side-tabs .info-container .badge-drivestatus:not(.badge-cpustatus)")[B]).html($(this).text()).removeClass((function(F,G){return(G.match(/(^|\s)bg-\S+/g)||[]).join(" ")})).addClass(D)}).promise().done(function(){if(r){$('[data-stats="drive"]').removeClass("hidden")}else{$('[data-stats="drive"]').addClass("hidden")}})}if(l=="uptime"||l=="running_proc"){var x=$('#right-side-tabs .info-container .info-list-data span[data-data="'+l+'"] a');if(x&&x.length){var s=x.parent(),z=s.text();s.html(x.text(z))}}if(l=="warning_si"){var p=$("#right-side-tabs .info-container .warning-list-data");p.html(n.replace(/<(script|link|meta)\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/(script|link|meta)>/gi,"").replace("type='submit'","formtarget='page' type='submit'").replace("class='ui_submit","class='ui_submit btn btn-default btn-xs").replace('ui_form_end_submit" type="button"','ui_form_end_submit" type="submit" formtarget="page"').replace("ui_form_end_submit","ui_form_end_submit btn-tiny"));((n=="
")&&p.empty())}if(l=="extended_si"){var p=$("#right-side-tabs .info-container .extended-list-data");var y=(n.replace(/aria-expanded="true"/gi,'aria-expanded="false"').replace(/collapse in/gi,"collapse"));opened_tabs=$("#extended_sysinfo .panel .in").map(function(){y=(y.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+'"'));y=(y.replace('div id="'+this.id+'" class="panel-collapse collapse"','div id="'+this.id+'" class="panel-collapse collapse in"'))}).promise().done(function(){p.html('
'+y);var A=$("#right-side-tabs .extended-list-data");A.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(A.find("div.panel-heading .panel-title"),function(){var C=$(this).find("a"),B=$(this).find("a").attr("aria-expanded")!="true"?1:0,D=(B?"+":"—");$(this).append(''+D+"");C.text(upperFirst($.trim(C.text())))});A.find(".panel.panel-default").detach().appendTo("#right-side-tabs #extended_sysinfo");A.find("div.panel-body").find("img").remove();A.find("a").attr("target","page");A.find('input[type="submit"]').addClass("btn btn-default btn-xs");A.find('input[type="submit"]').parents("form").attr("formtarget","page");A.find('button[type="button"].ui_submit').addClass("btn btn-default btn-xs");A.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("+")})})}if($.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(){t__wi_p.$___ajax_requested_url="_blank"},500);setTimeout(function(){n___ck()},3000);if(a){$(a).find('h3 > a[data-refresh="system-status"]').removeClass("disabled").find("i").removeClass("fa-spin")}}})}}function __si__bg_upd(){setTimeout(function(){__si__bg_upd_exec()},5000);if(settings_side_slider_enabled&&!t__wi_p.$('iframe[name="page"]').contents().find("body .modal.in").length){return t___wi.setInterval(function(){__si__bg_upd_exec()},(settings_side_slider_background_refresh_time*60000))}}var __si__bg_upd_id=__si__bg_upd();if(settings_loader_top){if(typeof NProgress=="object"){NProgress.configure({showSpinner:true,trickleRate:0.08,trickleSpeed:200})}}$(window).ajaxStart(function(){if(t__wi_p.$___ajax_requested_url.indexOf("index.cgi/?xhr-info=1")===-1&&t__wi_p.$___ajax_requested_url.indexOf("___LL_PREV___")===-1){t___p__xhr_l=1;t__wi_p.__lls()}}).ajaxStop(function(){if(t__wi_p.$___ajax_requested_url.indexOf("index.cgi/?xhr-info=1")===-1){t___p__xhr_l=0;t__wi_p.__lle()}});(function(){if(typeof t___wi.Messenger.Message!="function"){return}var j,h,k,g={}.hasOwnProperty,e=function(a,d){for(var f in d){if(g.call(d,f)){a[f]=d[f]}}function c(){this.constructor=a}c.prototype=d.prototype;a.prototype=new c();a.__super__=d.prototype;return a};j=jQuery;k='
\n \n \n \n \n \n \n
';h=(function(c){e(a,c);function a(){return a.__super__.constructor.apply(this,arguments)}a.prototype.template=function(d){var f;f=a.__super__.template.apply(this,arguments);f.append(j(k));return f};return a})(t___wi.Messenger.Message);t___wi.Messenger.themes.air={Message:h};Messenger.options={extraClasses:"messenger-fixed messenger-on-bottom",theme:"air"}}).call(this);if(navigator.userAgent.match(/(iPod|iPhone|iPad)/)){$("#content").attr("style","-webkit-overflow-scrolling: touch !important; overflow-y: scroll !important;")}if(t__wi_p.$('a[target="page"][href="link/"]').first().length){t__wi_p.$('a[target="page"][href="link/"]').first().attr("target","blank")}$("aside").on("click",".select2-container .select2-selection__arrow b",function(a){a.preventDefault();a.stopPropagation()});$("body").on("keydown",".sidebar-search",function(c){if(t__wi_p.$("#wrapper").data("webmail")!==-1){if(c.keyCode==13){c.preventDefault();return false}}});$("body").on("click",".mobile-menu-toggler",function(c){$this=$(this);if($("aside").hasClass("hidden-xs")){$(this).addClass("selected").find("button").addClass("btn-primary").removeClass("btn-default");if(t__wi_p.$(".__logo")){t__wi_p.$(".__logo").css("transform","translate(0px, 0px)");setTimeout(function(){t__wi_p.$(".__logo").transition({y:"-140px"},1000)},1100)}t__wi_p.$this.css("transform","translate(0px, 0px)");t__wi_p.$("aside").css("transform","translate(0px, 0px)");t__wi_p.$(".switch-toggle").css("display","none");$("aside").removeClass("hidden-xs");t__wi_p.$("aside, .mobile-menu-toggler").transition({x:settings_leftmenu_width},1000);t__wi_p.$(".switch-toggle").css("display","table")}else{hide_mobile_menu()}});$.each($('ul.navigation li.navigation_external a[href^="../servers/link.cgi/"]'),function(d,c){$(this).attr("href",$__source_url+$(this).attr("href").replace("../","").replace(/\/$/g,""))});$("body").on("click",'.navigation a[target="page"], .user-links a[target="page"]',function(){hide_mobile_menu()});$("body").on("click",".navigation > li .navigation_external_link",function(a){a.preventDefault();a.stopPropagation();b=$(this);window.open(b.attr("href"),"_blank")});$("body").on("click",".navigation > li:not('.sub-wrapper'):not('.menu-container'):not('.navigation_external')",function(g){g.preventDefault();g.stopPropagation();t__wi_p.$___________m_locked=1;typeof $processing=="undefined"?$processing=false:false;if(!$processing){$processing=true;var f=$("a",this).attr("href"),h=$("a",this).attr("target"),e=$(this);if(h){$(".navigation > li > ul.sub > li").each(function(){$(this).removeClass("sub_active").find("span.current").remove()})}$("#webmin_search_form").submit(function(){$(".navigation > li > ul.sub > li").each(function(){$(this).removeClass("sub_active").find("span.current").remove()})});$.when($("#sidebar .navigation > li").each(function(){var a=$(this);if(!$(this).is(e)){$(this).removeClass("active");if($(this).find("a").attr("href")!="#search"&&!$(this).find("a").attr("target")){if($(a.find("a").attr("href")).hasClass("sub")){$(a.find("a").attr("href")).slideUp($settings_animation_left_slide_time)}}}})).done(function(){e.hasClass("active")?e.removeClass("active"):(f!="#hide"&&!h)?e.addClass("active"):false;setTimeout(function(){if($(f).is(":visible")&&f!="#hide"&&!h){e.addClass("active")}else{e.removeClass("active")}$processing=false},((2*$settings_animation_left_slide_time)>0?(2*$settings_animation_left_slide_time):1));$(f).slideToggle($settings_animation_left_slide_time)});if(f=="#search"){$('#sidebar input[name="search"]').focus()}}});$("body").on("click",".navigation > li > ul.sub > li:not('.menu-container')",function(d){if(d.target&&$(d.target).is("li")){return}var c=$(this);if(__num()){t__wi_p.$(".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("");c.addClass("sub_active").append('')});$(".navigation > li > ul.sub").each(function(){if($(this).attr("id")===""){$(this).remove()}});$("body").on("submit","#webmin_search_form",function(){});$("body").on("click",".navigation_module_trigger",function(c){c.preventDefault();c.stopPropagation();$('iframe[name="page"]').attr("src",$(this).data("href"));$(".navbar-toggle:visible").trigger("click");t__wi_p.$(".navigation > li > ul.sub > li").removeClass("sub_active").find("span.current").remove();t__wi_p.$("#sidebar .navigation > ul.sub").slideUp($settings_animation_left_slide_time);t__wi_p.$("#sidebar .navigation > li").removeClass("active")});$('.switch-toggle label[for^="reserve_empty"]').on("click",function(c){c.preventDefault()});$("body").on("click",'a[data-refresh="true"]',function(c){c.preventDefault();if(typeof t__wi_p.$('iframe[name="page"]')!="undefined"&&t__wi_p.$('iframe[name="page"]').contents()&&t__wi_p.$('iframe[name="page"]').contents().get(0)){t__wi_p.$('iframe[name="page"]').contents().get(0).location.reload()}});$("body").on("click",function(c){if(!$("ul.dropdown").is(c.target)&&$("ul.dropdown").has(c.target).length===0&&$(".open").has(c.target).length===0){$("ul.dropdown").removeClass("open")}});$(t__wi_p.$('iframe[name="page"]').contents()).on("click",function(c){if(!t__wi_p.$("ul.dropdown").is(c.target)&&t__wi_p.$("ul.dropdown").has(c.target).length===0&&t__wi_p.$(".open").has(c.target).length===0){t__wi_p.$("body").find(".navbar-header").find(".dropdown.open").removeClass("open")}});function upd_labels(){t__wi_p.$('a[href*="#right-side-tabs-sysinfo"]').text(lang("theme_xhred_titles_dashboard"));t__wi_p.$('a[href*="#right-side-tabs-notifications"]').text(lang("theme_xhred_global_notifications"));t__wi_p.$('a[href*="#right-side-tabs-favorites"]').text(lang("theme_xhred_global_favorites"));t__wi_p.$(".theme_xhred_notification_no_data").text(lang("theme_xhred_notification_no_data").toUpperCase());t__wi_p.$(".theme_xhred_notification_no_favorites").text(lang("theme_xhred_notification_no_favorites").toUpperCase());t__wi_p.$(".theme_xhred_notification_none").text(lang("theme_xhred_notification_none").toUpperCase())}function __tmp_opener(){t___wi.open($("#__tmp_openner").attr("href"));$("#__tmp_openner").remove()}function __tmp_opener_link(c){$("body").append('')}t__wi_p.$(".switch-toggle").on("contextmenu","label",function(c){c.preventDefault();if($(this).attr("for")=="open_webmin"||$(this).attr("for")=="open_usermin"){__tmp_opener_link("");__tmp_opener()}else{if($(this).attr("for")=="open_virtualmin"){__tmp_opener_link("?virtualmin");__tmp_opener()}else{if($(this).attr("for")=="open_cloudmin"){__tmp_opener_link("?cloudmin");__tmp_opener()}else{if($(this).attr("for")=="open_webmail"){__tmp_opener_link("?mail");__tmp_opener()}}}}});t__wi_p.$(".switch-toggle").on("click","input.dynamic",function(c){if(t___p__xhr_l===1||(typeof t___p__xhr_r!="undefined"&&t___p__xhr_r===1)){c.preventDefault();c.stopPropagation();return}t__wi_p.hide_mobile_menu();if($(this).attr("id")=="open_thirdlane"){t__wi_p.location.href=$_____link_full+"/asterisk/index.cgi";return}t__wi_p.t__s($(this).attr("id"));if($(this).attr("id")=="open_dashboard"){t__wi_p.$('iframe[name="page"]').attr("src",$_____link_full+"/sysinfo.cgi");t__wi_p.__cms();return}t__m($(this).attr("id"),false,false)});t_sel_i();$("aside").mCustomScrollbar({axis:"y",theme:"minimal",scrollInertia:100,scrollButtons:false,callbacks:{onScroll:function(){if(!t__wi_p.$(".mobile-menu-toggler").is(":visible")){t__wi_p.$(".form-control.sidebar-search").blur();if(t__wi_p.$("aside select")&&t__wi_p.$("aside select").length>0&&t__wi_p.$("aside select").hasClass("select2-hidden-accessible")){t__wi_p.$("aside select").select2("close")}}}}});t__wi_p.$(".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 > .fa",function(c){t__wi_p.t___p__xhr_l=0;t__wi_p.t___p__xhr_r=0;t__wi_p.$___ajax_requested_url="_blank";t__wi_p.__lre()}).on("click","#loader-close-sm > .fa",function(c){t__wi_p.t___p__xhr_l=0;t__wi_p.t___p__xhr_r=0;t__wi_p.$___ajax_requested_url="_blank";t__wi_p.__lle()});__shell_commands__i__=0;t__wi_p.$(".form-control.sidebar-search").focus(function(a){t__wi_p.$(".__logo").addClass("inited");a.preventDefault();a.stopPropagation();__shell_commands__i__=0});const shell=t__wi_p.$("body").find(".-shell-port-"),cmdInput=shell.find('input[data-command="true"]'),shellOut=shell.find("div[data-output]"),shellCont=shell.find(".-shell-port-container"),shellAutocomplete=shell.data("autocomplete");$(window).keydown(function(p){var m=t__wi_p.$("body").find(".-shell-port-").hasClass("opened");if(!m){t__wi_p.search_control(p);t__wi_p.shortcut_control(p)}if(p.keyCode===38&&((cmdInput.is(":focus")&&m)||(t__wi_p.$(".form-control.sidebar-search").is(":focus")))){p.preventDefault()}if(p.keyCode===9&&cmdInput.is(":focus")&&m&&t__wi_p.$___ajax_requested_url!=="___blocked"){p.preventDefault();if(!shellAutocomplete){return}var h=cmdInput.val().trim().split(/\s+(?!-)/),d=h.length,l=(h[0]&&h[0].indexOf("-")===-1?0:1),f=(h[1]&&h[1].indexOf(":")===-1?0:1),g=cmdInput.val().endsWith(" "),e=$.trim(h[0])==="service",k=$.trim(h[0])==="systemctl",q=($.trim(h[0])&&$.trim(h[0]).startsWith("chown")),c=((h.length===1&&cmdInput.val().length&&!l&&!g)?"commands":((e||k)?"services":(q?"permissions":"lists")));if(!$.trim(cmdInput.val()).length){return}var o=cmdInput.val(),n=shell.find(".-shell-port-pwd"),j=n.attr("data-pwd");if(c==="services"){c=(e?"service":"systemctl");if(c==="systemctl"&&h.length!==3){return}o=(c=="service"?$.trim(h[1]):$.trim(h[2]));if($.trim(h[0])==="service"&&((h.length===2&&g)||h.length===3)){if(h.length===3){o="::::"+$.trim(h[1])+"::::"+$.trim(h[2])}else{o="::::"+$.trim(h[1])}}}if(q){if(d===1&&!g){cmdInput.val($.trim(h[0])+" ");return}if(!f||!$.trim(h[1])){c="users";o=$.trim(h[1])}else{if(!g&&!h[2]){c="groups";o=$.trim($.trim(h[1]).split(":")[1])}else{c="lists";o=j+"/::::"+$.trim(h[2])}}}if(c==="lists"&&!q){o=j+"/::::"+$.trim(h[1])+"::::"+$.trim(h[0])+"::::"+$.trim(h[2])}t__wi_p.$___ajax_requested_url="___blocked";$.ajax({type:"POST",url:$_____link_full+"/index.cgi?xhr-get_autocompletes=1&xhr-get_autocomplete_type="+c+"&xhr-get_autocomplete_string="+o+"",data:false,dataType:"json",success:function(u){var r=u.length;if(r===1){if(c==="service"||c==="systemctl"||c==="lists"){var s=$.trim(h[0]),t=$.trim(h[0])+" "+$.trim(h[1]);if(c==="lists"){if(((s==="cd"&&u[0].endsWith("/")))||(s!=="cd")){if(s==="cd"||s==="cat"){cmdInput.val(s+" "+u[0])}else{if($.trim(h[2])){cmdInput.val(t+" "+u[0]+"")}else{cmdInput.val(s+" "+u[0]+"")}}}}else{if(s==="service"&&(h.length===2||h.length===3)){if(h.length===2){cmdInput.val(s+" "+u[0]+" ")}else{if(h.length===3){cmdInput.val($.trim(h[0])+" "+$.trim(h[1])+" "+u[0])}}}else{if(s==="systemctl"&&h.length===3){cmdInput.val(s+" "+$.trim(h[1])+" "+u[0])}}}}else{if(q){if(!f){cmdInput.val($.trim(h[0])+" "+u[0]+":")}else{if(!g&&!h[2]){cmdInput.val($.trim(h[0])+" "+$.trim($.trim(h[1]).split(":")[0])+":"+u[0]+" ")}else{cmdInput.val($.trim(h[0])+" "+$.trim(h[1])+" "+u[0]+"")}}}else{cmdInput.val(u[0]+" ")}}}else{if(r>1){var a=""+$(".-shell-port-type").text()+" "+escape_html(cmdInput.val())+"\n";shellOut.find("pre").append(a);shellOut.find("pre").append(escape_html(u.join("\n")+"\n"));shellCont.scrollTop(shellCont[0].scrollHeight)}}setTimeout(function(){cmdInput.focus().mousedown()},10)},error:function(){}})}});$(window).keyup(function(D){var s=t__wi_p.$("body").find(".-shell-port-").hasClass("opened");if(s){var y=0,o=0,u=0,k=t__wi_p.$(".form-control.sidebar-search"),C=(product_name(1).toLowerCase()=="cloudmin"&&t__wi_p.$('a[target="page"][href*="/server-manager/save_serv.cgi"][href*="shell=1"]').length),p=0;var E=0;if(C){E=($_____link_full+"/server-manager/shell.cgi")}else{if(is_module("shell")){E=($_____link_full+"/shell/index.cgi")}else{return}}if(s||k.is(":focus")){if(D.keyCode===8){__shell_commands__i__=0}}if(s){y=$.trim(cmdInput.val());o=1;u=1}else{y=k.val();o=(typeof k.val()!="undefined");u=0}if((u||(o&&(!y.trim()||y.trim().startsWith("!"))))&&(D.keyCode==38||D.keyCode==40)){D.preventDefault();D.stopPropagation();typeof localStorage.getItem($hostname+"-shell_commands")=="undefined"?localStorage.setItem($hostname+"-shell_commands",JSON.stringify({})):false;var e=JSON.parse(localStorage.getItem($hostname+"-shell_commands")),w=e?e.length:0;if(__shell_commands__i__===0&&!y&&D.keyCode==40){return}else{if(__shell_commands__i__===0&&y&&D.keyCode==38){p=1;return}else{__shell_commands__i__=D.keyCode==40?++__shell_commands__i__:--__shell_commands__i__}}if(__shell_commands__i__<0&&D.keyCode===38){__shell_commands__i__=w-1}else{if(__shell_commands__i__>w){__shell_commands__i__=0}}if(e&&e[__shell_commands__i__%w]){if(!$.isEmptyObject(e)&&(((__shell_commands__i__==w)&&D.keyCode===38)||((__shell_commands__i__==w)&&D.keyCode===40)||p)){if(s){cmdInput.val("").focus()}else{k.val("").focus()}__shell_commands__i__=0;return}if(s){var d=(e[__shell_commands__i__%w]).replace(/^!/,"");cmdInput.val(decode_html(d)).focus()}}return}else{if(o&&y.trim().startsWith("!")&&D.keyCode==27){D.preventDefault();D.stopPropagation();k.val("").focus();return}}if(o&&y.trim().startsWith("!")&&D.keyCode==13){k.addClass("_shell_form_");D.preventDefault();D.stopPropagation();if(is_module("shell")==1||C){cmdInput.val(y.trim().substring(1)).focus();ported_shell_open(shell);var z=$.Event("keyup");z.keyCode=13;cmdInput.trigger(z)}}var g=shell.find(".-shell-port-container"),q=shell.find(".-shell-port-pwd"),r=q.attr("data-pwd"),G=$.trim(cmdInput.val()),t=0,B=D.keyCode?D.keyCode:D.which,j=(D.altKey&&String.fromCharCode(D.which).toLowerCase()=="l");if(B===27){ported_shell_close(shell);return}if(!cmdInput.is(":focus")&&!get_selected_text()){if(!D.ctrlKey&&!D.altKey&&!D.shiftKey&&!D.metaKey){cmdInput.val(cmdInput.val()+String.fromCharCode(D.which).toLowerCase())}cmdInput.focus()}if(G&&B===13||j){if(is_module("shell")||C){if(t__wi_p.$____shelling__===1){return}t__wi_p.$____shelling__=1;if(G=="clear"||G=="reset"||G=="exit"||j){shellOut.find("pre").html("");ported_shell_clear_cmd(cmdInput);if(G=="exit"){ported_shell_close(shell)}}if(G=="cd ~"){t=G;G=("cd "+q.attr("data-home"))}var F=false;if(G=="cd /"){F="/"}if(G=="history -c"){localStorage.setItem($hostname+"-shell_commands",JSON.stringify({}));var l=""+$(".-shell-port-type").text()+" "+G+"\n";shellOut.find("pre").append(l);ported_shell_clear_cmd(cmdInput);g.scrollTop(g[0].scrollHeight);var f='',A=new FormData($(f)[0]);t__wi_p.$___ajax_requested_url="___blocked";$.ajax({type:"POST",url:(E+"?stripped=1&stripped=2"),data:A,dataType:"text",cache:false,contentType:false,processData:false,success:function(a){},error:function(a){}})}else{if(G.startsWith("history")){ported_shell_clear_cmd(cmdInput);var v=JSON.parse(localStorage.getItem($hostname+"-shell_commands")),h=v?v.length:0,x=(h?h.toString().length:0),l=""+$(".-shell-port-type").text()+" "+G+"\n";$.each($(v),function(I,a){var c=I.toString().length,H="";for(i=0;i<((x+1)-c);i++){H+=" "}(typeof a=="string"&&(l+=((I+1)+H+a)+"\n"))}).promise().done(function(){shellOut.find("pre").append(l);g.scrollTop(g[0].scrollHeight)})}}if(G=="clear"||G=="reset"||G=="exit"||G.startsWith("history")||j){t__wi_p.$____shelling__=0;__shell_commands__i__=0;ported_shell_size();cmdInput.focus();return}var n='',m=new FormData($(n)[0]);t__wi_p.$___ajax_requested_url="___blocked";cmdInput.attr("readonly","true");$.ajax({type:"POST",url:(E+"?stripped=1&stripped=2"),data:m,dataType:"text",cache:false,contentType:false,processData:false,success:function(a){var I=$(".-shell-port-type").text(),H=$(a).find("pre").html().replace(/>>/g,">"+I+""),c=$(a).find('select[name="pcmd"] option').map(function(){return escape_html($(this).val())}).get().reOrder(-1,0).reverse();localStorage.setItem($hostname+"-shell_commands",JSON.stringify(c));newPwd=$(a).find('input[name="pwd"]').val();shellOut.find("pre").append((t?(H.replace(new RegExp(G,"g"),t)):H));q.text(F?F:(newPwd==q.attr("data-home")?"~":newPwd.split("/").filter(function(J){return $.trim(J)!=""}).slice(-1)[0])).attr("data-pwd",F?F:newPwd).attr("title",F?F:newPwd);ported_shell_size();ported_shell_clear_cmd(cmdInput);g.scrollTop(g[0].scrollHeight);setTimeout(function(){t__wi_p.$____shelling__=0;__shell_commands__i__=0;cmdInput.removeAttr("readonly").focus()},100)},error:function(a){}})}}}});$("body").on("submit","#webmin_search_form",function(c){var e=$(this),d=!e.find("input.sidebar-search").val().trim().startsWith("!"),f=t__wi_p.$(".form-control.sidebar-search");if(!d||!$.trim(f.val())){c.preventDefault()}setTimeout(function(){t__wi_p.$(".navigation > li:not('.has-sub')").removeClass("sub_active").find("span.current-large").remove();if(d){f.val("")}},30)});$("body").on("click","#right-side-tabs .right_pane_favorites_link",function(c){$(".favorites-menu-outer.hover + .favorites-menu-close").trigger("click")});$("aside").on("click",".user-links > li.favorites",function(c){$(".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(){t__wi_p.$(".favorites-menu-outer").removeClass("hover")});$(document).on("keydown",function(c){if($(".favorites-menu-outer").css("left")=="0px"&&c.keyCode==27){t__wi_p.$(".favorites-menu-outer").removeClass("hover")}});favicon=new Favico({animation:"none"});function n___fv(){if(!settings_side_slider_enabled||!settings_side_slider_notifications_enabled){return}var a=$(".right-side-tabs .list-group-item:not(.no-notifications, .opacity-0_3)").length;favicon.badge(a);__dpt();if(a>0){$(".right-side-tabs-toggler button i.fa-bell").addClass("faa-ring faa-slow animated-hover");$(".right-side-tabs-toggler button span.badge").removeClass("hidden").text(a);$("#right-side-tabs .right-side-tab-notification-asterix").removeClass("hidden").text(a)}else{$(".right-side-tabs-toggler button i.fa-bell").removeClass("faa-ring faa-slow animated-hover");$(".right-side-tabs-toggler button span.badge").addClass("hidden").text(0);$("#right-side-tabs .right-side-tab-notification-asterix").addClass("hidden").text(0)}}function n___ck(){var c={};$.each(localStorage,function(j,o){if(typeof j=="string"&&j.indexOf("notifications_")>-1&&j.indexOf($hostname)>-1){var l=j.split("_")[1],p=JSON.parse(o),e=p.title,g=p.time,h=p.timestamp,k=p.message,f=p.readStatus,m=p.type,n=p.link;c[g+"_"+e]=""+l+"~~~~"+e+"~~~~"+g+"~~~~"+h+"~~~~"+k+"~~~~"+f+"~~~~"+m+"~~~~"+n;if($('.list-group-item[id="'+l+'"][data-type="'+m+'"]').length){$('.list-group-item[id="'+l+'"][data-type="'+m+'"] .list-group-item-heading small').text(moment.unix(g).fromNow())}}});var d=[];for(var a in c){if(c.hasOwnProperty(a)){d.push(a)}}$current_localData_notifications_sorted_keys=d.sort();$.each($current_localData_notifications_sorted_keys,function(j,p){var o=c[p],l=o.split("~~~~")[0],e=o.split("~~~~")[1],g=o.split("~~~~")[2],h=o.split("~~~~")[3],k=o.split("~~~~")[4],f=o.split("~~~~")[5],m=o.split("~~~~")[6],n=o.split("~~~~")[7];if(!$('.list-group-item[id="'+l+'"][data-type="'+m+'"]').length){n___ad(l,e,g,h,k,f,m,n)}})}function n___rm(){$.each(localStorage,function(c,a){if(typeof c=="string"&&c.indexOf("notifications_")>-1&&c.indexOf($hostname)>-1){delete localStorage[c]}})}function n___mr(e,a,c,f){var d=JSON.parse(localStorage.getItem($hostname+"-notifications_"+e+"_"+a));if(d){localStorage.setItem($hostname+"-notifications_"+e+"_"+a,JSON.stringify({title:d.title,time:d.time,timestamp:d.timestamp,message:d.message,readStatus:c,type:d.type,link:d.link}))}f&&n___fv()}function n___mr_a(){$(".right-side-tabs .list-group-item:not(.no-notifications)").each(function(){$(this).addClass("opacity-0_3");n___mr($(this).attr("id"),$(this).data("type"),1,0)}).promise().done(function(){n___fv()})}function n___ad(j,h,g,d,e,f,a,c){$(".right-side-tabs .list-group").prepend('
'+h+" "+moment.unix(g).fromNow()+"
"+e+"
");$(".right-side-tabs-no-notifications").remove();n___fv();if(!t__wi_p.$___________initial){n___em()}}function n___em(){if($(".right-side-tabs .list-group-item").length===0){var a=lang("theme_xhred_notification_none");$(".right-side-tabs .list-group").prepend('
'+(a?a.toUpperCase():"")+"
");$(".right-side-tabs-no-notifications").animate({opacity:"1"},$settings_animation_left_slide_time,function(){})}setTimeout(function(){n___fv()},$settings_animation_left_slide_time)}function set_rp_tt(){function a(){var c=$("span[data-convertible-timestamp-full]");c.data("convertible-timestamp-full",(parseInt(c.data("convertible-timestamp-full"))+1));c.text(t__wi_p.moment.unix(c.data("convertible-timestamp-full")).format(settings_window_replaced_timestamp_format_full))}$(function(){setInterval(a,1000)});$("body").on("click",'#right-side-tabs a:not([data-toggle="collapse"]):not([role="tab"]):not(.list-group-item)',function(c){t__wi_p.$(".right-side-tabs-toggler:not(.hidden)").trigger("click")});$("body").on("click","#right-side-tabs .info-container .info-list-data a",function(c){$(this).attr("target","page")});$("body").on("click","#right-side-tabs .info-container .graph-container-fw",function(c){var e=$(this).attr("class"),d=(e.indexOf("cpu_")>-1?"cpu":(e.indexOf("mem_")>-1?"mem":(e.indexOf("virt_")>-1?"virt":"disk")));if(d=="cpu"&&is_module("proc")){window.page.location.href=$_____link_full+"/proc/index_cpu.cgi"}else{if((d=="mem"||d=="virt")&&is_module("proc")){window.page.location.href=$_____link_full+"/proc/index_size.cgi"}else{if(d=="disk"&&is_module("disk-usage")){window.page.location.href=$_____link_full+"/disk-usage"}else{if(d=="disk"&&is_module("quota")){window.page.location.href=$_____link_full+"/quota/list_users.cgi?dir=%2F"}}}}t__wi_p.$(".right-side-tabs-toggler:not(.hidden)").trigger("click")})}function fetch_right_pane_favorites(){var a=window.page.f__g(),c=$("#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();if(a.length){$.each(a,function(e,d){var f=$("#right-side-tabs .favorites-dcontainer");f.append(''+(e+1)+'  '+d.title+"")});c.addClass("hidden")}else{c.removeClass("hidden")}}function get_right_panel_sysinfo_data(){set_rp_tt();$_____________got_rp__sys_dat=1;return'
'+lang("theme_xhred_notification_no_data").toUpperCase()+"
"}if($access_level==0&&is_module("status")==1){var defalt_right_tab=(localStorage.getItem($hostname+"-right-side-tab")?localStorage.getItem($hostname+"-right-side-tab"):"#right-side-tabs-sysinfo"),$no_stats_data='
',$no_fav_data='
';$("body").append(' ');if(!$('a[href="'+defalt_right_tab+'"]: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(c){var a=$(c.target).attr("href");localStorage.setItem($hostname+"-right-side-tab",a)});$("body").on("click",".right-side-tabs-favorites-ctl",function(a){if($(".favorites-menu-outer").hasClass("hover")){$(".favorites-menu-close").trigger("click")}else{$(".user-link.favorites").trigger("click")}});$("body").on("click","#right-side-tabs .fa-dashboard",function(a){t__wi_p.$('iframe[name="page"]').attr("src",$_____link_full+"/sysinfo.cgi");t__wi_p.$(".right-side-tabs-toggler:not(.hidden)").trigger("click")})}else{t__wi_p.$("html").attr("data-slider-fixed","0");t__wi_p.$(".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(a){$(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(a){$(this).find(".fa.fa-trash-o").addClass("hidden");$(this).find(".fa-clear-all").addClass("hidden")});$(".right-side-tabs").on("click","[data-port-href]",function(a){a.preventDefault();a.stopPropagation();t___wi.open($(this).data("port-href"))});$(".right-side-tabs").on("click",'a.list-group-item[data-type="csf_deny"]',function(a){a.preventDefault();a.stopPropagation();if($(a.target).is(".fa.fa-trash-o")||$(a.target).is(".fa-clear-all")||$(a.target).is("[data-port-href]")){return}t__wi_p.$('iframe[name="page"]').contents().find("body").append(' ');t__wi_p.$('iframe[name="page"]').contents().find("form#csf_temporary_ip_entries").submit();t__wi_p.$(".right-side-tabs-toggler:not(.hidden)").trigger("click")});$(".right-side-tabs").on("click contextmenu","a.list-group-item",function(a){a.preventDefault();if(typeof t__wi_p.$('iframe[name="page"]').get(0).contentWindow.__num=="function"&&!t__wi_p.$('iframe[name="page"]').get(0).contentWindow.__num()){a.preventDefault();a.stopPropagation();return}if(a.type=="click"&&($(a.target).is(".authentic_update")||$(a.target).is(".fa-refresh"))){n___mr($($(this).parents("a.list-group-item").context).attr("id"),$($(this).parents("a.list-group-item").context).data("type"),1,1);$($(this).parents("a.list-group-item").context).addClass("opacity-0_3");t__wi_p.$(".right-side-tabs-toggler:not(.hidden)").trigger("click");t__wi_p.history.pushState(null,null,$_____link_full+"/?updating-webmin-theme");t__wi_p.$('iframe[name="page"]').attr("src",$_____link_full+"/webmin/edit_themes.cgi");return}if(a.type=="contextmenu"){$(this).find(".fa-clear-all").trigger("click");a.preventDefault();a.stopPropagation();return}if(!$(a.target).is(".fa.fa-trash-o")&&!$(a.target).is(".fa-clear-all")&&!$(a.target).is("[data-port-href]")){if($(this).attr("href")&&$(this).attr("href").length&&$(this).attr("href")!="undefined"&&$(this).attr("data-type")!="csf_deny"){$(this).addClass("opacity-0_3");$(this).find(".fa-clear-all").addClass("hidden");n___mr($(this).attr("id"),$(this).data("type"),1,1);t__wi_p.$(".right-side-tabs-toggler:not(.hidden)").trigger("click");t__wi_p.$('iframe[name="page"]').attr("src",$(this).attr("href"))}else{$(this).addClass("opacity-0_3");n___mr($(this).attr("id"),$(this).data("type"),1,1)}}else{if($(a.target).is(".fa-clear-all")){$(this).addClass("opacity-0_3");$(this).find(".fa-clear-all").addClass("hidden");n___mr($(this).attr("id"),$(this).data("type"),1,1);return}$(this).animate({opacity:"0"},$settings_animation_left_slide_time,function(){$(this).remove();localStorage.removeItem($hostname+"-notifications_"+$(this).attr("id")+"_"+$(this).data("type"));n___em()})}});$(".right-side-tabs-dismiss i.fa-reload").click(function(a){t__wi_p.__si__bg_upd_exec()});$(".right-side-tabs-dismiss i.fa-clear-all").click(function(a){n___mr_a()});$(".right-side-tabs-dismiss i.fa-trash").click(function(a){$(".right-side-tabs .list-group-item:not(.no-notifications)").animate({opacity:"0"},$settings_animation_left_slide_time,function(){$(this).remove();n___rm();n___em()})});$("body").on("click",".right-side-tabs-toggler:not(.hidden)",function(a){if($(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);if(__ie__()>5&&__ie__()<=11){$(this).find("button").animate({right:"0"},$settings_animation_left_slide_time)}}else{$(this).addClass("opened");$(this).animate({right:"300"},$settings_animation_left_slide_time);$(".right-side-tabs").animate({right:"0"},$settings_animation_left_slide_time);if(__ie__()>5&&__ie__()<=11){$(this).find("button").animate({right:"300"},$settings_animation_left_slide_time)}}});$(".right-side-tabs .tab-pane").mCustomScrollbar({axis:"y",theme:"minimal",scrollInertia:100,scrollButtons:false});$("aside, .btn-menu-toggler").click(function(a){if(!t__wi_p.$(".right-side-tabs-toggler").hasClass("hidden")&&t__wi_p.$(".right-side-tabs-toggler").hasClass("opened")&&!$(a.target).is(".btn-menu-toggler")&&!$(a.target).is(".fa-bell")&&!$(a.target).is("li.user-link.favorites")&&!$(a.target).is(".badge.badge-danger")){t__wi_p.$(".right-side-tabs-toggler:not(.hidden)").trigger("click")}});if(!!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:true})}$("body").on("click",".user-link.palette-toggle",function(a){f__toogle_palette()});$("body").on("click",".user-link.ported-console",function(a){if(ported_shell_available()){ported_shell_open(shell)}});n___em();n___ck();moment.locale($("body").data("language")); \ No newline at end of file +;if($access_level==0){if(settings_side_slider_enabled&&settings_side_slider_fixed){t__wi_p.$("html").attr("data-slider-fixed","1")}}if(t__wi_p.$___________initial===1){console.log("Welcome to Authentic Theme "+($g__t__gver?$g__t__gver:$g__t__ver)+"\nhttps://github.com/qooob/authentic-theme")}typeof t__wi_p.t___p__xhr_l=="undefined"?t__wi_p.t___p__xhr_l=0:false;typeof t__wi_p.t___p__ll=="undefined"?t__wi_p.t___p__ll=0:false;$(function(){t___wi.parent.$___________left=1});t__wi_p.$("body").on("focus",".sidebar-search",function(){if(typeof t__wi_p.$('iframe[name="page"]').get(0).contentWindow.t__au__c___i=="function"){t__wi_p.$('iframe[name="page"]').get(0).contentWindow.t__au__c___i("c",false)}else{t__wi_p.t__au__c___i("c",false)}});t__wi_p.$("body").on("blur",".sidebar-search",function(){setTimeout(function(){t__wi_p.t__au__c___i("c",true)},150)});function __si__bg_upd_exec(){if(t__wi_p.$___ajax_requested_url.indexOf("?xhr-buttons=1")>-1||t__wi_p.$___ajax_requested_url.indexOf("?xhr-navigation=1")>-1){return}if(t__wi_p.$('iframe[name="page"]').contents().find("body .modal.in").length){return}if($access_level==0){t__wi_p.$___ajax_requested_url="/index.cgi/?xhr-info=1";var d=t__wi_p.$('iframe[name="page"]').contents().find("body").find(".page.__sytem_information"),a=(d.length&&__num())?d:0;if(!$("#right-side-tabs-sysinfo .graph-container").length){$("#right-side-tabs .info-container").html(get_right_panel_sysinfo_data())}if(a){$(a).find('h3 > a[data-refresh="system-status"]').addClass("disabled").find("i").addClass("fa-spin")}var c=$(".right-side-tabs-dismiss .fa-reload");c.addClass("fa-spin-fast");setTimeout(function(){c.removeClass("fa-spin-fast")},3000);$.ajax({type:"GET",url:$_____link_full+"/index.cgi/?xhr-info=1",data:false,dataType:"json",success:function(e){$.each(e,function(l,n){if(l=="cpu_percent"||l=="mem_percent"||l=="virt_percent"||l=="disk_percent"){if(is_numeric(n)){localStorage.setItem($hostname+"-sysinfo_"+l+"_stats",n)}else{localStorage.setItem($hostname+"-sysinfo_"+l+"_stats","")}}else{}if(a){$(a).find('span[data-id="sysinfo_'+l+'"]').html(n);if(l=="local_time"||l=="uptime"||l=="running_proc"){var f=$(a).find('span[data-id="sysinfo_'+l+'"]'),m=$(a).find('span[data-id="sysinfo_'+l+'"] a'),o=$(a).find('span[data-id="sysinfo_'+l+'"]').text();if(l=="local_time"&&settings_window_replace_timestamps){if(m&&m.length){o=$(a).find('span[data-id="sysinfo_'+l+'"] a').data("convertible-timestamp-full");f.html(m.html(moment.unix(o).format(settings_window_replaced_timestamp_format_full)))}else{o=$(a).find('span[data-id="sysinfo_'+l+'"] > span').data("convertible-timestamp-full");f.html(moment.unix(o).format(settings_window_replaced_timestamp_format_full))}}else{(m&&m.length)&&f.html(m.html(o))}}if($(a).find('.piechart[data-charts="sysinfo_'+l+'"]').length){var j=t__wi_p.$('iframe[name="page"]').get(0),h=(typeof t__wi_p.$('iframe[name="page"]').get(0).contentWindow.$==="function"),g=(h?t__wi_p.$('iframe[name="page"]').get(0).contentWindow.$("body").find('.piechart[data-charts="sysinfo_'+l+'"]'):0);if(j&&j.contentWindow&&g.length){g.data("easyPieChart").update(n)}}if(l=="cpu_percent"||l=="mem_percent"||l=="virt_percent"||l=="disk_percent"){localStorage.setItem($hostname+"-sysinfo_"+l+"_seen",n)}$(a).find(".modal-backdrop").remove()}$__id__=moment().unix();if(l=="cpu_percent"||l=="mem_percent"||l=="virt_percent"||l=="disk_percent"||l=="csf_title"||l=="csf_remote_version"||l=="authentic_remote_version"||l=="package_message"){if(!localStorage.getItem($hostname+"-sysinfo_"+l)){localStorage.setItem($hostname+"-sysinfo_"+l,n)}}else{if(n==null||n==NaN){localStorage.setItem($hostname+"-sysinfo_"+l,"")}else{localStorage.setItem($hostname+"-sysinfo_"+l,n)}}if(!localStorage.getItem($hostname+"-sysinfo_package_message_initial")){localStorage.setItem($hostname+"-sysinfo_package_message_initial",1)}if(l=="authentic_theme_version"){if(!localStorage.getItem($hostname+"-sysinfo_theme_current_version")&&n){localStorage.setItem($hostname+"-sysinfo_theme_current_version",(n.match(/^\d+|\d+\b|\d+(?=\w)/g)[0]+"."+n.match(/^\d+|\d+\b|\d+(?=\w)/g)[1]))}}if(l=="csf_data"){if(!localStorage.getItem($hostname+"-sysinfo_csf_current_version")&&n){localStorage.setItem($hostname+"-sysinfo_csf_current_version",(n.match(/^\d+|\d+\b|\d+(?=\w)/g)[0]+"."+n.match(/^\d+|\d+\b|\d+(?=\w)/g)[1]))}}if(l=="csf_title"||l=="csf_remote_version"||l=="authentic_remote_version"||l=="package_message"){if(l=="package_message"&&(localStorage.getItem($hostname+"-sysinfo_"+l)!=n||localStorage.getItem($hostname+"-sysinfo_package_message_initial")==1)&&n&&n.indexOf("badge-danger")>-1){localStorage.setItem($hostname+"-notifications_"+$__id__+"_package_message",JSON.stringify({title:lang("theme_xhred_notifications_packages_updates"),time:$__id__,timestamp:$__id__,message:($(n).html().replace(/badge-danger/g,"badge-success")),readStatus:0,type:l,link:$(n).attr("href")}));localStorage.setItem($hostname+"-sysinfo_"+l,n);localStorage.setItem($hostname+"-sysinfo_package_message_initial",0)}else{if(l==="package_message"){localStorage.setItem($hostname+"-sysinfo_"+l,n)}}if(settings_sysinfo_theme_updates){if(localStorage.getItem($hostname+"-sysinfo_authentic_remote_version")==0){localStorage.removeItem($hostname+"-sysinfo_authentic_remote_version")}if(localStorage.getItem($hostname+"-sysinfo_theme_current_version")&&localStorage.getItem($hostname+"-sysinfo_authentic_remote_version")){if(l=="authentic_remote_version"&&localStorage.getItem($hostname+"-sysinfo_theme_current_version")',readStatus:0,type:l,link:$_____link_full+"/sysinfo.cgi"}));localStorage.setItem($hostname+"-sysinfo_"+l,n);localStorage.setItem($hostname+"-sysinfo_theme_current_version",n)}}}if(settings_sysinfo_csf_updates){if(localStorage.getItem($hostname+"-sysinfo_csf_current_version")&&localStorage.getItem($hostname+"-sysinfo_csf_current_version")!=null&&localStorage.getItem($hostname+"-sysinfo_csf_remote_version")){if(l=="csf_remote_version"&&localStorage.getItem($hostname+"-sysinfo_csf_current_version")-1&&localStorage.getItem($hostname+"-sysinfo_csf_not_running")!=1){localStorage.setItem($hostname+"-notifications_"+$__id__+"_csf_title",JSON.stringify({title:lang("theme_xhred_notifications_firewall_danger"),time:$__id__,timestamp:$__id__,message:lang("theme_xhred_notifications_firewall_danger_message").replace("%v",moment.unix($__id__).format(settings_window_replaced_timestamp_format_short)),readStatus:0,type:l,link:$_____link_full+"/csf"}));localStorage.setItem($hostname+"-sysinfo_csf_not_running",1)}else{if(l=="csf_title"&&n&&n.indexOf("label-danger")===-1){localStorage.removeItem($hostname+"-sysinfo_csf_not_running")}}}if(l=="csf_deny"){var k=JSON.parse(n);$.each(k,function(w,t){var t=t.split("|"),x=t[0],q=t[1],y=t[2],p=t[3],v=t[4],r=t[5],u=t[6],s=t[7];s=s.replace("*Port Scan*",((y&&p)?'Port '+p+" scan":"Port scan"));if(!localStorage.getItem($hostname+"-allowed_trigger_"+(x+q.replace(/\./g,"0"))+"_csf_deny")){localStorage.setItem($hostname+"-notifications_"+(x+q.replace(/\./g,"0"))+"_csf_deny",JSON.stringify({title:lang("theme_xhred_notifications_firewall_warning"),time:$__id__,timestamp:$__id__,message:s+((y&&p)?" ("+y+":"+p+")":""),readStatus:0,type:l,link:$_____link_full+"/csf"}));localStorage.setItem($hostname+"-allowed_trigger_"+(x+q.replace(/\./g,"0"))+"_csf_deny",1)}})}if(l=="cpu_percent"||l=="mem_percent"||l=="virt_percent"||l=="disk_percent"){if(localStorage.getItem($hostname+"-sysinfo_"+l+"_seen")!==null&&n>=85&&localStorage.getItem($hostname+"-sysinfo_"+l+"_seen")30&&A<=60?"--bg-success":(A>60&&A<=80)?"bg-warning":(A>80)?"bg-danger":"")),E=$(this).text().indexOf("°C")>-1;if(!E){D=(A<=86?"--bg-info":(A>86&&A<=140?"--bg-success":(A>140&&A<=176)?"bg-warning":(A>176)?"bg-danger":""))}if(D=="bg-warning"||D=="bg-danger"){q=1}if(!$("#right-side-tabs .info-container .badge-drivestatus.badge-cpustatus").length){$('strong[data-stats="cpu"] + br[data-stats="cpu"]').after(n.replace(/
| /gi,""))}$($("#right-side-tabs .info-container .badge-drivestatus.badge-cpustatus")[B]).html($(this).text()).removeClass((function(F,G){return(G.match(/(^|\s)bg-\S+/g)||[]).join(" ")})).addClass(D)}).promise().done(function(){if(q){$('[data-stats="cpu"]').removeClass("hidden")}else{$('[data-stats="cpu"]').addClass("hidden")}})}if(l=="hdd_temperature"){var r=0;$.each($(n),function(B,C){var A=parseInt($(this).text().split(":")[1]),D=(A<=30?"--bg-info":(A>30&&A<=60?"--bg-success":(A>60&&A<=80)?"bg-warning":(A>80)?"bg-danger":"")),E=$(this).text().indexOf("°C")>-1;if(!E){D=(A<=86?"--bg-info":(A>86&&A<=140?"--bg-success":(A>140&&A<=176)?"bg-warning":(A>176)?"bg-danger":""))}if(D=="bg-warning"||D=="bg-danger"){r=1}if(!$("#right-side-tabs .info-container .badge-drivestatus:not(.badge-cpustatus)").length){$('strong[data-stats="drive"] + br[data-stats="drive"]').after(n.replace(/
| /gi,""))}$($("#right-side-tabs .info-container .badge-drivestatus:not(.badge-cpustatus)")[B]).html($(this).text()).removeClass((function(F,G){return(G.match(/(^|\s)bg-\S+/g)||[]).join(" ")})).addClass(D)}).promise().done(function(){if(r){$('[data-stats="drive"]').removeClass("hidden")}else{$('[data-stats="drive"]').addClass("hidden")}})}if(l=="uptime"||l=="running_proc"){var x=$('#right-side-tabs .info-container .info-list-data span[data-data="'+l+'"] a');if(x&&x.length){var s=x.parent(),z=s.text();s.html(x.text(z))}}if(l=="warning_si"){var p=$("#right-side-tabs .info-container .warning-list-data");p.html(n.replace(/<(script|link|meta)\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/(script|link|meta)>/gi,"").replace("type='submit'","formtarget='page' type='submit'").replace("class='ui_submit","class='ui_submit btn btn-default btn-xs").replace('ui_form_end_submit" type="button"','ui_form_end_submit" type="submit" formtarget="page"').replace("ui_form_end_submit","ui_form_end_submit btn-tiny"));((n=="
")&&p.empty())}if(l=="extended_si"){var p=$("#right-side-tabs .info-container .extended-list-data");var y=(n.replace(/aria-expanded="true"/gi,'aria-expanded="false"').replace(/collapse in/gi,"collapse"));opened_tabs=$("#extended_sysinfo .panel .in").map(function(){y=(y.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+'"'));y=(y.replace('div id="'+this.id+'" class="panel-collapse collapse"','div id="'+this.id+'" class="panel-collapse collapse in"'))}).promise().done(function(){p.html('
'+y);var A=$("#right-side-tabs .extended-list-data");A.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(A.find("div.panel-heading .panel-title"),function(){var C=$(this).find("a"),B=$(this).find("a").attr("aria-expanded")!="true"?1:0,D=(B?"+":"—");$(this).append(''+D+"");C.text(upperFirst($.trim(C.text())))});A.find(".panel.panel-default").detach().appendTo("#right-side-tabs #extended_sysinfo");A.find("div.panel-body").find("img").remove();A.find("a").attr("target","page");A.find('input[type="submit"]').addClass("btn btn-default btn-xs");A.find('input[type="submit"]').parents("form").attr("formtarget","page");A.find('button[type="button"].ui_submit').addClass("btn btn-default btn-xs");A.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("+")})})}if($.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(){t__wi_p.$___ajax_requested_url="_blank"},500);setTimeout(function(){n___ck()},3000);if(a){$(a).find('h3 > a[data-refresh="system-status"]').removeClass("disabled").find("i").removeClass("fa-spin")}}})}}function __si__bg_upd(){setTimeout(function(){__si__bg_upd_exec()},5000);if(settings_side_slider_enabled&&!t__wi_p.$('iframe[name="page"]').contents().find("body .modal.in").length){return t___wi.setInterval(function(){__si__bg_upd_exec()},(settings_side_slider_background_refresh_time*60000))}}var __si__bg_upd_id=__si__bg_upd();if(settings_loader_top){if(typeof NProgress=="object"){NProgress.configure({showSpinner:true,trickleRate:0.08,trickleSpeed:200})}}$(window).ajaxStart(function(){if(t__wi_p.$___ajax_requested_url.indexOf("index.cgi/?xhr-info=1")===-1&&t__wi_p.$___ajax_requested_url.indexOf("___LL_PREV___")===-1){t___p__xhr_l=1;t__wi_p.__lls()}}).ajaxStop(function(){if(t__wi_p.$___ajax_requested_url.indexOf("index.cgi/?xhr-info=1")===-1){t___p__xhr_l=0;t__wi_p.__lle()}});(function(){if(typeof t___wi.Messenger.Message!="function"){return}var j,h,k,g={}.hasOwnProperty,e=function(a,d){for(var f in d){if(g.call(d,f)){a[f]=d[f]}}function c(){this.constructor=a}c.prototype=d.prototype;a.prototype=new c();a.__super__=d.prototype;return a};j=jQuery;k='
\n \n \n \n \n \n \n
';h=(function(c){e(a,c);function a(){return a.__super__.constructor.apply(this,arguments)}a.prototype.template=function(d){var f;f=a.__super__.template.apply(this,arguments);f.append(j(k));return f};return a})(t___wi.Messenger.Message);t___wi.Messenger.themes.air={Message:h};Messenger.options={extraClasses:"messenger-fixed messenger-on-bottom",theme:"air"}}).call(this);if(navigator.userAgent.match(/(iPod|iPhone|iPad)/)){$("#content").attr("style","-webkit-overflow-scrolling: touch !important; overflow-y: scroll !important;")}if(t__wi_p.$('a[target="page"][href="link/"]').first().length){t__wi_p.$('a[target="page"][href="link/"]').first().attr("target","blank")}$("aside").on("click",".select2-container .select2-selection__arrow b",function(a){a.preventDefault();a.stopPropagation()});$("body").on("keydown",".sidebar-search",function(c){if(t__wi_p.$("#wrapper").data("webmail")!==-1){if(c.keyCode==13){c.preventDefault();return false}}});$("body").on("click",".mobile-menu-toggler",function(c){$this=$(this);if($("aside").hasClass("hidden-xs")){$(this).addClass("selected").find("button").addClass("btn-primary").removeClass("btn-default");if(t__wi_p.$(".__logo")){t__wi_p.$(".__logo").css("transform","translate(0px, 0px)");setTimeout(function(){t__wi_p.$(".__logo").transition({y:"-140px"},1000)},1100)}t__wi_p.$this.css("transform","translate(0px, 0px)");t__wi_p.$("aside").css("transform","translate(0px, 0px)");t__wi_p.$(".switch-toggle").css("display","none");$("aside").removeClass("hidden-xs");t__wi_p.$("aside, .mobile-menu-toggler").transition({x:settings_leftmenu_width},1000);t__wi_p.$(".switch-toggle").css("display","table")}else{hide_mobile_menu()}});$.each($('ul.navigation li.navigation_external a[href^="../servers/link.cgi/"]'),function(d,c){$(this).attr("href",$__source_url+$(this).attr("href").replace("../","").replace(/\/$/g,""))});$("body").on("click",'.navigation a[target="page"], .user-links a[target="page"]',function(){hide_mobile_menu()});$("body").on("click",".navigation > li .navigation_external_link",function(a){a.preventDefault();a.stopPropagation();b=$(this);window.open(b.attr("href"),"_blank")});$("body").on("click",".navigation > li:not('.sub-wrapper'):not('.menu-container'):not('.navigation_external')",function(g){g.preventDefault();g.stopPropagation();t__wi_p.$___________m_locked=1;typeof $processing=="undefined"?$processing=false:false;if(!$processing){$processing=true;var f=$("a",this).attr("href"),h=$("a",this).attr("target"),e=$(this);if(h){$(".navigation > li > ul.sub > li").each(function(){$(this).removeClass("sub_active").find("span.current").remove()})}$("#webmin_search_form").submit(function(){$(".navigation > li > ul.sub > li").each(function(){$(this).removeClass("sub_active").find("span.current").remove()})});$.when($("#sidebar .navigation > li").each(function(){var a=$(this);if(!$(this).is(e)){$(this).removeClass("active");if($(this).find("a").attr("href")!="#search"&&!$(this).find("a").attr("target")){if($(a.find("a").attr("href")).hasClass("sub")){$(a.find("a").attr("href")).slideUp($settings_animation_left_slide_time)}}}})).done(function(){e.hasClass("active")?e.removeClass("active"):(f!="#hide"&&!h)?e.addClass("active"):false;setTimeout(function(){if($(f).is(":visible")&&f!="#hide"&&!h){e.addClass("active")}else{e.removeClass("active")}$processing=false},((2*$settings_animation_left_slide_time)>0?(2*$settings_animation_left_slide_time):1));$(f).slideToggle($settings_animation_left_slide_time)});if(f=="#search"){$('#sidebar input[name="search"]').focus()}}});$("body").on("click",".navigation > li > ul.sub > li:not('.menu-container')",function(d){if(d.target&&$(d.target).is("li")){return}var c=$(this);if(__num()){t__wi_p.$(".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("");c.addClass("sub_active").append('')});$(".navigation > li > ul.sub").each(function(){if($(this).attr("id")===""){$(this).remove()}});$("body").on("submit","#webmin_search_form",function(){});$("body").on("click",".navigation_module_trigger",function(c){c.preventDefault();c.stopPropagation();$('iframe[name="page"]').attr("src",$(this).data("href"));$(".navbar-toggle:visible").trigger("click");t__wi_p.$(".navigation > li > ul.sub > li").removeClass("sub_active").find("span.current").remove();t__wi_p.$("#sidebar .navigation > ul.sub").slideUp($settings_animation_left_slide_time);t__wi_p.$("#sidebar .navigation > li").removeClass("active")});$('.switch-toggle label[for^="reserve_empty"]').on("click",function(c){c.preventDefault()});$("body").on("click",'a[data-refresh="true"]',function(c){c.preventDefault();if(typeof t__wi_p.$('iframe[name="page"]')!="undefined"&&t__wi_p.$('iframe[name="page"]').contents()&&t__wi_p.$('iframe[name="page"]').contents().get(0)){t__wi_p.$('iframe[name="page"]').contents().get(0).location.reload()}});$("body").on("click",function(c){if(!$("ul.dropdown").is(c.target)&&$("ul.dropdown").has(c.target).length===0&&$(".open").has(c.target).length===0){$("ul.dropdown").removeClass("open")}});$(t__wi_p.$('iframe[name="page"]').contents()).on("click",function(c){if(!t__wi_p.$("ul.dropdown").is(c.target)&&t__wi_p.$("ul.dropdown").has(c.target).length===0&&t__wi_p.$(".open").has(c.target).length===0){t__wi_p.$("body").find(".navbar-header").find(".dropdown.open").removeClass("open")}});function upd_labels(){t__wi_p.$('a[href*="#right-side-tabs-sysinfo"]').text(lang("theme_xhred_titles_dashboard"));t__wi_p.$('a[href*="#right-side-tabs-notifications"]').text(lang("theme_xhred_global_notifications"));t__wi_p.$('a[href*="#right-side-tabs-favorites"]').text(lang("theme_xhred_global_favorites"));t__wi_p.$(".theme_xhred_notification_no_data").text(lang("theme_xhred_notification_no_data").toUpperCase());t__wi_p.$(".theme_xhred_notification_no_favorites").text(lang("theme_xhred_notification_no_favorites").toUpperCase());t__wi_p.$(".theme_xhred_notification_none").text(lang("theme_xhred_notification_none").toUpperCase())}function __tmp_opener(){t___wi.open($("#__tmp_openner").attr("href"));$("#__tmp_openner").remove()}function __tmp_opener_link(c){$("body").append('')}t__wi_p.$(".switch-toggle").on("contextmenu","label",function(c){c.preventDefault();if($(this).attr("for")=="open_webmin"||$(this).attr("for")=="open_usermin"){__tmp_opener_link("");__tmp_opener()}else{if($(this).attr("for")=="open_virtualmin"){__tmp_opener_link("?virtualmin");__tmp_opener()}else{if($(this).attr("for")=="open_cloudmin"){__tmp_opener_link("?cloudmin");__tmp_opener()}else{if($(this).attr("for")=="open_webmail"){__tmp_opener_link("?mail");__tmp_opener()}}}}});t__wi_p.$(".switch-toggle").on("click","input.dynamic",function(c){if(t___p__xhr_l===1||(typeof t___p__xhr_r!="undefined"&&t___p__xhr_r===1)){c.preventDefault();c.stopPropagation();return}t__wi_p.hide_mobile_menu();if($(this).attr("id")=="open_thirdlane"){t__wi_p.location.href=$_____link_full+"/asterisk/index.cgi";return}t__wi_p.t__s($(this).attr("id"));if($(this).attr("id")=="open_dashboard"){t__wi_p.$('iframe[name="page"]').attr("src",$_____link_full+"/sysinfo.cgi");t__wi_p.__cms();return}t__m($(this).attr("id"),false,false)});t_sel_i();$("aside").mCustomScrollbar({axis:"y",theme:"minimal",scrollInertia:100,scrollButtons:false,callbacks:{onScroll:function(){if(!t__wi_p.$(".mobile-menu-toggler").is(":visible")){t__wi_p.$(".form-control.sidebar-search").blur();if(t__wi_p.$("aside select")&&t__wi_p.$("aside select").length>0&&t__wi_p.$("aside select").hasClass("select2-hidden-accessible")){t__wi_p.$("aside select").select2("close")}}}}});t__wi_p.$(".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 > .fa",function(c){t__wi_p.t___p__xhr_l=0;t__wi_p.t___p__xhr_r=0;t__wi_p.$___ajax_requested_url="_blank";t__wi_p.__lre()}).on("click","#loader-close-sm > .fa",function(c){t__wi_p.t___p__xhr_l=0;t__wi_p.t___p__xhr_r=0;t__wi_p.$___ajax_requested_url="_blank";t__wi_p.__lle()});__shell_commands__i__=0;t__wi_p.$(".form-control.sidebar-search").focus(function(a){t__wi_p.$(".__logo").addClass("inited");a.preventDefault();a.stopPropagation();__shell_commands__i__=0});const shell=t__wi_p.$("body").find(".-shell-port-"),cmdInput=shell.find('input[data-command="true"]'),shellOut=shell.find("div[data-output]"),shellCont=shell.find(".-shell-port-container"),shellAutocomplete=shell.data("autocomplete");$(window).keydown(function(p){var m=t__wi_p.$("body").find(".-shell-port-").hasClass("opened");if(!m){t__wi_p.search_control(p);t__wi_p.shortcut_control(p)}if(p.keyCode===38&&((cmdInput.is(":focus")&&m)||(t__wi_p.$(".form-control.sidebar-search").is(":focus")))){p.preventDefault()}if(p.keyCode===9&&cmdInput.is(":focus")&&m&&t__wi_p.$___ajax_requested_url!=="___blocked"){p.preventDefault();if(!shellAutocomplete){return}var h=cmdInput.val().trim().split(/\s+(?!-)/),d=h.length,l=(h[0]&&h[0].indexOf("-")===-1?0:1),f=(h[1]&&h[1].indexOf(":")===-1?0:1),g=cmdInput.val().endsWith(" "),e=$.trim(h[0])==="service",k=$.trim(h[0])==="systemctl",q=($.trim(h[0])&&$.trim(h[0]).startsWith("chown")),c=((h.length===1&&cmdInput.val().length&&!l&&!g)?"commands":((e||k)?"services":(q?"permissions":"lists")));if(!$.trim(cmdInput.val()).length){return}var o=cmdInput.val(),n=shell.find(".-shell-port-pwd"),j=n.attr("data-pwd");if(c==="services"){c=(e?"service":"systemctl");if(c==="systemctl"&&h.length!==3){return}o=(c=="service"?$.trim(h[1]):$.trim(h[2]));if($.trim(h[0])==="service"&&((h.length===2&&g)||h.length===3)){if(h.length===3){o="::::"+$.trim(h[1])+"::::"+$.trim(h[2])}else{o="::::"+$.trim(h[1])}}}if(q){if(d===1&&!g){cmdInput.val($.trim(h[0])+" ");return}if(!f||!$.trim(h[1])){c="users";o=$.trim(h[1])}else{if(!g&&!h[2]){c="groups";o=$.trim($.trim(h[1]).split(":")[1])}else{c="lists";o=j+"/::::"+$.trim(h[2])}}}if(c==="lists"&&!q){o=j+"/::::"+$.trim(h[1])+"::::"+$.trim(h[0])+"::::"+$.trim(h[2])}t__wi_p.$___ajax_requested_url="___blocked";$.ajax({type:"POST",url:$_____link_full+"/index.cgi?xhr-get_autocompletes=1&xhr-get_autocomplete_type="+c+"&xhr-get_autocomplete_string="+o+"",data:false,dataType:"json",success:function(u){var r=u.length;if(r===1){if(c==="service"||c==="systemctl"||c==="lists"){var s=$.trim(h[0]),t=$.trim(h[0])+" "+$.trim(h[1]);if(c==="lists"){if(((s==="cd"&&u[0].endsWith("/")))||(s!=="cd")){if(s==="cd"||s==="cat"){cmdInput.val(s+" "+u[0])}else{if($.trim(h[2])){cmdInput.val(t+" "+u[0]+"")}else{cmdInput.val(s+" "+u[0]+"")}}}}else{if(s==="service"&&(h.length===2||h.length===3)){if(h.length===2){cmdInput.val(s+" "+u[0]+" ")}else{if(h.length===3){cmdInput.val($.trim(h[0])+" "+$.trim(h[1])+" "+u[0])}}}else{if(s==="systemctl"&&h.length===3){cmdInput.val(s+" "+$.trim(h[1])+" "+u[0])}}}}else{if(q){if(!f){cmdInput.val($.trim(h[0])+" "+u[0]+":")}else{if(!g&&!h[2]){cmdInput.val($.trim(h[0])+" "+$.trim($.trim(h[1]).split(":")[0])+":"+u[0]+" ")}else{cmdInput.val($.trim(h[0])+" "+$.trim(h[1])+" "+u[0]+"")}}}else{cmdInput.val(u[0]+" ")}}}else{if(r>1){var a=""+$(".-shell-port-type").text()+" "+escape_html(cmdInput.val())+"\n";shellOut.find("pre").append(a);shellOut.find("pre").append(escape_html(u.join("\n")+"\n"));shellCont.scrollTop(shellCont[0].scrollHeight)}}setTimeout(function(){cmdInput.focus().mousedown()},10)},error:function(){}})}});$(window).keyup(function(D){var s=t__wi_p.$("body").find(".-shell-port-").hasClass("opened");if(s){var y=0,o=0,u=0,k=t__wi_p.$(".form-control.sidebar-search"),C=(product_name(1).toLowerCase()=="cloudmin"&&t__wi_p.$('a[target="page"][href*="/server-manager/save_serv.cgi"][href*="shell=1"]').length),p=0;var E=0;if(C){E=($_____link_full+"/server-manager/shell.cgi")}else{if(is_module("shell")){E=($_____link_full+"/shell/index.cgi")}else{return}}if(s||k.is(":focus")){if(D.keyCode===8){__shell_commands__i__=0}}if(s){y=$.trim(cmdInput.val());o=1;u=1}else{y=k.val();o=(typeof k.val()!="undefined");u=0}if((u||(o&&(!y.trim()||y.trim().startsWith("!"))))&&(D.keyCode==38||D.keyCode==40)){D.preventDefault();D.stopPropagation();typeof localStorage.getItem($hostname+"-shell_commands")=="undefined"?localStorage.setItem($hostname+"-shell_commands",JSON.stringify({})):false;var e=JSON.parse(localStorage.getItem($hostname+"-shell_commands")),w=e?e.length:0;if(__shell_commands__i__===0&&!y&&D.keyCode==40){return}else{if(__shell_commands__i__===0&&y&&D.keyCode==38){p=1;return}else{__shell_commands__i__=D.keyCode==40?++__shell_commands__i__:--__shell_commands__i__}}if(__shell_commands__i__<0&&D.keyCode===38){__shell_commands__i__=w-1}else{if(__shell_commands__i__>w){__shell_commands__i__=0}}if(e&&e[__shell_commands__i__%w]){if(!$.isEmptyObject(e)&&(((__shell_commands__i__==w)&&D.keyCode===38)||((__shell_commands__i__==w)&&D.keyCode===40)||p)){if(s){cmdInput.val("").focus()}else{k.val("").focus()}__shell_commands__i__=0;return}if(s){var d=(e[__shell_commands__i__%w]).replace(/^!/,"");cmdInput.val(decode_html(d)).focus()}}return}else{if(o&&y.trim().startsWith("!")&&D.keyCode==27){D.preventDefault();D.stopPropagation();k.val("").focus();return}}if(o&&y.trim().startsWith("!")&&D.keyCode==13){k.addClass("_shell_form_");D.preventDefault();D.stopPropagation();if(is_module("shell")==1||C){cmdInput.val(y.trim().substring(1)).focus();ported_shell_open(shell);var z=$.Event("keyup");z.keyCode=13;cmdInput.trigger(z)}}var g=shell.find(".-shell-port-container"),q=shell.find(".-shell-port-pwd"),r=q.attr("data-pwd"),G=$.trim(cmdInput.val()),t=0,B=D.keyCode?D.keyCode:D.which,j=(D.altKey&&String.fromCharCode(D.which).toLowerCase()=="l");if(B===27){ported_shell_close(shell);return}if(!cmdInput.is(":focus")&&!get_selected_text()){if(!D.ctrlKey&&!D.altKey&&!D.shiftKey&&!D.metaKey){cmdInput.val(cmdInput.val()+String.fromCharCode(D.which).toLowerCase())}cmdInput.focus()}if(G&&B===13||j){if(is_module("shell")||C){if(t__wi_p.$____shelling__===1){return}t__wi_p.$____shelling__=1;if(G=="clear"||G=="reset"||G=="exit"||j){shellOut.find("pre").html("");ported_shell_clear_cmd(cmdInput);if(G=="exit"){ported_shell_close(shell)}}if(G=="cd ~"){t=G;G=("cd "+q.attr("data-home"))}var F=false;if(G=="cd /"){F="/"}if(G=="history -c"){localStorage.setItem($hostname+"-shell_commands",JSON.stringify({}));var l=""+$(".-shell-port-type").text()+" "+G+"\n";shellOut.find("pre").append(l);ported_shell_clear_cmd(cmdInput);g.scrollTop(g[0].scrollHeight);var f='',A=new FormData($(f)[0]);t__wi_p.$___ajax_requested_url="___blocked";$.ajax({type:"POST",url:(E+"?stripped=1&stripped=2"),data:A,dataType:"text",cache:false,contentType:false,processData:false,success:function(a){},error:function(a){}})}else{if(G.startsWith("history")){ported_shell_clear_cmd(cmdInput);var v=JSON.parse(localStorage.getItem($hostname+"-shell_commands")),h=v?v.length:0,x=(h?h.toString().length:0),l=""+$(".-shell-port-type").text()+" "+G+"\n";$.each($(v),function(I,a){var c=I.toString().length,H="";for(i=0;i<((x+1)-c);i++){H+=" "}(typeof a=="string"&&(l+=((I+1)+H+a)+"\n"))}).promise().done(function(){shellOut.find("pre").append(l);g.scrollTop(g[0].scrollHeight)})}}if(G=="clear"||G=="reset"||G=="exit"||G.startsWith("history")||j){t__wi_p.$____shelling__=0;__shell_commands__i__=0;ported_shell_size();cmdInput.focus();return}var n='',m=new FormData($(n)[0]);t__wi_p.$___ajax_requested_url="___blocked";cmdInput.attr("readonly","true");$.ajax({type:"POST",url:(E+"?stripped=1&stripped=2"),data:m,dataType:"text",cache:false,contentType:false,processData:false,success:function(a){var I=$(".-shell-port-type").text(),H=$(a).find("pre").html().replace(/>>/g,">"+I+""),c=$(a).find('select[name="pcmd"] option').map(function(){return escape_html($(this).val())}).get().reOrder(-1,0).reverse();localStorage.setItem($hostname+"-shell_commands",JSON.stringify(c));newPwd=$(a).find('input[name="pwd"]').val();shellOut.find("pre").append((t?(H.replace(new RegExp(G,"g"),t)):H));q.text(F?F:(newPwd==q.attr("data-home")?"~":newPwd.split("/").filter(function(J){return $.trim(J)!=""}).slice(-1)[0])).attr("data-pwd",F?F:newPwd).attr("title",F?F:newPwd);ported_shell_size();ported_shell_clear_cmd(cmdInput);g.scrollTop(g[0].scrollHeight);setTimeout(function(){t__wi_p.$____shelling__=0;__shell_commands__i__=0;cmdInput.removeAttr("readonly").focus()},100)},error:function(a){}})}}}});$("body").on("submit","#webmin_search_form",function(c){var e=$(this),g=e.find("input.sidebar-search"),d=!g.val().trim().startsWith("!"),f=t__wi_p.$(".form-control.sidebar-search");if(!d||!$.trim(f.val())){c.preventDefault();if(ported_shell_available()){ported_shell_open(shell,g.val())}}setTimeout(function(){t__wi_p.$(".navigation > li:not('.has-sub')").removeClass("sub_active").find("span.current-large").remove();if(d){f.val("")}},30)});$("body").on("click","#right-side-tabs .right_pane_favorites_link",function(c){$(".favorites-menu-outer.hover + .favorites-menu-close").trigger("click")});$("aside").on("click",".user-links > li.favorites",function(c){$(".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(){t__wi_p.$(".favorites-menu-outer").removeClass("hover")});$(document).on("keydown",function(c){if($(".favorites-menu-outer").css("left")=="0px"&&c.keyCode==27){t__wi_p.$(".favorites-menu-outer").removeClass("hover")}});favicon=new Favico({animation:"none"});function n___fv(){if(!settings_side_slider_enabled||!settings_side_slider_notifications_enabled){return}var a=$(".right-side-tabs .list-group-item:not(.no-notifications, .opacity-0_3)").length;favicon.badge(a);__dpt();if(a>0){$(".right-side-tabs-toggler button i.fa-bell").addClass("faa-ring faa-slow animated-hover");$(".right-side-tabs-toggler button span.badge").removeClass("hidden").text(a);$("#right-side-tabs .right-side-tab-notification-asterix").removeClass("hidden").text(a)}else{$(".right-side-tabs-toggler button i.fa-bell").removeClass("faa-ring faa-slow animated-hover");$(".right-side-tabs-toggler button span.badge").addClass("hidden").text(0);$("#right-side-tabs .right-side-tab-notification-asterix").addClass("hidden").text(0)}}function n___ck(){var c={};$.each(localStorage,function(j,o){if(typeof j=="string"&&j.indexOf("notifications_")>-1&&j.indexOf($hostname)>-1){var l=j.split("_")[1],p=JSON.parse(o),e=p.title,g=p.time,h=p.timestamp,k=p.message,f=p.readStatus,m=p.type,n=p.link;c[g+"_"+e]=""+l+"~~~~"+e+"~~~~"+g+"~~~~"+h+"~~~~"+k+"~~~~"+f+"~~~~"+m+"~~~~"+n;if($('.list-group-item[id="'+l+'"][data-type="'+m+'"]').length){$('.list-group-item[id="'+l+'"][data-type="'+m+'"] .list-group-item-heading small').text(moment.unix(g).fromNow())}}});var d=[];for(var a in c){if(c.hasOwnProperty(a)){d.push(a)}}$current_localData_notifications_sorted_keys=d.sort();$.each($current_localData_notifications_sorted_keys,function(j,p){var o=c[p],l=o.split("~~~~")[0],e=o.split("~~~~")[1],g=o.split("~~~~")[2],h=o.split("~~~~")[3],k=o.split("~~~~")[4],f=o.split("~~~~")[5],m=o.split("~~~~")[6],n=o.split("~~~~")[7];if(!$('.list-group-item[id="'+l+'"][data-type="'+m+'"]').length){n___ad(l,e,g,h,k,f,m,n)}})}function n___rm(){$.each(localStorage,function(c,a){if(typeof c=="string"&&c.indexOf("notifications_")>-1&&c.indexOf($hostname)>-1){delete localStorage[c]}})}function n___mr(e,a,c,f){var d=JSON.parse(localStorage.getItem($hostname+"-notifications_"+e+"_"+a));if(d){localStorage.setItem($hostname+"-notifications_"+e+"_"+a,JSON.stringify({title:d.title,time:d.time,timestamp:d.timestamp,message:d.message,readStatus:c,type:d.type,link:d.link}))}f&&n___fv()}function n___mr_a(){$(".right-side-tabs .list-group-item:not(.no-notifications)").each(function(){$(this).addClass("opacity-0_3");n___mr($(this).attr("id"),$(this).data("type"),1,0)}).promise().done(function(){n___fv()})}function n___ad(j,h,g,d,e,f,a,c){$(".right-side-tabs .list-group").prepend('
'+h+" "+moment.unix(g).fromNow()+"
"+e+"
");$(".right-side-tabs-no-notifications").remove();n___fv();if(!t__wi_p.$___________initial){n___em()}}function n___em(){if($(".right-side-tabs .list-group-item").length===0){var a=lang("theme_xhred_notification_none");$(".right-side-tabs .list-group").prepend('
'+(a?a.toUpperCase():"")+"
");$(".right-side-tabs-no-notifications").animate({opacity:"1"},$settings_animation_left_slide_time,function(){})}setTimeout(function(){n___fv()},$settings_animation_left_slide_time)}function set_rp_tt(){function a(){var c=$("span[data-convertible-timestamp-full]");c.data("convertible-timestamp-full",(parseInt(c.data("convertible-timestamp-full"))+1));c.text(t__wi_p.moment.unix(c.data("convertible-timestamp-full")).format(settings_window_replaced_timestamp_format_full))}$(function(){setInterval(a,1000)});$("body").on("click",'#right-side-tabs a:not([data-toggle="collapse"]):not([role="tab"]):not(.list-group-item)',function(c){t__wi_p.$(".right-side-tabs-toggler:not(.hidden)").trigger("click")});$("body").on("click","#right-side-tabs .info-container .info-list-data a",function(c){$(this).attr("target","page")});$("body").on("click","#right-side-tabs .info-container .graph-container-fw",function(c){var e=$(this).attr("class"),d=(e.indexOf("cpu_")>-1?"cpu":(e.indexOf("mem_")>-1?"mem":(e.indexOf("virt_")>-1?"virt":"disk")));if(d=="cpu"&&is_module("proc")){window.page.location.href=$_____link_full+"/proc/index_cpu.cgi"}else{if((d=="mem"||d=="virt")&&is_module("proc")){window.page.location.href=$_____link_full+"/proc/index_size.cgi"}else{if(d=="disk"&&is_module("disk-usage")){window.page.location.href=$_____link_full+"/disk-usage"}else{if(d=="disk"&&is_module("quota")){window.page.location.href=$_____link_full+"/quota/list_users.cgi?dir=%2F"}}}}t__wi_p.$(".right-side-tabs-toggler:not(.hidden)").trigger("click")})}function fetch_right_pane_favorites(){var a=window.page.f__g(),c=$("#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();if(a.length){$.each(a,function(e,d){var f=$("#right-side-tabs .favorites-dcontainer");f.append(''+(e+1)+'  '+d.title+"")});c.addClass("hidden")}else{c.removeClass("hidden")}}function get_right_panel_sysinfo_data(){set_rp_tt();$_____________got_rp__sys_dat=1;return'
'+lang("theme_xhred_notification_no_data").toUpperCase()+"
"}if($access_level==0&&is_module("status")==1){var defalt_right_tab=(localStorage.getItem($hostname+"-right-side-tab")?localStorage.getItem($hostname+"-right-side-tab"):"#right-side-tabs-sysinfo"),$no_stats_data='
',$no_fav_data='
';$("body").append(' ');if(!$('a[href="'+defalt_right_tab+'"]: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(c){var a=$(c.target).attr("href");localStorage.setItem($hostname+"-right-side-tab",a)});$("body").on("click",".right-side-tabs-favorites-ctl",function(a){if($(".favorites-menu-outer").hasClass("hover")){$(".favorites-menu-close").trigger("click")}else{$(".user-link.favorites").trigger("click")}});$("body").on("click","#right-side-tabs .fa-dashboard",function(a){t__wi_p.$('iframe[name="page"]').attr("src",$_____link_full+"/sysinfo.cgi");t__wi_p.$(".right-side-tabs-toggler:not(.hidden)").trigger("click")})}else{t__wi_p.$("html").attr("data-slider-fixed","0");t__wi_p.$(".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(a){$(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(a){$(this).find(".fa.fa-trash-o").addClass("hidden");$(this).find(".fa-clear-all").addClass("hidden")});$(".right-side-tabs").on("click","[data-port-href]",function(a){a.preventDefault();a.stopPropagation();t___wi.open($(this).data("port-href"))});$(".right-side-tabs").on("click",'a.list-group-item[data-type="csf_deny"]',function(a){a.preventDefault();a.stopPropagation();if($(a.target).is(".fa.fa-trash-o")||$(a.target).is(".fa-clear-all")||$(a.target).is("[data-port-href]")){return}t__wi_p.$('iframe[name="page"]').contents().find("body").append(' ');t__wi_p.$('iframe[name="page"]').contents().find("form#csf_temporary_ip_entries").submit();t__wi_p.$(".right-side-tabs-toggler:not(.hidden)").trigger("click")});$(".right-side-tabs").on("click contextmenu","a.list-group-item",function(a){a.preventDefault();if(typeof t__wi_p.$('iframe[name="page"]').get(0).contentWindow.__num=="function"&&!t__wi_p.$('iframe[name="page"]').get(0).contentWindow.__num()){a.preventDefault();a.stopPropagation();return}if(a.type=="click"&&($(a.target).is(".authentic_update")||$(a.target).is(".fa-refresh"))){n___mr($($(this).parents("a.list-group-item").context).attr("id"),$($(this).parents("a.list-group-item").context).data("type"),1,1);$($(this).parents("a.list-group-item").context).addClass("opacity-0_3");t__wi_p.$(".right-side-tabs-toggler:not(.hidden)").trigger("click");t__wi_p.history.pushState(null,null,$_____link_full+"/?updating-webmin-theme");t__wi_p.$('iframe[name="page"]').attr("src",$_____link_full+"/webmin/edit_themes.cgi");return}if(a.type=="contextmenu"){$(this).find(".fa-clear-all").trigger("click");a.preventDefault();a.stopPropagation();return}if(!$(a.target).is(".fa.fa-trash-o")&&!$(a.target).is(".fa-clear-all")&&!$(a.target).is("[data-port-href]")){if($(this).attr("href")&&$(this).attr("href").length&&$(this).attr("href")!="undefined"&&$(this).attr("data-type")!="csf_deny"){$(this).addClass("opacity-0_3");$(this).find(".fa-clear-all").addClass("hidden");n___mr($(this).attr("id"),$(this).data("type"),1,1);t__wi_p.$(".right-side-tabs-toggler:not(.hidden)").trigger("click");t__wi_p.$('iframe[name="page"]').attr("src",$(this).attr("href"))}else{$(this).addClass("opacity-0_3");n___mr($(this).attr("id"),$(this).data("type"),1,1)}}else{if($(a.target).is(".fa-clear-all")){$(this).addClass("opacity-0_3");$(this).find(".fa-clear-all").addClass("hidden");n___mr($(this).attr("id"),$(this).data("type"),1,1);return}$(this).animate({opacity:"0"},$settings_animation_left_slide_time,function(){$(this).remove();localStorage.removeItem($hostname+"-notifications_"+$(this).attr("id")+"_"+$(this).data("type"));n___em()})}});$(".right-side-tabs-dismiss i.fa-reload").click(function(a){t__wi_p.__si__bg_upd_exec()});$(".right-side-tabs-dismiss i.fa-clear-all").click(function(a){n___mr_a()});$(".right-side-tabs-dismiss i.fa-trash").click(function(a){$(".right-side-tabs .list-group-item:not(.no-notifications)").animate({opacity:"0"},$settings_animation_left_slide_time,function(){$(this).remove();n___rm();n___em()})});$("body").on("click",".right-side-tabs-toggler:not(.hidden)",function(a){if($(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);if(__ie__()>5&&__ie__()<=11){$(this).find("button").animate({right:"0"},$settings_animation_left_slide_time)}}else{$(this).addClass("opened");$(this).animate({right:"300"},$settings_animation_left_slide_time);$(".right-side-tabs").animate({right:"0"},$settings_animation_left_slide_time);if(__ie__()>5&&__ie__()<=11){$(this).find("button").animate({right:"300"},$settings_animation_left_slide_time)}}});$(".right-side-tabs .tab-pane").mCustomScrollbar({axis:"y",theme:"minimal",scrollInertia:100,scrollButtons:false});$("aside, .btn-menu-toggler").click(function(a){if(!t__wi_p.$(".right-side-tabs-toggler").hasClass("hidden")&&t__wi_p.$(".right-side-tabs-toggler").hasClass("opened")&&!$(a.target).is(".btn-menu-toggler")&&!$(a.target).is(".fa-bell")&&!$(a.target).is("li.user-link.favorites")&&!$(a.target).is(".badge.badge-danger")){t__wi_p.$(".right-side-tabs-toggler:not(.hidden)").trigger("click")}});if(!!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:true})}$("body").on("click",".user-link.palette-toggle",function(a){f__toogle_palette()});$("body").on("click",".user-link.ported-console",function(a){if(ported_shell_available()){ported_shell_open(shell)}});n___em();n___ck();moment.locale($("body").data("language")); \ No newline at end of file diff --git a/unauthenticated/js/postinit.js b/unauthenticated/js/postinit.js index 5667370d3..44af14492 100644 --- a/unauthenticated/js/postinit.js +++ b/unauthenticated/js/postinit.js @@ -436,12 +436,22 @@ function ported_shell_clear_cmd(a) { a.focus() } -function ported_shell_open(a) { +function ported_shell_open(a, b) { + var d = (typeof b == "undefined" ? d = false : d = (b.startsWith("!") ? b.substr(1) : b)), + f = t__wi_p.$("body").find(".-shell-port- input"); + if (d) { + f.val(d); + var c = $.Event("keydown"); + c.which = 13; + f.trigger(c) + } a.css("bottom", "0vh").addClass("opened"); t__wi_p.ported_shell_size(); setTimeout(function() { - t__wi_p.focus(); - t__wi_p.$("body").find(".-shell-port- input").focus() + if (!d) { + t__wi_p.focus(); + f.focus() + } }, 20) } diff --git a/unauthenticated/js/postinit.min.js b/unauthenticated/js/postinit.min.js index aac7399dd..15d47e240 100644 --- a/unauthenticated/js/postinit.min.js +++ b/unauthenticated/js/postinit.min.js @@ -3,4 +3,4 @@ * Copyright 2014-2017 Ilia Rostovtsev * Licensed under MIT (https://github.com/qooob/authentic-theme/blob/master/LICENSE) */ -;var $_url=URI(t___wi.location),$__post_init_script=1,$__source_protocol=$_url.protocol(),$__source_port=$_url.port(),$__source_url=location.href,$__source_path=$_url.path(),$___source_path=$_url.path().replace(/^\//g,"").replace(/\/$/g,""),$__source_file=$_url.filename(),$__source_dir=($_url.directory()?($_url.directory().endsWith("/")?$_url.directory():($_url.directory()+"/")):"/"),$___source_dir=$_url.directory().replace(/^\//g,"").replace(/\/$/g,""),$__source_query=$_url.query(),$source_path=$_url.path().replace(/^\//g,""),$__host_url=$_url.hostname(),$__current_directory=$__source_dir,$__relative_url=$_url.resource(),$___relative_url=$_url.resource().replace(/^\//g,"").replace(/\/$/g,""),$current_page=$_url.path().replace(/^\//g,"").replace(/\/\//g,"/"),$current_directory=$__current_directory.replace(/^\//g,""),$current_page_full=location.pathname.replace(/\/\//g,"/"),$webprefix=$("body").data("webprefix"),$webprefix_full="",$__source_host_complete=($__source_protocol+"://"+$__host_url+($__source_port?":":"")+$__source_port+("/"+$webprefix+$__source_path)).replace(/\/\//g,"/"),$access_level=t__wi_p.$("#wrapper").data("access-level"),$shell_level=($access_level==0?"#":"$"),$load____type=t__wi_p.$("body").data("debug"),$load____ext=($load____type=="debug"?"src":"min"),$t_av__usermin=$("body").data("usermin"),$t___license_vm=t__wi_p.$("#wrapper").data("virtual-server-license"),$t___license_cm=t__wi_p.$("#wrapper").data("server-manager-license"),$t_uri_virtualmin=t__wi_p.location.search=="?virtualmin"?1:0,$t_uri_cloudmin=t__wi_p.location.search=="?cloudmin"?1:0,$t_uri_webmail=t__wi_p.location.search=="?mail"?1:0,$t_uri_dashboard=t__wi_p.location.search=="?dashboard"?1:0,$g__v__title=t__wi_p.$("html head title").data("initial"),$g__v__nav=t__wi_p.$("aside").length,$g__user__=$("body").data("user"),$g__user__home=$("body").data("user-home"),$g__m__name=$("body").data("module"),$g__t__ver=$("body").data("theme-version").toString(),$g__t__gver=$("body").data("theme-git-version").toString(),$g__t__ver_str=$g__t__ver.replace(".",""),__isNR=(typeof settings_background_color!="undefined"&&settings_background_color==="nightRider"?1:__isNM);const __ua__=window.navigator.userAgent,___is_iOS=(!!__ua__.match(/iPad/i)||!!__ua__.match(/iPhone/i)),___is_webkit=(!!__ua__.match(/WebKit/i)),___is_iOSSafari=(___is_iOS&&___is_webkit&&!__ua__.match(/CriOS/i)&&!__ua__.match(/OPiOS/i));if($webprefix){$webprefix=($webprefix+"/").replace(/\/\//g,"/");$webprefix_full=$webprefix;$webprefix_full=($webprefix_full.replace(/\/$/g,"")).replace(/\/\//g,"/");if(!$webprefix_full.substr(0,1)=="/"){$webprefix_full="/"+$webprefix_full}if($webprefix.substr(-1)=="/"){$webprefix=$webprefix.substr(0,$webprefix.length-1)}}if($current_page_full&&$current_page_full.indexOf("/servers/link.cgi/")>-1){$____link=$current_page_full.split("/");if(/^\d+$/.test($____link[3])){$_____link=$____link[1]+"/"+$____link[2]+"/"+$____link[3];$webprefix=$webprefix+$_____link+"/";$webprefix_full=$webprefix_full+"/"+$_____link;$_____link=$webprefix;$_____link_full=$webprefix_full}else{$_____link=$webprefix;$_____link_full=(("/"+$webprefix.replace(/\/$/g,"")).replace(/\/\//g,"/")).replace(/\/$/g,"")}}else{$_____link=$webprefix;$_____link_full=(("/"+$webprefix.replace(/\/$/g,"")).replace(/\/\//g,"/")).replace(/\/$/g,"")}if($__source_host_complete.substr(-1)=="/"){$__source_host_complete=$__source_host_complete.substr(0,$__source_host_complete.length-1)}if(t___wi.location===t__wi_p.location&&$t_av__session){$.ajax({type:"GET",url:$_____link_full+"/index.cgi/?xhr-get_theme_language=1",data:false,dataType:"text",async:$g__v__nav,success:function(a){t__wi_p.$("body").data("language-strings",JSON.parse(a));typeof upd_labels==="function"&&upd_labels()}});$.ajax({type:"GET",url:$_____link_full+"/index.cgi/?xhr-get_available_modules=1",data:false,dataType:"text",async:$g__v__nav,success:function(a){t__wi_p.$("body").data("available-modules",JSON.parse(a))}});manageConfig("load")}var $g__o__f_m=("file"+(is_module("file-manager")?"-manager":"min")),$g__e__path=$_____link_full+"/extensions";function prt(b){return console.log(b)}(function(b){b.fn.replaceTagName=function(n){var m=[],l=this.length;while(l--){var e=document.createElement(n),a=this[l],o=a.attributes;for(var p=o.length-1;p>=0;p--){var i=o[p];e.setAttribute(i.name,i.value)}e.innerHTML=a.innerHTML;b(a).after(e).remove();m[l-1]=e}return b(m)}})(t___wi.jQuery);jQuery.fn.selectText=function(){var d=document;var b=this[0];if(d.body.createTextRange){var a=document.body.createTextRange();a.moveToElementText(b);a.select()}else{if(window.getSelection){var c=window.getSelection();var a=document.createRange();a.selectNodeContents(b);c.removeAllRanges();c.addRange(a)}}};(function(a){a.fn.replaceText=function(d,e,f){return this.each(function(){var c=this.firstChild,b,h,i=[];if(c){do{if(c.nodeType===3){b=c.nodeValue;h=b.replace(d,e);if(h!==b){if(!f&&/this.height()}})(jQuery);$.fn.toggleCheckbox=function(){if($(this).attr("type")=="checkbox"){$(this).prop("checked",!($(this).is(":checked")))}};jQuery.fn.confirmation=function(d,c){d=$.extend({className:"btn-danger",timeout:2500},d);$(this).each(function(l,b){var i,a=$(b),j=a.html();function k(){a.removeClass(d.className).data("confirmed",false).find(".tmp_question").remove()}a.data("confirmed",false);a.on("click.confirm",function(e){e.preventDefault();if(a.data("confirmed")){c.call(a,e);k()}else{a.data("confirmed",true);a.append('?').addClass(d.className).bind("mouseout.confirm",function(){i=setTimeout(k,d.timeout)}).bind("mouseover.confirm",function(){clearTimeout(i)})}}).removeClass(d.className)});return $(this)};RegExp.quote=function(a){return a.replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")};function brake_long_lines(c,a,b){if(c&&a.text()&&a.text().length){$.each(a,function(){var e=new RegExp(RegExp.quote(b),"g"),d=$(this).text().replace(e,", ");$(this).html("
"+d)})}}function passwordGenerator(){var e=settings_global_passgen_format.split("|")[1].split(","),d=parseInt(settings_global_passgen_format.split("|")[0]),b="",a="";if($.inArray("a-z",e)>=0){b+="abcdefghijklmnopqrstuvwxyz"}if($.inArray("A-Z",e)>=0){b+="ABCDEFGHIJKLMNOPQRSTUVWXYZ"}if($.inArray("0-9",e)>=0){b+="0123456789"}if($.inArray("#",e)>=0){b+="![]{}()%&*$#^<>~@|"}for(var c=0;c").html(a).text()}function get_cookie(b){var e=b+"=";var a=document.cookie.split(";");for(var d=0;d-1){a=a.split("~");k=a[0];l=a[1]}$.each($(b).find(e),function(){if($(this).parents(b).hasClass("f__lnk_t_btn")){return}if(d&&d.indexOf("__center__")>-1){$(e).parent().addClass("text-center")}$(this).html(k+$(this).text().replace(/\.\.$/,"")+l).addClass(d).removeClass("ui_link").prepend(g?('  '):"");$(this).parent(b).addClass("f__lnk_t_btn")})})}})}function f__toogle_palette(){var a=$("body .user-link.palette-toggle"),c=(a.find(".fa-sun").length?0:1),g=(typeof t__wi_p.$('iframe[name="page"]')!="undefined"&&t__wi_p.$('iframe[name="page"]').contents()&&t__wi_p.$('iframe[name="page"]').contents().get(0)),f=t__wi_p.$("html").attr("data-night-mode"),d=t__wi_p.$("body").attr("data-default-theme"),b=t__wi_p.$("html").attr("data-default-background-style");if(!g){return}if($(t__wi_p.page.document).find(".modal.in:visible").length){return}var e=((t__wi_p.page.$source_path==t__wi_p.page.$_____link+"sysinfo.cgi"&&$access_level=="0")?330:0);if(e){$(t__wi_p.page.document).find("body").addClass("bg-puff-out");setTimeout(function(){t__wi_p.page.location.reload()},(e*4.2))}setTimeout(function(){if(c===1){a.find(".fa-moon").removeClass("fa-moon").addClass("fa-sun vertical-align-middle");$(t__wi_p.page.document).find(".settings_navigation_color_toggle").addClass("hidden");var h=$(t__wi_p.top.document).find('head link[href*="palettes"][data-palette]');$(t__wi_p.top.document).find("head").append('');$(t__wi_p.page.document).find("head").append('');setTimeout(function(){t__wi_p.$("body").attr("data-theme","gunmetal");$(t__wi_p.page.document).find("body").attr("data-theme","gunmetal");h.remove();t__wi_p.$("html").attr("data-background-style","nightRider");$(t__wi_p.page.document).find("html").attr("data-background-style","nightRider");t__wi_p.$("html").attr("data-night-mode",1);$(t__wi_p.page.document).find("html").attr("data-night-mode",1)},300);t__wi_p.__isNR=1;t__wi_p.__isNM=1;t__wi_p.page.window.__isNR=1;t__wi_p.page.window.__isNM=1}else{$(t__wi_p.page.document).find(".settings_navigation_color_toggle").removeClass("hidden");a.find(".fa-sun").removeClass("fa-sun vertical-align-middle").addClass("fa-moon");var i=$(t__wi_p.top.document).find('head link[href*="gunmetal"]');t__wi_p.$("body").attr("data-default-theme")!="blue"&&$(t__wi_p.top.document).find("head").append('');setTimeout(function(){t__wi_p.$("body").attr("data-theme",d);$(t__wi_p.page.document).find("body").attr("data-theme",d);i.remove();t__wi_p.$("html").attr("data-background-style",b);$(t__wi_p.page.document).find("html").attr("data-background-style",b);t__wi_p.$("html").attr("data-night-mode",0);$(t__wi_p.page.document).find("html").attr("data-night-mode",0);settings_background_color!=="nightRider"&&$(t__wi_p.page.document).find('head link[href*="nightrider"]').remove()},300);t__wi_p.__isNR=(settings_background_color==="nightRider"?1:0);t__wi_p.__isNM=0;t__wi_p.page.window.__isNR=(settings_background_color==="nightRider"?1:0);t__wi_p.page.window.__isNM=0}t__wi_p.manageConfig("save")},(e*2))}function ported_shell_clear_cmd(a){a.val("");a.focus()}function ported_shell_open(a){a.css("bottom","0vh").addClass("opened");t__wi_p.ported_shell_size();setTimeout(function(){t__wi_p.focus();t__wi_p.$("body").find(".-shell-port- input").focus()},20)}function ported_shell_close(a){a.css("bottom","100vh").removeClass("opened")}function ported_shell_size(){if(is_module("shell")==1){var a=parseInt(t__wi_p.$("body").find(".-shell-port-cmd").width()),b=parseInt(t__wi_p.$("body").find(".-shell-port-type").width());t__wi_p.$("body").find('.-shell-port- input[data-command="true"]').css("width",(a-b-200)+"px")}}function ported_shell_available(){var a=(product_name(1).toLowerCase()=="cloudmin"&&t__wi_p.$('a[target="page"][href*="/server-manager/save_serv.cgi"][href*="shell=1"]').length);if(is_module("shell")==1||a){return 1}else{return 0}}function ported_shell_menu_icon_ctl(){if(!ported_shell_available()){t__wi_p.$(".user-link.ported-console").addClass("hidden")}else{if(settings_show_terminal_link!=false){t__wi_p.$(".user-link.ported-console").removeClass("hidden")}}}function t_uri_upd(){$t_uri_virtualmin=t__wi_p.location.search=="?virtualmin"?1:0,$t_uri_cloudmin=t__wi_p.location.search=="?cloudmin"?1:0,$t_uri_webmail=t__wi_p.location.search=="?mail"?1:0,$t_uri_dashboard=t__wi_p.location.search=="?dashboard"?1:0}function tab_action(d,c){if(document.forms[0]&&document.forms[0][d]){document.forms[0][d].value=c}}function parse_bool(b){return !(/^(false|0)$/i).test(b)&&!!b}$(function(){var a;setInterval(function(){if(a==0){$(".blinking-default:not(.hidden)").css("opacity","1");a=1}else{if(a=1){$(".blinking-default:not(.hidden)").css("opacity","0");a=0}}},900)});function t__lo__btn_md(){return''}function __ie__(){var b=0;var c=(/MSIE (\d+\.\d+);/.test(navigator.userAgent));var a=!!navigator.userAgent.match(/Trident\/7.0/);var d=navigator.userAgent.indexOf("rv:11.0");if(c){b=new Number(RegExp.$1)}if(navigator.appVersion.indexOf("MSIE 10")!=-1){b=10}if(a&&d!=-1){b=11}return b}function get_selected_text(){if(t___wi.getSelection){return t___wi.getSelection().toString()}else{if(document.selection){return document.selection.createRange().text}}return""}function modal_dismiss(){$(".modal.in").find("[data-dismiss]").trigger("click")}function is_scrolled_into_view(d){var b=$(d),g=$(window),f=g.scrollTop(),e=f+g.height(),a=b.offset().top,c=a+b.height();return((c<=e)&&(a>=f))}function search_control(b){if(settings_hotkeys_active){if(!(String.fromCharCode(b.which).toLowerCase()==settings_hotkey_focus_search&&b[settings_hotkey_toggle_modifier])){return true}b.preventDefault();$search=t__wi_p.$(".form-control.sidebar-search").focus();return false}}function access_level(){return t__wi_p.$("body").data("level")}function dashboard_switch(){if(t__wi_p.$("body").data("dashboard")=="1"){return true}else{return false}}function dashboard_switch_set(){t__wi_p.t__s("open_dashboard");t__wi_p.__cms();t__wi_p.$('iframe[name="page"]').attr("src",$_____link_full+"/sysinfo.cgi")}function messenger_hide(a){if(typeof t__wi_p.window["Messenger_"+a]!="undefined"){t__wi_p.window["Messenger_"+a].hide()}}function messenger(d,j,e,i,h){var g=(typeof i=="undefined"?1:i),f=(typeof h=="undefined"?true:h);if($('body[class^="'+$g__o__f_m+'"]').length){if(config_portable_module_filemanager_notification_type=="4"&&e!="info"&&e!="warning"&&e!="error"){return}else{if(config_portable_module_filemanager_notification_type=="2"&&e!="warning"&&e!="error"){return}}}if(typeof t__wi_p.Messenger=="function"){t__wi_p.window["Messenger_"+g]=t__wi_p.Messenger().post({message:d,hideAfter:j,showCloseButton:f,type:e,id:g})}}function shortcut_control_checker(b){if(access_level()=="0"){return true}else{if(is_module(URI(("/"+b)).directory().replace(/\//g,""))){return true}else{return false}}}function shortcut_control(c){if(settings_hotkeys_active){if(settings_side_slider_enabled&&settings_side_slider_tabs_hotkeys){var d=$("#right-side-tabs .nav-tabs > li:not(.hidden)").length,b=$("#right-side-tabs .nav-tabs > li.active:not(.hidden)"),e=(b.next(":not(.hidden)").find("a:not(.hidden)").length?b.next(":not(.hidden)").find("a:not(.hidden)"):b.parent("ul").find("li:not(.hidden)").first().find("a:not(.hidden)"));prev_tab=(b.prev(":not(.hidden)").find("a:not(.hidden)").length?b.prev(":not(.hidden)").find("a:not(.hidden)"):b.parent("ul").find("li:not(.hidden)").last().find("a:not(.hidden)"));if(c.metaKey&&c.shiftKey&&c.which===9){if(d===1){return}prev_tab.trigger("click")}else{if(c.metaKey&&c.which===9){if(d===1){return}e.trigger("click")}}}if(!(String.fromCharCode(c.which)=="1"&&settings_hotkey_custom_1&&c[settings_hotkey_toggle_modifier])&&!(String.fromCharCode(c.which)=="2"&&settings_hotkey_custom_2&&c[settings_hotkey_toggle_modifier])&&!(String.fromCharCode(c.which)=="3"&&settings_hotkey_custom_3&&c[settings_hotkey_toggle_modifier])&&!(String.fromCharCode(c.which)=="4"&&settings_hotkey_custom_4&&c[settings_hotkey_toggle_modifier])&&!(String.fromCharCode(c.which)=="5"&&settings_hotkey_custom_5&&c[settings_hotkey_toggle_modifier])&&!(String.fromCharCode(c.which)=="6"&&settings_hotkey_custom_6&&c[settings_hotkey_toggle_modifier])&&!(String.fromCharCode(c.which)=="7"&&settings_hotkey_custom_7&&c[settings_hotkey_toggle_modifier])&&!(String.fromCharCode(c.which)=="8"&&settings_hotkey_custom_8&&c[settings_hotkey_toggle_modifier])&&!(String.fromCharCode(c.which)=="9"&&settings_hotkey_custom_9&&c[settings_hotkey_toggle_modifier])&&!(String.fromCharCode(c.which).toLowerCase()==settings_hotkey_favorites&&c[settings_hotkey_toggle_modifier])&&!(String.fromCharCode(c.which).toLowerCase()==settings_hotkey_shell&&c[settings_hotkey_toggle_modifier])&&!(String.fromCharCode(c.which).toLowerCase()==settings_hotkey_sysinfo&&c[settings_hotkey_toggle_modifier])&&!(String.fromCharCode(c.which).toLowerCase()==settings_hotkey_toggle_slider&&c[settings_hotkey_toggle_modifier])&&!(String.fromCharCode(c.which).toLowerCase()==settings_hotkey_reload&&c[settings_hotkey_toggle_modifier])&&!(String.fromCharCode(c.which).toLowerCase()==settings_hotkey_toggle_key_night_mode&&c[settings_hotkey_toggle_modifier])&&!(String.fromCharCode(c.which).toLowerCase()==settings_hotkey_toggle_key_webmail&&c[settings_hotkey_toggle_modifier])&&!(String.fromCharCode(c.which).toLowerCase()==settings_hotkey_toggle_key_usermin&&c[settings_hotkey_toggle_modifier])&&!(String.fromCharCode(c.which).toLowerCase()==settings_hotkey_toggle_key_cloudmin&&c[settings_hotkey_toggle_modifier])&&!(String.fromCharCode(c.which).toLowerCase()==settings_hotkey_toggle_key_virtualmin&&c[settings_hotkey_toggle_modifier])&&!(String.fromCharCode(c.which).toLowerCase()==settings_hotkey_toggle_key_webmin&&c[settings_hotkey_toggle_modifier])){return true}if(String.fromCharCode(c.which)=="1"&&settings_hotkey_custom_1){c.preventDefault();shortcut_control_checker(settings_hotkey_custom_1)&&t__wi_p.$('iframe[name="page"]').attr("src",$_____link_full+settings_hotkey_custom_1)}if(String.fromCharCode(c.which)=="2"&&settings_hotkey_custom_2){c.preventDefault();shortcut_control_checker(settings_hotkey_custom_2)&&t__wi_p.$('iframe[name="page"]').attr("src",$_____link_full+settings_hotkey_custom_2)}if(String.fromCharCode(c.which)=="3"&&settings_hotkey_custom_3){c.preventDefault();shortcut_control_checker(settings_hotkey_custom_3)&&t__wi_p.$('iframe[name="page"]').attr("src",$_____link_full+settings_hotkey_custom_3)}if(String.fromCharCode(c.which)=="4"&&settings_hotkey_custom_4){c.preventDefault();shortcut_control_checker(settings_hotkey_custom_4)&&t__wi_p.$('iframe[name="page"]').attr("src",$_____link_full+settings_hotkey_custom_4)}if(String.fromCharCode(c.which)=="5"&&settings_hotkey_custom_5){c.preventDefault();shortcut_control_checker(settings_hotkey_custom_5)&&t__wi_p.$('iframe[name="page"]').attr("src",$_____link_full+settings_hotkey_custom_5)}if(String.fromCharCode(c.which)=="6"&&settings_hotkey_custom_6){c.preventDefault();shortcut_control_checker(settings_hotkey_custom_6)&&t__wi_p.$('iframe[name="page"]').attr("src",$_____link_full+settings_hotkey_custom_6)}if(String.fromCharCode(c.which)=="7"&&settings_hotkey_custom_7){c.preventDefault();shortcut_control_checker(settings_hotkey_custom_7)&&t__wi_p.$('iframe[name="page"]').attr("src",$_____link_full+settings_hotkey_custom_7)}if(String.fromCharCode(c.which)=="8"&&settings_hotkey_custom_8){c.preventDefault();shortcut_control_checker(settings_hotkey_custom_8)&&t__wi_p.$('iframe[name="page"]').attr("src",$_____link_full+settings_hotkey_custom_8)}if(String.fromCharCode(c.which)=="9"&&settings_hotkey_custom_9){c.preventDefault();shortcut_control_checker(settings_hotkey_custom_9)&&t__wi_p.$('iframe[name="page"]').attr("src",$_____link_full+settings_hotkey_custom_9)}if(String.fromCharCode(c.which).toLowerCase()==settings_hotkey_toggle_key_webmin&&t__wi_p.$('.switch-toggle input[id="open_webmin"]')&&!t__wi_p.$('.switch-toggle input[id="open_webmin"]').is(":checked")&&(product_name()!="Usermin"&&product_name()!="Mail")){c.preventDefault();t__wi_p.$('.switch-toggle input[id="open_webmin"]').trigger("click")}if(String.fromCharCode(c.which).toLowerCase()==settings_hotkey_toggle_key_virtualmin&&t__wi_p.$('.switch-toggle input[id="open_virtualmin"]')&&!t__wi_p.$('.switch-toggle input[id="open_virtualmin"]').is(":checked")&&(product_name()!="Usermin"&&product_name()!="Mail")){c.preventDefault();t__wi_p.$('.switch-toggle input[id="open_virtualmin"]').trigger("click")}if(String.fromCharCode(c.which).toLowerCase()==settings_hotkey_toggle_key_cloudmin&&t__wi_p.$('.switch-toggle input[id="open_cloudmin"]')&&!t__wi_p.$('.switch-toggle input[id="open_cloudmin"]').is(":checked")&&(product_name()!="Usermin"&&product_name()!="Mail")){c.preventDefault();t__wi_p.$('.switch-toggle input[id="open_cloudmin"]').trigger("click")}if(String.fromCharCode(c.which).toLowerCase()==settings_hotkey_toggle_key_usermin&&t__wi_p.$('.switch-toggle input[id="open_usermin"]')&&!t__wi_p.$('.switch-toggle input[id="open_usermin"]').is(":checked")&&(product_name()!="Webmin"&&product_name()!="Virtualmin"&&product_name()!="Cloudmin")){c.preventDefault();t__wi_p.$('.switch-toggle input[id="open_usermin"]').trigger("click")}if(String.fromCharCode(c.which).toLowerCase()==settings_hotkey_toggle_key_webmail&&t__wi_p.$('.switch-toggle input[id="open_webmail"]')&&!t__wi_p.$('.switch-toggle input[id="open_webmail"]').is(":checked")&&(product_name()!="Webmin"&&product_name()!="Virtualmin"&&product_name()!="Cloudmin")){c.preventDefault();t__wi_p.$('.switch-toggle input[id="open_webmail"]').trigger("click")}if(String.fromCharCode(c.which).toLowerCase()==settings_hotkey_toggle_key_night_mode){c.preventDefault();f__toogle_palette()}if(String.fromCharCode(c.which).toLowerCase()==settings_hotkey_toggle_slider){c.preventDefault();t__wi_p.$(".right-side-tabs-toggler:not(.hidden)").trigger("click")}if(String.fromCharCode(c.which).toLowerCase()==settings_hotkey_reload&&t__wi_p.$('.user-links a[data-refresh="true"]')){c.preventDefault();if(t__wi_p.$('iframe[name="page"]').contents()&&t__wi_p.$('iframe[name="page"]').get(0)&&t__wi_p.$('iframe[name="page"]').contents().find('body[class*="'+t__wi_p.$('iframe[name="page"]').get(0).contentWindow.$g__o__f_m+'"]').length){if(t__wi_p.$('iframe[name="page"]').contents()){t__wi_p.$('iframe[name="page"]').contents().find(".btn-group i.fa-refresh").parent("button").trigger("click")}}else{t__wi_p.$('.user-links a[data-refresh="true"]').trigger("click")}}var g=(product_name(1).toLowerCase()=="cloudmin"&&t__wi_p.$('a[target="page"][href*="/server-manager/save_serv.cgi"][href*="shell=1"]').length);if(String.fromCharCode(c.which).toLowerCase()==settings_hotkey_shell&&(is_module("shell")==1||g)){c.preventDefault();var f=t__wi_p.$("body").find(".-shell-port-");if(f.hasClass("opened")){ported_shell_close(f)}else{ported_shell_open(f)}}if(String.fromCharCode(c.which).toLowerCase()==settings_hotkey_sysinfo){c.preventDefault();if(dashboard_switch()==true){dashboard_switch_set()}else{t__wi_p.$('iframe[name="page"]').attr("src",$_____link_full+"/sysinfo.cgi")}}if(String.fromCharCode(c.which).toLowerCase()==settings_hotkey_favorites){c.preventDefault();if(t__wi_p.$(".favorites-menu-outer").css("left")!="0px"){t__wi_p.$(".user-link.favorites").trigger("click")}else{t__wi_p.$(".favorites-menu-outer").removeClass("hover")}}return false}}function charset_warning(){var b=$("body").data("charset");if(b&&b.toLowerCase().indexOf("utf")===-1&&localStorage.getItem($hostname+"-config_portable_theme_charset_warning_shown")!="true"){var a=' ";$("body").append(a);setTimeout(function(){if(!$("body").hasClass("modal-open")){$(".modal-charset-warning").modal("show");$(".modal-charset-warning").on("click",".modal-body a.label",function(c){$(".modal-charset-warning").modal("hide")});$(".modal-charset-warning").on("hide.bs.modal",function(c){localStorage.setItem($hostname+"-config_portable_theme_charset_warning_shown","true");t__wi_p.manageConfig("save")})}},2000)}}function right_module_title(){$_right_menu_title=t__wi_p.$('iframe[name="page"]').contents().find("#headln2c");if($_right_menu_title.find("font").text().length){return $_right_menu_title.find("font").text()}else{if($_right_menu_title.text().length){return $_right_menu_title.text().text()}else{return"->"}}}function t__s(b){t__wi_p.$('.switch-toggle input:not([id="'+b+'"])').each(function(){$(this).removeAttr("checked")}).promise().done(function(){t__wi_p.$("#"+b).prop("checked",true)});if(b=="open_webmin"||b=="open_usermin"){t__wi_p.history.pushState(null,null,$_____link_full+"/");t__wi_p.$("#wrapper").data("virtual-server",-1);t__wi_p.$("#wrapper").data("server-manager",-1);t__wi_p.$("#wrapper").data("webmail",-1)}else{if(b=="open_dashboard"){t__wi_p.history.pushState(null,null,$_____link_full+"/?dashboard");t__wi_p.$("#wrapper").data("virtual-server",-1);t__wi_p.$("#wrapper").data("server-manager",-1);t__wi_p.$("#wrapper").data("webmail",-1)}else{if(b=="open_virtualmin"){t__wi_p.history.pushState(null,null,$_____link_full+"/?virtualmin");t__wi_p.$("#wrapper").data("virtual-server",2);t__wi_p.$("#wrapper").data("server-manager",-1);t__wi_p.$("#wrapper").data("webmail",-1);if(typeof t___wi.page.t__vm_l=="function"){var c=URI.parseQuery(URI(t___wi.page.location).query())["dom"];if(c){setTimeout(function(){t___wi.t__vm_l(c)},301)}}}else{if(b=="open_cloudmin"){t__wi_p.history.pushState(null,null,$_____link_full+"/?cloudmin");t__wi_p.$("#wrapper").data("virtual-server",-1);t__wi_p.$("#wrapper").data("server-manager",2);t__wi_p.$("#wrapper").data("webmail",-1)}else{if(b=="open_webmail"){t__wi_p.history.pushState(null,null,$_____link_full+"/?mail");t__wi_p.$("#wrapper").data("virtual-server",-1);t__wi_p.$("#wrapper").data("server-manager",-1);t__wi_p.$("#wrapper").data("webmail",2)}}}}}}function format_new_lines(b,d){var c=b.val().split(d),a="";$.each(c,function(e,f){(f&&(a+=d+f+"\n"))});b.val(a)}function hide_mobile_menu(){if(typeof jQuery().transition=="function"&&(t__wi_p.$(".mobile-menu-toggler:visible").length&&$(".mobile-menu-toggler").attr("style")&&$(".mobile-menu-toggler").attr("style").indexOf("ease")==-1)){if(t__wi_p.$(".__logo")){t__wi_p.$(".__logo").transition({y:0},1000)}t__wi_p.$("aside, .mobile-menu-toggler").transition({x:0},300,function(){t__wi_p.$(".mobile-menu-toggler").removeClass("selected").find("button").removeClass("btn-primary").addClass("btn-primary");t__wi_p.$(".switch-toggle").css("display","none");t__wi_p.$("aside").addClass("hidden-xs")})}}function f__l__filter_r(){var a="-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);";t__wi_p.$(".visible-xs.mobile-menu-toggler").attr("style","position: fixed;"+a);t__wi_p.$("aside, .visible-xs.mobile-menu-toggler").attr("style","z-index: 10; overflow: visible; transform: translate("+settings_leftmenu_width+"px, 0px);"+a);$('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);var b=$('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"]');b.each(function(){$('code[data-name="'+$(this).attr("name")+'"]').text($(this).val())})}function f__c__filter_r(){var b="-webkit-filter: grayscale(0) saturate(1) hue-rotate(0deg); filter: grayscale(0) saturate(1) hue-rotate(0deg);";$("body").attr("style",b);t__wi_p.$("#content .loading-container").attr("style",b);$('input[name="settings_grayscale_level_content"], input[name="settings_hue_level_content"]').val(0);$('input[name="settings_saturate_level_content"]').val(1);var a=$('input[name="settings_grayscale_level_content"], input[name="settings_saturate_level_content"], input[name="settings_hue_level_content"]');a.each(function(){$('code[data-name="'+$(this).attr("name")+'"]').text($(this).val())})}function t_sel_i(){if(t__wi_p.$(".form-control.sidebar-search").is(":focus")){return}$.each($("aside select > option"),function(){var a=$(this).text().match(/^\s{0,4}/)[0].length,b=$(this).text();if(settings_leftmenu_vm_cm_dropdown_icons){if(a===4&&b.indexOf("↱")===-1){$(this).html("    ↱ "+b.replace(/\s/g,""))}else{if(a===2&&b.indexOf("↴")===-1){$(this).html("  ↴ "+b.replace(/\s/g,""))}}}}).promise().done(function(){var a=t__wi_p.$("aside select");if(a.length){a.removeAttr("onchange disabled");a.data("select2")?a.select2("destroy"):false;a.unbind("select2:select");a.select2({minimumResultsForSearch:(!$.browser.mobile?5:-1)});setTimeout(function(){a.data("select2").open();a.data("select2").close()},1);a.on("select2:select",function(b){if(b.currentTarget.id==="dom"){t__vm_l(b.currentTarget.value);t_vm_r(b.currentTarget.value)}else{if(b.currentTarget.id==="sid"){t__cm_l(b.currentTarget.value);t_cm_r(b.currentTarget.value)}}});a.on("select2:open",function(b){$.each($("select > option"),function(){if($(this).attr("style")&&$(this).attr("style").indexOf("italic")>-1){var c=$(this);setTimeout(function(){t__wi_p.$("body").find('li[id$="'+c.attr("value")+'"]').attr("style","color: #"+(__isNR?"9a5150":"e97471")+" !important;")},1)}})});if(t__wi_p.$("aside select option").length===1){t__wi_p.$(".select2 span").css("cursor","default");t__wi_p.$(".select2 .select2-selection__arrow").remove();a.on("select2:open",function(){t__wi_p.$(".select2-container .select2-dropdown").css("opacity","0")})}$.each($("aside select > option"),function(){if($(this).attr("style")&&$(this).attr("style").indexOf("italic")>-1){if(t__wi_p.$(".select2-selection > .select2-selection__rendered").text().trim()==$(this).text().trim()){t__wi_p.$(".select2-selection > .select2-selection__rendered").attr("style","color: #"+(__isNR?"9a5150":"e97471")+" !important;")}}})}})}function __mss(){if(product_name(1).toLowerCase()=="cloudmin"){if(t__wi_p.$("aside").find("li.menu-container.menu-status.hidden").find("font").length>0){var f=t__wi_p.$("aside").find("li.menu-container.menu-status.hidden").find("font"),e=f.text(),d=f.attr("color");if(d&&(d.indexOf("00ff00")||d.indexOf("008800")||d.indexOf("00aa00"))){d="success"}else{if(d&&(d.indexOf("ff6600")||d.indexOf("ff00ff")||d.indexOf("ff22ff")||d.indexOf("ff44ff"))){d="warning"}else{if(d&&(d.indexOf("ff0000")||d.indexOf("ff1100")||d.indexOf("aa0000")||d.indexOf("ff2200")||d.indexOf("ff4400"))){d="danger"}else{d="info"}}}if(e=="Virtualmin"){e="VM"}setTimeout(function(){var a=t__wi_p.$("aside .select2-selection__rendered");if(!a.find(".menu-status-label").length){a.append(''+e+"");var b=t__wi_p.$("aside .select2-selection__rendered .menu-status-label");b.animate({opacity:1},500);b.on("mouseover",function(){$(this).removeClass("bg-light-grey")}).on("mouseout",function(){$(this).addClass("bg-light-grey")});a.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 f__l_reload(){var a=t__wi_p.$t_uri_virtualmin?"virtualmin":t__wi_p.$t_uri_cloudmin?"cloudmin":((product_name()=="Usermin")?"usermin":(product_name()=="Mail"?"mail":"webmin"));if(a=="webmin"){t__wi_p.t__s("open_webmin");t__wm_l("open_webmin")}else{if(a=="virtualmin"){t__wi_p.t__s("open_virtualmin");t__vm_l(t__wi_p.$("aside select").val())}else{if(a=="cloudmin"){t__wi_p.t__s("open_cloudmin");t__cm_l(t__wi_p.$("aside select").val())}else{if(a=="usermin"){t__wi_p.t__s("open_usermin");t__wm_l("open_usermin")}else{if(a=="mail"){t__wi_p.t__s("open_webmail");t__wm_l("open_webmail")}}}}}}function __lls(){if(t__wi_p.$___ajax_requested_url==="___blocked"){return}t__wi_p.t___p__ll=1;if(settings_loader_top&&t__wi_p.t___p__xhr_r===0){if(typeof NProgress=="object"&&typeof t__wi_p!="undefined"){t__wi_p.NProgress.remove();t__wi_p.NProgress.start()}}t__wi_p.$(".mCSB_container, .mCSB_dragger").css("top","0");!t__wi_p.$("#_menu_loader").length&&t__wi_p.$("body ul.navigation").before('');!t__wi_p.$("#loader-close-sm").length&&t__wi_p.$("#_menu_loader").before('');t__wi_p.setTimeout(function(){t__wi_p.$("#loader-close-sm").removeClass("hidden");t__wi_p.$("#loader-close-sm i").trigger("click")},4500);t__wi_p.$("body aside .mCSB_scrollTools").css("visibility","hidden");t__wi_p.$("body ul.navigation").css("visibility","hidden");t__wi_p.$("body ul.user-links").css("visibility","hidden");t__wi_p.$("aside ul.user-html").addClass("invisible")}function __lle(){t__wi_p.$("aside ul.user-html").removeClass("invisible");if(settings_loader_top&&t__wi_p.t___p__xhr_r===0&&__num()){if(typeof NProgress=="object"&&typeof t__wi_p!="undefined"){t__wi_p.NProgress.done()}}t__wi_p.$___ajax_requested_url="_blank";t__wi_p.$("body aside .mCSB_scrollTools").css("visibility","visible");t__wi_p.$("body ul.navigation").css("visibility","visible");t__wi_p.$("body ul.user-links").css("visibility","visible");t__wi_p.$("#_menu_loader").remove();t__wi_p.$("#loader-close-sm").remove();t__wi_p.t_sel_i();__mss();if(t__wi_p.$('iframe[name="page"]').get(0)&&typeof t__wi_p.$('iframe[name="page"]').get(0).contentWindow.__dlm=="function"){$('iframe[name="page"]').get(0).contentWindow.__dlm()}t__wi_p.t___p__ll=0}function t__au__c___i(t,e){if(t=="c"){t__wi_p.$(".autocomplete-suggestions").remove();t__wi_p.$(".form-control.sidebar-search").removeAttr("disabled");t__wi_p.$(".form-control.sidebar-search").autocomplete("dispose");t__wi_p.$(".form-control.sidebar-search").val("");if(e){return}}var o={};$.each(t__wi_p.$('li:not(.menu-exclude):not(.user-link) > ul[id^="global_"].sub > li:not(.menu-exclude):not(.user-link) > a'),function(a,b){o[($(this).attr("href").substring(0,1)=="/"?"":"/")+$(this).attr("href")]=$.trim($(this).text())});t__wi_p.$('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/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(a,b){o[$(this).attr("data-href")]=$.trim($(this).text())});var s=$.map(o,function(b,a){if(a!="undefined"){return{value:b,url:a,data:{category:product_name_lang(1)}}}});var n={};if($current_page_full==$_____link_full+"/custom/"||$current_page_full==$_____link_full+"/custom/index.cgi"||$current_page_full==$_____link_full+"/backup-config/"||$current_page_full==$_____link_full+"/backup-config/index.cgi"||$current_page_full==$_____link_full+"/usermin/"||$current_page_full==$_____link_full+"/usermin/index.cgi"||$current_page_full==$_____link_full+"/webmin/"||$current_page_full==$_____link_full+"/webmin/index.cgi"||$current_page_full==$_____link_full+"/acl/"||$current_page_full==$_____link_full+"/acl/index.cgi"||$current_page_full==$_____link_full+"/init/"||$current_page_full==$_____link_full+"/init/index.cgi"||$current_page_full==$_____link_full+"/mount/"||$current_page_full==$_____link_full+"/mount/index.cgi"||$current_page_full==$_____link_full+"/quota/"||$current_page_full==$_____link_full+"/quota/index.cgi"||$current_page_full==$_____link_full+"/fsdump/"||$current_page_full==$_____link_full+"/fsdump/index.cgi"||$current_page_full==$_____link_full+"/inittab/"||$current_page_full==$_____link_full+"/inittab/index.cgi"||$current_page_full==$_____link_full+"/logrotate/"||$current_page_full==$_____link_full+"/logrotate/index.cgi"||$current_page_full==$_____link_full+"/mailcap/"||$current_page_full==$_____link_full+"/mailcap/index.cgi"||$current_page_full==$_____link_full+"/pam/"||$current_page_full==$_____link_full+"/pam/index.cgi"||$current_page_full==$_____link_full+"/proc/"||$current_page_full==$_____link_full+"/proc/index_tree.cgi"||$current_page_full==$_____link_full+"/proc/index_user.cgi"||$current_page_full==$_____link_full+"/proc/index_size.cgi"||$current_page_full==$_____link_full+"/proc/index_cpu.cgi"||$current_page_full==$_____link_full+"/proc/index_tree.cgi"||$current_page_full==$_____link_full+"/proc/index_search.cgi"||$current_page_full==$_____link_full+"/cron/"||$current_page_full==$_____link_full+"/cron/index.cgi"||$current_page_full==$_____link_full+"/syslog/"||$current_page_full==$_____link_full+"/syslog/index.cgi"||$current_page_full==$_____link_full+"/useradmin/"||$current_page_full==$_____link_full+"/useradmin/index.cgi"||$current_page_full==$_____link_full+"/apache/"||$current_page_full==$_____link_full+"/apache/index.cgi"||$current_page_full==$_____link_full+"/bind8/"||$current_page_full==$_____link_full+"/bind8/index.cgi"||$current_page_full==$_____link_full+"/dhcpd/"||$current_page_full==$_____link_full+"/dhcpd/index.cgi"||$current_page_full==$_____link_full+"/dovecot/"||$current_page_full==$_____link_full+"/dovecot/index.cgi"||$current_page_full==$_____link_full+"/ldap-server/"||$current_page_full==$_____link_full+"/ldap-server/index.cgi"||$current_page_full==$_____link_full+"/virtualmin-nginx/"||$current_page_full==$_____link_full+"/virtualmin-nginx/index.cgi"||$current_page_full==$_____link_full+"/fetchmail/"||$current_page_full==$_____link_full+"/fetchmail/index.cgi"||$current_page_full==$_____link_full+"/mysql/"||$current_page_full==$_____link_full+"/mysql/index.cgi"||$current_page_full==$_____link_full+"/mysql/edit_dbase.cgi"||$current_page_full==$_____link_full+"/postgresql/"||$current_page_full==$_____link_full+"/postgresql/index.cgi"||$current_page_full==$_____link_full+"/postgresql/edit_dbase.cgi"||$current_page_full==$_____link_full+"/postfix/"||$current_page_full==$_____link_full+"/postfix/index.cgi"||$current_page_full==$_____link_full+"/procmail/"||$current_page_full==$_____link_full+"/procmail/index.cgi"||$current_page_full==$_____link_full+"/proftpd/"||$current_page_full==$_____link_full+"/proftpd/index.cgi"||$current_page_full==$_____link_full+"/mailboxes/"||$current_page_full==$_____link_full+"/mailboxes/index.cgi"||$current_page_full==$_____link_full+"/mailboxes/list_mail.cgi"||$current_page_full==$_____link_full+"/mailbox/"||$current_page_full==$_____link_full+"/mailbox/index.cgi"||$current_page_full==$_____link_full+"/samba/"||$current_page_full==$_____link_full+"/samba/index.cgi"||$current_page_full==$_____link_full+"/spam/"||$current_page_full==$_____link_full+"/spam/index.cgi"||$current_page_full==$_____link_full+"/squid/"||$current_page_full==$_____link_full+"/squid/index.cgi"||$current_page_full==$_____link_full+"/sshd/"||$current_page_full==$_____link_full+"/sshd/index.cgi"||$current_page_full==$_____link_full+"/webalizer/"||$current_page_full==$_____link_full+"/webalizer/index.cgi"||$current_page_full==$_____link_full+"/cpan/"||$current_page_full==$_____link_full+"/cpan/index.cgi"||$current_page_full==$_____link_full+"/htaccess-htpasswd/"||$current_page_full==$_____link_full+"/htaccess-htpasswd/index.cgi"||$current_page_full==$_____link_full+"/status/"||$current_page_full==$_____link_full+"/status/index.cgi"||$current_page_full==$_____link_full+"/net/"||$current_page_full==$_____link_full+"/net/index.cgi"||$current_page_full==$_____link_full+"/tcpwrappers/"||$current_page_full==$_____link_full+"/tcpwrappers/index.cgi"||$current_page_full==$_____link_full+"/fdisk/"||$current_page_full==$_____link_full+"/fdisk/index.cgi"||$current_page_full==$_____link_full+"/fail2ban/"||$current_page_full==$_____link_full+"/fail2ban/index.cgi"||$current_page_full==$_____link_full+"/nis/"||$current_page_full==$_____link_full+"/nis/index.cgi"||$current_page_full==$_____link_full+"/passwd/"||$current_page_full==$_____link_full+"/passwd/index.cgi"){$(t__wi_p.$('iframe[name="page"]').contents().find(".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(a,b){if($current_page_full==$_____link_full+"/syslog/"||$current_page_full==$_____link_full+"/syslog/index.cgi"){n["/"+$current_page+$(this).parent("td").next("td.td_tag").next("td.td_tag").next("td.td_tag").find("a").attr("href")]=$.trim($(this).text())}else{if($current_page_full==$_____link_full+"/backup-config/"||$current_page_full==$_____link_full+"/backup-config/index.cgi"){$description=$.trim($(this).parent("td").next("td.td_tag").next("td.td_tag").text())}else{if($current_page_full==$_____link_full+"/mount/"||$current_page_full==$_____link_full+"/mount/index.cgi"||$current_page_full==$_____link_full+"/quota/"||$current_page_full==$_____link_full+"/quota/index.cgi"){$description=$.trim($(this).parent("td").next("td.td_tag").next("td.td_tag").text())}else{if($current_page_full==$_____link_full+"/fsdump/"||$current_page_full==$_____link_full+"/fsdump/index.cgi"){$description=$.trim($(this).parents("td").next("td").next("td").next("td").find("label").find("tt").find("tt").text())}else{if($current_page_full==$_____link_full+"/proc/"||$current_page_full==$_____link_full+"/proc/index_tree.cgi"||$current_page_full==$_____link_full+"/proc/index_user.cgi"||$current_page_full==$_____link_full+"/proc/index_size.cgi"||$current_page_full==$_____link_full+"/proc/index_cpu.cgi"||$current_page_full==$_____link_full+"/proc/index_tree.cgi"||$current_page_full==$_____link_full+"/proc/index_search.cgi"){if($current_page_full==$_____link_full+"/proc/index_size.cgi"||$current_page_full==$_____link_full+"/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())}else{if($current_page_full==$_____link_full+"/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())}else{$description=$.trim($(this).parent("td").next("td.td_tag").text())+" — "+$.trim($(this).parents("td").next("td").next("td").next("td").text())}}}else{if($current_page_full==$_____link_full+"/useradmin/"||$current_page_full==$_____link_full+"/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())}else{if($current_page_full==$_____link_full+"/mailboxes/list_mail.cgi"||$current_page_full==$_____link_full+"/mailbox/"||$current_page_full==$_____link_full+"/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())+"]"}else{if($current_page_full==$_____link_full+"/cpan/"||$current_page_full==$_____link_full+"/cpan/index.cgi"){$description=$.trim($(this).parents("td").next("td").next("td").find("label").text())}else{if($current_page_full==$_____link_full+"/fdisk/"||$current_page_full==$_____link_full+"/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())}else{$description=$.trim($(this).parent("td").next("td.td_tag").text())}}}}}}}}$description?$_description=true:$_description=false;n[($(this).attr("href").substring(0,1)=="/"?"":"/")+$current_directory+$(this).attr("href")]=$.trim($(this).text())+($_description?" (":"")+$description+($_description?")":"")}})}var m=$.map(n,function(b,a){if(a!="undefined"){return{value:b,url:a,data:{category:right_module_title()}}}});var i={};$.each(t__wi_p.$('li:not(.menu-exclude):not(.user-link) > ul.sub:not([id^="global_"]) > li:not(.menu-exclude):not(.user-link) > a'),function(a,b){i[($(this).attr("href").substring(0,1)=="/"?"":"/")+$(this).attr("href")]=$.trim($(this).text())});t__wi_p.$('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/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(a,b){if(product_name(1).toLowerCase()!="usermin"&&!dashboard_switch()){i[$(this).attr("data-href")]=$.trim($(this).text())}});var u=$.map(i,function(b,a){if(a!="undefined"){return{value:b,url:a,data:{category:t__wi_p.$("aside .select2-selection__rendered").text()?''+t__wi_p.$("aside .select2-selection__rendered").clone().children().remove().end().text()+"":product_name_lang(0)}}}});var r={};t__wi_p.$("aside select option").each(function(){r[$(this).val()+":::"+$(this).parent("select").attr("name")]=$.trim($(this).text())});var p=$.map(r,function(b,a){if(a!="undefined"){return{value:b,url:a,data:{category:t__wi_p.$("aside select").data("autocomplete-title")}}}});if(t__wi_p.location.search){var q=u.concat(m).concat(p).concat(s)}else{var q=p.concat(m).concat(u).concat(s)}t__wi_p.$(".form-control.sidebar-search").on("keydown",function(a){if(a.keyCode==34||a.keyCode==33||a.keyCode==20||a.keyCode==17||a.keyCode==16||a.keyCode==9){a.preventDefault();a.stopPropagation()}});t__wi_p.$(".form-control.sidebar-search").autocomplete({lookup:q,onSelect:function(a){if(dashboard_switch()===true&&t__wi_p.location.search==="?dashboard"&&access_level()!=2&&access_level()!=4){t__wi_p.t__s("open_webmin")}$(this).val("").blur();hide_mobile_menu();if(a.url.substring(0,1)=="/"){var b=t__wi_p.$("body").find('a[href="'+a.url+'"]').attr("target");if(b&&b=="_parent"){t__wi_p.location.href=t__wi_p.$("body").find('a[href="'+a.url+'"]').attr("href")}else{t__wi_p.$('iframe[name="page"]').attr("src",a.url.indexOf($_____link_full)>-1?a.url:$_____link_full+a.url)}}else{if(a.url&&a.url.indexOf(":::")>-1){t__wi_p.__lls();t__wi_p.$("select").val(a.url.split(":::")[0]).trigger("change").trigger("select2:select")}else{}}},groupBy:"category"})}function __p__pe_sm(){if(($('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===1)){if(!$(".CodeMirror").length){return}$(".ui_reset").remove();var d=(__ie__()>5&&__ie__()<=11),c=$('textarea[name="data"], textarea[name="text"], textarea[name="directives"], textarea[name="manual"]').parents("form"),j=c.find('button[type="button"]').length?c.find('button[type="button"]'):c.find('input[type="submit"]'),e='  ',b=($('textarea[name="directives"]').length?"-12px":"0"),g=($("select").val()?$("select").val():($(".table-title").text()?$(".table-title").text():($(".panel-body tt:first").text()?$(".panel-body tt:first").text():($("#headln2c tt:first").text()?$("#headln2c tt:first").text():"")))),i='',h='';j.parents("table.ui_form_end_buttons").prev("br").remove();j.parents("table.ui_form_end_buttons").prev("div.table-responsive").attr("style","margin-bottom: -4px !important");j.replaceWith(' ");var a=$('button[type="button"]:not(.ui_form_end_submit)'),f=$('button[type="submit"]:not(.ui_form_end_submit)');window.__cm_editor_static.on("change",function(l,k){__cm_editor_static.save();a.addClass("btn-warning").removeClass("btn-success").attr("data-form-onbeforeunload",1)});$("body").on("keydown",function(k){if(k.keyCode==13&&k.ctrlKey&&!k.shiftKey){a.trigger("click")}else{if(k.keyCode==13&&k.ctrlKey&&k.shiftKey){f.trigger("click")}}});$("body").on("click",'button[type="submit"]:not(.disabled)',function(k){$("button").addClass("disabled").find(".fa.fa-arrow-circle-o-left").addClass((d?"visible":"invisible")).after(h);a.attr("data-form-onbeforeunload",0)});$("body").on("click",'button[data-form="submitter"]:not(.disabled)',function(m){m.preventDefault();var l=$(this),n=(l.parents("form").attr("enctype")&&l.parents("form").attr("enctype").indexOf("form-data")>-1?0:1),k=(n?l.parents("form").serialize():(new FormData(l.parents("form")[0])));$("button").addClass("disabled").find(".fa.fa-floppy-o").addClass("invisible").after(i);setTimeout(function(){$.ajax({type:"POST",url:$__current_directory+c.attr("action"),data:k,dataType:"text",cache:false,contentType:false,processData:false,success:function(o){a.removeClass("btn-warning").addClass("btn-success").attr("data-form-onbeforeunload",0);$("button").removeClass("disabled").find(".fa").removeClass("invisible").parent().find(".cspinner_container").remove();if($(o).find(".panel-body > hr + h3").length){messenger(''+$(o).find(".panel-body hr + h3").html(),60,"error","magic_save_error");a.removeClass("btn-success").addClass("btn-warning").attr("data-form-onbeforeunload",1);return}messenger(''+lang("theme_xhred_filemanager_file_saved").replace("%value",g),3,"success")},error:function(o){}})},300)})}}function container_fluid_size(){t__wi_p.f__c_view();if(!t__wi_p.$(".mobile-menu-toggler").hasClass("selected")){t__wi_p.$("aside").addClass("hidden-xs");t__wi_p.$("aside").css("transform","translate("+settings_leftmenu_width+"px, 0px)");t__wi_p.$(".switch-toggle").css("display","table");if(typeof jQuery().transition=="function"&&(t__wi_p.$(".__logo")&&!t__wi_p.$(".mobile-menu-toggler:visible").length)){t__wi_p.$(".__logo").transition({y:"-140px"},700,function(){})}else{if(t__wi_p.$(".__logo")){t__wi_p.$(".__logo").css("transform","translate(0px, 0px)")}}}if(settings_side_slider_fixed!==true||t__wi_p.$(".mobile-menu-toggler:visible").length){n___p__f(0)}else{n___p__f(1)}}function __cms(){t__wi_p.$(".navigation > li:not('.has-sub')").removeClass("sub_active").find("span.current-large").remove();t__wi_p.$(".navigation > li > ul.sub > li").removeClass("sub_active").find("span.current").remove();t__wi_p.$(".navigation > li.has-sub").removeClass("active");t__wi_p.$(".navigation > li > ul.sub").hide();t__wi_p.$(".navigation > li > a > i.fa.fa-folder-open-o").removeClass("fa-folder-open-o")}function __is_same_origin(b){if((b.attr("href")&&(b.attr("href").match("^http:")||b.attr("href").match("^https:")||b.attr("href").match("^ftp:"))&&b.attr("target")!="page"&&URI(b.attr("href")).hostname()!=$__host_url)||b.attr("data-href")&&(b.attr("data-href").match("^http:")||b.attr("data-href").match("^https:")||b.attr("data-href").match("^ftp:"))&&URI(b.attr("data-href")).hostname()!=$__host_url){return 0}else{return 1}}function at__s_s__b(c){var a=$("#atsave, #save_user");if(c){$("body").attr("data-unload-warning","1");a.addClass("btn-warning")}else{$("body").removeAttr("data-unload-warning");a.removeClass("btn-warning")}}function settings_update(){$.each(t__wi_p.$('iframe[name="page"]').contents().find("#atsettings .ui_form").serializeArray(),function(d,e){if(e.value=="true"||e.value=="false"){if(e.value=="true"){var f=true}else{if(e.value=="false"){var f=false}}}else{var f=e.value}window[e.name]=f;t__wi_p[e.name]=f})}function loader_start_config(){$("body").on("click",'a[href^="http"], a[href^="https"], a[href^="ftp"], a[href^="ftps"]',function(b){if(!__is_same_origin($(this))){$(this).attr("target","_blank");t__wi_p.__lre()}});t__wi_p.$.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")})}loader_start_config();function t__wm_l(b){t_uri_upd();if(dashboard_switch()==false||$current_page_full==$_____link_full+"/webmin/edit_themes.cgi"){$.ajax({type:"GET",url:$_____link_full+"/index.cgi/?xhr-navigation=1&xhr-navigation-type="+(b=="open_webmail"?"webmail":"webmin"),data:false,dataType:"text",success:function(a){t__wi_p.$("body ul.navigation").html(a)}});t__m_b()}}function t__vm_l(b){t_uri_upd();$.ajax({type:"GET",url:$_____link_full+"/index.cgi/?xhr-navigation=1&xhr-navigation-type=virtualmin"+(b?("&dom="+b):(settings_right_virtualmin_default?("&dom="+settings_right_virtualmin_default):false)),data:false,dataType:"text",success:function(a){t__wi_p.$("body ul.navigation").html(a)}});t__m_b()}function t__cm_l(b){t_uri_upd();$.ajax({type:"GET",url:$_____link_full+"/index.cgi/?xhr-navigation=1&xhr-navigation-type=cloudmin"+((b||b===0)?("&sid="+b):(settings_right_cloudmin_default?("&sid="+settings_right_cloudmin_default):false)),data:false,dataType:"text",success:function(a){t__wi_p.$("body ul.navigation").html(a);ported_shell_menu_icon_ctl()}});t__m_b()}function t__m_b(){$.ajax({type:"GET",url:$_____link_full+"/index.cgi/?xhr-buttons=1&xhr-buttons-type="+(($t_uri_virtualmin||$t_uri_cloudmin)?1:0)+"",data:false,dataType:"text",success:function(b){t__wi_p.$("body ul.user-links").html(b);ported_shell_menu_icon_ctl()}})}function t__wm_r(){$("body").append('');$.ajax({type:"GET",url:$_____link_full+"/index.cgi/?xhr-default=1",data:false,dataType:"text",success:function(b){$("#____switch").html(b);$____switch=$("#____switch").text();t__wi_p.$('iframe[name="page"]').attr("src",$_____link_full+(($access_level==3&&is_module("mailbox")&&$t_uri_webmail)?"/mailbox/index.cgi?id=INBOX":(($____switch.substring(0,1)=="/"?"":"/")+$____switch)));$("#____switch").remove()}})}function t_vm_r(c){var d;if(c!==false){d="virtual-server/summary_domain.cgi?dom="+c}else{if(settings_right_virtualmin_default=="sysinfo.cgi"||settings_right_virtualmin_default==""){d="sysinfo.cgi"}else{if(settings_right_virtualmin_default=="index.cgi"){d="virtual-server/index.cgi"}else{d="virtual-server/summary_domain.cgi?dom="+settings_right_virtualmin_default}}}t__wi_p.$('iframe[name="page"]').attr("src",$_____link_full+"/"+d)}function t_cm_r(c){var d;if(c!==false){d="server-manager/edit_serv.cgi?id="+c}else{if(settings_right_cloudmin_default=="sysinfo.cgi"||settings_right_cloudmin_default==""){d="sysinfo.cgi"}else{if(settings_right_cloudmin_default=="index.cgi"){d="server-manager/index.cgi"}else{d="server-manager/edit_serv.cgi?id="+settings_right_cloudmin_default}}}t__wi_p.$('iframe[name="page"]').attr("src",$_____link_full+"/"+d)}function t__m(d,f,e){if(d==="open_virtualmin"){t__vm_l(false);if((settings_right_reload==true||f===true)&&e!==true){t_vm_r(false)}}else{if(d==="open_cloudmin"){t__cm_l(false);if((settings_right_reload==true||f===true)&&e!==true){t_cm_r(false)}}else{t__wm_l(d);if((settings_right_reload==true||f===true)&&e!==true){t__wm_r()}}}}function ___dlm(c,d){if(d){__cms()}t__wi_p.$('a[href="'+c+'"]:first').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 __samn(){return':not(.menu-exclude-link, [data-href="/webmin/refresh_modules.cgi"])'}function __sam(e,i){if(i===false){var h=false,k="href";if(t__wi_p.$('a[data-href="'+e+'"]'+__samn()+"").length){h="=";k="data-href"}else{if(t__wi_p.$('a[data-href="'+e+'/"]'+__samn()+"").length){h="=";e=e+"/";k="data-href"}else{if(t__wi_p.$('a[data-href="/'+e+'"]'+__samn()+"").length){h="=";e="/"+e;k="data-href"}else{if(t__wi_p.$('a[data-href^="'+e+'"]'+__samn()+"").length){h="^=";k="data-href"}else{if(t__wi_p.$('a[data-href^="'+e+'/"]'+__samn()+"").length){h="^=";e=e+"/";k="data-href"}else{if(t__wi_p.$('a[data-href^="/'+e+'"]'+__samn()+"").length){h="^=";e="/"+e;k="data-href"}else{if(t__wi_p.$('a[data-href$="'+e+'"]'+__samn()+"").length){h="$=";k="data-href"}else{if(t__wi_p.$('a[data-href$="'+e+'/"]'+__samn()+"").length){h="$=";e=e+"/";k="data-href"}else{if(t__wi_p.$('a[data-href$="/'+e+'"]'+__samn()+"").length){h="$=";e="/"+e;k="data-href"}else{if(t__wi_p.$('a[data-href*="'+e+'"]'+__samn()+"").length){h="*=";k="data-href"}else{if(k==="href"){if(t__wi_p.$('a[href="'+e+'"]'+__samn()+"").length){h="="}else{if(t__wi_p.$('a[href="'+e+'/"]'+__samn()+"").length){h="=";e=e+"/"}else{if(t__wi_p.$('a[href="/'+e+'"]'+__samn()+"").length){h="=";e="/"+e}else{if(t__wi_p.$('a[href^="'+e+'"]'+__samn()+"").length){h="^="}else{if(t__wi_p.$('a[href^="'+e+'/"]'+__samn()+"").length){h="^=";e=e+"/"}else{if(t__wi_p.$('a[href^="/'+e+'"]'+__samn()+"").length){h="^=";e="/"+e}else{if(t__wi_p.$('a[href$="'+e+'"]'+__samn()+"").length){h="$="}else{if(t__wi_p.$('a[href$="'+e+'/"]'+__samn()+"").length){h="$=";e=e+"/"}else{if(t__wi_p.$('a[href$="/'+e+'"]'+__samn()+"").length){h="$=";e="/"+e}else{if(t__wi_p.$('a[href*="'+e+'"]'+__samn()+"").length){h="*="}}}}}}}}}}}}}}}}}}}}}if(h){if((($current_page_full&&$current_page_full.indexOf("/webmin/edit_themes.cgi")>-1)||($source_path==$_____link+"settings-editor_read.cgi"||$source_path==$_____link+"settings-upload.cgi"))&&t__wi_p.location.search!="?updating-webmin-theme"&&(t__wi_p.$t_uri_virtualmin||t__wi_p.$t_uri_cloudmin)){t__wi_p.__cms();return}__cms();t__wi_p.$("a["+k+""+h+'"'+e+'"]:first'+__samn()+"").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")}}else{if($__source_file=="settings-editor_read.cgi"||$__source_file=="settings-upload.cgi"){__sam("webmin/",false);return}if($__source_path==="/config.cgi"){__sam($__source_query+"/",false);return}if($__source_path==="/phpini/list_ini.cgi"){__sam($__source_query.replace(".","%2E"),false);return}custom_url="auto";if(custom_url!="auto"){$current_page=custom_url}else{$current_page=$_url.path().replace(/^\//g,"")}if($("#headln2l a").attr("href")){if($("#headln2l a").attr("href").indexOf(".cgi")>=0){$current_page_webmin=1}else{$current_page_webmin=0}}else{$current_page_webmin=0}(($current_page.split("/")[0]=="virtual-server"||$current_page.split("/")[0]=="server-manager")&&!$current_page_webmin&&(t__wi_p.$("#wrapper").data("virtual-server")!=-1||t__wi_p.$("#wrapper").data("server-manager")!=-1))?$current_page=$current_page.split("/")[0]+"/"+$current_page.split("/")[1]:$current_page=$current_page.split("/")[0]+"/";$current_page_search=t__wi_p.$('iframe[name="page"]').get(0)?t__wi_p.$('iframe[name="page"]').get(0).contentWindow.location.search:0;var j=[];t__wi_p.$('li > ul.sub li:not(.menu-exclude):not(.user-link) a:not(.menu-exclude-link, [data-href="/webmin/refresh_modules.cgi"])').each(function(){if($(this).attr("href").substring(0,1)=="/"){j.push($(this).attr("href").substring(1))}else{j.push($(this).attr("href"))}});if((product_name()!=="Virtualmin"&&$__source_file.indexOf("save_log.cgi")===-1)&&(product_name()!=="Virtualmin"&&$__source_file.indexOf("edit_log.cgi")===-1)&&($current_page_full&&$current_page_full.indexOf("/servers/link.cgi/")===-1)&&(j.indexOf($current_page)>-1||j.indexOf(($current_page+"index.cgi"))>-1||j.indexOf($current_page+$current_page_search)>-1||j.indexOf(($current_page_full))>-1||j.indexOf(($current_page_full.substring(1)))>-1)){if(product_name()!=="Virtualmin"&&product_name()!=="Cloudmin"){__cms()}if(t__wi_p.$('a[href="'+$current_page+'index.cgi"]').length){$current_page=$current_page+"index.cgi"}else{if(t__wi_p.$('a[href="/'+$current_page+'index.cgi"]').length){$current_page="/"+$current_page+"index.cgi"}else{if(t__wi_p.$('a[href="/'+$current_page+'"]').length){$current_page="/"+$current_page}else{if(t__wi_p.$('a[href="/'+$current_page+$current_page_search+'"]').length){$current_page="/"+$current_page+$current_page_search}else{if(t__wi_p.$('a[href="'+$current_page+$current_page_search+'"]').length){$current_page=$current_page+$current_page_search}}}}}if(t__wi_p.$('a[href="'+$current_page+'"]').length){t__wi_p.$('a[href="'+$current_page+'"]').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")}else{if(t__wi_p.$('a[href="'+$current_page_full+'"]').length){t__wi_p.$('a[href="'+$current_page_full+'"]').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")}else{if(t__wi_p.$('a[href="'+$current_page_full.substring(1)+'"]').length){t__wi_p.$('a[href="'+$current_page_full.substring(1)+'"]').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")}}}}else{if($t_uri_virtualmin||$t_uri_cloudmin){$current_page_with_path=$_url.path().substring(1);if($current_page_with_path=="virtual-server/webminlog"){$current_page_with_path="webminlog/search.cgi?"}else{if($current_page_with_path=="virtual-server/syslog"){$current_page_with_path="syslog/save_log.cgi?"}else{if($current_page_with_path=="virtual-server/apache"){$current_page_with_path="apache/virt_index.cgi?"}else{if($current_page_with_path=="virtual-server/webalizer"){$current_page_with_path="webalizer/edit_log.cgi?"}else{if($current_page_with_path=="webminlog/search.cgi"){$current_page_with_path="webminlog/search.cgi?"}}}}}if($current_page_with_path=="apache/virt_index.cgi?"||$current_page_with_path=="apache/virt_index.cgi"){__cms();t__wi_p.$('a[href^="/'+$current_page_with_path+"?"+$_url.query()+'"]').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")}else{if($current_page_with_path=="syslog/save_log.cgi"){if($_url.query().indexOf("access_log")>-1){__cms();t__wi_p.$('a[href$="access%5Flog"]:first'+__samn()+"").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")}else{if($_url.query().indexOf("error_log")>-1){__cms();t__wi_p.$('a[href$="error%5Flog"]').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")}}}else{if($current_page_with_path=="webalizer/edit_log.cgi"||$current_page_with_path=="webalizer/index.cgi"){__cms();t__wi_p.$('a[href*="webalizer/"]').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")}else{if($current_page_with_path=="config.cgi"||$current_page_with_path=="/config.cgi"){__cms();t__wi_p.$('a[href*="config.cgi"]:first'+__samn()+"").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")}else{if($current_page_with_path=="webminlog/search.cgi?"){__cms();t__wi_p.$('a[href^="/webminlog/search.cgi"]:first'+__samn()+"").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")}else{if(typeof $current_page_with_path!="undefined"&&t__wi_p.$('a[href*="'+$current_page_with_path+'"]:first'+__samn()+"").length>0){__cms();t__wi_p.$('a[href*="'+$current_page_with_path+'"]').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")}}}}}}}}var l=[];t__wi_p.$("a.navigation_module_trigger").each(function(){if($(this).hasClass("navigation_trigger_single_link")){l.push($(this).data("href"))}else{if($(this).data("href")!="/virtual-server/index.cgi"){l.push($(this).data("href"))}else{if($(this).data("href")=="/virtual-server/index.cgi"){l.push("/virtual-server");l.push("/virtual-server/index.cgi")}}}});var j=[];t__wi_p.$('li > ul.sub li:not(.menu-exclude):not(.user-link) a:not(.menu-exclude-link, [data-href="/webmin/refresh_modules.cgi"])').each(function(){if($(this).attr("href").substring(0,1)=="/"){j.push($(this).attr("href").substring(1))}else{j.push($(this).attr("href"))}});$___current_page_search=$current_page.replace(/\/$/,"")+$current_page_search;$_current_page_search="/"+$current_page.replace(/\/$/,"")+$current_page_search;if($current_page_full==$_____link_full+"/virtual-server/history.cgi"){__cms();t__wi_p.$('a[data-href="/virtual-server/history.cgi"]').parent("li:not(.menu-exclude):not(.user-link)").addClass("sub_active").append('')}else{if($current_page_full==$_____link_full+"/server-manager/index.cgi"){__cms();t__wi_p.$('a[data-href="/server-manager/index.cgi"]').parent("li:not(.menu-exclude):not(.user-link)").addClass("sub_active").append('')}else{if($current_page_full==$_____link_full+"/webmin_search.cgi"){__cms()}else{if((l.indexOf($_current_page_search)>-1)){__cms();t__wi_p.$('a[data-href="'+$_current_page_search+($_current_page_search=="/virtual-server"?"/index.cgi":"")+'"]').parent("li:not(.menu-exclude):not(.user-link)").addClass("sub_active").append('')}else{if(j.indexOf($_current_page_search)>-1||j.indexOf($___current_page_search)>-1){__cms();t__wi_p.$('a[href*="'+$___current_page_search+'"]').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")}else{if(t__wi_p.$("#wrapper").data("product")=="usermin"&&$t_uri_webmail&&$current_page_full&&($current_page_full.indexOf("/mailbox")||$current_page_full.indexOf("/filter"))){$_current_page_search_no_extra=$_current_page_search.replace("&user=","").replace(/\./g,"%2E").replace("mailbox?id=","mailbox/index.cgi?id=");$.each(l,function(b,a){if($_current_page_search_no_extra&&$_current_page_search_no_extra.indexOf(a)>-1){if(t__wi_p.$('a[data-href="'+a+'"]').length>0){__cms();t__wi_p.$('a[data-href="'+a+'"]').find(".fa.fa-folder-o").addClass("fa-folder-open-o");t__wi_p.$('a[data-href="'+a+'"]').parent("li:not(.menu-exclude):not(.user-link)").addClass("sub_active").append('')}}});$_current_page_search="/"+$current_page+"index.cgi"+$current_page_search;$__relative_url=="/mailbox/edit_sig.cgi?"?$__relative_url="/mailbox/edit_sig.cgi":false;if(t__wi_p.$('a[data-href="'+$__relative_url+'"]').length>0){__cms();t__wi_p.$('a[data-href="'+$__relative_url+'"]').find(".fa.fa-folder-o").addClass("fa-folder-open-o");t__wi_p.$('a[data-href="'+$__relative_url+'"]').parent("li:not(.menu-exclude):not(.user-link)").addClass("sub_active").append('')}if($current_page_full==$_____link_full+"/mailbox/"){if(t__wi_p.$('a[data-href="'+$_current_page_search+'"]').length>0){__cms();t__wi_p.$('a[data-href="'+$_current_page_search+'"]').find(".fa.fa-folder-o").addClass("fa-folder-open-o");t__wi_p.$('a[data-href="'+$_current_page_search+'"]').parent("li:not(.menu-exclude):not(.user-link)").addClass("sub_active").append('')}else{if(t__wi_p.$('a[data-href="/mailbox/index.cgi?id=INBOX"]').length>0&&l.indexOf("/"+$current_page)===-1){__cms();t__wi_p.$('a[data-href="/mailbox/index.cgi?id=INBOX"]').parent("li:first-child").find(".fa.fa-folder-o").addClass("fa-folder-open-o");t__wi_p.$('a[data-href="/mailbox/index.cgi?id=INBOX"]').parent("li:first-child").addClass("sub_active").append('')}}}}}}}}}}}function __dpt(){if(!$g__v__nav){return}if(t__wi_p.$('li.sub_active a[href*="'+$g__o__f_m+'"]').length){var a=t__wi_p.$('iframe[name="page"]').get(0).contentWindow.$g__o__f_m;if(t__wi_p.$('iframe[name="page"]').get(0)&&t__wi_p.$('iframe[name="page"]').get(0).contentWindow&&t__wi_p.$('iframe[name="page"]').get(0).contentWindow.$('body[class*="'+a+'"] .active form input#path').val()){t__wi_p.document.title=decodeURIComponentSafe(t__wi_p.$('iframe[name="page"]').get(0).contentWindow.$('body[class*="'+a+'"] .active form input#path').val())+" - "+t__wi_p.$("li.sub_active a").text()+" — "+$g__v__title}else{t__wi_p.document.title=t__wi_p.$("li.sub_active a").text()+" — "+$g__v__title}}else{if((product_name()=="Virtualmin"||product_name()=="Cloudmin")&&t__wi_p.$("select option:checked").text()&&t__wi_p.$("select option:checked").text().length){if(t__wi_p.$("li.sub_active a").text()&&t__wi_p.$("li.sub_active a").text().length){var b=$("#webmin_search_form").parent("li").prevAll();if(b.has(".sub_active, .current-large").length){t__wi_p.document.title=t__wi_p.$("select option:checked").text()+" - "+t__wi_p.$("li.sub_active a").text()+" — "+$g__v__title}else{t__wi_p.document.title=t__wi_p.$("li.sub_active a").text()+" — "+$g__v__title}}else{t__wi_p.document.title=product_name()+" — "+$g__v__title}}else{if(product_name()=="Mail"){if(t__wi_p.$("li.sub_active a").text()&&t__wi_p.$("li.sub_active a").text().length){t__wi_p.document.title=t__wi_p.$("li.sub_active a").text()+" - Mail — "+$g__v__title}else{t__wi_p.document.title=product_name()+" — "+$g__v__title}}else{if(t__wi_p.$("li.sub_active a").text()&&t__wi_p.$("li.sub_active a").text().length){t__wi_p.document.title=t__wi_p.$("li.sub_active a").text()+" — "+$g__v__title}else{t__wi_p.document.title=$g__v__title}}}}var c=t__wi_p.$(".right-side-tabs .list-group-item:not(.no-notifications, .opacity-0_3)").length;if(settings_side_slider_enabled&&settings_side_slider_notifications_enabled){t__wi_p.titlenotifier.set(c)}else{t__wi_p.titlenotifier.set(0)}}function __dlm(b){if(t__wi_p.$___________m_locked===1||$source_path==$_____link+"settings-user.cgi"){return}if($current_page_full==$_____link_full+"/server-manager/"||$current_page_full==$_____link_full+"/virtual-server/"){b="index.cgi"}typeof b==="undefined"?b=false:false;if(!b&&$current_page_full==$_____link_full+"/virtual-server/summary_domain.cgi"){__sam("/virtual-server/index.cgi",false)}if(b){__sam(b,false)}else{if(product_name()!=="Webmin"&&product_name()!=="Usermin"&&(t__wi_p.$('a[href*="'+$___relative_url+'"]:first'+__samn()+"").length||t__wi_p.$('a[data-href*="'+$___relative_url+'"]:first'+__samn()+"").length)){__sam($___relative_url,false)}else{if((product_name()!=="Virtualmin"&&product_name()!=="Cloudmin")&&product_name()!=="Webmin"&&product_name()!=="Usermin"&&(t__wi_p.$('a[href*="'+$___source_path+'"]:first'+__samn()+"").length||t__wi_p.$('a[data-href*="'+$___source_path+'"]:first'+__samn()+"").length)){__sam($___source_path,false)}else{if((product_name()!=="Virtualmin"&&product_name()!=="Cloudmin")&&(t__wi_p.$('a[href*="'+$___source_dir+'"]:first'+__samn()+"").length||t__wi_p.$('a[data-href*="'+$___source_dir+'"]:first'+__samn()+"").length)||((access_level()==2||access_level()==4)&&t___wi.location.search=="?virtualmin")){__sam($___source_dir,false)}else{if($__source_file){__sam($__source_file,true)}}}}}if(t__wi_p.$('a[data-href="/sysinfo.cgi"]').hasClass("hidden")&&$current_page_full==$_____link_full+"/sysinfo.cgi"){__cms()}__dpt()}function t__m__m(f,l){var p=URI.parseQuery(URI($__source_url).query())["dom"],i=URI.parseQuery(URI($__source_url).query())["id"],h="aside select";if(URI.parseQuery(URI($__source_url).query())["refresh"]=="1"){if(!$("body").contents().text().match(/___theme_post_save___/)){var j=false;if(i||p&&($t_uri_virtualmin||$t_uri_cloudmin)){if($t_uri_virtualmin){j=p}else{if($t_uri_cloudmin){j=i}}}else{if($t_uri_virtualmin||$t_uri_cloudmin){j=t__wi_p.$(h).val()}}if($t_uri_virtualmin){t__wi_p.t__vm_l(j)}else{if($t_uri_cloudmin){t__wi_p.t__cm_l(j)}else{var g=$(".switch-toggle input.dynamic:checked").attr("id");t__wi_p.t__wm_l((g?g:"open_webmin"))}}return}}else{var e=" option",n=t__wi_p.$(h).val(),q=t__wi_p.$(h+e+"[value="+n+"]").text();if(t__wi_p.t___p__ll===0&&(($t_uri_virtualmin||$t_uri_cloudmin)&&(i||p))){if(!$("body").contents().text().match(/___theme_post_save___/)){if($t_uri_virtualmin&&!$t_uri_cloudmin&&p&&n&&(p!=n&&p!=q)){var o=t__wi_p.$(h+e).map(function(){return $(this).val()}).get();if($.inArray(p,o)!=-1){t__wi_p.t__vm_l(p)}else{var k=t__wi_p.$(h+e).filter(function(){return $(this).text()==p}).val();t__wi_p.t__vm_l(k)}}else{var o=t__wi_p.$(h+e).map(function(){return $(this).val()}).get();if($t_uri_cloudmin&&i&&n&&(i!=n&&i!=q)){if($.inArray(i,o)!=-1){t__wi_p.t__cm_l(i)}else{var m=t__wi_p.$(h+e).filter(function(){return $(this).text()==i}).val();t__wi_p.t__cm_l(m)}}}return}}}if(t___wi.location!=t__wi_p.location){if($__current_directory==$_____link_full+"/virtual-server/"||$current_page_full==$_____link_full+"/virtual-server/index.cgi"||$__relative_url=="/config.cgi?virtual-server"){if(t__wi_p.$(".switch-toggle input:checked").attr("id")!="open_virtualmin"&&t__wi_p.$('.switch-toggle input[id="open_virtualmin"]').length){t__wi_p.t__s("open_virtualmin");t__wi_p.t__m("open_virtualmin",f,l)}}else{if($__current_directory==$_____link_full+"/server-manager/"||$current_page_full==$_____link_full+"/server-manager/index.cgi"||$__relative_url=="/config.cgi?server-manager"){if(t__wi_p.$(".switch-toggle input:checked").attr("id")!="open_cloudmin"&&t__wi_p.$('.switch-toggle input[id="open_cloudmin"]').length){t__wi_p.t__s("open_cloudmin");t__wi_p.t__m("open_cloudmin",f,l)}}}}}function v__cm___init(){if($("textarea").length===1&&($("textarea").attr("name")==="data"||$("textarea").attr("name")==="text"||$("textarea").attr("name")==="conf"||is__mfq("virtual-server","edit_html.cgi","textok=")||$__source_file.indexOf("manual")>-1)){if(is__mf("virtual-server","mass_ucreate_form.cgi")||is__mf("virtual-server","mass_create_form.cgi")||is__mf("server-manager","edit_pubkey.cgi")||is__mf("server-manager","edit_key.cgi")||$__relative_url=="/config.cgi?server-manager"||is__mf("useradmin","batch_form.cgi")||is__mf("useradmin","gbatch_form.cgi")||$__source_file=="mass_form.cgi"||$("textarea").attr("id")==="notes"){return 0}t__wi_p.$____loader_block__=1;return 1}return 0}function t__cm___init(g,i,f,j,d,m,k){k=(typeof k=="undefined"||k==false?false:true);function l(n,p,s,r,q,o){q=(typeof q=="undefined"||q==false?false:true);o=(typeof o=="undefined"||o==false?false:true);$.each(n,function(u,w){var b=$(this),c=["phpini","bind8"],B=["phpini"],t=["bind8"];$("#headln2l a").attr("href")?$page=$("#headln2l a").attr("href").split("/")[1]:$page=null;c.indexOf($page)>=0&&$(this).data("name","data");CodeMirror.modeURL="/unauthenticated/js/codemirror/mode/%N/%N.js";var a=null,x="text/plain";var v=false;if($current_page_full==$_____link_full+"/custom/view.cgi"){v=$('form[action="save.cgi"]').find(".table-title").find("tt").text()}else{if($('body[class^="'+$g__o__f_m+'"]').length){v=URI.parseQuery(URI($__source_url).query())["file"]}else{v=$('select[name="file"]').val()}}var z=(p?p:v),y,a,x;if(y=/.+\.([^.]+)$/.exec(z)){var A=CodeMirror.findModeByExtension(y[1]);if(A){a=A.mode;x=A.mime}}else{if(/\//.test(z)){var A=CodeMirror.findModeByMIME(z);if(A){a=A.mode;x=z}}else{a=null;x="text/plain"}}if($page=="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"){a="rpm";x="rpm-spec"}else{if($page=="phpini"){a="z80";x="text/x-z80"}else{if($page=="bind8"||$page=="procmail"||is__mf("virtual-server","manual_records.cgi")){a="clike";x="text/x-java"}else{if($page=="virtual-server"&&$(this).attr("name")=="body"){a="htmlmixed";x="text/html"}}}}$current_file=$current_page_full.replace(/^\//g,"");if($current_file){$current_file=$current_file.split("/")[1]}if(v__cm___init()||$(".jsPanel").length||q){CodeMirror.commands.autocomplete=function(C){C.showHint({hint:CodeMirror.hint.anyword})};window["__cm_editor_"+r]=CodeMirror.fromTextArea(w,{tabMode:"indent",matchBrackets:true,lineNumbers:true,keyMap:"sublime",highlightSelectionMatches:{showToken:/\w/,annotateScrollbar:true},lineWrapping:true,indentUnit:0,autofocus:true,foldGutter:true,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:{"Ctrl-Space":"autocomplete"},styleActiveLine:true,theme:settings_cm_editor_palette});window["__cm_editor_"+r].setOption("mode",x);if(a!="rpm"){CodeMirror.autoLoadMode(window["__cm_editor_"+r],a)}setTimeout(function(){if(!$("body").find(".jsPanel").length){$(".CodeMirror").before('')}var C=$(".fa.fa-question-circle.__helper");C.popover({container:"body",placement:"auto right",title:(''+lang("theme_xhred_editor_help_title")),content:lang("theme_xhred_editor_help_content"),trigger:"click",html:true});C.on("inserted.bs.popover",function(){$("body").find(".theme_xhred_editor_help").parents(".popover").addClass("_helper")})},100);if(o){window["__cm_editor_"+r].on("change",function(D,C){$("body").attr("data-unload-warning","1")})}if($current_file!="edit_cron.cgi"&&$current_page_full!=$_____link_full+"/virtualmin-password-recovery/"&&$current_page_full!=$_____link_full+"/bind8/forward_form.cgi"){s?($resize=s):($resize=2.8);if(!s){$window_height=($(window).outerHeight()-($(window).outerHeight()/$resize));window["__cm_editor_"+r].setSize(null,$window_height);$(t___wi).resize(function(){$window_height=($(window).outerHeight()-($(window).outerHeight()/$resize));window["__cm_editor_"+r].setSize(null,$window_height)})}else{window["__cm_editor_"+r].on("change",function(D,C){n.val(window["__cm_editor_"+r].getValue());if($(":focus").parents(".jsPanel").is(".jsPanel")){$(":focus").parents(".jsPanel").find("._filemanager_file_editor_save").addClass("text-danger")}});window["__cm_editor_"+r].setSize($resize[0],$resize[1])}}if($(".sub_table_container").find(".CodeMirror").length){$(".sub_table_container").addClass("xcontent-force-no-styling");$(".panel-body").addClass("xqcontent-forced")}__p__pe_sm()}})}function e(){var a=0;if(t__wi_p.$load____ext==="src"){a=$('html head link[href*="css/jquery.jspanel."]:first')}else{a=$('html head link[href*="css/bundle."]:first')}if(!$('html head link[href*="css/codemirror."]').length){a.before('')}}function h(){l(g,i,f,j,d,m);t__wi_p.$____loader_block__=0;__lre()}if(typeof CodeMirror==="function"){h()}else{if(!t__wi_p.$____cm__has_init__){t__wi_p.$____cm__has_init__=1;e();$.getScript(""+$_____link_full+"/unauthenticated/js/codemirror."+t__wi_p.$load____ext+".js",function(a,c,b){!k&&h();t__wi_p.$___ajax_requested_url="_blank"})}}}function v__cm_viewer(){if($('body[class^="syslog"]').length&&$__source_query&&$__source_query.indexOf("view=1")>-1){return 1}else{return 0}}function f__cm_viewer(){t__wi_p.$____loader_block__=1;function a(){if(!$("pre").find("i").length){var d=false;$("pre").each(function(){var f=$(this),e=HTMLDecode(f.html());f.empty();d=CodeMirror(this,{value:e,lineNumbers:true,mode:null,theme:settings_cm_view_palette,readOnly:true,viewportMargin:Infinity})}).promise().done(function(){})}}function c(){var d=0;if(t__wi_p.$load____ext==="src"){d=$('html head link[href*="css/jquery.jspanel."]:first')}else{d=$('html head link[href*="css/bundle."]:first')}if(!$('html head link[href*="css/codemirror."]').length){d.before('')}}function b(){a();t__wi_p.$____loader_block__=0;__lre()}if(typeof CodeMirror==="function"){b()}else{if(!t__wi_p.$____cm__has_init__){t__wi_p.$____cm__has_init__=1;c();$.getScript(""+$_____link_full+"/unauthenticated/js/codemirror."+t__wi_p.$load____ext+".js",function(d,f,e){b();t__wi_p.$___ajax_requested_url="_blank"})}}}(function(b){(jQuery.browser=jQuery.browser||{}).mobile=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(b)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(b.substr(0,4))})(navigator.userAgent||navigator.vendor||window.opera);(___is_iOSSafari&&($("html").css("overflow","auto")));if(___is_iOS){$("head").append(' ')}$(document).on("click",function(b){if($(b.target).attr("class")&&$(b.target).attr("class").indexOf("select2")===0){}else{if(t__wi_p.$("aside select")&&t__wi_p.$("aside select").length>0&&t__wi_p.$("aside select").hasClass("select2-hidden-accessible")){t__wi_p.$("aside select").select2("close")}}});$("a").each(function(){if($(this).find("img").length){$(this).css("text-decoration","none")}});$("body").on("keydown",function(f){var e=f.keyCode?f.keyCode:f.which,d=String.fromCharCode(e).toLowerCase();if(t__wi_p.$('aside input[name="search"]').is(":focus")){return}if(t__wi_p.$(".-shell-port-").hasClass("opened")){return}if($current_page_full==$_____link_full+"/server-manager/gvnc.cgi"||$current_page_full==$_____link_full+"/server-manager/login.cgi"||$current_page_full==$_____link_full+"/telnet/"||$current_page_full==$_____link_full+"/telnet/index.cgi"||$current_page_full==$_____link_full+"/stunnel/"||$current_page_full==$_____link_full+"/stunnel/index.cgi"){return}if(!$("input").is(":focus")&&!$("select").is(":focus")&&!$("textarea").is(":focus")&&!$(".modal.in").length){if(d&&/[a-zA-Z0-9]/.test(d)&&!f.ctrlKey&&!f.altKey&&!f.metaKey&&e!==106&&e!==107&&e!==109&&e!==112&&e!==113&&e!==114&&e!==115&&e!==116&&e!==117&&e!==118&&e!==119&&e!==120&&e!==121&&e!==122&&e!==123){if(!$(".dataTables_filter label input").length){setTimeout(function(){if(f.shiftKey&&d=="1"){t__wi_p.$('aside input[name="search"]').focus().val("!")}else{t__wi_p.$('aside input[name="search"]').focus().val(d)}},1)}else{$(".btn-filter-top-right").trigger("click");$(".btn-filter-top-right .dataTable-mirror").focus().trigger("keyup")}}}});$.ajaxSetup({beforeSend:function(b,a){t__wi_p.$___ajax_requested_url=a.url},complete:function(b,a){if(b.getResponseHeader("Auth-type")==="auth-required=1"){t___wi.top.location.reload()}if(t__wi_p.$___ajax_requested_url&&(t__wi_p.$___ajax_requested_url.indexOf("help.cgi")>-1||t__wi_p.$___ajax_requested_url.indexOf("edit_file.cgi")>-1)){setTimeout(function(){t__wi_p.$___ajax_requested_url="_blank"},100)}}}); \ No newline at end of file +;var $_url=URI(t___wi.location),$__post_init_script=1,$__source_protocol=$_url.protocol(),$__source_port=$_url.port(),$__source_url=location.href,$__source_path=$_url.path(),$___source_path=$_url.path().replace(/^\//g,"").replace(/\/$/g,""),$__source_file=$_url.filename(),$__source_dir=($_url.directory()?($_url.directory().endsWith("/")?$_url.directory():($_url.directory()+"/")):"/"),$___source_dir=$_url.directory().replace(/^\//g,"").replace(/\/$/g,""),$__source_query=$_url.query(),$source_path=$_url.path().replace(/^\//g,""),$__host_url=$_url.hostname(),$__current_directory=$__source_dir,$__relative_url=$_url.resource(),$___relative_url=$_url.resource().replace(/^\//g,"").replace(/\/$/g,""),$current_page=$_url.path().replace(/^\//g,"").replace(/\/\//g,"/"),$current_directory=$__current_directory.replace(/^\//g,""),$current_page_full=location.pathname.replace(/\/\//g,"/"),$webprefix=$("body").data("webprefix"),$webprefix_full="",$__source_host_complete=($__source_protocol+"://"+$__host_url+($__source_port?":":"")+$__source_port+("/"+$webprefix+$__source_path)).replace(/\/\//g,"/"),$access_level=t__wi_p.$("#wrapper").data("access-level"),$shell_level=($access_level==0?"#":"$"),$load____type=t__wi_p.$("body").data("debug"),$load____ext=($load____type=="debug"?"src":"min"),$t_av__usermin=$("body").data("usermin"),$t___license_vm=t__wi_p.$("#wrapper").data("virtual-server-license"),$t___license_cm=t__wi_p.$("#wrapper").data("server-manager-license"),$t_uri_virtualmin=t__wi_p.location.search=="?virtualmin"?1:0,$t_uri_cloudmin=t__wi_p.location.search=="?cloudmin"?1:0,$t_uri_webmail=t__wi_p.location.search=="?mail"?1:0,$t_uri_dashboard=t__wi_p.location.search=="?dashboard"?1:0,$g__v__title=t__wi_p.$("html head title").data("initial"),$g__v__nav=t__wi_p.$("aside").length,$g__user__=$("body").data("user"),$g__user__home=$("body").data("user-home"),$g__m__name=$("body").data("module"),$g__t__ver=$("body").data("theme-version").toString(),$g__t__gver=$("body").data("theme-git-version").toString(),$g__t__ver_str=$g__t__ver.replace(".",""),__isNR=(typeof settings_background_color!="undefined"&&settings_background_color==="nightRider"?1:__isNM);const __ua__=window.navigator.userAgent,___is_iOS=(!!__ua__.match(/iPad/i)||!!__ua__.match(/iPhone/i)),___is_webkit=(!!__ua__.match(/WebKit/i)),___is_iOSSafari=(___is_iOS&&___is_webkit&&!__ua__.match(/CriOS/i)&&!__ua__.match(/OPiOS/i));if($webprefix){$webprefix=($webprefix+"/").replace(/\/\//g,"/");$webprefix_full=$webprefix;$webprefix_full=($webprefix_full.replace(/\/$/g,"")).replace(/\/\//g,"/");if(!$webprefix_full.substr(0,1)=="/"){$webprefix_full="/"+$webprefix_full}if($webprefix.substr(-1)=="/"){$webprefix=$webprefix.substr(0,$webprefix.length-1)}}if($current_page_full&&$current_page_full.indexOf("/servers/link.cgi/")>-1){$____link=$current_page_full.split("/");if(/^\d+$/.test($____link[3])){$_____link=$____link[1]+"/"+$____link[2]+"/"+$____link[3];$webprefix=$webprefix+$_____link+"/";$webprefix_full=$webprefix_full+"/"+$_____link;$_____link=$webprefix;$_____link_full=$webprefix_full}else{$_____link=$webprefix;$_____link_full=(("/"+$webprefix.replace(/\/$/g,"")).replace(/\/\//g,"/")).replace(/\/$/g,"")}}else{$_____link=$webprefix;$_____link_full=(("/"+$webprefix.replace(/\/$/g,"")).replace(/\/\//g,"/")).replace(/\/$/g,"")}if($__source_host_complete.substr(-1)=="/"){$__source_host_complete=$__source_host_complete.substr(0,$__source_host_complete.length-1)}if(t___wi.location===t__wi_p.location&&$t_av__session){$.ajax({type:"GET",url:$_____link_full+"/index.cgi/?xhr-get_theme_language=1",data:false,dataType:"text",async:$g__v__nav,success:function(a){t__wi_p.$("body").data("language-strings",JSON.parse(a));typeof upd_labels==="function"&&upd_labels()}});$.ajax({type:"GET",url:$_____link_full+"/index.cgi/?xhr-get_available_modules=1",data:false,dataType:"text",async:$g__v__nav,success:function(a){t__wi_p.$("body").data("available-modules",JSON.parse(a))}});manageConfig("load")}var $g__o__f_m=("file"+(is_module("file-manager")?"-manager":"min")),$g__e__path=$_____link_full+"/extensions";function prt(b){return console.log(b)}(function(b){b.fn.replaceTagName=function(n){var m=[],l=this.length;while(l--){var e=document.createElement(n),a=this[l],o=a.attributes;for(var p=o.length-1;p>=0;p--){var i=o[p];e.setAttribute(i.name,i.value)}e.innerHTML=a.innerHTML;b(a).after(e).remove();m[l-1]=e}return b(m)}})(t___wi.jQuery);jQuery.fn.selectText=function(){var d=document;var b=this[0];if(d.body.createTextRange){var a=document.body.createTextRange();a.moveToElementText(b);a.select()}else{if(window.getSelection){var c=window.getSelection();var a=document.createRange();a.selectNodeContents(b);c.removeAllRanges();c.addRange(a)}}};(function(a){a.fn.replaceText=function(d,e,f){return this.each(function(){var c=this.firstChild,b,h,i=[];if(c){do{if(c.nodeType===3){b=c.nodeValue;h=b.replace(d,e);if(h!==b){if(!f&&/this.height()}})(jQuery);$.fn.toggleCheckbox=function(){if($(this).attr("type")=="checkbox"){$(this).prop("checked",!($(this).is(":checked")))}};jQuery.fn.confirmation=function(d,c){d=$.extend({className:"btn-danger",timeout:2500},d);$(this).each(function(l,b){var i,a=$(b),j=a.html();function k(){a.removeClass(d.className).data("confirmed",false).find(".tmp_question").remove()}a.data("confirmed",false);a.on("click.confirm",function(e){e.preventDefault();if(a.data("confirmed")){c.call(a,e);k()}else{a.data("confirmed",true);a.append('?').addClass(d.className).bind("mouseout.confirm",function(){i=setTimeout(k,d.timeout)}).bind("mouseover.confirm",function(){clearTimeout(i)})}}).removeClass(d.className)});return $(this)};RegExp.quote=function(a){return a.replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")};function brake_long_lines(c,a,b){if(c&&a.text()&&a.text().length){$.each(a,function(){var e=new RegExp(RegExp.quote(b),"g"),d=$(this).text().replace(e,", ");$(this).html("
"+d)})}}function passwordGenerator(){var e=settings_global_passgen_format.split("|")[1].split(","),d=parseInt(settings_global_passgen_format.split("|")[0]),b="",a="";if($.inArray("a-z",e)>=0){b+="abcdefghijklmnopqrstuvwxyz"}if($.inArray("A-Z",e)>=0){b+="ABCDEFGHIJKLMNOPQRSTUVWXYZ"}if($.inArray("0-9",e)>=0){b+="0123456789"}if($.inArray("#",e)>=0){b+="![]{}()%&*$#^<>~@|"}for(var c=0;c").html(a).text()}function get_cookie(b){var e=b+"=";var a=document.cookie.split(";");for(var d=0;d-1){a=a.split("~");k=a[0];l=a[1]}$.each($(b).find(e),function(){if($(this).parents(b).hasClass("f__lnk_t_btn")){return}if(d&&d.indexOf("__center__")>-1){$(e).parent().addClass("text-center")}$(this).html(k+$(this).text().replace(/\.\.$/,"")+l).addClass(d).removeClass("ui_link").prepend(g?('  '):"");$(this).parent(b).addClass("f__lnk_t_btn")})})}})}function f__toogle_palette(){var a=$("body .user-link.palette-toggle"),c=(a.find(".fa-sun").length?0:1),g=(typeof t__wi_p.$('iframe[name="page"]')!="undefined"&&t__wi_p.$('iframe[name="page"]').contents()&&t__wi_p.$('iframe[name="page"]').contents().get(0)),f=t__wi_p.$("html").attr("data-night-mode"),d=t__wi_p.$("body").attr("data-default-theme"),b=t__wi_p.$("html").attr("data-default-background-style");if(!g){return}if($(t__wi_p.page.document).find(".modal.in:visible").length){return}var e=((t__wi_p.page.$source_path==t__wi_p.page.$_____link+"sysinfo.cgi"&&$access_level=="0")?330:0);if(e){$(t__wi_p.page.document).find("body").addClass("bg-puff-out");setTimeout(function(){t__wi_p.page.location.reload()},(e*4.2))}setTimeout(function(){if(c===1){a.find(".fa-moon").removeClass("fa-moon").addClass("fa-sun vertical-align-middle");$(t__wi_p.page.document).find(".settings_navigation_color_toggle").addClass("hidden");var h=$(t__wi_p.top.document).find('head link[href*="palettes"][data-palette]');$(t__wi_p.top.document).find("head").append('');$(t__wi_p.page.document).find("head").append('');setTimeout(function(){t__wi_p.$("body").attr("data-theme","gunmetal");$(t__wi_p.page.document).find("body").attr("data-theme","gunmetal");h.remove();t__wi_p.$("html").attr("data-background-style","nightRider");$(t__wi_p.page.document).find("html").attr("data-background-style","nightRider");t__wi_p.$("html").attr("data-night-mode",1);$(t__wi_p.page.document).find("html").attr("data-night-mode",1)},300);t__wi_p.__isNR=1;t__wi_p.__isNM=1;t__wi_p.page.window.__isNR=1;t__wi_p.page.window.__isNM=1}else{$(t__wi_p.page.document).find(".settings_navigation_color_toggle").removeClass("hidden");a.find(".fa-sun").removeClass("fa-sun vertical-align-middle").addClass("fa-moon");var i=$(t__wi_p.top.document).find('head link[href*="gunmetal"]');t__wi_p.$("body").attr("data-default-theme")!="blue"&&$(t__wi_p.top.document).find("head").append('');setTimeout(function(){t__wi_p.$("body").attr("data-theme",d);$(t__wi_p.page.document).find("body").attr("data-theme",d);i.remove();t__wi_p.$("html").attr("data-background-style",b);$(t__wi_p.page.document).find("html").attr("data-background-style",b);t__wi_p.$("html").attr("data-night-mode",0);$(t__wi_p.page.document).find("html").attr("data-night-mode",0);settings_background_color!=="nightRider"&&$(t__wi_p.page.document).find('head link[href*="nightrider"]').remove()},300);t__wi_p.__isNR=(settings_background_color==="nightRider"?1:0);t__wi_p.__isNM=0;t__wi_p.page.window.__isNR=(settings_background_color==="nightRider"?1:0);t__wi_p.page.window.__isNM=0}t__wi_p.manageConfig("save")},(e*2))}function ported_shell_clear_cmd(a){a.val("");a.focus()}function ported_shell_open(a,b){var d=(typeof b=="undefined"?d=false:d=(b.startsWith("!")?b.substr(1):b)),f=t__wi_p.$("body").find(".-shell-port- input");if(d){f.val(d);var c=$.Event("keydown");c.which=13;f.trigger(c)}a.css("bottom","0vh").addClass("opened");t__wi_p.ported_shell_size();setTimeout(function(){if(!d){t__wi_p.focus();f.focus()}},20)}function ported_shell_close(a){a.css("bottom","100vh").removeClass("opened")}function ported_shell_size(){if(is_module("shell")==1){var a=parseInt(t__wi_p.$("body").find(".-shell-port-cmd").width()),b=parseInt(t__wi_p.$("body").find(".-shell-port-type").width());t__wi_p.$("body").find('.-shell-port- input[data-command="true"]').css("width",(a-b-200)+"px")}}function ported_shell_available(){var a=(product_name(1).toLowerCase()=="cloudmin"&&t__wi_p.$('a[target="page"][href*="/server-manager/save_serv.cgi"][href*="shell=1"]').length);if(is_module("shell")==1||a){return 1}else{return 0}}function ported_shell_menu_icon_ctl(){if(!ported_shell_available()){t__wi_p.$(".user-link.ported-console").addClass("hidden")}else{if(settings_show_terminal_link!=false){t__wi_p.$(".user-link.ported-console").removeClass("hidden")}}}function t_uri_upd(){$t_uri_virtualmin=t__wi_p.location.search=="?virtualmin"?1:0,$t_uri_cloudmin=t__wi_p.location.search=="?cloudmin"?1:0,$t_uri_webmail=t__wi_p.location.search=="?mail"?1:0,$t_uri_dashboard=t__wi_p.location.search=="?dashboard"?1:0}function tab_action(d,c){if(document.forms[0]&&document.forms[0][d]){document.forms[0][d].value=c}}function parse_bool(b){return !(/^(false|0)$/i).test(b)&&!!b}$(function(){var a;setInterval(function(){if(a==0){$(".blinking-default:not(.hidden)").css("opacity","1");a=1}else{if(a=1){$(".blinking-default:not(.hidden)").css("opacity","0");a=0}}},900)});function t__lo__btn_md(){return''}function __ie__(){var b=0;var c=(/MSIE (\d+\.\d+);/.test(navigator.userAgent));var a=!!navigator.userAgent.match(/Trident\/7.0/);var d=navigator.userAgent.indexOf("rv:11.0");if(c){b=new Number(RegExp.$1)}if(navigator.appVersion.indexOf("MSIE 10")!=-1){b=10}if(a&&d!=-1){b=11}return b}function get_selected_text(){if(t___wi.getSelection){return t___wi.getSelection().toString()}else{if(document.selection){return document.selection.createRange().text}}return""}function modal_dismiss(){$(".modal.in").find("[data-dismiss]").trigger("click")}function is_scrolled_into_view(d){var b=$(d),g=$(window),f=g.scrollTop(),e=f+g.height(),a=b.offset().top,c=a+b.height();return((c<=e)&&(a>=f))}function search_control(b){if(settings_hotkeys_active){if(!(String.fromCharCode(b.which).toLowerCase()==settings_hotkey_focus_search&&b[settings_hotkey_toggle_modifier])){return true}b.preventDefault();$search=t__wi_p.$(".form-control.sidebar-search").focus();return false}}function access_level(){return t__wi_p.$("body").data("level")}function dashboard_switch(){if(t__wi_p.$("body").data("dashboard")=="1"){return true}else{return false}}function dashboard_switch_set(){t__wi_p.t__s("open_dashboard");t__wi_p.__cms();t__wi_p.$('iframe[name="page"]').attr("src",$_____link_full+"/sysinfo.cgi")}function messenger_hide(a){if(typeof t__wi_p.window["Messenger_"+a]!="undefined"){t__wi_p.window["Messenger_"+a].hide()}}function messenger(d,j,e,i,h){var g=(typeof i=="undefined"?1:i),f=(typeof h=="undefined"?true:h);if($('body[class^="'+$g__o__f_m+'"]').length){if(config_portable_module_filemanager_notification_type=="4"&&e!="info"&&e!="warning"&&e!="error"){return}else{if(config_portable_module_filemanager_notification_type=="2"&&e!="warning"&&e!="error"){return}}}if(typeof t__wi_p.Messenger=="function"){t__wi_p.window["Messenger_"+g]=t__wi_p.Messenger().post({message:d,hideAfter:j,showCloseButton:f,type:e,id:g})}}function shortcut_control_checker(b){if(access_level()=="0"){return true}else{if(is_module(URI(("/"+b)).directory().replace(/\//g,""))){return true}else{return false}}}function shortcut_control(c){if(settings_hotkeys_active){if(settings_side_slider_enabled&&settings_side_slider_tabs_hotkeys){var d=$("#right-side-tabs .nav-tabs > li:not(.hidden)").length,b=$("#right-side-tabs .nav-tabs > li.active:not(.hidden)"),e=(b.next(":not(.hidden)").find("a:not(.hidden)").length?b.next(":not(.hidden)").find("a:not(.hidden)"):b.parent("ul").find("li:not(.hidden)").first().find("a:not(.hidden)"));prev_tab=(b.prev(":not(.hidden)").find("a:not(.hidden)").length?b.prev(":not(.hidden)").find("a:not(.hidden)"):b.parent("ul").find("li:not(.hidden)").last().find("a:not(.hidden)"));if(c.metaKey&&c.shiftKey&&c.which===9){if(d===1){return}prev_tab.trigger("click")}else{if(c.metaKey&&c.which===9){if(d===1){return}e.trigger("click")}}}if(!(String.fromCharCode(c.which)=="1"&&settings_hotkey_custom_1&&c[settings_hotkey_toggle_modifier])&&!(String.fromCharCode(c.which)=="2"&&settings_hotkey_custom_2&&c[settings_hotkey_toggle_modifier])&&!(String.fromCharCode(c.which)=="3"&&settings_hotkey_custom_3&&c[settings_hotkey_toggle_modifier])&&!(String.fromCharCode(c.which)=="4"&&settings_hotkey_custom_4&&c[settings_hotkey_toggle_modifier])&&!(String.fromCharCode(c.which)=="5"&&settings_hotkey_custom_5&&c[settings_hotkey_toggle_modifier])&&!(String.fromCharCode(c.which)=="6"&&settings_hotkey_custom_6&&c[settings_hotkey_toggle_modifier])&&!(String.fromCharCode(c.which)=="7"&&settings_hotkey_custom_7&&c[settings_hotkey_toggle_modifier])&&!(String.fromCharCode(c.which)=="8"&&settings_hotkey_custom_8&&c[settings_hotkey_toggle_modifier])&&!(String.fromCharCode(c.which)=="9"&&settings_hotkey_custom_9&&c[settings_hotkey_toggle_modifier])&&!(String.fromCharCode(c.which).toLowerCase()==settings_hotkey_favorites&&c[settings_hotkey_toggle_modifier])&&!(String.fromCharCode(c.which).toLowerCase()==settings_hotkey_shell&&c[settings_hotkey_toggle_modifier])&&!(String.fromCharCode(c.which).toLowerCase()==settings_hotkey_sysinfo&&c[settings_hotkey_toggle_modifier])&&!(String.fromCharCode(c.which).toLowerCase()==settings_hotkey_toggle_slider&&c[settings_hotkey_toggle_modifier])&&!(String.fromCharCode(c.which).toLowerCase()==settings_hotkey_reload&&c[settings_hotkey_toggle_modifier])&&!(String.fromCharCode(c.which).toLowerCase()==settings_hotkey_toggle_key_night_mode&&c[settings_hotkey_toggle_modifier])&&!(String.fromCharCode(c.which).toLowerCase()==settings_hotkey_toggle_key_webmail&&c[settings_hotkey_toggle_modifier])&&!(String.fromCharCode(c.which).toLowerCase()==settings_hotkey_toggle_key_usermin&&c[settings_hotkey_toggle_modifier])&&!(String.fromCharCode(c.which).toLowerCase()==settings_hotkey_toggle_key_cloudmin&&c[settings_hotkey_toggle_modifier])&&!(String.fromCharCode(c.which).toLowerCase()==settings_hotkey_toggle_key_virtualmin&&c[settings_hotkey_toggle_modifier])&&!(String.fromCharCode(c.which).toLowerCase()==settings_hotkey_toggle_key_webmin&&c[settings_hotkey_toggle_modifier])){return true}if(String.fromCharCode(c.which)=="1"&&settings_hotkey_custom_1){c.preventDefault();shortcut_control_checker(settings_hotkey_custom_1)&&t__wi_p.$('iframe[name="page"]').attr("src",$_____link_full+settings_hotkey_custom_1)}if(String.fromCharCode(c.which)=="2"&&settings_hotkey_custom_2){c.preventDefault();shortcut_control_checker(settings_hotkey_custom_2)&&t__wi_p.$('iframe[name="page"]').attr("src",$_____link_full+settings_hotkey_custom_2)}if(String.fromCharCode(c.which)=="3"&&settings_hotkey_custom_3){c.preventDefault();shortcut_control_checker(settings_hotkey_custom_3)&&t__wi_p.$('iframe[name="page"]').attr("src",$_____link_full+settings_hotkey_custom_3)}if(String.fromCharCode(c.which)=="4"&&settings_hotkey_custom_4){c.preventDefault();shortcut_control_checker(settings_hotkey_custom_4)&&t__wi_p.$('iframe[name="page"]').attr("src",$_____link_full+settings_hotkey_custom_4)}if(String.fromCharCode(c.which)=="5"&&settings_hotkey_custom_5){c.preventDefault();shortcut_control_checker(settings_hotkey_custom_5)&&t__wi_p.$('iframe[name="page"]').attr("src",$_____link_full+settings_hotkey_custom_5)}if(String.fromCharCode(c.which)=="6"&&settings_hotkey_custom_6){c.preventDefault();shortcut_control_checker(settings_hotkey_custom_6)&&t__wi_p.$('iframe[name="page"]').attr("src",$_____link_full+settings_hotkey_custom_6)}if(String.fromCharCode(c.which)=="7"&&settings_hotkey_custom_7){c.preventDefault();shortcut_control_checker(settings_hotkey_custom_7)&&t__wi_p.$('iframe[name="page"]').attr("src",$_____link_full+settings_hotkey_custom_7)}if(String.fromCharCode(c.which)=="8"&&settings_hotkey_custom_8){c.preventDefault();shortcut_control_checker(settings_hotkey_custom_8)&&t__wi_p.$('iframe[name="page"]').attr("src",$_____link_full+settings_hotkey_custom_8)}if(String.fromCharCode(c.which)=="9"&&settings_hotkey_custom_9){c.preventDefault();shortcut_control_checker(settings_hotkey_custom_9)&&t__wi_p.$('iframe[name="page"]').attr("src",$_____link_full+settings_hotkey_custom_9)}if(String.fromCharCode(c.which).toLowerCase()==settings_hotkey_toggle_key_webmin&&t__wi_p.$('.switch-toggle input[id="open_webmin"]')&&!t__wi_p.$('.switch-toggle input[id="open_webmin"]').is(":checked")&&(product_name()!="Usermin"&&product_name()!="Mail")){c.preventDefault();t__wi_p.$('.switch-toggle input[id="open_webmin"]').trigger("click")}if(String.fromCharCode(c.which).toLowerCase()==settings_hotkey_toggle_key_virtualmin&&t__wi_p.$('.switch-toggle input[id="open_virtualmin"]')&&!t__wi_p.$('.switch-toggle input[id="open_virtualmin"]').is(":checked")&&(product_name()!="Usermin"&&product_name()!="Mail")){c.preventDefault();t__wi_p.$('.switch-toggle input[id="open_virtualmin"]').trigger("click")}if(String.fromCharCode(c.which).toLowerCase()==settings_hotkey_toggle_key_cloudmin&&t__wi_p.$('.switch-toggle input[id="open_cloudmin"]')&&!t__wi_p.$('.switch-toggle input[id="open_cloudmin"]').is(":checked")&&(product_name()!="Usermin"&&product_name()!="Mail")){c.preventDefault();t__wi_p.$('.switch-toggle input[id="open_cloudmin"]').trigger("click")}if(String.fromCharCode(c.which).toLowerCase()==settings_hotkey_toggle_key_usermin&&t__wi_p.$('.switch-toggle input[id="open_usermin"]')&&!t__wi_p.$('.switch-toggle input[id="open_usermin"]').is(":checked")&&(product_name()!="Webmin"&&product_name()!="Virtualmin"&&product_name()!="Cloudmin")){c.preventDefault();t__wi_p.$('.switch-toggle input[id="open_usermin"]').trigger("click")}if(String.fromCharCode(c.which).toLowerCase()==settings_hotkey_toggle_key_webmail&&t__wi_p.$('.switch-toggle input[id="open_webmail"]')&&!t__wi_p.$('.switch-toggle input[id="open_webmail"]').is(":checked")&&(product_name()!="Webmin"&&product_name()!="Virtualmin"&&product_name()!="Cloudmin")){c.preventDefault();t__wi_p.$('.switch-toggle input[id="open_webmail"]').trigger("click")}if(String.fromCharCode(c.which).toLowerCase()==settings_hotkey_toggle_key_night_mode){c.preventDefault();f__toogle_palette()}if(String.fromCharCode(c.which).toLowerCase()==settings_hotkey_toggle_slider){c.preventDefault();t__wi_p.$(".right-side-tabs-toggler:not(.hidden)").trigger("click")}if(String.fromCharCode(c.which).toLowerCase()==settings_hotkey_reload&&t__wi_p.$('.user-links a[data-refresh="true"]')){c.preventDefault();if(t__wi_p.$('iframe[name="page"]').contents()&&t__wi_p.$('iframe[name="page"]').get(0)&&t__wi_p.$('iframe[name="page"]').contents().find('body[class*="'+t__wi_p.$('iframe[name="page"]').get(0).contentWindow.$g__o__f_m+'"]').length){if(t__wi_p.$('iframe[name="page"]').contents()){t__wi_p.$('iframe[name="page"]').contents().find(".btn-group i.fa-refresh").parent("button").trigger("click")}}else{t__wi_p.$('.user-links a[data-refresh="true"]').trigger("click")}}var g=(product_name(1).toLowerCase()=="cloudmin"&&t__wi_p.$('a[target="page"][href*="/server-manager/save_serv.cgi"][href*="shell=1"]').length);if(String.fromCharCode(c.which).toLowerCase()==settings_hotkey_shell&&(is_module("shell")==1||g)){c.preventDefault();var f=t__wi_p.$("body").find(".-shell-port-");if(f.hasClass("opened")){ported_shell_close(f)}else{ported_shell_open(f)}}if(String.fromCharCode(c.which).toLowerCase()==settings_hotkey_sysinfo){c.preventDefault();if(dashboard_switch()==true){dashboard_switch_set()}else{t__wi_p.$('iframe[name="page"]').attr("src",$_____link_full+"/sysinfo.cgi")}}if(String.fromCharCode(c.which).toLowerCase()==settings_hotkey_favorites){c.preventDefault();if(t__wi_p.$(".favorites-menu-outer").css("left")!="0px"){t__wi_p.$(".user-link.favorites").trigger("click")}else{t__wi_p.$(".favorites-menu-outer").removeClass("hover")}}return false}}function charset_warning(){var b=$("body").data("charset");if(b&&b.toLowerCase().indexOf("utf")===-1&&localStorage.getItem($hostname+"-config_portable_theme_charset_warning_shown")!="true"){var a=' ";$("body").append(a);setTimeout(function(){if(!$("body").hasClass("modal-open")){$(".modal-charset-warning").modal("show");$(".modal-charset-warning").on("click",".modal-body a.label",function(c){$(".modal-charset-warning").modal("hide")});$(".modal-charset-warning").on("hide.bs.modal",function(c){localStorage.setItem($hostname+"-config_portable_theme_charset_warning_shown","true");t__wi_p.manageConfig("save")})}},2000)}}function right_module_title(){$_right_menu_title=t__wi_p.$('iframe[name="page"]').contents().find("#headln2c");if($_right_menu_title.find("font").text().length){return $_right_menu_title.find("font").text()}else{if($_right_menu_title.text().length){return $_right_menu_title.text().text()}else{return"->"}}}function t__s(b){t__wi_p.$('.switch-toggle input:not([id="'+b+'"])').each(function(){$(this).removeAttr("checked")}).promise().done(function(){t__wi_p.$("#"+b).prop("checked",true)});if(b=="open_webmin"||b=="open_usermin"){t__wi_p.history.pushState(null,null,$_____link_full+"/");t__wi_p.$("#wrapper").data("virtual-server",-1);t__wi_p.$("#wrapper").data("server-manager",-1);t__wi_p.$("#wrapper").data("webmail",-1)}else{if(b=="open_dashboard"){t__wi_p.history.pushState(null,null,$_____link_full+"/?dashboard");t__wi_p.$("#wrapper").data("virtual-server",-1);t__wi_p.$("#wrapper").data("server-manager",-1);t__wi_p.$("#wrapper").data("webmail",-1)}else{if(b=="open_virtualmin"){t__wi_p.history.pushState(null,null,$_____link_full+"/?virtualmin");t__wi_p.$("#wrapper").data("virtual-server",2);t__wi_p.$("#wrapper").data("server-manager",-1);t__wi_p.$("#wrapper").data("webmail",-1);if(typeof t___wi.page.t__vm_l=="function"){var c=URI.parseQuery(URI(t___wi.page.location).query())["dom"];if(c){setTimeout(function(){t___wi.t__vm_l(c)},301)}}}else{if(b=="open_cloudmin"){t__wi_p.history.pushState(null,null,$_____link_full+"/?cloudmin");t__wi_p.$("#wrapper").data("virtual-server",-1);t__wi_p.$("#wrapper").data("server-manager",2);t__wi_p.$("#wrapper").data("webmail",-1)}else{if(b=="open_webmail"){t__wi_p.history.pushState(null,null,$_____link_full+"/?mail");t__wi_p.$("#wrapper").data("virtual-server",-1);t__wi_p.$("#wrapper").data("server-manager",-1);t__wi_p.$("#wrapper").data("webmail",2)}}}}}}function format_new_lines(b,d){var c=b.val().split(d),a="";$.each(c,function(e,f){(f&&(a+=d+f+"\n"))});b.val(a)}function hide_mobile_menu(){if(typeof jQuery().transition=="function"&&(t__wi_p.$(".mobile-menu-toggler:visible").length&&$(".mobile-menu-toggler").attr("style")&&$(".mobile-menu-toggler").attr("style").indexOf("ease")==-1)){if(t__wi_p.$(".__logo")){t__wi_p.$(".__logo").transition({y:0},1000)}t__wi_p.$("aside, .mobile-menu-toggler").transition({x:0},300,function(){t__wi_p.$(".mobile-menu-toggler").removeClass("selected").find("button").removeClass("btn-primary").addClass("btn-primary");t__wi_p.$(".switch-toggle").css("display","none");t__wi_p.$("aside").addClass("hidden-xs")})}}function f__l__filter_r(){var a="-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);";t__wi_p.$(".visible-xs.mobile-menu-toggler").attr("style","position: fixed;"+a);t__wi_p.$("aside, .visible-xs.mobile-menu-toggler").attr("style","z-index: 10; overflow: visible; transform: translate("+settings_leftmenu_width+"px, 0px);"+a);$('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);var b=$('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"]');b.each(function(){$('code[data-name="'+$(this).attr("name")+'"]').text($(this).val())})}function f__c__filter_r(){var b="-webkit-filter: grayscale(0) saturate(1) hue-rotate(0deg); filter: grayscale(0) saturate(1) hue-rotate(0deg);";$("body").attr("style",b);t__wi_p.$("#content .loading-container").attr("style",b);$('input[name="settings_grayscale_level_content"], input[name="settings_hue_level_content"]').val(0);$('input[name="settings_saturate_level_content"]').val(1);var a=$('input[name="settings_grayscale_level_content"], input[name="settings_saturate_level_content"], input[name="settings_hue_level_content"]');a.each(function(){$('code[data-name="'+$(this).attr("name")+'"]').text($(this).val())})}function t_sel_i(){if(t__wi_p.$(".form-control.sidebar-search").is(":focus")){return}$.each($("aside select > option"),function(){var a=$(this).text().match(/^\s{0,4}/)[0].length,b=$(this).text();if(settings_leftmenu_vm_cm_dropdown_icons){if(a===4&&b.indexOf("↱")===-1){$(this).html("    ↱ "+b.replace(/\s/g,""))}else{if(a===2&&b.indexOf("↴")===-1){$(this).html("  ↴ "+b.replace(/\s/g,""))}}}}).promise().done(function(){var a=t__wi_p.$("aside select");if(a.length){a.removeAttr("onchange disabled");a.data("select2")?a.select2("destroy"):false;a.unbind("select2:select");a.select2({minimumResultsForSearch:(!$.browser.mobile?5:-1)});setTimeout(function(){a.data("select2").open();a.data("select2").close()},1);a.on("select2:select",function(b){if(b.currentTarget.id==="dom"){t__vm_l(b.currentTarget.value);t_vm_r(b.currentTarget.value)}else{if(b.currentTarget.id==="sid"){t__cm_l(b.currentTarget.value);t_cm_r(b.currentTarget.value)}}});a.on("select2:open",function(b){$.each($("select > option"),function(){if($(this).attr("style")&&$(this).attr("style").indexOf("italic")>-1){var c=$(this);setTimeout(function(){t__wi_p.$("body").find('li[id$="'+c.attr("value")+'"]').attr("style","color: #"+(__isNR?"9a5150":"e97471")+" !important;")},1)}})});if(t__wi_p.$("aside select option").length===1){t__wi_p.$(".select2 span").css("cursor","default");t__wi_p.$(".select2 .select2-selection__arrow").remove();a.on("select2:open",function(){t__wi_p.$(".select2-container .select2-dropdown").css("opacity","0")})}$.each($("aside select > option"),function(){if($(this).attr("style")&&$(this).attr("style").indexOf("italic")>-1){if(t__wi_p.$(".select2-selection > .select2-selection__rendered").text().trim()==$(this).text().trim()){t__wi_p.$(".select2-selection > .select2-selection__rendered").attr("style","color: #"+(__isNR?"9a5150":"e97471")+" !important;")}}})}})}function __mss(){if(product_name(1).toLowerCase()=="cloudmin"){if(t__wi_p.$("aside").find("li.menu-container.menu-status.hidden").find("font").length>0){var f=t__wi_p.$("aside").find("li.menu-container.menu-status.hidden").find("font"),e=f.text(),d=f.attr("color");if(d&&(d.indexOf("00ff00")||d.indexOf("008800")||d.indexOf("00aa00"))){d="success"}else{if(d&&(d.indexOf("ff6600")||d.indexOf("ff00ff")||d.indexOf("ff22ff")||d.indexOf("ff44ff"))){d="warning"}else{if(d&&(d.indexOf("ff0000")||d.indexOf("ff1100")||d.indexOf("aa0000")||d.indexOf("ff2200")||d.indexOf("ff4400"))){d="danger"}else{d="info"}}}if(e=="Virtualmin"){e="VM"}setTimeout(function(){var a=t__wi_p.$("aside .select2-selection__rendered");if(!a.find(".menu-status-label").length){a.append(''+e+"");var b=t__wi_p.$("aside .select2-selection__rendered .menu-status-label");b.animate({opacity:1},500);b.on("mouseover",function(){$(this).removeClass("bg-light-grey")}).on("mouseout",function(){$(this).addClass("bg-light-grey")});a.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 f__l_reload(){var a=t__wi_p.$t_uri_virtualmin?"virtualmin":t__wi_p.$t_uri_cloudmin?"cloudmin":((product_name()=="Usermin")?"usermin":(product_name()=="Mail"?"mail":"webmin"));if(a=="webmin"){t__wi_p.t__s("open_webmin");t__wm_l("open_webmin")}else{if(a=="virtualmin"){t__wi_p.t__s("open_virtualmin");t__vm_l(t__wi_p.$("aside select").val())}else{if(a=="cloudmin"){t__wi_p.t__s("open_cloudmin");t__cm_l(t__wi_p.$("aside select").val())}else{if(a=="usermin"){t__wi_p.t__s("open_usermin");t__wm_l("open_usermin")}else{if(a=="mail"){t__wi_p.t__s("open_webmail");t__wm_l("open_webmail")}}}}}}function __lls(){if(t__wi_p.$___ajax_requested_url==="___blocked"){return}t__wi_p.t___p__ll=1;if(settings_loader_top&&t__wi_p.t___p__xhr_r===0){if(typeof NProgress=="object"&&typeof t__wi_p!="undefined"){t__wi_p.NProgress.remove();t__wi_p.NProgress.start()}}t__wi_p.$(".mCSB_container, .mCSB_dragger").css("top","0");!t__wi_p.$("#_menu_loader").length&&t__wi_p.$("body ul.navigation").before('');!t__wi_p.$("#loader-close-sm").length&&t__wi_p.$("#_menu_loader").before('');t__wi_p.setTimeout(function(){t__wi_p.$("#loader-close-sm").removeClass("hidden");t__wi_p.$("#loader-close-sm i").trigger("click")},4500);t__wi_p.$("body aside .mCSB_scrollTools").css("visibility","hidden");t__wi_p.$("body ul.navigation").css("visibility","hidden");t__wi_p.$("body ul.user-links").css("visibility","hidden");t__wi_p.$("aside ul.user-html").addClass("invisible")}function __lle(){t__wi_p.$("aside ul.user-html").removeClass("invisible");if(settings_loader_top&&t__wi_p.t___p__xhr_r===0&&__num()){if(typeof NProgress=="object"&&typeof t__wi_p!="undefined"){t__wi_p.NProgress.done()}}t__wi_p.$___ajax_requested_url="_blank";t__wi_p.$("body aside .mCSB_scrollTools").css("visibility","visible");t__wi_p.$("body ul.navigation").css("visibility","visible");t__wi_p.$("body ul.user-links").css("visibility","visible");t__wi_p.$("#_menu_loader").remove();t__wi_p.$("#loader-close-sm").remove();t__wi_p.t_sel_i();__mss();if(t__wi_p.$('iframe[name="page"]').get(0)&&typeof t__wi_p.$('iframe[name="page"]').get(0).contentWindow.__dlm=="function"){$('iframe[name="page"]').get(0).contentWindow.__dlm()}t__wi_p.t___p__ll=0}function t__au__c___i(t,e){if(t=="c"){t__wi_p.$(".autocomplete-suggestions").remove();t__wi_p.$(".form-control.sidebar-search").removeAttr("disabled");t__wi_p.$(".form-control.sidebar-search").autocomplete("dispose");t__wi_p.$(".form-control.sidebar-search").val("");if(e){return}}var o={};$.each(t__wi_p.$('li:not(.menu-exclude):not(.user-link) > ul[id^="global_"].sub > li:not(.menu-exclude):not(.user-link) > a'),function(a,b){o[($(this).attr("href").substring(0,1)=="/"?"":"/")+$(this).attr("href")]=$.trim($(this).text())});t__wi_p.$('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/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(a,b){o[$(this).attr("data-href")]=$.trim($(this).text())});var s=$.map(o,function(b,a){if(a!="undefined"){return{value:b,url:a,data:{category:product_name_lang(1)}}}});var n={};if($current_page_full==$_____link_full+"/custom/"||$current_page_full==$_____link_full+"/custom/index.cgi"||$current_page_full==$_____link_full+"/backup-config/"||$current_page_full==$_____link_full+"/backup-config/index.cgi"||$current_page_full==$_____link_full+"/usermin/"||$current_page_full==$_____link_full+"/usermin/index.cgi"||$current_page_full==$_____link_full+"/webmin/"||$current_page_full==$_____link_full+"/webmin/index.cgi"||$current_page_full==$_____link_full+"/acl/"||$current_page_full==$_____link_full+"/acl/index.cgi"||$current_page_full==$_____link_full+"/init/"||$current_page_full==$_____link_full+"/init/index.cgi"||$current_page_full==$_____link_full+"/mount/"||$current_page_full==$_____link_full+"/mount/index.cgi"||$current_page_full==$_____link_full+"/quota/"||$current_page_full==$_____link_full+"/quota/index.cgi"||$current_page_full==$_____link_full+"/fsdump/"||$current_page_full==$_____link_full+"/fsdump/index.cgi"||$current_page_full==$_____link_full+"/inittab/"||$current_page_full==$_____link_full+"/inittab/index.cgi"||$current_page_full==$_____link_full+"/logrotate/"||$current_page_full==$_____link_full+"/logrotate/index.cgi"||$current_page_full==$_____link_full+"/mailcap/"||$current_page_full==$_____link_full+"/mailcap/index.cgi"||$current_page_full==$_____link_full+"/pam/"||$current_page_full==$_____link_full+"/pam/index.cgi"||$current_page_full==$_____link_full+"/proc/"||$current_page_full==$_____link_full+"/proc/index_tree.cgi"||$current_page_full==$_____link_full+"/proc/index_user.cgi"||$current_page_full==$_____link_full+"/proc/index_size.cgi"||$current_page_full==$_____link_full+"/proc/index_cpu.cgi"||$current_page_full==$_____link_full+"/proc/index_tree.cgi"||$current_page_full==$_____link_full+"/proc/index_search.cgi"||$current_page_full==$_____link_full+"/cron/"||$current_page_full==$_____link_full+"/cron/index.cgi"||$current_page_full==$_____link_full+"/syslog/"||$current_page_full==$_____link_full+"/syslog/index.cgi"||$current_page_full==$_____link_full+"/useradmin/"||$current_page_full==$_____link_full+"/useradmin/index.cgi"||$current_page_full==$_____link_full+"/apache/"||$current_page_full==$_____link_full+"/apache/index.cgi"||$current_page_full==$_____link_full+"/bind8/"||$current_page_full==$_____link_full+"/bind8/index.cgi"||$current_page_full==$_____link_full+"/dhcpd/"||$current_page_full==$_____link_full+"/dhcpd/index.cgi"||$current_page_full==$_____link_full+"/dovecot/"||$current_page_full==$_____link_full+"/dovecot/index.cgi"||$current_page_full==$_____link_full+"/ldap-server/"||$current_page_full==$_____link_full+"/ldap-server/index.cgi"||$current_page_full==$_____link_full+"/virtualmin-nginx/"||$current_page_full==$_____link_full+"/virtualmin-nginx/index.cgi"||$current_page_full==$_____link_full+"/fetchmail/"||$current_page_full==$_____link_full+"/fetchmail/index.cgi"||$current_page_full==$_____link_full+"/mysql/"||$current_page_full==$_____link_full+"/mysql/index.cgi"||$current_page_full==$_____link_full+"/mysql/edit_dbase.cgi"||$current_page_full==$_____link_full+"/postgresql/"||$current_page_full==$_____link_full+"/postgresql/index.cgi"||$current_page_full==$_____link_full+"/postgresql/edit_dbase.cgi"||$current_page_full==$_____link_full+"/postfix/"||$current_page_full==$_____link_full+"/postfix/index.cgi"||$current_page_full==$_____link_full+"/procmail/"||$current_page_full==$_____link_full+"/procmail/index.cgi"||$current_page_full==$_____link_full+"/proftpd/"||$current_page_full==$_____link_full+"/proftpd/index.cgi"||$current_page_full==$_____link_full+"/mailboxes/"||$current_page_full==$_____link_full+"/mailboxes/index.cgi"||$current_page_full==$_____link_full+"/mailboxes/list_mail.cgi"||$current_page_full==$_____link_full+"/mailbox/"||$current_page_full==$_____link_full+"/mailbox/index.cgi"||$current_page_full==$_____link_full+"/samba/"||$current_page_full==$_____link_full+"/samba/index.cgi"||$current_page_full==$_____link_full+"/spam/"||$current_page_full==$_____link_full+"/spam/index.cgi"||$current_page_full==$_____link_full+"/squid/"||$current_page_full==$_____link_full+"/squid/index.cgi"||$current_page_full==$_____link_full+"/sshd/"||$current_page_full==$_____link_full+"/sshd/index.cgi"||$current_page_full==$_____link_full+"/webalizer/"||$current_page_full==$_____link_full+"/webalizer/index.cgi"||$current_page_full==$_____link_full+"/cpan/"||$current_page_full==$_____link_full+"/cpan/index.cgi"||$current_page_full==$_____link_full+"/htaccess-htpasswd/"||$current_page_full==$_____link_full+"/htaccess-htpasswd/index.cgi"||$current_page_full==$_____link_full+"/status/"||$current_page_full==$_____link_full+"/status/index.cgi"||$current_page_full==$_____link_full+"/net/"||$current_page_full==$_____link_full+"/net/index.cgi"||$current_page_full==$_____link_full+"/tcpwrappers/"||$current_page_full==$_____link_full+"/tcpwrappers/index.cgi"||$current_page_full==$_____link_full+"/fdisk/"||$current_page_full==$_____link_full+"/fdisk/index.cgi"||$current_page_full==$_____link_full+"/fail2ban/"||$current_page_full==$_____link_full+"/fail2ban/index.cgi"||$current_page_full==$_____link_full+"/nis/"||$current_page_full==$_____link_full+"/nis/index.cgi"||$current_page_full==$_____link_full+"/passwd/"||$current_page_full==$_____link_full+"/passwd/index.cgi"){$(t__wi_p.$('iframe[name="page"]').contents().find(".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(a,b){if($current_page_full==$_____link_full+"/syslog/"||$current_page_full==$_____link_full+"/syslog/index.cgi"){n["/"+$current_page+$(this).parent("td").next("td.td_tag").next("td.td_tag").next("td.td_tag").find("a").attr("href")]=$.trim($(this).text())}else{if($current_page_full==$_____link_full+"/backup-config/"||$current_page_full==$_____link_full+"/backup-config/index.cgi"){$description=$.trim($(this).parent("td").next("td.td_tag").next("td.td_tag").text())}else{if($current_page_full==$_____link_full+"/mount/"||$current_page_full==$_____link_full+"/mount/index.cgi"||$current_page_full==$_____link_full+"/quota/"||$current_page_full==$_____link_full+"/quota/index.cgi"){$description=$.trim($(this).parent("td").next("td.td_tag").next("td.td_tag").text())}else{if($current_page_full==$_____link_full+"/fsdump/"||$current_page_full==$_____link_full+"/fsdump/index.cgi"){$description=$.trim($(this).parents("td").next("td").next("td").next("td").find("label").find("tt").find("tt").text())}else{if($current_page_full==$_____link_full+"/proc/"||$current_page_full==$_____link_full+"/proc/index_tree.cgi"||$current_page_full==$_____link_full+"/proc/index_user.cgi"||$current_page_full==$_____link_full+"/proc/index_size.cgi"||$current_page_full==$_____link_full+"/proc/index_cpu.cgi"||$current_page_full==$_____link_full+"/proc/index_tree.cgi"||$current_page_full==$_____link_full+"/proc/index_search.cgi"){if($current_page_full==$_____link_full+"/proc/index_size.cgi"||$current_page_full==$_____link_full+"/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())}else{if($current_page_full==$_____link_full+"/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())}else{$description=$.trim($(this).parent("td").next("td.td_tag").text())+" — "+$.trim($(this).parents("td").next("td").next("td").next("td").text())}}}else{if($current_page_full==$_____link_full+"/useradmin/"||$current_page_full==$_____link_full+"/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())}else{if($current_page_full==$_____link_full+"/mailboxes/list_mail.cgi"||$current_page_full==$_____link_full+"/mailbox/"||$current_page_full==$_____link_full+"/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())+"]"}else{if($current_page_full==$_____link_full+"/cpan/"||$current_page_full==$_____link_full+"/cpan/index.cgi"){$description=$.trim($(this).parents("td").next("td").next("td").find("label").text())}else{if($current_page_full==$_____link_full+"/fdisk/"||$current_page_full==$_____link_full+"/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())}else{$description=$.trim($(this).parent("td").next("td.td_tag").text())}}}}}}}}$description?$_description=true:$_description=false;n[($(this).attr("href").substring(0,1)=="/"?"":"/")+$current_directory+$(this).attr("href")]=$.trim($(this).text())+($_description?" (":"")+$description+($_description?")":"")}})}var m=$.map(n,function(b,a){if(a!="undefined"){return{value:b,url:a,data:{category:right_module_title()}}}});var i={};$.each(t__wi_p.$('li:not(.menu-exclude):not(.user-link) > ul.sub:not([id^="global_"]) > li:not(.menu-exclude):not(.user-link) > a'),function(a,b){i[($(this).attr("href").substring(0,1)=="/"?"":"/")+$(this).attr("href")]=$.trim($(this).text())});t__wi_p.$('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/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(a,b){if(product_name(1).toLowerCase()!="usermin"&&!dashboard_switch()){i[$(this).attr("data-href")]=$.trim($(this).text())}});var u=$.map(i,function(b,a){if(a!="undefined"){return{value:b,url:a,data:{category:t__wi_p.$("aside .select2-selection__rendered").text()?''+t__wi_p.$("aside .select2-selection__rendered").clone().children().remove().end().text()+"":product_name_lang(0)}}}});var r={};t__wi_p.$("aside select option").each(function(){r[$(this).val()+":::"+$(this).parent("select").attr("name")]=$.trim($(this).text())});var p=$.map(r,function(b,a){if(a!="undefined"){return{value:b,url:a,data:{category:t__wi_p.$("aside select").data("autocomplete-title")}}}});if(t__wi_p.location.search){var q=u.concat(m).concat(p).concat(s)}else{var q=p.concat(m).concat(u).concat(s)}t__wi_p.$(".form-control.sidebar-search").on("keydown",function(a){if(a.keyCode==34||a.keyCode==33||a.keyCode==20||a.keyCode==17||a.keyCode==16||a.keyCode==9){a.preventDefault();a.stopPropagation()}});t__wi_p.$(".form-control.sidebar-search").autocomplete({lookup:q,onSelect:function(a){if(dashboard_switch()===true&&t__wi_p.location.search==="?dashboard"&&access_level()!=2&&access_level()!=4){t__wi_p.t__s("open_webmin")}$(this).val("").blur();hide_mobile_menu();if(a.url.substring(0,1)=="/"){var b=t__wi_p.$("body").find('a[href="'+a.url+'"]').attr("target");if(b&&b=="_parent"){t__wi_p.location.href=t__wi_p.$("body").find('a[href="'+a.url+'"]').attr("href")}else{t__wi_p.$('iframe[name="page"]').attr("src",a.url.indexOf($_____link_full)>-1?a.url:$_____link_full+a.url)}}else{if(a.url&&a.url.indexOf(":::")>-1){t__wi_p.__lls();t__wi_p.$("select").val(a.url.split(":::")[0]).trigger("change").trigger("select2:select")}else{}}},groupBy:"category"})}function __p__pe_sm(){if(($('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===1)){if(!$(".CodeMirror").length){return}$(".ui_reset").remove();var d=(__ie__()>5&&__ie__()<=11),c=$('textarea[name="data"], textarea[name="text"], textarea[name="directives"], textarea[name="manual"]').parents("form"),j=c.find('button[type="button"]').length?c.find('button[type="button"]'):c.find('input[type="submit"]'),e='  ',b=($('textarea[name="directives"]').length?"-12px":"0"),g=($("select").val()?$("select").val():($(".table-title").text()?$(".table-title").text():($(".panel-body tt:first").text()?$(".panel-body tt:first").text():($("#headln2c tt:first").text()?$("#headln2c tt:first").text():"")))),i='',h='';j.parents("table.ui_form_end_buttons").prev("br").remove();j.parents("table.ui_form_end_buttons").prev("div.table-responsive").attr("style","margin-bottom: -4px !important");j.replaceWith(' ");var a=$('button[type="button"]:not(.ui_form_end_submit)'),f=$('button[type="submit"]:not(.ui_form_end_submit)');window.__cm_editor_static.on("change",function(l,k){__cm_editor_static.save();a.addClass("btn-warning").removeClass("btn-success").attr("data-form-onbeforeunload",1)});$("body").on("keydown",function(k){if(k.keyCode==13&&k.ctrlKey&&!k.shiftKey){a.trigger("click")}else{if(k.keyCode==13&&k.ctrlKey&&k.shiftKey){f.trigger("click")}}});$("body").on("click",'button[type="submit"]:not(.disabled)',function(k){$("button").addClass("disabled").find(".fa.fa-arrow-circle-o-left").addClass((d?"visible":"invisible")).after(h);a.attr("data-form-onbeforeunload",0)});$("body").on("click",'button[data-form="submitter"]:not(.disabled)',function(m){m.preventDefault();var l=$(this),n=(l.parents("form").attr("enctype")&&l.parents("form").attr("enctype").indexOf("form-data")>-1?0:1),k=(n?l.parents("form").serialize():(new FormData(l.parents("form")[0])));$("button").addClass("disabled").find(".fa.fa-floppy-o").addClass("invisible").after(i);setTimeout(function(){$.ajax({type:"POST",url:$__current_directory+c.attr("action"),data:k,dataType:"text",cache:false,contentType:false,processData:false,success:function(o){a.removeClass("btn-warning").addClass("btn-success").attr("data-form-onbeforeunload",0);$("button").removeClass("disabled").find(".fa").removeClass("invisible").parent().find(".cspinner_container").remove();if($(o).find(".panel-body > hr + h3").length){messenger(''+$(o).find(".panel-body hr + h3").html(),60,"error","magic_save_error");a.removeClass("btn-success").addClass("btn-warning").attr("data-form-onbeforeunload",1);return}messenger(''+lang("theme_xhred_filemanager_file_saved").replace("%value",g),3,"success")},error:function(o){}})},300)})}}function container_fluid_size(){t__wi_p.f__c_view();if(!t__wi_p.$(".mobile-menu-toggler").hasClass("selected")){t__wi_p.$("aside").addClass("hidden-xs");t__wi_p.$("aside").css("transform","translate("+settings_leftmenu_width+"px, 0px)");t__wi_p.$(".switch-toggle").css("display","table");if(typeof jQuery().transition=="function"&&(t__wi_p.$(".__logo")&&!t__wi_p.$(".mobile-menu-toggler:visible").length)){t__wi_p.$(".__logo").transition({y:"-140px"},700,function(){})}else{if(t__wi_p.$(".__logo")){t__wi_p.$(".__logo").css("transform","translate(0px, 0px)")}}}if(settings_side_slider_fixed!==true||t__wi_p.$(".mobile-menu-toggler:visible").length){n___p__f(0)}else{n___p__f(1)}}function __cms(){t__wi_p.$(".navigation > li:not('.has-sub')").removeClass("sub_active").find("span.current-large").remove();t__wi_p.$(".navigation > li > ul.sub > li").removeClass("sub_active").find("span.current").remove();t__wi_p.$(".navigation > li.has-sub").removeClass("active");t__wi_p.$(".navigation > li > ul.sub").hide();t__wi_p.$(".navigation > li > a > i.fa.fa-folder-open-o").removeClass("fa-folder-open-o")}function __is_same_origin(b){if((b.attr("href")&&(b.attr("href").match("^http:")||b.attr("href").match("^https:")||b.attr("href").match("^ftp:"))&&b.attr("target")!="page"&&URI(b.attr("href")).hostname()!=$__host_url)||b.attr("data-href")&&(b.attr("data-href").match("^http:")||b.attr("data-href").match("^https:")||b.attr("data-href").match("^ftp:"))&&URI(b.attr("data-href")).hostname()!=$__host_url){return 0}else{return 1}}function at__s_s__b(c){var a=$("#atsave, #save_user");if(c){$("body").attr("data-unload-warning","1");a.addClass("btn-warning")}else{$("body").removeAttr("data-unload-warning");a.removeClass("btn-warning")}}function settings_update(){$.each(t__wi_p.$('iframe[name="page"]').contents().find("#atsettings .ui_form").serializeArray(),function(d,e){if(e.value=="true"||e.value=="false"){if(e.value=="true"){var f=true}else{if(e.value=="false"){var f=false}}}else{var f=e.value}window[e.name]=f;t__wi_p[e.name]=f})}function loader_start_config(){$("body").on("click",'a[href^="http"], a[href^="https"], a[href^="ftp"], a[href^="ftps"]',function(b){if(!__is_same_origin($(this))){$(this).attr("target","_blank");t__wi_p.__lre()}});t__wi_p.$.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")})}loader_start_config();function t__wm_l(b){t_uri_upd();if(dashboard_switch()==false||$current_page_full==$_____link_full+"/webmin/edit_themes.cgi"){$.ajax({type:"GET",url:$_____link_full+"/index.cgi/?xhr-navigation=1&xhr-navigation-type="+(b=="open_webmail"?"webmail":"webmin"),data:false,dataType:"text",success:function(a){t__wi_p.$("body ul.navigation").html(a)}});t__m_b()}}function t__vm_l(b){t_uri_upd();$.ajax({type:"GET",url:$_____link_full+"/index.cgi/?xhr-navigation=1&xhr-navigation-type=virtualmin"+(b?("&dom="+b):(settings_right_virtualmin_default?("&dom="+settings_right_virtualmin_default):false)),data:false,dataType:"text",success:function(a){t__wi_p.$("body ul.navigation").html(a)}});t__m_b()}function t__cm_l(b){t_uri_upd();$.ajax({type:"GET",url:$_____link_full+"/index.cgi/?xhr-navigation=1&xhr-navigation-type=cloudmin"+((b||b===0)?("&sid="+b):(settings_right_cloudmin_default?("&sid="+settings_right_cloudmin_default):false)),data:false,dataType:"text",success:function(a){t__wi_p.$("body ul.navigation").html(a);ported_shell_menu_icon_ctl()}});t__m_b()}function t__m_b(){$.ajax({type:"GET",url:$_____link_full+"/index.cgi/?xhr-buttons=1&xhr-buttons-type="+(($t_uri_virtualmin||$t_uri_cloudmin)?1:0)+"",data:false,dataType:"text",success:function(b){t__wi_p.$("body ul.user-links").html(b);ported_shell_menu_icon_ctl()}})}function t__wm_r(){$("body").append('');$.ajax({type:"GET",url:$_____link_full+"/index.cgi/?xhr-default=1",data:false,dataType:"text",success:function(b){$("#____switch").html(b);$____switch=$("#____switch").text();t__wi_p.$('iframe[name="page"]').attr("src",$_____link_full+(($access_level==3&&is_module("mailbox")&&$t_uri_webmail)?"/mailbox/index.cgi?id=INBOX":(($____switch.substring(0,1)=="/"?"":"/")+$____switch)));$("#____switch").remove()}})}function t_vm_r(c){var d;if(c!==false){d="virtual-server/summary_domain.cgi?dom="+c}else{if(settings_right_virtualmin_default=="sysinfo.cgi"||settings_right_virtualmin_default==""){d="sysinfo.cgi"}else{if(settings_right_virtualmin_default=="index.cgi"){d="virtual-server/index.cgi"}else{d="virtual-server/summary_domain.cgi?dom="+settings_right_virtualmin_default}}}t__wi_p.$('iframe[name="page"]').attr("src",$_____link_full+"/"+d)}function t_cm_r(c){var d;if(c!==false){d="server-manager/edit_serv.cgi?id="+c}else{if(settings_right_cloudmin_default=="sysinfo.cgi"||settings_right_cloudmin_default==""){d="sysinfo.cgi"}else{if(settings_right_cloudmin_default=="index.cgi"){d="server-manager/index.cgi"}else{d="server-manager/edit_serv.cgi?id="+settings_right_cloudmin_default}}}t__wi_p.$('iframe[name="page"]').attr("src",$_____link_full+"/"+d)}function t__m(d,f,e){if(d==="open_virtualmin"){t__vm_l(false);if((settings_right_reload==true||f===true)&&e!==true){t_vm_r(false)}}else{if(d==="open_cloudmin"){t__cm_l(false);if((settings_right_reload==true||f===true)&&e!==true){t_cm_r(false)}}else{t__wm_l(d);if((settings_right_reload==true||f===true)&&e!==true){t__wm_r()}}}}function ___dlm(c,d){if(d){__cms()}t__wi_p.$('a[href="'+c+'"]:first').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 __samn(){return':not(.menu-exclude-link, [data-href="/webmin/refresh_modules.cgi"])'}function __sam(e,i){if(i===false){var h=false,k="href";if(t__wi_p.$('a[data-href="'+e+'"]'+__samn()+"").length){h="=";k="data-href"}else{if(t__wi_p.$('a[data-href="'+e+'/"]'+__samn()+"").length){h="=";e=e+"/";k="data-href"}else{if(t__wi_p.$('a[data-href="/'+e+'"]'+__samn()+"").length){h="=";e="/"+e;k="data-href"}else{if(t__wi_p.$('a[data-href^="'+e+'"]'+__samn()+"").length){h="^=";k="data-href"}else{if(t__wi_p.$('a[data-href^="'+e+'/"]'+__samn()+"").length){h="^=";e=e+"/";k="data-href"}else{if(t__wi_p.$('a[data-href^="/'+e+'"]'+__samn()+"").length){h="^=";e="/"+e;k="data-href"}else{if(t__wi_p.$('a[data-href$="'+e+'"]'+__samn()+"").length){h="$=";k="data-href"}else{if(t__wi_p.$('a[data-href$="'+e+'/"]'+__samn()+"").length){h="$=";e=e+"/";k="data-href"}else{if(t__wi_p.$('a[data-href$="/'+e+'"]'+__samn()+"").length){h="$=";e="/"+e;k="data-href"}else{if(t__wi_p.$('a[data-href*="'+e+'"]'+__samn()+"").length){h="*=";k="data-href"}else{if(k==="href"){if(t__wi_p.$('a[href="'+e+'"]'+__samn()+"").length){h="="}else{if(t__wi_p.$('a[href="'+e+'/"]'+__samn()+"").length){h="=";e=e+"/"}else{if(t__wi_p.$('a[href="/'+e+'"]'+__samn()+"").length){h="=";e="/"+e}else{if(t__wi_p.$('a[href^="'+e+'"]'+__samn()+"").length){h="^="}else{if(t__wi_p.$('a[href^="'+e+'/"]'+__samn()+"").length){h="^=";e=e+"/"}else{if(t__wi_p.$('a[href^="/'+e+'"]'+__samn()+"").length){h="^=";e="/"+e}else{if(t__wi_p.$('a[href$="'+e+'"]'+__samn()+"").length){h="$="}else{if(t__wi_p.$('a[href$="'+e+'/"]'+__samn()+"").length){h="$=";e=e+"/"}else{if(t__wi_p.$('a[href$="/'+e+'"]'+__samn()+"").length){h="$=";e="/"+e}else{if(t__wi_p.$('a[href*="'+e+'"]'+__samn()+"").length){h="*="}}}}}}}}}}}}}}}}}}}}}if(h){if((($current_page_full&&$current_page_full.indexOf("/webmin/edit_themes.cgi")>-1)||($source_path==$_____link+"settings-editor_read.cgi"||$source_path==$_____link+"settings-upload.cgi"))&&t__wi_p.location.search!="?updating-webmin-theme"&&(t__wi_p.$t_uri_virtualmin||t__wi_p.$t_uri_cloudmin)){t__wi_p.__cms();return}__cms();t__wi_p.$("a["+k+""+h+'"'+e+'"]:first'+__samn()+"").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")}}else{if($__source_file=="settings-editor_read.cgi"||$__source_file=="settings-upload.cgi"){__sam("webmin/",false);return}if($__source_path==="/config.cgi"){__sam($__source_query+"/",false);return}if($__source_path==="/phpini/list_ini.cgi"){__sam($__source_query.replace(".","%2E"),false);return}custom_url="auto";if(custom_url!="auto"){$current_page=custom_url}else{$current_page=$_url.path().replace(/^\//g,"")}if($("#headln2l a").attr("href")){if($("#headln2l a").attr("href").indexOf(".cgi")>=0){$current_page_webmin=1}else{$current_page_webmin=0}}else{$current_page_webmin=0}(($current_page.split("/")[0]=="virtual-server"||$current_page.split("/")[0]=="server-manager")&&!$current_page_webmin&&(t__wi_p.$("#wrapper").data("virtual-server")!=-1||t__wi_p.$("#wrapper").data("server-manager")!=-1))?$current_page=$current_page.split("/")[0]+"/"+$current_page.split("/")[1]:$current_page=$current_page.split("/")[0]+"/";$current_page_search=t__wi_p.$('iframe[name="page"]').get(0)?t__wi_p.$('iframe[name="page"]').get(0).contentWindow.location.search:0;var j=[];t__wi_p.$('li > ul.sub li:not(.menu-exclude):not(.user-link) a:not(.menu-exclude-link, [data-href="/webmin/refresh_modules.cgi"])').each(function(){if($(this).attr("href").substring(0,1)=="/"){j.push($(this).attr("href").substring(1))}else{j.push($(this).attr("href"))}});if((product_name()!=="Virtualmin"&&$__source_file.indexOf("save_log.cgi")===-1)&&(product_name()!=="Virtualmin"&&$__source_file.indexOf("edit_log.cgi")===-1)&&($current_page_full&&$current_page_full.indexOf("/servers/link.cgi/")===-1)&&(j.indexOf($current_page)>-1||j.indexOf(($current_page+"index.cgi"))>-1||j.indexOf($current_page+$current_page_search)>-1||j.indexOf(($current_page_full))>-1||j.indexOf(($current_page_full.substring(1)))>-1)){if(product_name()!=="Virtualmin"&&product_name()!=="Cloudmin"){__cms()}if(t__wi_p.$('a[href="'+$current_page+'index.cgi"]').length){$current_page=$current_page+"index.cgi"}else{if(t__wi_p.$('a[href="/'+$current_page+'index.cgi"]').length){$current_page="/"+$current_page+"index.cgi"}else{if(t__wi_p.$('a[href="/'+$current_page+'"]').length){$current_page="/"+$current_page}else{if(t__wi_p.$('a[href="/'+$current_page+$current_page_search+'"]').length){$current_page="/"+$current_page+$current_page_search}else{if(t__wi_p.$('a[href="'+$current_page+$current_page_search+'"]').length){$current_page=$current_page+$current_page_search}}}}}if(t__wi_p.$('a[href="'+$current_page+'"]').length){t__wi_p.$('a[href="'+$current_page+'"]').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")}else{if(t__wi_p.$('a[href="'+$current_page_full+'"]').length){t__wi_p.$('a[href="'+$current_page_full+'"]').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")}else{if(t__wi_p.$('a[href="'+$current_page_full.substring(1)+'"]').length){t__wi_p.$('a[href="'+$current_page_full.substring(1)+'"]').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")}}}}else{if($t_uri_virtualmin||$t_uri_cloudmin){$current_page_with_path=$_url.path().substring(1);if($current_page_with_path=="virtual-server/webminlog"){$current_page_with_path="webminlog/search.cgi?"}else{if($current_page_with_path=="virtual-server/syslog"){$current_page_with_path="syslog/save_log.cgi?"}else{if($current_page_with_path=="virtual-server/apache"){$current_page_with_path="apache/virt_index.cgi?"}else{if($current_page_with_path=="virtual-server/webalizer"){$current_page_with_path="webalizer/edit_log.cgi?"}else{if($current_page_with_path=="webminlog/search.cgi"){$current_page_with_path="webminlog/search.cgi?"}}}}}if($current_page_with_path=="apache/virt_index.cgi?"||$current_page_with_path=="apache/virt_index.cgi"){__cms();t__wi_p.$('a[href^="/'+$current_page_with_path+"?"+$_url.query()+'"]').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")}else{if($current_page_with_path=="syslog/save_log.cgi"){if($_url.query().indexOf("access_log")>-1){__cms();t__wi_p.$('a[href$="access%5Flog"]:first'+__samn()+"").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")}else{if($_url.query().indexOf("error_log")>-1){__cms();t__wi_p.$('a[href$="error%5Flog"]').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")}}}else{if($current_page_with_path=="webalizer/edit_log.cgi"||$current_page_with_path=="webalizer/index.cgi"){__cms();t__wi_p.$('a[href*="webalizer/"]').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")}else{if($current_page_with_path=="config.cgi"||$current_page_with_path=="/config.cgi"){__cms();t__wi_p.$('a[href*="config.cgi"]:first'+__samn()+"").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")}else{if($current_page_with_path=="webminlog/search.cgi?"){__cms();t__wi_p.$('a[href^="/webminlog/search.cgi"]:first'+__samn()+"").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")}else{if(typeof $current_page_with_path!="undefined"&&t__wi_p.$('a[href*="'+$current_page_with_path+'"]:first'+__samn()+"").length>0){__cms();t__wi_p.$('a[href*="'+$current_page_with_path+'"]').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")}}}}}}}}var l=[];t__wi_p.$("a.navigation_module_trigger").each(function(){if($(this).hasClass("navigation_trigger_single_link")){l.push($(this).data("href"))}else{if($(this).data("href")!="/virtual-server/index.cgi"){l.push($(this).data("href"))}else{if($(this).data("href")=="/virtual-server/index.cgi"){l.push("/virtual-server");l.push("/virtual-server/index.cgi")}}}});var j=[];t__wi_p.$('li > ul.sub li:not(.menu-exclude):not(.user-link) a:not(.menu-exclude-link, [data-href="/webmin/refresh_modules.cgi"])').each(function(){if($(this).attr("href").substring(0,1)=="/"){j.push($(this).attr("href").substring(1))}else{j.push($(this).attr("href"))}});$___current_page_search=$current_page.replace(/\/$/,"")+$current_page_search;$_current_page_search="/"+$current_page.replace(/\/$/,"")+$current_page_search;if($current_page_full==$_____link_full+"/virtual-server/history.cgi"){__cms();t__wi_p.$('a[data-href="/virtual-server/history.cgi"]').parent("li:not(.menu-exclude):not(.user-link)").addClass("sub_active").append('')}else{if($current_page_full==$_____link_full+"/server-manager/index.cgi"){__cms();t__wi_p.$('a[data-href="/server-manager/index.cgi"]').parent("li:not(.menu-exclude):not(.user-link)").addClass("sub_active").append('')}else{if($current_page_full==$_____link_full+"/webmin_search.cgi"){__cms()}else{if((l.indexOf($_current_page_search)>-1)){__cms();t__wi_p.$('a[data-href="'+$_current_page_search+($_current_page_search=="/virtual-server"?"/index.cgi":"")+'"]').parent("li:not(.menu-exclude):not(.user-link)").addClass("sub_active").append('')}else{if(j.indexOf($_current_page_search)>-1||j.indexOf($___current_page_search)>-1){__cms();t__wi_p.$('a[href*="'+$___current_page_search+'"]').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")}else{if(t__wi_p.$("#wrapper").data("product")=="usermin"&&$t_uri_webmail&&$current_page_full&&($current_page_full.indexOf("/mailbox")||$current_page_full.indexOf("/filter"))){$_current_page_search_no_extra=$_current_page_search.replace("&user=","").replace(/\./g,"%2E").replace("mailbox?id=","mailbox/index.cgi?id=");$.each(l,function(b,a){if($_current_page_search_no_extra&&$_current_page_search_no_extra.indexOf(a)>-1){if(t__wi_p.$('a[data-href="'+a+'"]').length>0){__cms();t__wi_p.$('a[data-href="'+a+'"]').find(".fa.fa-folder-o").addClass("fa-folder-open-o");t__wi_p.$('a[data-href="'+a+'"]').parent("li:not(.menu-exclude):not(.user-link)").addClass("sub_active").append('')}}});$_current_page_search="/"+$current_page+"index.cgi"+$current_page_search;$__relative_url=="/mailbox/edit_sig.cgi?"?$__relative_url="/mailbox/edit_sig.cgi":false;if(t__wi_p.$('a[data-href="'+$__relative_url+'"]').length>0){__cms();t__wi_p.$('a[data-href="'+$__relative_url+'"]').find(".fa.fa-folder-o").addClass("fa-folder-open-o");t__wi_p.$('a[data-href="'+$__relative_url+'"]').parent("li:not(.menu-exclude):not(.user-link)").addClass("sub_active").append('')}if($current_page_full==$_____link_full+"/mailbox/"){if(t__wi_p.$('a[data-href="'+$_current_page_search+'"]').length>0){__cms();t__wi_p.$('a[data-href="'+$_current_page_search+'"]').find(".fa.fa-folder-o").addClass("fa-folder-open-o");t__wi_p.$('a[data-href="'+$_current_page_search+'"]').parent("li:not(.menu-exclude):not(.user-link)").addClass("sub_active").append('')}else{if(t__wi_p.$('a[data-href="/mailbox/index.cgi?id=INBOX"]').length>0&&l.indexOf("/"+$current_page)===-1){__cms();t__wi_p.$('a[data-href="/mailbox/index.cgi?id=INBOX"]').parent("li:first-child").find(".fa.fa-folder-o").addClass("fa-folder-open-o");t__wi_p.$('a[data-href="/mailbox/index.cgi?id=INBOX"]').parent("li:first-child").addClass("sub_active").append('')}}}}}}}}}}}function __dpt(){if(!$g__v__nav){return}if(t__wi_p.$('li.sub_active a[href*="'+$g__o__f_m+'"]').length){var a=t__wi_p.$('iframe[name="page"]').get(0).contentWindow.$g__o__f_m;if(t__wi_p.$('iframe[name="page"]').get(0)&&t__wi_p.$('iframe[name="page"]').get(0).contentWindow&&t__wi_p.$('iframe[name="page"]').get(0).contentWindow.$('body[class*="'+a+'"] .active form input#path').val()){t__wi_p.document.title=decodeURIComponentSafe(t__wi_p.$('iframe[name="page"]').get(0).contentWindow.$('body[class*="'+a+'"] .active form input#path').val())+" - "+t__wi_p.$("li.sub_active a").text()+" — "+$g__v__title}else{t__wi_p.document.title=t__wi_p.$("li.sub_active a").text()+" — "+$g__v__title}}else{if((product_name()=="Virtualmin"||product_name()=="Cloudmin")&&t__wi_p.$("select option:checked").text()&&t__wi_p.$("select option:checked").text().length){if(t__wi_p.$("li.sub_active a").text()&&t__wi_p.$("li.sub_active a").text().length){var b=$("#webmin_search_form").parent("li").prevAll();if(b.has(".sub_active, .current-large").length){t__wi_p.document.title=t__wi_p.$("select option:checked").text()+" - "+t__wi_p.$("li.sub_active a").text()+" — "+$g__v__title}else{t__wi_p.document.title=t__wi_p.$("li.sub_active a").text()+" — "+$g__v__title}}else{t__wi_p.document.title=product_name()+" — "+$g__v__title}}else{if(product_name()=="Mail"){if(t__wi_p.$("li.sub_active a").text()&&t__wi_p.$("li.sub_active a").text().length){t__wi_p.document.title=t__wi_p.$("li.sub_active a").text()+" - Mail — "+$g__v__title}else{t__wi_p.document.title=product_name()+" — "+$g__v__title}}else{if(t__wi_p.$("li.sub_active a").text()&&t__wi_p.$("li.sub_active a").text().length){t__wi_p.document.title=t__wi_p.$("li.sub_active a").text()+" — "+$g__v__title}else{t__wi_p.document.title=$g__v__title}}}}var c=t__wi_p.$(".right-side-tabs .list-group-item:not(.no-notifications, .opacity-0_3)").length;if(settings_side_slider_enabled&&settings_side_slider_notifications_enabled){t__wi_p.titlenotifier.set(c)}else{t__wi_p.titlenotifier.set(0)}}function __dlm(b){if(t__wi_p.$___________m_locked===1||$source_path==$_____link+"settings-user.cgi"){return}if($current_page_full==$_____link_full+"/server-manager/"||$current_page_full==$_____link_full+"/virtual-server/"){b="index.cgi"}typeof b==="undefined"?b=false:false;if(!b&&$current_page_full==$_____link_full+"/virtual-server/summary_domain.cgi"){__sam("/virtual-server/index.cgi",false)}if(b){__sam(b,false)}else{if(product_name()!=="Webmin"&&product_name()!=="Usermin"&&(t__wi_p.$('a[href*="'+$___relative_url+'"]:first'+__samn()+"").length||t__wi_p.$('a[data-href*="'+$___relative_url+'"]:first'+__samn()+"").length)){__sam($___relative_url,false)}else{if((product_name()!=="Virtualmin"&&product_name()!=="Cloudmin")&&product_name()!=="Webmin"&&product_name()!=="Usermin"&&(t__wi_p.$('a[href*="'+$___source_path+'"]:first'+__samn()+"").length||t__wi_p.$('a[data-href*="'+$___source_path+'"]:first'+__samn()+"").length)){__sam($___source_path,false)}else{if((product_name()!=="Virtualmin"&&product_name()!=="Cloudmin")&&(t__wi_p.$('a[href*="'+$___source_dir+'"]:first'+__samn()+"").length||t__wi_p.$('a[data-href*="'+$___source_dir+'"]:first'+__samn()+"").length)||((access_level()==2||access_level()==4)&&t___wi.location.search=="?virtualmin")){__sam($___source_dir,false)}else{if($__source_file){__sam($__source_file,true)}}}}}if(t__wi_p.$('a[data-href="/sysinfo.cgi"]').hasClass("hidden")&&$current_page_full==$_____link_full+"/sysinfo.cgi"){__cms()}__dpt()}function t__m__m(f,l){var p=URI.parseQuery(URI($__source_url).query())["dom"],i=URI.parseQuery(URI($__source_url).query())["id"],h="aside select";if(URI.parseQuery(URI($__source_url).query())["refresh"]=="1"){if(!$("body").contents().text().match(/___theme_post_save___/)){var j=false;if(i||p&&($t_uri_virtualmin||$t_uri_cloudmin)){if($t_uri_virtualmin){j=p}else{if($t_uri_cloudmin){j=i}}}else{if($t_uri_virtualmin||$t_uri_cloudmin){j=t__wi_p.$(h).val()}}if($t_uri_virtualmin){t__wi_p.t__vm_l(j)}else{if($t_uri_cloudmin){t__wi_p.t__cm_l(j)}else{var g=$(".switch-toggle input.dynamic:checked").attr("id");t__wi_p.t__wm_l((g?g:"open_webmin"))}}return}}else{var e=" option",n=t__wi_p.$(h).val(),q=t__wi_p.$(h+e+"[value="+n+"]").text();if(t__wi_p.t___p__ll===0&&(($t_uri_virtualmin||$t_uri_cloudmin)&&(i||p))){if(!$("body").contents().text().match(/___theme_post_save___/)){if($t_uri_virtualmin&&!$t_uri_cloudmin&&p&&n&&(p!=n&&p!=q)){var o=t__wi_p.$(h+e).map(function(){return $(this).val()}).get();if($.inArray(p,o)!=-1){t__wi_p.t__vm_l(p)}else{var k=t__wi_p.$(h+e).filter(function(){return $(this).text()==p}).val();t__wi_p.t__vm_l(k)}}else{var o=t__wi_p.$(h+e).map(function(){return $(this).val()}).get();if($t_uri_cloudmin&&i&&n&&(i!=n&&i!=q)){if($.inArray(i,o)!=-1){t__wi_p.t__cm_l(i)}else{var m=t__wi_p.$(h+e).filter(function(){return $(this).text()==i}).val();t__wi_p.t__cm_l(m)}}}return}}}if(t___wi.location!=t__wi_p.location){if($__current_directory==$_____link_full+"/virtual-server/"||$current_page_full==$_____link_full+"/virtual-server/index.cgi"||$__relative_url=="/config.cgi?virtual-server"){if(t__wi_p.$(".switch-toggle input:checked").attr("id")!="open_virtualmin"&&t__wi_p.$('.switch-toggle input[id="open_virtualmin"]').length){t__wi_p.t__s("open_virtualmin");t__wi_p.t__m("open_virtualmin",f,l)}}else{if($__current_directory==$_____link_full+"/server-manager/"||$current_page_full==$_____link_full+"/server-manager/index.cgi"||$__relative_url=="/config.cgi?server-manager"){if(t__wi_p.$(".switch-toggle input:checked").attr("id")!="open_cloudmin"&&t__wi_p.$('.switch-toggle input[id="open_cloudmin"]').length){t__wi_p.t__s("open_cloudmin");t__wi_p.t__m("open_cloudmin",f,l)}}}}}function v__cm___init(){if($("textarea").length===1&&($("textarea").attr("name")==="data"||$("textarea").attr("name")==="text"||$("textarea").attr("name")==="conf"||is__mfq("virtual-server","edit_html.cgi","textok=")||$__source_file.indexOf("manual")>-1)){if(is__mf("virtual-server","mass_ucreate_form.cgi")||is__mf("virtual-server","mass_create_form.cgi")||is__mf("server-manager","edit_pubkey.cgi")||is__mf("server-manager","edit_key.cgi")||$__relative_url=="/config.cgi?server-manager"||is__mf("useradmin","batch_form.cgi")||is__mf("useradmin","gbatch_form.cgi")||$__source_file=="mass_form.cgi"||$("textarea").attr("id")==="notes"){return 0}t__wi_p.$____loader_block__=1;return 1}return 0}function t__cm___init(g,i,f,j,d,m,k){k=(typeof k=="undefined"||k==false?false:true);function l(n,p,s,r,q,o){q=(typeof q=="undefined"||q==false?false:true);o=(typeof o=="undefined"||o==false?false:true);$.each(n,function(u,w){var b=$(this),c=["phpini","bind8"],B=["phpini"],t=["bind8"];$("#headln2l a").attr("href")?$page=$("#headln2l a").attr("href").split("/")[1]:$page=null;c.indexOf($page)>=0&&$(this).data("name","data");CodeMirror.modeURL="/unauthenticated/js/codemirror/mode/%N/%N.js";var a=null,x="text/plain";var v=false;if($current_page_full==$_____link_full+"/custom/view.cgi"){v=$('form[action="save.cgi"]').find(".table-title").find("tt").text()}else{if($('body[class^="'+$g__o__f_m+'"]').length){v=URI.parseQuery(URI($__source_url).query())["file"]}else{v=$('select[name="file"]').val()}}var z=(p?p:v),y,a,x;if(y=/.+\.([^.]+)$/.exec(z)){var A=CodeMirror.findModeByExtension(y[1]);if(A){a=A.mode;x=A.mime}}else{if(/\//.test(z)){var A=CodeMirror.findModeByMIME(z);if(A){a=A.mode;x=z}}else{a=null;x="text/plain"}}if($page=="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"){a="rpm";x="rpm-spec"}else{if($page=="phpini"){a="z80";x="text/x-z80"}else{if($page=="bind8"||$page=="procmail"||is__mf("virtual-server","manual_records.cgi")){a="clike";x="text/x-java"}else{if($page=="virtual-server"&&$(this).attr("name")=="body"){a="htmlmixed";x="text/html"}}}}$current_file=$current_page_full.replace(/^\//g,"");if($current_file){$current_file=$current_file.split("/")[1]}if(v__cm___init()||$(".jsPanel").length||q){CodeMirror.commands.autocomplete=function(C){C.showHint({hint:CodeMirror.hint.anyword})};window["__cm_editor_"+r]=CodeMirror.fromTextArea(w,{tabMode:"indent",matchBrackets:true,lineNumbers:true,keyMap:"sublime",highlightSelectionMatches:{showToken:/\w/,annotateScrollbar:true},lineWrapping:true,indentUnit:0,autofocus:true,foldGutter:true,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:{"Ctrl-Space":"autocomplete"},styleActiveLine:true,theme:settings_cm_editor_palette});window["__cm_editor_"+r].setOption("mode",x);if(a!="rpm"){CodeMirror.autoLoadMode(window["__cm_editor_"+r],a)}setTimeout(function(){if(!$("body").find(".jsPanel").length){$(".CodeMirror").before('')}var C=$(".fa.fa-question-circle.__helper");C.popover({container:"body",placement:"auto right",title:(''+lang("theme_xhred_editor_help_title")),content:lang("theme_xhred_editor_help_content"),trigger:"click",html:true});C.on("inserted.bs.popover",function(){$("body").find(".theme_xhred_editor_help").parents(".popover").addClass("_helper")})},100);if(o){window["__cm_editor_"+r].on("change",function(D,C){$("body").attr("data-unload-warning","1")})}if($current_file!="edit_cron.cgi"&&$current_page_full!=$_____link_full+"/virtualmin-password-recovery/"&&$current_page_full!=$_____link_full+"/bind8/forward_form.cgi"){s?($resize=s):($resize=2.8);if(!s){$window_height=($(window).outerHeight()-($(window).outerHeight()/$resize));window["__cm_editor_"+r].setSize(null,$window_height);$(t___wi).resize(function(){$window_height=($(window).outerHeight()-($(window).outerHeight()/$resize));window["__cm_editor_"+r].setSize(null,$window_height)})}else{window["__cm_editor_"+r].on("change",function(D,C){n.val(window["__cm_editor_"+r].getValue());if($(":focus").parents(".jsPanel").is(".jsPanel")){$(":focus").parents(".jsPanel").find("._filemanager_file_editor_save").addClass("text-danger")}});window["__cm_editor_"+r].setSize($resize[0],$resize[1])}}if($(".sub_table_container").find(".CodeMirror").length){$(".sub_table_container").addClass("xcontent-force-no-styling");$(".panel-body").addClass("xqcontent-forced")}__p__pe_sm()}})}function e(){var a=0;if(t__wi_p.$load____ext==="src"){a=$('html head link[href*="css/jquery.jspanel."]:first')}else{a=$('html head link[href*="css/bundle."]:first')}if(!$('html head link[href*="css/codemirror."]').length){a.before('')}}function h(){l(g,i,f,j,d,m);t__wi_p.$____loader_block__=0;__lre()}if(typeof CodeMirror==="function"){h()}else{if(!t__wi_p.$____cm__has_init__){t__wi_p.$____cm__has_init__=1;e();$.getScript(""+$_____link_full+"/unauthenticated/js/codemirror."+t__wi_p.$load____ext+".js",function(a,c,b){!k&&h();t__wi_p.$___ajax_requested_url="_blank"})}}}function v__cm_viewer(){if($('body[class^="syslog"]').length&&$__source_query&&$__source_query.indexOf("view=1")>-1){return 1}else{return 0}}function f__cm_viewer(){t__wi_p.$____loader_block__=1;function a(){if(!$("pre").find("i").length){var d=false;$("pre").each(function(){var f=$(this),e=HTMLDecode(f.html());f.empty();d=CodeMirror(this,{value:e,lineNumbers:true,mode:null,theme:settings_cm_view_palette,readOnly:true,viewportMargin:Infinity})}).promise().done(function(){})}}function c(){var d=0;if(t__wi_p.$load____ext==="src"){d=$('html head link[href*="css/jquery.jspanel."]:first')}else{d=$('html head link[href*="css/bundle."]:first')}if(!$('html head link[href*="css/codemirror."]').length){d.before('')}}function b(){a();t__wi_p.$____loader_block__=0;__lre()}if(typeof CodeMirror==="function"){b()}else{if(!t__wi_p.$____cm__has_init__){t__wi_p.$____cm__has_init__=1;c();$.getScript(""+$_____link_full+"/unauthenticated/js/codemirror."+t__wi_p.$load____ext+".js",function(d,f,e){b();t__wi_p.$___ajax_requested_url="_blank"})}}}(function(b){(jQuery.browser=jQuery.browser||{}).mobile=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(b)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(b.substr(0,4))})(navigator.userAgent||navigator.vendor||window.opera);(___is_iOSSafari&&($("html").css("overflow","auto")));if(___is_iOS){$("head").append(' ')}$(document).on("click",function(b){if($(b.target).attr("class")&&$(b.target).attr("class").indexOf("select2")===0){}else{if(t__wi_p.$("aside select")&&t__wi_p.$("aside select").length>0&&t__wi_p.$("aside select").hasClass("select2-hidden-accessible")){t__wi_p.$("aside select").select2("close")}}});$("a").each(function(){if($(this).find("img").length){$(this).css("text-decoration","none")}});$("body").on("keydown",function(f){var e=f.keyCode?f.keyCode:f.which,d=String.fromCharCode(e).toLowerCase();if(t__wi_p.$('aside input[name="search"]').is(":focus")){return}if(t__wi_p.$(".-shell-port-").hasClass("opened")){return}if($current_page_full==$_____link_full+"/server-manager/gvnc.cgi"||$current_page_full==$_____link_full+"/server-manager/login.cgi"||$current_page_full==$_____link_full+"/telnet/"||$current_page_full==$_____link_full+"/telnet/index.cgi"||$current_page_full==$_____link_full+"/stunnel/"||$current_page_full==$_____link_full+"/stunnel/index.cgi"){return}if(!$("input").is(":focus")&&!$("select").is(":focus")&&!$("textarea").is(":focus")&&!$(".modal.in").length){if(d&&/[a-zA-Z0-9]/.test(d)&&!f.ctrlKey&&!f.altKey&&!f.metaKey&&e!==106&&e!==107&&e!==109&&e!==112&&e!==113&&e!==114&&e!==115&&e!==116&&e!==117&&e!==118&&e!==119&&e!==120&&e!==121&&e!==122&&e!==123){if(!$(".dataTables_filter label input").length){setTimeout(function(){if(f.shiftKey&&d=="1"){t__wi_p.$('aside input[name="search"]').focus().val("!")}else{t__wi_p.$('aside input[name="search"]').focus().val(d)}},1)}else{$(".btn-filter-top-right").trigger("click");$(".btn-filter-top-right .dataTable-mirror").focus().trigger("keyup")}}}});$.ajaxSetup({beforeSend:function(b,a){t__wi_p.$___ajax_requested_url=a.url},complete:function(b,a){if(b.getResponseHeader("Auth-type")==="auth-required=1"){t___wi.top.location.reload()}if(t__wi_p.$___ajax_requested_url&&(t__wi_p.$___ajax_requested_url.indexOf("help.cgi")>-1||t__wi_p.$___ajax_requested_url.indexOf("edit_file.cgi")>-1)){setTimeout(function(){t__wi_p.$___ajax_requested_url="_blank"},100)}}}); \ No newline at end of file diff --git a/version b/version index b6d79acfd..79b01acac 100644 --- a/version +++ b/version @@ -1 +1 @@ -18.40-git-201704201806 +18.40-git-201704211006