');l.find("a.bctl").click(function(o){m.toggleClass("hidden");l.find("a.bctl i").toggleClass("fa-minus-square-o")});m.addClass("obj-popup hidden")}})});var $___remove_theme_version=localStorage.getItem($hostname+"-sysinfo_authentic_remote_version"),$__remove_theme_version=($___remove_theme_version?$___remove_theme_version:$g__t__ver);if($__remove_theme_version&&$__remove_theme_version.indexOf("git")>-1){$__remove_theme_version=parseFloat($__remove_theme_version).toFixed(2)}var $__theme_link_upd="https://github.com/qooob/authentic-theme/releases/download/"+$__remove_theme_version+"/authentic-theme-"+$__remove_theme_version+".wbt.gz";if($current_page_full&&$current_page_full.indexOf("/webmin/edit_themes.cgi")>-1&&t__wi_p.location.search=="?updating-webmin-theme"){setTimeout(function(){$iframe=t__wi_p.$('iframe[name="page"]').contents();$iframe.find(".panel-body .tab-pane.active").removeClass("active");$iframe.find(".panel-body #att_install").addClass("active");$iframe.find('.panel-body .ui_radio_table.table-hardcoded input[id="source_2"]').prop("checked",true);$iframe.find('.panel-body .ui_radio_table.table-hardcoded input[id="source_2"]').parents("td").next("td").find('input[name="url"]').attr("autocomplete","off").val($__theme_link_upd);setTimeout(function(){$iframe.find('.panel-body .tab-pane.active form[action^="install_theme."]').submit();t__wi_p.history.pushState(null,null,$_____link_full+"/?downloading-webmin-theme")},200)},400)}else{if($current_page_full&&($current_page_full.indexOf("/webmin/install_theme.cgi")>-1||$current_page_full.indexOf("/usermin/install_theme.cgi")>-1||$current_page_full.indexOf("/usermin/edit_themes.cgi")>-1)&&(t__wi_p.location.search=="?downloading-webmin-theme"||t__wi_p.location.search=="?downloading-usermin-theme"||t__wi_p.location.search=="?updating-usermin-theme")){if(t__wi_p.$t_av__usermin&&t__wi_p.location.search!="?downloading-usermin-theme"){if(t__wi_p.location.search=="?updating-usermin-theme"){setTimeout(function(){$__iframe=t__wi_p.$('iframe[name="page"]').contents();$__iframe.find('input[name="source"][value="2"]').prop("checked",true);$__iframe.find('input[name="url"]').val($__theme_link_upd);$__iframe.find('form[action^="install_theme."]').submit();t__wi_p.history.pushState(null,null,$_____link_full+"/?downloading-usermin-theme")},400)}else{t__wi_p.history.pushState(null,null,$_____link_full+"/?updating-usermin-theme");t__wi_p.$('iframe[name="page"]').attr("src",$_____link_full+"/usermin/edit_themes.cgi")}}else{t__wi_p.history.pushState(null,null,$_____link_full+"/?theme-update-finished");t__wi_p.$('iframe[name="page"]').attr("src",$_____link_full+"/sysinfo.cgi")}}else{if($current_page_full&&$current_page_full.indexOf("/sysinfo.cgi")>-1&&t__wi_p.location.search=="?theme-update-finished"){set_location_search();$(t__wi_p).on("popstate",function(){t__wi_p.history.pushState(null,null,$_____link_full+"/")})}}}if($current_page_full&&$current_page_full.indexOf("/package-updates/index.cgi")>-1&&t__wi_p.location.search=="?recollecting"){t__wi_p.history.pushState(null,null,$_____link_full+"/?recollecting-package-updates");t__wi_p.$('iframe[name="page"]').attr("src",$_____link_full+"/package-updates/index.cgi?mode=updates")}else{if($current_page_full&&$current_page_full.indexOf("/package-updates/index.cgi")>-1&&t__wi_p.location.search=="?recollecting-package-updates"){setTimeout(function(){$iframe=t__wi_p.$('iframe[name="page"]').contents();var b=$iframe.find('form[action^="update."]');b.append(' ');b.submit();t__wi_p.history.pushState(null,null,$_____link_full+"/?recollecting-package-updates-processing")},400)}else{if($current_page_full&&$current_page_full.indexOf("/package-updates/update.cgi")>-1&&t__wi_p.location.search=="?recollecting-package-updates-processing"){$iframe=t__wi_p.$('iframe[name="page"]').contents();$iframe.find("#refresh").trigger("click");t__wi_p.history.pushState(null,null,$_____link_full+"/?recollect");t__wi_p.$('iframe[name="page"]').attr("src",$_____link_full+"/webmin/edit_webmincron.cgi")}}}if($current_page_full&&$current_page_full.indexOf("/webmin/edit_webmincron.cgi")>-1&&t__wi_p.location.search=="?recollect"){setTimeout(function(){$sysinfo_content=$("body");$sysinfo_content.find("#"+$sysinfo_content.find("label:contains('cleanup_temp_files')").attr("for")).prop("checked",true);$sysinfo_content.find("#"+$sysinfo_content.find("label:contains('scheduled_collect_system_info')").attr("for")).prop("checked",true);$sysinfo_content.find("#"+$sysinfo_content.find("label:contains('collectinfo.pl')").attr("for")).prop("checked",true);$sysinfo_content.find("#"+$sysinfo_content.find("label:contains('status.pl')").attr("for")).prop("checked",true);$form_sysinfo=$sysinfo_content.find('form[action^="delete_webmincron."]');$form_sysinfo.append(' ');$form_sysinfo.submit();t__wi_p.history.pushState(null,null,$_____link_full+"/?recollect-system-status")},400)}else{if($current_page_full&&$current_page_full.indexOf("/webmin/delete_webmincron.cgi")>-1&&t__wi_p.location.search=="?recollect-system-status"){t__wi_p.history.pushState(null,null,$_____link_full+"/?recollect-finished");t__wi_p.$('iframe[name="page"]').attr("src",$_____link_full+"/sysinfo.cgi")}else{if($current_page_full&&$current_page_full.indexOf("/sysinfo.cgi")>-1&&t__wi_p.location.search=="?recollect-finished"){set_location_search();$(t__wi_p).on("popstate",function(){t__wi_p.history.pushState(null,null,$_____link_full+"/")})}}}$("#system-status > div.panel-body > table > tbody > tr").on("mouseover",function(){$(this).find(".btn-hidden").removeClass("hidden")}).on("mouseout",function(){$(this).find(".btn-hidden").addClass("hidden")});$('input[name="but_switch"]').on("click",function(b){$(t__wi_p).on("popstate",function(){t__wi_p.history.pushState(null,null,$_____link_full+"/")});$(this).parents("form").attr("target","_top")});$('form[action*="switch_user.cgi"], a[href*="switch_user.cgi"]').each(function(){$(t__wi_p).on("popstate",function(){t__wi_p.history.pushState(null,null,$_____link_full+"/")});$(this).attr("target","_top")});if(is__m("mysql")||is__m("postgresql")){$('a > img[src*="images/left.gif"]').each(function(d,e){var f=$(this);f.replaceWith(' ')});$('a > img[src*="images/right.gif"]').each(function(d,e){var f=$(this);f.replaceWith(' ')})}if(is__m("mailboxes")||is__m("mailbox")){var $mail_ar_selector='form.ui_form[action="index.cgi"]',$mail_icon_class="fa fa-fw fa-lg text-semi-light vertical-align-baseline fa-angle-";$(""+$mail_ar_selector+' img[src*="images/left"], center img[src*="images/left"]').each(function(){$(this).replaceWith(' ')});$(""+$mail_ar_selector+' img[src*="images/right"], center img[src*="images/right"]').each(function(){$(this).replaceWith(' ')});$(""+$mail_ar_selector+' img[src*="images/first"]').each(function(){$(this).replaceWith(' ')});$(""+$mail_ar_selector+' img[src*="images/last"]').each(function(){$(this).replaceWith(' ')})}if(is__mf("virtual-server","list_scripts.cgi")){$('td > a > img[src*="images/staroff.gif"]').each(function(d,e){var f=$(this);$(e).attr("src",""+$_____link_full+"/images/staroff.gif")});$('td > a > img[src*="images/staron.gif"]').each(function(d,e){var f=$(this);$(e).attr("src",""+$_____link_full+"/images/staron.gif")})}if($current_directory==$_____link+"status/"){$('td img[src*="images/up.gif"]:not(".ui_icon_protected")').each(function(d,e){var f=$(this);$(e).attr("src",""+$_____link_full+"/images/check.png");f.addClass("scale-08")});$('td img[src*="images/down.gif"]:not(".ui_icon_protected")').each(function(d,e){var f=$(this);$(e).attr("src",""+$_____link_full+"/images/cross.png");f.addClass("scale-08")});$('td img[src*="images/not.gif"]:not(".ui_icon_protected")').each(function(d,e){var f=$(this);$(e).attr("src",""+$_____link_full+"/images/not.png");f.addClass("scale-08")})}$('.ui_form[action^="delete_mons"] tr.ui_checked_columns > td > label > img[src="images/up.gif"]:not(".ui_icon_protected"), .ui_form[action^="save_mon"] img[src="images/up.gif"]:not(".ui_icon_protected"), table.ui_buttons_table > tbody > tr.ui_buttons_row > td.ui_buttons_label > img[src="images/up.gif"]:not(".ui_icon_protected")').each(function(d,e){var f=$(this);$(e).attr("src",""+$_____link_full+"/images/check.png");f.addClass("scale-08")});$('.ui_form[action^="delete_mons"] tr.ui_checked_columns > td > label > img[src="images/down.gif"]:not(".ui_icon_protected"), .ui_form[action^="save_mon"] img[src="images/down.gif"]:not(".ui_icon_protected"), table.ui_buttons_table > tbody > tr.ui_buttons_row > td.ui_buttons_label > img[src="images/down.gif"]:not(".ui_icon_protected")').each(function(d,e){var f=$(this);$(e).attr("src",""+$_____link_full+"/images/cross.png");f.addClass("scale-08")});$('.ui_form[action^="delete_mons"] tr.ui_checked_columns > td > label > img[src="images/not.gif"]:not(".ui_icon_protected"), .ui_form[action^="save_mon"] img[src="images/not.gif"]:not(".ui_icon_protected"), table.ui_buttons_table > tbody > tr.ui_buttons_row > td.ui_buttons_label > img[src="images/not.gif"]:not(".ui_icon_protected")').each(function(d,e){var f=$(this);$(e).attr("src",""+$_____link_full+"/images/not.png");f.addClass("scale-08")});if(is__m("proc")||is__m("firewall")||is__m("firewall6")||is__m("shorewall")||is__m("shorewall6")||is__mf("pam","edit_pam.cgi")||is__m("filter")){$("td a img[src], td label a img[src]").parents("td").addClass("text-center");$('td img[src*="images/gap.gif"]').replaceWith(' ');$('td a img[src*="images/down.gif"]').replaceWith(' ');$('td a img[src*="images/up.gif"]').replaceWith(' ');$('td a img[src*="images/after.gif"]').replaceWith(' ');$('td a img[src*="images/before.gif"]').replaceWith(' ')}if(is__m("squid")||is__m("cron")){$('td a img[src*="images/movedown.gif"]').replaceWith(' ');$('td a img[src*="images/moveup.gif"]').replaceWith(' ')}if(is__m("cron")){$('td a img[src*="images/bottom.gif"]').replaceWith(' ');$('td a img[src*="images/top.gif"]').replaceWith(' ')}$("input").each(function(c,d){if($(this).attr("src")=="images/ok.gif"){$(d).attr("src",""+$_____link_full+"/"+$(this).attr("src"));$(this).parents("td").attr("style","white-space: nowrap")}});v__cm___init()&&t__cm___init($("textarea"),false,false,"static");v__cm_viewer()&&f__cm_viewer();if($(".ui_table tr td").has(".ui_grid_table.table-hardcoded")&&($current_directory==$_____link+"passwd/"||$current_directory==$_____link+"mailboxes/"||$current_page_full==$_____link_full+"/usermin/list_configs.cgi")){$(".ui_table tr td .ui_grid_table.table-hardcoded").parents("table").css("border","1px solid #f0f0f0");$(".ui_table tr td .ui_grid_table.table-hardcoded").addClass("table").parents("tr").css("border","1px solid #f0f0f0")}if(($("body").attr("class")&&$('body[class="custom"]').length||($("body").attr("class")&&$("body").attr("class").search(/custom\d+$/)===0))&&$__source_file=="view.cgi"){var $_tt=$('form[action="save.cgi"]').find(".table-title").find("tt").text();$('form[action="save.cgi"]').find(".table-title").find("b").empty().append(""+$_tt+" ")}$.each($("form > table"),function(){if($(this).next('input[type="submit"]')){if($(this).attr("style")){}else{}}});$.each($("table tr"),function(){if($(this).is(":empty")){$(this).remove()}});function __tables(){if($current_page_full==$_____link_full+"fsdump/restore_form.cgi"||$current_page_full==$_____link_full+"/virtual-server/summary_domain.cgi"||$current_page_full==$_____link_full+"/usermin/edit_categories.cgi"||$current_page_full==$_____link_full+"/usermin/edit_defacl.cgi"||$current_page_full==$_____link_full+"/proc/index_search.cgi"||$current_page_full==$_____link_full+"/quota/list_groups.cgi"||$current_page_full==$_____link_full+"/bind8/conf_misc.cgi"||$current_page_full==$_____link_full+"/bind8/edit_recs.cgi"||$current_page_full==$_____link_full+"/postfix/sasl.cgi"||$current_page_full==$_____link_full+"/postfix/edit_master.cgi"||$current_page_full==$_____link_full+"/squid/edit_icp.cgi"||$current_page_full==$_____link_full+"/squid/edit_misc.cgi"||$current_page_full==$_____link_full+"/cpan/edit_mod.cgi"||$current_page_full==$_____link_full+"/phpini/edit_errors.cgi"||$current_page_full==$_____link_full+"/acl/edit_acl.cgi"||$current_page_full==$_____link_full+"/virtual-server/edit_domain.cgi"||$current_page_full==$_____link_full+"/apache/edit_virt.cgi"||$current_page_full==$_____link_full+"/apache/edit_dir.cgi"||$current_page_full==$_____link_full+"/mysql/edit_cnf.cgi"||$current_page_full==$_____link_full+"/squid/edit_logs.cgi"||$current_page_full==$_____link_full+"/net/edit_aifc.cgi"||$current_page_full==$_____link_full+"/phpini/edit_misc.cgi"){return[$("table#show_backup_destination"),$('form[action="save_categories.cgi"] > .table-hardcoded'),$('form[action="save_defacl.cgi"] > .table-hardcoded'),$('form[action="index_search.cgi"] .sub_table_container.table-hardcoded'),$('form[action="save_misc.cgi"] .sub_table_container.table-hardcoded'),$('form[action="save_sasl.cgi"] .table-hardcoded'),$('form[action="save_master.cgi"] .sub_table_container.table-hardcoded'),$('form[action="save_icp.cgi"] .table.table-striped.table-condensed.table-subtable'),$('form[action="save_misc.cgi"] .table.table-striped.table-condensed.table-subtable'),$(".table-responsive > .table.table-striped.table-condensed.table-subtable"),$(".table-responsive > .table.table-striped.table-condensed.table-subtable > .sub_table_container.table-hardcoded"),$("#hiddendiv_opts"),$('.ui_form[action="save_virt.cgi"] .sub_table_container.table-hardcoded')]}else{return false}}if(__tables()){$.each(__tables(),function(d,f){var e=$(this);$.each(e.find("td"),function(){if(!$(this).find("hr").length){$(this).removeAttr("colspan")}});$.each(e.find("tbody"),function(){var a=$(this).children("tr"),c=[];$.each(a,function(){c.push($(this).children("td").length)});var b=Math.max.apply(this,c);$.each(a,function(){var i=$(this).children("td").length;if(b!=i&&!$(this).find("hr").length&&__tables()){for(var g=0;g<(b-i);g++){$(this).append(" ")}}})})})}$.each($("span > input"),function(){var f=$(this).parent("span").next(".file_chooser_button"),e=$(this).parent("span").next('input[type="button"][onclick]'),d=$(this).parent("span").next("select");if(f){f.attr("style","display: inline; width:40px; height: 28px; margin-right:0 !important; margin-top:4px !important;").find("i.fa-files-o").css("margin-top","0").addClass("vertical-align-middle")}if($(this).parents(".tab-content")){f.css("margin-top","4px")}if(e){e.attr("style","display: inline; width:40px; height: 28px; margin-right:0 !important; vertical-align: middle").next("i.fa-files-o").css("margin-top","11px").addClass("vertical-align-middle");e.attr("style","display: inline; width:40px; height: 28px; margin-right:0 !important; vertical-align: middle").next("i.fa-calendar").attr("style","margin-top: 8px !important; font-size: 11px; margin-left: -27px; pointer-events: none;")}});$.each($('input[type="button"][onclick^="ifield"]'),function(d,c){$(this).css("margin-left","0").css("width","40px").css("height","28px")});$('.ui_form[action="switch.cgi"] > input.form-control.ui_textbox').next('input[type="button"][onclick^="ifield"]').attr("style","margin-top: 2px !important; margin-bottom: 2px !important; margin-left: 0 !important");setTimeout(function(){$('.ui_form[action="switch.cgi"] .file_chooser_button_attached').attr("style","font-size: 11px; pointer-events: none; margin-top: 14px !important;")},10);if($current_directory==$_____link+"cshrc/"){$("textarea").each(function(d,c){$(this).attr("style","height: 20em !important")})}if($current_page_full==$_____link_full+"/acl/"||$current_page_full==$_____link_full+"/acl/edit_user.cgi"){$('.ui_grid_table.table-hardcoded .ui_grid_row .ui_grid_cell input[type="checkbox"], .table-hardcoded .col_value input[type="checkbox"]').each(function(d,c){$(this).attr("style","vertical-align: bottom !important")})}if($("body").attr("class")&&$('body[class="custom"]').length||($("body").attr("class")&&$("body").attr("class").search(/custom\d+$/)===0)){$(".panel-body > .ui_grid_table.table-hardcoded").each(function(d,c){$(this).attr("style","margin-top: 3px !important")});$(".panel-body td > .ui_form").each(function(){$(this).attr("style","padding-top: 0 !important")});$(".panel-body > a.ui_link").each(function(d,c){$(this).addClass("btn btn-inverse btn-tiny ui_link_replaced").removeClass("ui_link");$(this).text($(this).text().replace(/\.$/,""));$(this).parent().contents().filter(function(){return this.nodeType==3}).remove();if(($(this).attr("href").indexOf("edit_cmd.cgi?new")===0)){$(this).html(' '+$(this).text())}if(($(this).attr("href").indexOf("edit_file.cgi?new")===0)){$(this).html(' '+$(this).text())}if(($(this).attr("href").indexOf("edit_sql.cgi?new")===0)){$(this).html(' '+$(this).text())}});$.each($('td.td_tag:contains("|")'),function(){$(this).find('a[href^="edit_"]').addClass("ui_link_replaced btn btn-success btn-xxs").css("margin-right","3px").removeClass("ui_link").prepend(' ');$(this).find('a:not([href^="edit_"])').remove();$(this).parents("table").find("thead > tr > th:eq(2)").addClass("pointer-events-none").html("")});$('td.td_tag:contains("|")').contents().filter(function(){return this.nodeType==3}).remove()}f__lnk_t_btn(["/sysinfo.cgi","/virtual-server/edit_newchangelog.cgi","/server-manager/edit_newchangelog.cgi"],"#newfeatures-virtual-server-collapse dt, #newfeatures-server-manager-collapse dt, .table td dt","a","btn btn-link btn-link-bordered btn-xxs margined-left-3 vertical-align-top margined-top-2","fa-eye","|","");f__lnk_t_btn(["/virtual-server/","/virtual-server/index.cgi","/virtual-server/edit_plan.cgi"],"form table tbody td",'a[href*="list_users.cgi?"], a[href*="list_aliases.cgi?"]',"btn btn-transparent btn-transparent-link-force btn-borderless btn-xxs vertical-align-top margined-top-2",0,"(~)"," ~ ","(~..)");f__lnk_t_btn(["/quota/","/quota/index.cgi"],".table tbody td.td_tag",'a[href*="activate.cgi"][href*="&active=3"]',"btn btn-warning btn-xxs vertical-align-top margined-top-2","fa-ban");f__lnk_t_btn(["/quota/","/quota/index.cgi"],".table tbody td.td_tag",'a[href*="activate.cgi"][href*="&active=0"]',"btn btn-success btn-xxs vertical-align-top margined-top-2","fa-check-circle-o");if($('body[class*="status"]').length&&$__source_file=="edit_mon.cgi"||$current_page_full==$_____link_full+"/virtual-server/list_sched.cgi"||$current_page_full==$_____link_full+"/ldap-server/edit_schema.cgi"||$current_page_full==$_____link_full+"/software/list_pack.cgi"||$current_page_full==$_____link_full+"/mailboxes/view_mail.cgi"||$current_page_full==$_____link_full+"/mailbox/view_mail.cgi"||$current_page_full==$_____link_full+"/mailbox/list_folders.cgi"||$current_page_full==$_____link_full+"/phpini/"||$current_page_full==$_____link_full+"/phpini/index.cgi"||$current_page_full==$_____link_full+"/fsdump/"||$current_page_full==$_____link_full+"/fsdump/index.cgi"||$current_page_full==$_____link_full+"/fdisk/"||$current_page_full==$_____link_full+"/fdisk/index.cgi"||$current_page_full==$_____link_full+"/virtualmin-awstats/"||$current_page_full==$_____link_full+"/virtualmin-awstats/index.cgi"||$current_page_full==$_____link_full+"/syslog/"||$current_page_full==$_____link_full+"/syslog/index.cgi"){$.each($('tr td:last-child:contains("|")'),function(){if($current_page_full==$_____link_full+"/virtual-server/list_sched.cgi"){$(this).find('a[href^="backup_form.cgi"]').html($(this).find('a[href^="backup_form.cgi"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-success btn-xxs").removeClass("ui_link").prepend(' ');$(this).find('a[href^="restore_form.cgi"]').html($(this).find('a[href^="restore_form.cgi"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-primary btn-xxs").removeClass("ui_link").prepend(' ');$(this).find('a[href^="backuplog.cgi"]').html($(this).find('a[href^="backuplog.cgi"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-info btn-xxs").removeClass("ui_link").prepend(' ')}if($current_page_full==$_____link_full+"/ldap-server/edit_schema.cgi"){$(this).find('a[href^="view_sfile.cgi"]').html($(this).find('a[href^="view_sfile.cgi"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-success btn-xxs").removeClass("ui_link").prepend(' ');$(this).find('a[href^="edit_sfile.cgi"]').html($(this).find('a[href^="edit_sfile.cgi"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-primary btn-xxs").removeClass("ui_link").prepend(' ')}if($current_page_full==$_____link_full+"/phpini/"||$current_page_full==$_____link_full+"/phpini/index.cgi"){$(this).find('a[href^="list_ini.cgi"]').html($(this).find('a[href^="list_ini.cgi"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-success btn-xxs").removeClass("ui_link").prepend(' ');$(this).find('a[href^="edit_manual.cgi"]').html($(this).find('a[href^="edit_manual.cgi"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-primary btn-xxs").removeClass("ui_link").prepend(' ')}if($current_page_full==$_____link_full+"/fdisk/"||$current_page_full==$_____link_full+"/fdisk/index.cgi"){$(this).find('a[href^="edit_hdparm.cgi"]').html($(this).find('a[href^="edit_hdparm.cgi"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-success btn-xxs").removeClass("heighter-34").removeClass("ui_link");$(this).find('a[href*="smart-status/index.cgi"]').html($(this).find('a[href*="smart-status/index.cgi"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-info btn-xxs").removeClass("heighter-34").removeClass("ui_link");$(this).find('a[href^="blink.cgi"]').html($(this).find('a[href^="blink.cgi"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-warning btn-xxs").removeClass("heighter-34").removeClass("ui_link")}if($current_page_full==$_____link_full+"/mailbox/list_folders.cgi"){$(this).find('a[href^="index.cgi"]').html($(this).find('a[href^="index.cgi"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-success btn-xxs").removeClass("heighter-34").removeClass("ui_link").removeClass("ui_link").prepend(' ');$(this).find('a[href^="edit_auto.cgi"]').html($(this).find('a[href^="edit_auto.cgi"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-info btn-xxs").removeClass("heighter-34").removeClass("ui_link").removeClass("ui_link").prepend(' ');$(this).find('a[href^="copy_form.cgi"]').html($(this).find('a[href^="copy_form.cgi"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-warning btn-xxs").removeClass("heighter-34").removeClass("ui_link").removeClass("ui_link").prepend(' ')}if($current_page_full==$_____link_full+"/mailboxes/view_mail.cgi"||$current_page_full==$_____link_full+"/mailbox/view_mail.cgi"){$(this).find('a[href^="detach.cgi"]:not([href*="&save=1"]):not([target="_blank"])').html($(this).find('a[href^="detach.cgi"]:not([href*="&save=1"]):not([target="_blank"])').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-primary btn-xxs").removeClass("heighter-34").removeClass("ui_link").removeClass("ui_link").prepend(' ');$(this).find('a[href*="detach.cgi"][target="_blank"]').html($(this).find('a[href*="detach.cgi"][target="_blank"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-success btn-xxs").removeClass("heighter-34").removeClass("ui_link").prepend(' ');$(this).find('a[href*="&save=1"]:not([target="_blank"])').html($(this).find('a[href*="&save=1"]:not([target="_blank"])').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-warning btn-xxs").removeClass("heighter-34").removeClass("ui_link").prepend(' ')}if($current_page_full==$_____link_full+"/virtualmin-awstats/"||$current_page_full==$_____link_full+"/virtualmin-awstats/index.cgi"){$(this).find('a[href^="view.cgi"]').html($(this).find('a[href^="view.cgi"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-success btn-xxs").removeClass("heighter-34").removeClass("ui_link").prepend(' ');$(this).find('a[href^="config.cgi"]').html($(this).find('a[href^="config.cgi"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-primary btn-xxs").removeClass("heighter-34").removeClass("ui_link").prepend(' ')}});if($('body[class*="status"]').length&&$__source_file=="edit_mon.cgi"){$('a[href*="edit_mon.cgi?id"]').addClass("ui_link_replaced btn btn-default btn-xxs").removeClass("heighter-34").removeClass("ui_link");$('a[href*="edit_mon.cgi?id"]').last().css("margin-left","-1px");$('tr td:last-child:contains("|")').replaceText(/\|/gi,"")}else{$('tr td:last-child:contains("|")').contents().filter(function(){return this.nodeType==3}).remove()}if($current_page_full==$_____link_full+"/fdisk/"||$current_page_full==$_____link_full+"/fdisk/index.cgi"){$("body").find('a[href^="blink.cgi"]:not(.ui_link_replaced)').html($("body").find('a[href^="blink.cgi"]:not(.ui_link_replaced)').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-warning btn-xxs").removeClass("heighter-34").removeClass("ui_link")}if($current_page_full==$_____link_full+"/fsdump/"||$current_page_full==$_____link_full+"/fsdump/index.cgi"){$.each($("tr td:last-child"),function(){$(this).find('a[href^="backup.cgi"]').html($(this).find('a[href^="backup.cgi"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-success btn-xxs").removeClass("heighter-34").removeClass("ui_link").prepend(' ');$(this).find('a[href^="kill.cgi"]').html($(this).find('a[href^="kill.cgi"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-danger btn-xxs").removeClass("heighter-34").removeClass("ui_link").prepend(' ')})}if($current_page_full==$_____link_full+"/syslog/"||$current_page_full==$_____link_full+"/syslog/index.cgi"){$.each($("tr td:last-child"),function(){$(this).find('a[href*="save_log.cgi"][href*="view=1"]').html($(this).find('a[href*="save_log.cgi"][href*="view=1"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-primary btn-xxs").removeClass("heighter-34").removeClass("ui_link").prepend(' ')})}if($current_page_full==$_____link_full+"/software/list_pack.cgi"){var __btn___str='td a.ui_link[href*="view.cgi"]';$(__btn___str).html(' ').addClass("ui_link_replaced btn btn-default btn-xxs").removeClass("heighter-34").attr("style","margin-top: 2px !important; margin-bottom: 0 !important; margin-right: 15px").removeClass("ui_link").prepend(' ')}}if($current_page_full==$_____link_full+"/fdisk/edit_disk.cgi"){var __delete=[];$.each($(".panel-body > table.table.table-striped tbody tr"),function(a,b){if($(this).find("td:nth-child(3)").find('img[src*="images/use"]').length||$(this).find("td:nth-child(3)").find('img[src*="images/gap"]').length){$(this).find("td:nth-child(3)").remove();__delete.push(a)}});if(!$.isEmptyObject(__delete)){$(".panel-body > table.table.table-striped thead").find("th:nth-child(3)").remove();delete __delete}}if($current_page_full==$_____link_full+"/virtual-server/edit_link.cgi"){$(".table-hardcoded").find('input[name="open"]').parent("td").parent("tr").remove()}if($current_directory==$_____link+"init/"){$('.table.table-striped.table-condensed tr.tr_tag td.td_tag input[type="checkbox"]').each(function(d,c){$(this).attr("style","vertical-align: middle !important")})}if($current_directory==$_____link+"proc/"||$source_path==$_____link+"proc/index.cgi"){if(($current_directory==$_____link+"proc/"&&$__source_file&&$__source_file.indexOf("index_")>-1)||$source_path==$_____link+"proc/index.cgi"){$("a.ui_link + b").addClass("btn").css("margin-left","3px");$("b + a.ui_link").addClass("btn").css("margin-left","3px");if($('.panel-body > b:first-child:contains("Display")').length>0){$(".panel-body > b:first-child").remove()}$(".panel-body > b").addClass("btn btn-success")}$(".panel-body").contents().filter(function(){return this.nodeType==3}).remove();$(".panel-body > a.ui_link").addClass("btn").css("margin-left","3px")}if($source_path==$_____link+"proc/edit_proc.cgi"){$("#signal").attr("style","margin-bottom: 0 !important;")}if($current_directory==$_____link+"procmail/"){$(".panel-body p:first-child").next("p").contents().filter(function(){return this.nodeType==3}).remove();$(".panel-body p:last-child").prev("a.ui_link").remove()}if($current_directory==$_____link+"cron/"||$source_path==$_____link+"cron/index.cgi"){$('.panel-body form.ui_form[action="index.cgi"]').next("script").next("b").next("p").contents().filter(function(){return this.nodeType==3}).remove()}if($current_directory==$_____link+"filter/"){$(".panel-body > b").next("p").contents().filter(function(){return this.nodeType==3}).remove()}if($current_directory==$_____link+"dhcpd/"){$(".panel-body > p").contents().filter(function(){return this.nodeType==3}).remove()}if($current_directory==$_____link+"htaccess-htpasswd/"||$current_directory==$_____link+"forward/"){$("td table.table-hardcoded.table.table-subtable").removeClass("table-striped")}$(".ui_buttons_hr > td > table.table-hardcoded > tbody > tr > td[nowrap]").each(function(){$(this).parents("table").attr("style","margin-bottom: 15px !important")});$("textarea.form-control.ui_textarea").next('button[type="button"].btn-default').each(function(){$(this).prev("textarea").attr("style","margin-bottom: 1px !important");$(this).attr("style","width:100% !important; padding-top: 0; height:28px !important")});$("textarea.form-control.ui_textarea").next("br").next('button[type="button"].btn-default').each(function(){$(this).prev("textarea").attr("style","margin-bottom: 1px !important");$(this).attr("style","width:100% !important; padding-top: 0; height:28px !important")});$(".table-hardcoded > tbody > tr > td > input.form-control.ui_textbox").next('button[type="button"].ui_button').each(function(){$(this).attr("style","margin-top: 2px !important")});$(".table-hardcoded > tbody > tr > td.col_label b a, .ui_table_row td a").each(function(d,c){if(!$(this).attr("href")){$(this).attr("style","color: #333; text-decoration: none; cursor:default")}});$('input[name="all_weekdays"], .ui_grid_cell > table.table-condensed, table.table-hardcoded table.table-condensed, select[multiple][name="days"]').each(function(){$(this).parent("td").attr("style","vertical-align: top !important; padding-left:2px; padding-right:2px;")});$('input[type="submit"]').each(function(){$(this).addClass("btn btn-default")});$("table tr th").each(function(){if($(this).text()){$(this).attr("style","width: auto")}});$("table thead th:not(.table-title)").each(function(){$(this).css("border-top","none");$(this).css("border-bottom","none")});if($("body").attr("class")&&$("body").attr("class").indexOf($g__o__f_m)>-1){!$("body").hasClass("file-manager")&&$("body").addClass("file-manager");$("#headln2l").prepend(" ')}if(settings_right_iconize_header_links){$.each($(".panel-heading > table.header > tbody > tr > td > a"),function(){if($(this).attr("href")&&$(this).attr("href").indexOf("config.cgi")>-1||$(this).attr("href").indexOf("man/search.cgi")>-1||$(this).attr("href").indexOf("/index.cgi")>-1||$(this).attr("href")==$__current_directory||($(this).attr("href").indexOf("index.cgi")>-1&&$current_directory==$_____link+"openvpn/")||($(this).attr("href").indexOf("index.cgi?")>-1&&$current_directory==$_____link+"spam/")||$(this).attr("href").indexOf("restart_zone.cgi")>-1||$(this).attr("href").indexOf("restart.cgi")>-1||$(this).attr("href").indexOf("apply.cgi")>-1||$(this).attr("href").indexOf("start.cgi")>-1||$(this).attr("href").indexOf("stop.cgi")>-1||($(this).attr("href")=="//"&&($source_path==$_____link+"settings-editor_read.cgi"||$source_path==$_____link+"settings-upload.cgi"))||$(this).attr("href").indexOf("delete_")>-1||$(this).attr("href").indexOf("list_mail.cgi")>-1||$(this).attr("href").indexOf("/virtual-")>-1||$(this).attr("href").indexOf("/virtualmin-")>-1||$(this).attr("href").indexOf("/server-")>-1||$(this).attr("href").indexOf("help.cgi")>-1){$.each($(this).next("br"),function(){$(this).remove()});$.each($(this).prev("br"),function(){$(this).remove()});if($(this).attr("href").indexOf("help.cgi")>-1){var d=$(this),c=$(this).parent("td");$(this).remove();c.append(d)}if($(this).attr("href").indexOf("/index.cgi")>-1||$(this).attr("href")==$__current_directory||$(this).attr("href").indexOf("/virtual-")>-1||$(this).attr("href").indexOf("/virtualmin-")>-1||$(this).attr("href").indexOf("/server-")>-1){$iconized_class="fa-arrow-left";$(this).data("title","").data("back",1)}else{if($(this).attr("href")=="//"&&($source_path==$_____link+"settings-editor_read.cgi"||$source_path==$_____link+"settings-upload.cgi")){$iconized_class="fa-arrow-left";$(this).attr("href","/webmin/edit_themes.cgi").data("title","").data("back",1)}else{if($(this).attr("href").indexOf("config.cgi")>-1){$iconized_class="fa-cog";$(this).data("title","")}else{if($(this).attr("href").indexOf("restart.cgi")>-1||$(this).attr("href").indexOf("apply.cgi")>-1){$iconized_class="fa-refresh"}else{if($(this).attr("href").indexOf("restart_zone.cgi")>-1){$iconized_class="fa-retweet"}else{if($(this).attr("href").indexOf("start.cgi")>-1){$iconized_class="fa-play"}else{if($(this).attr("href").indexOf("stop.cgi")>-1){$iconized_class="fa-square"}else{if($(this).attr("href").indexOf("man/search.cgi")>-1){$iconized_class="fa-search"}else{if($(this).attr("href").indexOf("delete_")>-1){$iconized_class="fa-trash-o"}else{if($(this).attr("href").indexOf("list_mail.cgi")>-1){$iconized_class="fa-inbox"}else{if($(this).attr("href").indexOf("index.cgi")>-1&&$current_directory==$_____link+"openvpn/"){$iconized_class="fa-cogs"}else{if($(this).attr("href").indexOf("index.cgi?")>-1&&$current_directory==$_____link+"spam/"){$iconized_class="fa-arrow-left";$(this).data("back",1)}}}}}}}}}}}}var e=$(this).attr("href").indexOf("help.cgi")>-1;if(e){$iconized_class="fa-question-circle";$(this).data("title","")}$(this).data("toggle","tooltip").data("title",upperFirstLowerAll(e?lang("theme_xhred_global_help"):($(this).data("back")===1?(!is__m($g__o__f_m)?lang("theme_xhred_global_prev_page"):""):$(this).text()))).attr("data-container","body").addClass("btn btn-link text-lighter").removeClass("ui_link").append(' ');$(this).contents().filter(function(){return this.nodeType==3}).remove();$(this).tooltip({container:"body",placement:"auto top"});if((($current_directory==$_____link+"apache/"||$current_directory==$_____link+"proftpd/")&&($(this).attr("href").indexOf("restart.cgi")>-1||$(this).attr("href").indexOf("apply.cgi")>-1))||$(this).parent("td").find("a")&&$(this).parent("td").find("a").length==1||$(this).attr("href").indexOf("man/search.cgi")>-1||$(this).attr("href").indexOf("config.cgi")>-1||$(this).attr("href").indexOf("/index.cgi")>-1||$(this).attr("href").indexOf("/index.cgi")>-1||$(this).attr("href").indexOf("/virtual-")>-1||$(this).attr("href").indexOf("/virtualmin-")>-1||$(this).attr("href").indexOf("/server-")>-1){if(($(this).attr("href").indexOf("/index.cgi")>-1||$(this).attr("href").indexOf("config.cgi")>-1)&&$("body").attr("class")&&$("body").attr("class").indexOf($g__o__f_m)>-1){$(this).attr("style","margin-right: 0 !important; padding: 6px 12px")}else{$(this).attr("style","margin-right: 0 !important")}}}$("#headln2l").removeClass("invisible")});$("body").on("click","#headln2l a",function(a){if(unbuffered_header()){return}if($(this).find(".fa-arrow-left").length){a.preventDefault();a.stopPropagation();window.history.back()}})}if($source_path==$_____link+"settings-editor_read.cgi"||$source_path==$_____link+"settings-upload.cgi"){if(t__wi_p.$('link[href*="/unauthenticated/css/styles.css"]').length){t__wi_p.$('link[href*="/unauthenticated/css/styles.css"]').attr("href",t__wi_p.$('link[href*="/unauthenticated/css/styles.css"]').attr("href").split("?")[0]+"?"+(new Date()).getTime())}if(t__wi_p.$('script[src*="/unauthenticated/js/scripts.js"]').length){t__wi_p.$('script[src*="/unauthenticated/js/scripts.js"]').attr("src",t__wi_p.$('script[src*="/unauthenticated/js/scripts.js"]').attr("src").split("?")[0]+"?"+(new Date()).getTime())}$("body").on("click",'a[href="/settings-editor_read.cgi"], a[href="/settings-upload.cgi"]',function(){});setTimeout(function(){$(".file-editor-saved").remove();$(".file-editor-save").removeClass("hidden")},2400);if($__relative_url=="/settings-upload.cgi?saved=1"){$.each($(".file_chooser_button_preview:first"),function(){if(!$(this).hasClass("disabled")){if(t__wi_p.$("aside + .__logo").length){t__wi_p.$('.__logo img[src*="/images/logo.png"]').attr("src",t__wi_p.$('.__logo img[src*="/images/logo.png"]').attr("src").split("?")[0]+"?"+(new Date()).getTime());t__wi_p.$("aside + .__logo").attr("style","transform: translate(0px, 0px);");setTimeout(function(){t__wi_p.$(".__logo").transition({y:"-140px"},1200)},400)}else{t__wi_p.$("aside").after(' ');setTimeout(function(){t__wi_p.$(".__logo").transition({y:"-140px"},1200)},400)}}else{t__wi_p.$("aside + .__logo").remove()}})}$("body").on("click",".page_footer_ajax_submit:not(.disabled):not(.file-editor-saved)",function(){f__mgk_sp($(this),[1.5,-28,"small",false])});setTimeout(function(){if($source_path==$_____link+"settings-editor_read.cgi"){$(".end_submits").parent("td").after('').parents(".ui_form_end_buttons").css("width","100%")}$(".btn-group.end_submits").css("margin-left","2px")},100)}if($source_path==$_____link+"settings-upload.cgi"){$(function(){$_authenticated_logo=$('input[name="authenticated_logo"]:checked').val();$_unauthenticated_logo=$('input[name="unauthenticated_logo"]:checked').val();function c(a){typeof a=="undefined"?a=$('input[name="authenticated_logo"]:checked'):false;var b=["authenticated_logo_file"];if(a.val()!="1"){$.each(b,function(e,h){$('input[name="'+h+'"]').parents(".file-input-wrapper").addClass("disabled").prev(".file_chooser_button_preview").addClass("disabled")})}else{$.each(b,function(e,h){$('input[name="'+h+'"]').parents(".file-input-wrapper").removeClass("disabled");if($_authenticated_logo=="1"){$('input[name="'+h+'"]').parents(".file-input-wrapper").prev(".file_chooser_button_preview").removeClass("disabled")}})}}c();$('input[name="authenticated_logo"]').on("change",function(){c($(this))});function d(a){typeof a=="undefined"?a=$('input[name="unauthenticated_logo"]:checked'):false;var b=["unauthenticated_logo_file"];if(a.val()!="1"){$.each(b,function(e,h){$('input[name="'+h+'"]').parents(".file-input-wrapper").addClass("disabled").prev(".file_chooser_button_preview").addClass("disabled")})}else{$.each(b,function(e,h){$('input[name="'+h+'"]').parents(".file-input-wrapper").removeClass("disabled");if($_unauthenticated_logo=="1"){$('input[name="'+h+'"]').parents(".file-input-wrapper").prev(".file_chooser_button_preview").removeClass("disabled")}})}}d();$('input[name="unauthenticated_logo"]').on("change",function(){d($(this))})});$(".file_chooser_button_preview").on("mouseout",function(b){$(this).css("background","white")}).on("mouseover",function(b){$(this).css("background","#eee")});$.each($(".file_chooser_button_preview"),function(){if($(this).data("image")){$(this).popover({trigger:"hover",html:true,content:function(){return" "}})}});var $__webmin_path=$('a[href^="/settings-editor_read.cgi?file=%path%"]');$__webmin_path.attr("href",$__webmin_path.attr("href").replace("%path%",$("#path").val()))}$.each($('td.ui_grid_cell:contains("|")'),function(){$(this).contents().filter(function(){return this.nodeType==3}).remove()});$('a[href*="help.cgi"][onclick], a[href*="showpass.cgi?"][onclick]').attr("onclick","").unbind("click").addClass("help_popup");$(".help_popup").each(function(){$(this).attr("style","color: #333; text-decoration: none; cursor:help")});function module_help_focuser(a){$.each($(".module-help"),function(b,c){if(!a.is($(this))){$(this).css({"z-index":(214748364-b),opacity:0.85})}else{$(this).css({"z-index":(214748364+b),opacity:1})}})}$("body").on("click",function(a){if($(a.target).is(".close-popover-trigger")){$(a.target).parent().parent().popover("hide")}$(".showpass-popover").each(function(){if(!$(this).is(a.target)&&$(this).has(a.target).length===0&&$(".popover").has(a.target).length===0){$(this).popover("hide")}})});$(".help_popup").on("click",function(f){f.stopPropagation();f.preventDefault();var h=$(this),g=$(this).attr("href"),e=$(this).parents("td");e.append('
');t__wi_p.$___ajax_requested_url="help.cgi";$.ajax({type:"POST",url:h.attr("href"),data:false,dataType:"text",success:function(b){e.find("._tmp_help_content").html(b.replace(/<(script|link|meta)\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/(script|link|meta)>/gi,""));$help_title=e.find("._tmp_help_content .ui_subheading").first().text();$help_body=e.find("._tmp_help_content title").remove();$help_body=e.find("._tmp_help_content h3.ui_subheading").remove();$help_body=e.find("._tmp_help_content h3").addClass("h3_help");$help_body=e.find("._tmp_help_content hr").remove();var a=e.find("._tmp_help_content a");if(typeof a.attr("href")!="undefined"){$.each(a,function(){var i=$(this).attr("href");if(i.startsWith("http")){$help_body=e.find("._tmp_help_content a").attr("target","_blank").css("text-decoration","none").css("font-style","italic")}else{$("body").undelegate('a[href="'+i+'"]',"click");$("body").one("click",'a[href="'+i+'"]',function(k){if($(k.target).is($('a[href="'+i+'"]'))){k.preventDefault();var j=(removeLastDirectoryPartOf(h.attr("href"))+"/"+i);$('a[href="'+g+'"].help_popup').attr("data-initial",g).attr("data-substituted",j);$('a[href="'+g+'"].help_popup').attr("href",j);h.trigger("click")}})}})}$help_body=e.find("._tmp_help_content").html();e.find("._tmp_help_content").remove();var d='× ',c=(h.attr("href").indexOf("showpass.cgi")>-1);if(c){d=""}h.popover({html:true,container:"body",template:'',title:function(){return(d+$help_title)},content:function(){return $help_body},placement:"auto right"});h.popover("show");h.on("shown.bs.popover",function(){if($help_body.indexOf("")>-1){$(".popover").animate({"max-width":"540px"},300)}$("body").find(".popover:visible").addClass("module-help");$('body[class*="'+$g__o__f_m+'"]').find(".popover:visible").addClass("file-manager-help");if($current_page_full&&$current_page_full.indexOf("/webmin/edit_themes.cgi")>-1&&t__wi_p.location.search!="?updating-webmin-theme"){$("body").find(".popover:visible").addClass("at-help");var n=$(".link-theme").text(),k=$(".link-theme2").text(),j=$(".link-changelog").text(),i=$(".link-me").text(),o=$(".link-donation").text(),m=$(".link-youtube").text(),l=$(".link-github").text();$(".link-theme").replaceWith(''+n+" ");$(".link-theme2").replaceWith(''+k+" ");$(".link-changelog").replaceWith(' '+j+" ");$(".link-changelog").detach().appendTo(".at-help .popover-title");$(".link-me").replaceWith(''+i+" ");$(".link-donation").replaceWith(' '+o+" ");$(".link-youtube").replaceWith(' '+m+" ");$(".link-github").replaceWith(' '+l+" ")}setTimeout(function(){$.each($(".module-help"),function(){if(!$(this).is(h.next(".module-help"))){($(".module-help").length>1)?$(this).css("opacity",0.85):$(this).css("opacity",1)}else{$(this).animate({opacity:1},600);module_help_focuser($(this))}})},100)});h.on("hidden.bs.popover",function(){$("body").undelegate(":not(tt)","click");if(h.attr("data-initial")){h.attr("href",h.attr("data-initial"));h.removeAttr("data-initial").removeAttr("data-substituted")}})}})});$("body").on("click",".module-help",function(a){module_help_focuser($(this))});if($current_directory==$_____link+"fdisk/"||$current_directory==$_____link+"postfix/"||$current_directory==$_____link+"pam/"||$current_directory==$_____link+"syslog/"){$("p > a[href], table + a[href], div.panel-body > a.ui_link").each(function(d,c){$(this).text($(this).text().replace(/\.$/,""))})}$('.panel-body > form > p > a.ui_link, .panel-body > table.table + a.ui_link, .panel-body > p > a:not([href*="config.cgi?bacula-backup"]), body[data-current-product="usermin"] div.panel-body > p > a, div.panel-body > a[href^="edit_"]:not([href^="edit_user.cgi?user="], [href^="edit_group.cgi?group="]), .ui_form > a, .ui_grid_cell > :not(input):not(.acheckbox):not(.aradio):not(label) + a.ui_link:not([href^="edit_acl.cgi"], [href^="edit_rpc.cgi"], [href^="edit_user.cgi?user="], [href^="edit_group.cgi?group="]), .ui_grid_cell > a.select_all, .ui_grid_cell > a.select_invert, .ui_grid_cell > :not(input):not(.acheckbox):not(.aradio):not(label) + a[href*=".cgi"]:not([href^="edit_acl.cgi"], [href^="edit_rpc.cgi"], [href^="edit_user.cgi?user="], [href^="edit_group.cgi?group="]), .ui_grid_cell > a[href*=".cgi"]:first-child:not([href^="edit_rpc.cgi"],[href^="edit_nuser.cgi"],[href*="edit_user.cgi?idx"]), .tab-pane > p > a, .tab-pane > a.ui_link, .tab-pane > .table-condensed > a.ui_link, .tab-pane > a, .panel-body > p > a.ui_link, a.select_all, a.select_invert, form[action="delete.cgi"] > table table.ui_grid_table + a').each(function(){if(is__mf("samba","edit_epass.cgi")||(is__m("acl")&&($(this).is('[href^="edit_user.cgi?user="]')||$(this).parent("td.ui_grid_cell").length)&&!$(this).parents("b").length)){return}if(!is__mf("virtual-server","history.cgi")&&!is__mf("server-manager","one_history.cgi")&&$current_directory!=$_____link+"passwd/"&&$(this).text()&&$current_page_full!=$_____link_full+"/mailboxes/"&&$current_page_full!=$_____link_full+"/mailboxes/index.cgi"&&$current_page_full!=$_____link_full+"/usermin/list_configs.cgi"&&!$(this).hasClass("help_popup")){$(this).addClass("btn btn-inverse btn-tiny ui_link_replaced");$(this).text($(this).text().replace(/\.$/,""));var b=$(this).parent().contents().filter(function(){return this.nodeType==3});if(b){$.each(b,function(){if($(this).text()&&$(this).text().length<=3){$(this).remove()}})}if($(this).hasClass("select_all")){$(this).html(' '+$(this).text())}if($(this).hasClass("select_invert")){$(this).html(' '+$(this).text())}if($(this).attr("href")&&(($(this).attr("href").indexOf("edit")===0&&$(this).attr("href").indexOf("edit_allow")!==0)||$(this).attr("href").indexOf("master_form")===0||$(this).attr("href").indexOf("slave_form")===0||$(this).attr("href").indexOf("stub_form")===0||$(this).attr("href").indexOf("forward_form")===0||$(this).attr("href").indexOf("delegation_form")===0||$(this).attr("href").indexOf("mass_form")===0||$(this).attr("href").indexOf("newdb_form")===0)){$(this).html(' '+$(this).text())}else{if($(this).attr("href")&&$(this).attr("href").indexOf("edit_allow")===0){$(this).html(' '+$(this).text())}else{if($(this).attr("href")&&$(this).attr("href").indexOf("mass_ucreate")===0){$(this).html(' '+$(this).text())}}}if($current_directory==$_____link+"custom/"){if(($(this).attr("href")&&$(this).attr("href").indexOf("edit_cmd.cgi?new")===0)){$(this).html(' '+$(this).text())}if(($(this).attr("href")&&$(this).attr("href").indexOf("edit_file.cgi?new")===0)){$(this).html(' '+$(this).text())}if(($(this).attr("href")&&$(this).attr("href").indexOf("edit_sql.cgi?new")===0)){$(this).html(' '+$(this).text())}}if(!$(this).attr("href")){$(this).remove()}}});$.each($(".btn-tiny.ui_link_replaced"),function(){if($(this).prev('[class="table table-striped table-condensed"]').length&&$(this).next(':not(".ui_link_replaced")').length){$(this).removeClass("btn-tiny ui_link_replaced").addClass("ui_link_re-replaced")}});$("a.ui_link_replaced").each(function(){if($(this).prev().is("b")){$(this).prev("b").addClass("btn btn-success btn-tiny")}if($(this).next().is("b")){$(this).next("b").addClass("btn btn-success btn-tiny")}});$("a.ui_link_replaced").each(function(){if($(this).next().is("a.ui_link_replaced")&&!$(this).hasClass("select_all")&&!$(this).hasClass("select_invert")){$(this).next("a.ui_link_replaced").not(".btn-xxs");return false}else{if($(this).prev().is("a.ui_link_replaced")&&!$(this).hasClass("select_all")&&!$(this).hasClass("select_invert")){$(this).prev("a.ui_link_replaced").not(".btn-xxs");return false}}});if($current_directory==$_____link+"fetchmail/"){$("a.ui_link").each(function(){$(this).addClass("btn btn-inverse btn-tiny ui_link_replaced").css("margin-bottom","10px").css("margin-top","4px");$(this).text($(this).text().replace(/\.$/,""));$(this).parent().contents().filter(function(){return this.nodeType==3}).remove()})}$('select.ui_select[name="days"]').each(function(){$(this).parent("td").attr("style","vertical-align: top !important")});if($current_directory==$_____link+"mailboxes/"||$current_page_full==$_____link_full+"/mailboxes/index.cgi"||$current_directory==$_____link+"mailbox/"||$current_page_full==$_____link_full+"/postfix/view_mailq.cgi"){if(!$__source_file){$(".ui_form_end_submit").css("margin-top","0");$("input#user").addClass("heighter-34 vertical-align-top")}else{if($__source_file=="list_mail.cgi"){$('input:not([type="checkbox"]), .ui_form_end_submit, select').addClass("heighter-34").removeClass("heighter-28").css("margin-bottom","-1px")}}$("body").find("form").removeAttr("onsubmit");$header_tables=$("body").find('input[name="from"]').parents(".tab-pane").parent("td");$header_tables.children("table").hide();$.each($header_tables.find("input, textarea, select"),function(){if(!$(this).hasClass("ui_select")&&!$(this).attr("onclick")&&$(this).attr("type")!="checkbox"&&$(this).attr("type")!="submit"){$(this).attr("style","width: 60%").addClass("inline-block")}if($(this).attr("onclick")){$(this).addClass("inline-block")}});t___wi.onbeforeunload=null;if($("body").find('input.ui_hidden[name="html_edit"]').val()==1){__init_ck_(["body",2,false,"edit_web"])}$("body").find('input[name="from"]').parents(".tab-pane").prev("table").remove();$("body").find('input[name="from"]').parents(".tab-pane ").parent("td").find("div, table").each(function(d,c){$(this).find(".col_label").css("width","20%");$(this).find('input[name="subject"]').parent("td").prev("td").find("b").attr("style","font-size: 13px !important");$(this).find('input[name="subject"]').parents("table").show();$(this).find('input[name="subject"]').parent("td").find(".submitter").remove()});$editor_mode_link_container=$("body").find('textarea[id="body"]').parents("table").find("thead > tr > th:last-child");$editor_mode_link=$editor_mode_link_container.find("a").addClass("editor_mode_link");$editor_mode_link_container.parent("tr").find("th:first-child").append($editor_mode_link);$editor_mode_link_container.remove();$editor_mode_link_button=$("body").find('textarea[id="body"]').parents("table").find(".editor_mode_link");$editor_mode_link_button_state=$editor_mode_link_button.attr("href")?$editor_mode_link_button.attr("href").indexOf("html=0"):false;$editor_mode_link_button.attr("title",$editor_mode_link_button.text()).addClass("editor_mode_link_button pull-right btn btn-sm "+($editor_mode_link_button_state==-1?"btn-success":"btn-primary")).html(' ');$("body").find('textarea[id="body"]').parents("table").find("thead > tr > th").find("b").css("padding-left","45px");$(".editor_mode_link_button").tooltip();$fileinput_container=$("body").find('a[onclick="return add_ss_attachment()"]');$fileinput_container.parent("td").contents().filter(function(){return this.nodeType==3}).remove();$fileinput_container.remove();$fileinput_add_another_attachment=$("body").find('a[onclick="return add_attachment()"]');$fileinput_add_another_attachment.addClass("btn btn-default");$fileinput_add_another_attachment.text($fileinput_add_another_attachment.text().replace(/\.$/,""));if($current_page_full.indexOf("view_mail.cgi")>-1||$current_page_full.indexOf("view_mailq.cgi")>-1){$table_title_header_container=$(".ui_form").find("div.table-responsive").first().find(".table-title");$table_title_links_container=$table_title_header_container.next();$table_title_links_container.contents().filter(function(){return this.nodeType==3}).remove();$table_title_links_container.find("a").addClass("table_title_links pull-right btn btn-info btn-tiny");$table_title_links=$table_title_links_container.html();$table_title_header_container.append($table_title_links);$table_title_links_container.remove();$table_title_header_container_text_padding=35;$(".table-title > a.table_title_links").each(function(){$table_title_header_container_text_padding=($current_page_full==$_____link_full+"/postfix/view_mailq.cgi"?120:235)});$(".table_title_links_container a").each(function(){$table_title_header_container_text_padding=$table_title_header_container_text_padding+$(this).width()});$table_title_header_container.find("b").css("padding-left",$table_title_header_container_text_padding);$table_title_second_container=$(".ui_form").find("div.table-responsive").first().next("div.table-responsive").find("table:first-child");$table_title_header_container=$(".ui_form").find("div.table-responsive").first().next("div.table-responsive").find("th:first-child");$table_title_links_container=$(".ui_form").find("div.table-responsive").first().next("div.table-responsive").find("th:last-child");if($(".ui_form").find("div.table-responsive").first().next("div.table-responsive").find("th").length==2){$table_title_links_container.remove()}else{}$table_title_links_container.find("a").addClass("table_title_links pull-right btn btn-tiny");if($table_title_links_container.find("a").attr("href")&&$table_title_links_container.find("a").attr("href").indexOf("body=1")>-1){$table_title_links_container.find("a").addClass("btn-info")}else{$table_title_links_container.find("a").addClass("btn-warning")}$table_title_links=$table_title_links_container.html();$table_title_header_container.append($table_title_links);$table_title_header_container_text_padding=10;$table_title_header_container.find("a").each(function(){$table_title_header_container_text_padding=$table_title_header_container_text_padding+$(this).width()});setTimeout(function(){if($(".ui_form").find("div.table-responsive").first().find("table:first-child").outerWidth()!=$(".ui_form").find("div.table-responsive").first().next("div.table-responsive").find("table:first-child").outerWidth()){var b=parseInt($(".ui_form").find("div.table-responsive").first().find("table:first-child").width()/2);$table_title_second_container.find(".table-title").addClass("left").find("b").css("padding-left",b-175);$table_title_second_container.find(".pull-right").removeClass("pull-right").addClass("pull-left")}$.each($table_title_second_container.find("table"),function(){$(this).removeClass().addClass("clear-formatting");$.each($(this).find("td.col_value"),function(){$(this).css("background-color","white")})})},30);$table_title_header_container.find("b").css("padding-left",$table_title_header_container_text_padding);if($table_title_header_container.find("b")&&$table_title_header_container.find("b").length>1){if($table_title_header_container.find("b:first-child").text()==$table_title_header_container.find("b:last-child").text()){$table_title_header_container.find("b:last-child").remove()}}}$("td > a").on("click",function(){if($(this).attr("onclick")=="return add_attachment()"){}$("input[type=file]").each(function(){if(!$(this).parent("a").hasClass("file-input-wrapper")){$(this).bootstrapFileInput()}})});if(settings_mailbox_slash_delimiter){$("select.ui_select[name] > option").each(function(d,c){$(c).text($(c).text().replace(/\./g,"/").replace(/\/\//g,"/"))})}$.each($('table td[align="right"], table td[align="left"]'),function(d,c){$(this).attr("style","border: 0 !important;");$(this).parents("tbody").attr("style","border: 0 !important;");$(this).parents("table.table-hardcoded.table.table-striped.table-condensed.table-subtable").removeClass("table-hardcoded table table-striped table-condensed table-subtable")});$.each($("div.table-responsive > table tbody tr td > table.table-hardcoded"),function(d,c){$(this).find("tr > td.col_label > b").removeAttr("style");$(this).removeClass("table table-condensed")});$.each($("div.table-responsive > table tbody tr td > div.tab-pane"),function(d,c){$(this).find("table").removeClass("table");$(this).parents("div.table-responsive").find("table").removeClass("table-striped table-subtable")});$.each($('div.table-responsive > table tbody tr td > div.tab-pane .col_value > input[type="button"][onclick^="ifield"]'),function(d,c){$(this).attr("style","margin-left: 0; margin-bottom: 3px !important")})}$.each($(".barchart"),function(){$(this).find("img").attr("height",4)});$('#extended_sysinfo div[aria-labelledby^="updates-"] div.panel-body div.table-responsive table.table.table-striped.table-condensed').next("table.ui_form_end_buttons").css("margin-top","10px");$('#extended_sysinfo div[aria-labelledby^="updates-"] div.panel-body div.table-responsive table.table.table-striped.table-condensed').next("table.ui_form_end_buttons").css("margin-top","10px").prev("table.table-condensed").prev("table.table.table-striped").addClass("invisible");$("a").each(function(){if(!$(this).attr("href")){$(this).addClass("no_effect")}});if($current_page_full==$_____link_full+"/virtual-server/domain_form.cgi"||$current_page_full==$_____link_full+"/server-manager/list_images.cgi"){$(".panel-body > a").each(function(){$(this).addClass("btn btn-inverse btn-tiny ui_link_replaced").removeClass("ui_link");$(this).text($(this).text().replace(/\.$/,""))});$.each($('.panel-body:contains("|")'),function(){$(this).contents().filter(function(){return this.nodeType==3}).wrap(' ')});$.each($(".btn-automated"),function(){if($(this).text().length<4){$(this).remove()}else{$(this).text($(this).text().replace("|","").replace("|","").replace(/(?:\r\n|\r|\n)/g,""))}});$(".panel-body > b").css("margin-right","7px");if($current_page_full==$_____link_full+"/virtual-server/domain_form.cgi"){$.each($(".btn-automated, .ui_link_replaced"),function(c,d){if(c==0){$(this).html(' '+$(this).text())}if(c==1){$(this).html(' '+$(this).text())}if(c==2){$(this).html(' '+$(this).text())}if(c==3){$(this).html(' '+$(this).text())}})}}if($current_page_full==$_____link_full+"/server-manager/edit_serv.cgi"){setTimeout(function(){$('.opener_container .table-hardcoded .col_value a[href^="edit_serv.cgi"]').each(function(){$(this).addClass("btn btn-inverse btn-xxs ui_link_replaced margined-right--2").removeClass("ui_link").attr("style","margin-top: 0 !important");$(this).text($(this).text().replace(/\.$/,""))});$.each($('.opener_container .table-hardcoded .col_value:contains("|")'),function(){if($(this).find('a[href^="edit_serv.cgi"]').length){$(this).contents().filter(function(){return this.nodeType==3}).wrap(' ')}$.each($(".btn-automated"),function(){if($(this).text().length<4){$(this).remove()}else{$(this).text($(this).text().replace("|","").replace("|","").replace(/(?:\r\n|\r|\n)/g,""))}})})},20)}if(settings_sysinfo_easypie_charts&&$current_page_full==$_____link_full+"/sysinfo.cgi"){var isNR=((__isNR||__isNM)?1:0);$("body").find(".page.__sytem_information").find(".piechart").easyPieChart({barColor:function(b){return(b<50?(isNR?"#269373":"#5cb85c"):b<85?(isNR?"#c38d40":"#f0ad4e"):"#cb3935")},trackColor:(isNR?"#3b424b":"#f8f8f8"),scaleColor:(isNR?"#3b424b":"#dfe0e0"),size:settings_sysinfo_easypie_charts_size,scaleLength:settings_sysinfo_easypie_charts_scale,trackWidth:settings_sysinfo_easypie_charts_width,lineWidth:0,lineCap:"square",onStep:function(f,d,e){$(this.el).find(".percent").text(Math.round(e))}})}$.each($("input:not(.ui_upload)"),function(){if($(this).css("height")=="28px"){$(this).prev("input").addClass("heighter-28")}});$.each($("select"),function(){if($(this).next("input").css("height")=="34px"){$(this).addClass("heighter-34")}});$.each($(".ui_buttons_row input, .ui_buttons_row select"),function(){$(this).addClass("heighter-34")});if(is__mf("gnupg","list_keys.cgi")){$('input[id="id"]').addClass("heighter-34")}$.each($("tr > .ui_form"),function(){if($(this).next().next("td").find("input.submitter")){$(this).next().next("td").find("input.submitter").addClass("heighter-34")}});$.each($("input.heighter-34").next(".file_chooser_button"),function(){$(this).addClass("heighter-34");$(this).find(".fa.fa-files-o").css("margin-top","0").addClass("vertical-align-middle")});setTimeout(function(){$.each($("select"),function(){if($(this).next("input").outerHeight()==34||$(this).prev("input").outerHeight()==34){$(this).addClass("heighter-34").removeClass("heighter-28")}else{if($(this).next("input").outerHeight()==28||$(this).prev("input").outerHeight()==28){$(this).addClass("heighter-28").removeClass("heighter-34")}}})},1);if(t__wi_p.$('iframe[name="page"]').contents().find('iframe:not([name="page"])').length){var $this=t__wi_p.$('iframe[name="page"]').contents().find('iframe:not([name="page"])');$this.on("load",function(){$this.contents().find("#term").css("width","99.3%").css("height","576px").css("margin-top","4px")});$(this).next("br").remove().next('input[type="button"]').remove();$(this).next('input[type="button"]').remove();$(this).next("p").remove()}$.each($(".file_chooser_button"),function(){if($(this).prev("input").attr("style")&&$(this).prev("input").attr("style").indexOf("max-width: 100%")>-1){$(this).prev("input").css("max-width","93%")}});if($source_path==$_____link+"sysinfo.cgi"&&settings_sysinfo_link_mini==true){t__wi_p.$(".navigation > li:not('.has-sub')").removeClass("sub_active").find("span.current-large").remove()}$.each($('input[value="..."], input[value=" ..."], input[value=" ..."], input[value="... "], input[value="... "], input[value=" ... "], input[value=" ... "]'),function(){$(this).after(' ');$(this).attr("value","")});$.each($(".file_chooser_button"),function(){$(this).prev("input").css("margin-top","2px").css("margin-bottom","2px")});$.each($(".file_chooser_button_attached"),function(){$(this).prev('input[type="button"]').prev("input").css("margin-top","2px").css("margin-bottom","2px");if(!$(this).parents(".ui_buttons_label").length&&!$(this).parents(".table-subtable").length){$(this).css("margin-top","11px")}});$.each($(".ui_form > .file_chooser_button_attached"),function(){if(($(this).prev(".heighter-34")&&$(this).prev(".heighter-34").length)||($(this).next(".heighter-34")&&$(this).next(".heighter-34").length)){$(this).css("margin-top","16px");$(this).prev("input[onclick]").css("width","40px")}});$.each($('.ui_form[action="init_cache.cgi"] > .file_chooser_button_attached'),function(){if(($(this).prev(".heighter-34")&&$(this).prev(".heighter-34").length)||($(this).next(".heighter-34")&&$(this).next(".heighter-34").length)){$(this).css("margin-top","14px")}});$.each($(".col_value > .file_chooser_button_attached"),function(){$(this).prev("input[onclick]").css("width","40px").css("margin-left","0")});$("a.ui_link, .btn").each(function(){if($(this).text().substr(-1)=="."){$(this).text($(this).text().substr(0,$(this).text().length-1))}if($(this).text().substr(-1)=="."){$(this).text($(this).text().substr(0,$(this).text().length-1))}if($(this).text().substr(-1)=="."){$(this).text($(this).text().substr(0,$(this).text().length-1))}});if($current_page_full==$_____link_full+"/virtualmin-mailman/"||$current_page_full==$_____link_full+"/virtualmin-mailman/index.cgi"){$("input[name^=reset_]").addClass("heighter-28")}if($current_page_full==$_____link_full+"/software/edit_pack.cgi"||$current_page_full==$_____link_full+"/apache/show.cgi"||$current_page_full==$_____link_full+"/proc/index_search.cgi"){$.each($(".btn:not(.file_chooser_button)"),function(){$(this).removeClass("heighter-28").addClass("heighter-34")})}if($current_page_full==$_____link_full+"/virtualmin-git/"||$current_page_full==$_____link_full+"/virtualmin-git/index.cgi"){$.each($(".btn.btn-default.submitter.ui_submit"),function(){$(this).removeClass("heighter-28").addClass("heighter-28")})}if($current_page_full==$_____link_full+"/apache/edit_global.cgi"||$current_page_full==$_____link_full+"/virtual-server/edit_newlinks.cgi"||$current_page_full==$_____link_full+"/virtualmin-awstats/"||$current_page_full==$_____link_full+"/postfix/master.cgi"){$.each($(".ui_link_replaced"),function(){$(this).not(".btn-xxs").removeClass("btn-tiny").addClass("heighter-34")})}if($current_page_full==$_____link_full+"/virtualmin-init/"||$current_page_full==$_____link_full+"/virtualmin-dav/list_shares.cgi"||$current_page_full==$_____link_full+"/squid/edit_acl.cgi"||$current_page_full==$_____link_full+"/virtualmin-nginx/"||$current_page_full==$_____link_full+"/fdisk/edit_disk.cgi"||$current_page_full==$_____link_full+"/server-manager/edit_newlinks.cgi"||$current_directory==$_____link+"backup-config/"){$.each($(".ui_link_re-replaced"),function(){$(this).addClass("btn-tiny").removeClass("heighter-34")})}if($current_page_full==$_____link_full+"/pam/"){$(".panel-body > a.ui_link").addClass("btn-tiny")}if($current_page_full==$_____link_full+"/syslog/"||$current_page_full==$_____link_full+"/syslog/index.cgi"){$.each($(".btn"),function(){$(this).removeClass("btn-tiny")})}if($current_page_full==$_____link_full+"/software/"||$current_page_full==$_____link_full+"/software/index.cgi"){$("input#search").addClass("heighter-34 vertical-align-top");$('form[action="file_info.cgi"] > .ui_form_end_submit').addClass("heighter-28 heighter-28-force margined-top-0")}if($current_page_full==$_____link_full+"/software/tree.cgi"){$(".ui_link").addClass("margined-top-10")}if($current_page_full==$_____link_full+"/syslog/save_log.cgi"){$.each($(".heighter-34"),function(){$(this).removeClass("heighter-34").addClass("heighter-28")});$("form:first").next("script").next("br").remove();$("form:last").css("margin-top","5px")}if($current_page_full==$_____link_full+"/status/edit_mon.cgi"){$('td.col_value > table[cellspacing="1"] tbody').attr("style","border: 0 !important;");$(".opener_trigger:last-child").css("font-size","16px");$.each($("table.sub_table_container td > font"),function(){$(this).parents("tbody");$(this).contents().unwrap().wrap(' ')})}if($current_page_full==$_____link_full+"/shell/"||$current_page_full==$_____link_full+"/shell/index.cgi"||$current_page_full==$_____link_full+"/server-manager/shell.cgi"){$.each($(".btn:not(.btn-link), select, input"),function(){$(this).removeClass("heighter-28").addClass("heighter-34");if($(this).is('input[type="button"]')){$($(this).addClass("submitter"))}if(t__wi_p.$(".form-control.sidebar-search").val()&&t__wi_p.$(".form-control.sidebar-search").val().trim().startsWith("!")){t__wi_p.$(".form-control.sidebar-search").val("")}$(".ui_form").find("input.btn.btn-default:first").addClass("btn-success")});$("input#cmd").focus()}$.each($("input"),function(){if($(this).css("height")=="28px"&&$(this).next("input").css("height")!="28px"){if($(this).is(':not([type="hidden"])')){$(this).next("input").addClass("heighter-28")}}});$.each($("select"),function(){if($(this).css("height")=="34px"&&$(this).next("select").css("height")!="34px"){$(this).next("select").addClass("heighter-34")}});if($current_page_full==$_____link_full+"/cluster-passwd/edit_passwd.cgi"){$.each($("input + button"),function(d,c){if($(this).css("height")=="28px"){$(this).addClass("heighter-28").css("line-height","12px").css("margin-top","2px")}})}if(t___wi.location.pathname=="/virtual-server/history.cgi"||t___wi.location.pathname=="/server-manager/bwgraph.cgi"||t___wi.location.pathname=="/server-manager/history.cgi"||t___wi.location.pathname=="/server-manager/one_history.cgi"){$("body").find("table.ui_form_end_buttons .btn.btn-default.submitter.ui_submit").addClass("btn-success");$(".panel-body > table tr td b").each(function(d,c){$(this).addClass("btn btn-success btn-tiny ui_link_replaced")});$(".panel-body > table a").each(function(d,c){$(this).addClass("btn btn-inverse btn-tiny ui_link_replaced").removeClass("ui_link");$(this).text($(this).text().replace(/\.$/,""));if($(this).text()&&$(this).text().indexOf("<<")>-1){$(this).text($(this).text().replace(/\<\,""));$(this).html(' '+$(this).text())}if($(this).text()&&$(this).text().indexOf(">>")>-1){$(this).text($(this).text().replace(/\>\>/,""));$(this).html($(this).text()+' ')}$(this).parent().contents().filter(function(){return this.nodeType==3}).remove();if(($(this).attr("href").indexOf("edit_cmd.cgi?new")===0)){$(this).html(' '+$(this).text())}if(($(this).attr("href").indexOf("edit_file.cgi?new")===0)){$(this).html(' '+$(this).text())}if(($(this).attr("href").indexOf("edit_sql.cgi?new")===0)){$(this).html(' '+$(this).text())}$(this).parents("table").css("margin-bottom","3px")});if($("#history").next("table.ui_grid_table").next("a").length){$("#history").next("table").next("a").addClass("btn btn-info btn-tiny ui_link_replaced").attr("style","margin-top: 4px !important").attr("target","_blank");$("#history").next("table").next("a").text($("#history").next("table").next("a").text().replace(/\.\.$/,""));$("#history").next("table").next("a").html(' '+$("#history").next("table").next("a").text())}else{$("#history").next("a").addClass("btn btn-info btn-tiny ui_link_replaced").attr("style","margin-top: 4px !important").attr("target","_blank");$("#history").next("a").text($("#history").next("a").text().replace(/\.\.$/,""));$("#history").next("a").html(' '+$("#history").next("a").text())}$(".panel-body > hr + b").attr("style","font-size: 16px; font-weight: normal;");$(".panel-body > hr + b").text($(".panel-body > hr + b").text().replace(/\:$/,""))}function tt__m__res(){var b;$(window).on("resize",function(){clearTimeout(b);b=setTimeout(function(){container_fluid_size()},1000);t__wi_p.ported_shell_size()})}tt__m__res();$('input[type="file"]').bootstrapFileInput();setTimeout(function(){$.each($(".file-input-wrapper > span"),function(){$(this).html('')})},1);setTimeout(function(){if(typeof onLoad==="function"&&typeof onResize==="function"){onLoad();$(window).resize(function(b){onResize()})}},600);$.each($('tr > td[valign="top"][width="50%"]'),function(){$(this).attr("style","vertical-align: top !important; "+$(this).attr("style"))});$("body table").each(function(d,e){var f=$(this);if(!$(e).hasClass("table")&&!$(e).hasClass("header")&&!$(e).hasClass("ui_form_end_buttons")&&!$(e).hasClass("ui_table")){$(e).addClass("table-hardcoded");if($product_name=="usermin"){$(e).addClass("table-subtable");if($(e).find("tr.thead").length||$(e).hasClass("sub_table_container table-hardcoded table-subtable")){$(e).find("tr.thead").attr("style","border: 1px solid #efefef");$(e).attr("style","border: 1px solid #efefef")}else{if($(e).attr("style")&&$current_page_full.indexOf("view_mail.cgi")>-1){}else{$(e).attr("style","margin-top: 10px;")}}}}});if((($current_page_full.indexOf(".cgi")===-1||$current_page_full.indexOf("link.cgi")!==-1)||$current_page_full==$_____link_full+"/proc/open_files.cgi"||$current_page_full==$_____link_full+"/webmin/edit_webmincron.cgi"||$current_page_full==$_____link_full+"/postfix/mailq.cgi"||$current_page_full==$_____link_full+"/webmin_search.cgi"||$current_page_full==$_____link_full+"/useradmin/index.cgi"||$current_page_full==$_____link_full+"/quota/list_users.cgi"||$current_page_full==$_____link_full+"/quota/list_groups.cgi"||$current_page_full==$_____link_full+"/init/index.cgi")&&($current_directory==$_____link+"webmin/"&&$_____link_full.indexOf("servers/link.cgi")===-1||$current_directory==$_____link+"proc/"||$source_path==$_____link+"webmin_search.cgi"||$current_directory==$_____link+"postfix/"||$current_directory==$_____link+"virtual-server/"||$current_directory==$_____link+"init/"||$current_directory==$_____link+"mount/"||$current_directory==$_____link+"custom/"||$current_directory==$_____link+"quota/"||$current_directory==$_____link+"php-pear/"||$current_directory==$_____link+"fsdump/"||$current_directory==$_____link+"inittab/"||$current_directory==$_____link+"logrotate/"||$current_directory==$_____link+"mailcap/"||$current_directory==$_____link+"cron/"||$current_directory==$_____link+"software/"||$current_directory==$_____link+"syslog/"||$current_directory==$_____link+"useradmin/"||$current_directory==$_____link+"apache/"||$current_directory==$_____link+"webalizer/"||$current_directory==$_____link+"cpan/"||$current_directory==$_____link+"htaccess-htpasswd/"||$current_directory==$_____link+"fdisk/")||is__mf("ruby-gems","index.cgi")||is__mf("postfix","master.cgi")||is__mf("fail2ban","list_filters.cgi")||is__mf("fail2ban","list_actions.cgi")||is__mf("fail2ban","list_jails.cgi")||is__mf("virtual-server","list_databases.cgi")||is__mf("virtual-server","connectivity.cgi")||is__mf("virtualmin-git","index.cgi")||$current_page_full==$_____link_full+"/useradmin/list_logins.cgi"||$current_page_full==$_____link_full+"/man/search.cgi"||$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_search.cgi"||$current_page_full==$_____link_full+"/software/search.cgi"||$current_page_full==$_____link_full+"/software/file_info.cgi"||$current_page_full==$_____link_full+"/software/list_pack.cgi"||$current_page_full==$_____link_full+"/virtual-server/index.cgi"||$current_page_full==$_____link_full+"/virtual-server/list_users.cgi"||$current_page_full==$_____link_full+"/virtual-server/edit_newplan.cgi"||$current_page_full==$_____link_full+"/virtual-server/edit_newfeatures.cgi"||$current_page_full==$_____link_full+"/virtual-server/edit_newtmpl.cgi"||$current_page_full==$_____link_full+"/virtual-server/backuplog.cgi"||$current_page_full==$_____link_full+"/package-updates/index.cgi"||$current_page_full==$_____link_full+"/virtual-server/usage.cgi"||$current_page_full==$_____link_full+"/virtual-server/search.cgi"||(($current_page_full==$_____link_full+"/fetchmail/"||$current_page_full==$_____link_full+"/filter/")&&product_name()=="Usermin")){$("table.table").each(function(){if($(this).find("thead")&&$(this).find("thead").length&&$(this).find("thead tr th")&&$(this).find("thead tr th").length>2){if($(this).find("thead")&&$(this).find("thead").length>1){var d=$(this).find("thead:first-child");d.remove();if(product_name()=="Webmin"&&($current_page_full==$_____link_full+"/quota/list_users.cgi"||$current_page_full==$_____link_full+"/quota/list_groups.cgi")){$(this).before(d);$(this).prev("thead").replaceTagName("table")}}__init_dt_($(this));$(this).find("th").each(function(){if(!$(this).text()){$(this).css("opacity","0").css("cursor","default")}});var c=-Infinity;$(this).find("tr").each(function(a,b){c=Math.max(c,parseFloat(a))});if(c<10){$(this).parents(".dataTables_wrapper").find(".dataTables_filter").remove()}var f=$(this).parents(".dataTables_wrapper").find(".dataTables_filter").length?1:0;if(f&&(($('body[class="init"]').length||($('body[class^="init"]').length&&$('body[class^="init"]').attr("class").match(/\d+$/)!=null))||($('body[class="quota"]').length||($('body[class^="quota"]').length&&$('body[class^="quota"]').attr("class").match(/\d+$/)!=null))||($('body[class="cron"]').length||($('body[class^="cron"]').length&&$('body[class^="cron"]').attr("class").match(/\d+$/)!=null)))){var g=-15,e=$(this).parents(".dataTables_wrapper").attr("style");if($('body[class^="quota"]').length){g=-27}$(this).parents(".dataTables_wrapper").attr("style","margin-top: "+g+"px !important; "+(e?e:""))}}})}if($current_page_full==$_____link_full+"/bind8/"||$current_page_full==$_____link_full+"/postfix/virtual.cgi"){__init_dt_($(".table.table-striped.table-hover.table-condensed"))}if($current_page_full==$_____link_full+"/virtual-server/list_scripts.cgi"){__init_dt_($("#att_existing > form > table.table.table-striped.table-condensed"))}if($current_page_full==$_____link_full+"/virtual-server/edit_newscripts.cgi"){__init_dt_($("#att_summary > table.table.table-striped.table-condensed"))}if($current_page_full==$_____link_full+"/server-manager/index.cgi"||$current_page_full==$_____link_full+"/virtualmin-htpasswd/index.cgi"){__init_dt_($("body > div > div > div.panel-body > form > table.table.table-striped.table-condensed"))}if((($('body[class*="status"]').length&&!$('body[class*="smart-status"]').length)&&!$__source_file)||$current_page_full==$_____link_full+"/servers/"||$current_page_full==$_____link_full+"/servers/index.cgi"||$current_page_full==$_____link_full+"/webminlog/search.cgi"){__init_dt_($("table.table-striped.table-condensed"))}if($('body[class*="ldap-useradmin"]').length){__init_dt_($("form > table.table.table-striped.table-condensed"))}if($current_page_full==$_____link_full+"/virtual-server/list_sched.cgi"){__init_dt_($(".table.table-striped.table-hover.table-condensed"),false,false,{orderable:false,targets:[0,-1]})}if($current_page_full==$_____link_full+"/servers/"||$current_page_full==$_____link_full+"/servers/index.cgi"){$(".ui_checked_columns td table tr td").find('a.ui_link[href*="edit_serv.cgi"]').addClass("margined-left-4 label label-sm label-primary hidden").html(' ');$(".ui_checked_columns").hover(function(){$(this).find("td table tr a.ui_link.label.hidden").removeClass("hidden")},function(){$(this).find("td table tr a.ui_link.label").addClass("hidden")})}$.each($('table.table.table-striped.table-condensed.dataTable.no-footer > thead > tr[role="row"]:first-child'),function(d,c){$(this).attr("style","border-top: 4px solid #f2f2f2 !important")});if(typeof refresher!="undefined"){t___wi.clearInterval(refresher)}if(typeof $__was_runner!="undefined"){t___wi.clearInterval($__was_runner)}$("body").unbind("mousewheel");$("html").unbind("mousewheel");delete refresh;delete refresher;delete $__was_runner;$__was_runner_is_done=1;$.each($('button[onclick^="t___wi.ifield"].btn.btn-default.ui_button'),function(){$(this).addClass("file_chooser_button_emulate")});$.each($(".file_chooser_button_emulate"),function(){if(!$(this).find(".fa-files-o").length){$(this).append(' ')}if($(this).prev("input").css("height")=="28px"){$(this).addClass("heighter-28")}});$.each($("label > img"),function(d,c){$(this).attr("style","vertical-align: baseline !important")});$.each($('select[multiple][name="weekdays"]'),function(){$(this).parents('td[valign="top"], td.td_tag').attr("style","vertical-align: top !important");$(this).parents('table[width="100%"]').parents(".ui_radio_table.table-hardcoded").css("width","100%")});$("body").on("click",".csf-submit",function(d){d.preventDefault();var c=$(this).data("id");$("#"+c).submit()});$.each($("label").find("br"),function(){$(this).parent("label").prev(".aradio, .acheckbox").attr("style","margin-left: 0 !important;");$(this).parent("label").next(".aradio, .acheckbox").attr("style","margin-left: 0 !important;")});$.each($(".table-responsive + .table-responsive + .table-hardcoded td"),function(){if($(this).find(".heighter-34").length){$.each($(".table-responsive + .table-responsive + .table-hardcoded td"),function(){$(this).find(".btn").addClass("heighter-34")})}});if($current_page_full==$_____link_full+"/cpan/edit_mod.cgi"){$('form[action="download.cgi"]').next().next().next().find(".submitter.ui_submit").addClass("heighter-34")}if($current_page_full==$_____link_full+"/cpan/"||$current_page_full==$_____link_full+"/cpan/index.cgi"){$('input[name="cpan"]').next("button").append(' ').attr("style","width: 40px; height: 28px; vertical-align:middle !important; margin-top:2px; margin-bottom:2px;")}if($("form").find(".icons-row:not(.inline-row)").length){$("form").find(".icons-row").addClass("_processed_");$("form").find(".icons-row").css("border-top","1px solid #efefef").css("border-bottom","1px solid #efefef");$("form").find(".icons-row").find(".icons-container").addClass("icons-container-stretched")}function __m_ico_row_tb(){$("body").find(".icons-row:not(._processed_):not(.inline-row)").css({"padding-top":"8px","padding-bottom":"8px"});$("body").find(".icons-row:not(._processed_):not(.inline-row)").css("border-top","1px solid #efefef").css("border-bottom","1px solid #efefef")}function __m_ico_row_t(){$("body").find(".icons-row:not(._processed_):not(.inline-row)").css({"padding-top":"8px"});$("body").find(".icons-row:not(._processed_):not(.inline-row)").css("border-top","1px solid #efefef")}function __m_ico_row_b(){$("body").find(".icons-row:not(._processed_):not(.inline-row)").css({"padding-bottom":"6px"});$("body").find(".icons-row:not(._processed_):not(.inline-row)").css("border-bottom","1px solid #efefef")}if($current_page_full==$_____link_full+"/lvm/"||$current_page_full==$_____link_full+"/virtualmin-support/"||$current_page_full==$_____link_full+"/proftpd/virt_index.cgi"||$current_page_full==$_____link_full+"/dhcpd/"||$current_page_full==$_____link_full+"/dhcpd/index.cgi"||$current_page_full==$_____link_full+"/cluster-usermin/"||$current_page_full==$_____link_full+"/cluster-usermin/index.cgi"||$current_page_full==$_____link_full+"/cluster-useradmin/"||$current_page_full==$_____link_full+"/cluster-useradmin/index.cgi"||$current_page_full==$_____link_full+"/cluster-webmin/"||$current_page_full==$_____link_full+"/cluster-webmin/index.cgi"){__m_ico_row_tb()}if($current_page_full==$_____link_full+"/proftpd/"||$current_page_full==$_____link_full+"/proftpd/index.cgi"||$current_page_full==$_____link_full+"/bacula-backup/"||$current_page_full==$_____link_full+"/bacula-backup/index.cgi"){__m_ico_row_t()}if($current_page_full==$_____link_full+"//"){__m_ico_row_b()}$("body").on("contextmenu","div.icons-container, div.small-icons-container",function(b){b.preventDefault();if($(this).find("input").is(":checked")){$(this).find("input").prop("checked",false);$(this).removeClass("highlighted")}else{if($(this).find("input").length){$(this).find("input").prop("checked",true);$(this).addClass("highlighted")}}var c=($(b.target).is(".icon_link")?$(b.target).parent(".gl-icon-container").find(".fa-select, .fa-selected"):($(b.target).is(".gl-icon-select")?$(b.target):($(b.target).is("img")?$(b.target).parent("a").parent(".gl-icon-container").find(".fa-select, .fa-selected"):$(b.target).find(".fa-select, .fa-selected"))));c.hasClass("fa-select")?c.removeClass("fa-select").addClass("fa-selected"):c.removeClass("fa-selected").addClass("fa-select")});function __m_ico_row_func(){return 0}$.each($(".row.icons-row.inline-row"),function(a,b){$(this).find("a.icon_link").contents().filter(function(){return this.nodeType==3}).remove()});$.each($(".row.icons-row:not(.inline-row) .icons-container"),function(a,b){$(this).removeAttr("data-title").removeAttr("data-toggle").removeAttr("data-placement").removeAttr("data-container")});if($("body").find(".icons-row > div.icons-container").length||$("body").find(".icons-row > div.small-icons-container").length){$(".row.icons-row.vertical-align").on("click",".icons-container, .small-icons-container",function(){if(!$(this).hasClass("forged-xx-skip")){return}t___wi.location.href=$(this).find("a").attr("href")});var DELAY=240,clicks=0,timer=null;$("body").on("click",'.icons-row div[class*="icons-container"] .forged-xx-data, .icons-container, .small-icons-container',function(b){var d=$(this);if($(this).hasClass("forged-xx-skip")||$(b.target).is(".gl-icon-edit")){return}if($(b.target).parents(".inline-row").length){if($(b.target).is("input.iawobject")){if(!$(b.target).is(":checked")){$(b.target).parents(".icons-container, .small-icons-container").removeClass("highlighted")}else{$(b.target).parents(".icons-container, .small-icons-container").addClass("highlighted")}}return}b.preventDefault();b.stopPropagation();b.stopImmediatePropagation();if($(b.target).is(".gl-icon-select")){$(b.target).trigger("contextmenu");return}clicks++;if(clicks===1){timer=setTimeout(function(){clicks=0;$(b.target).trigger("contextmenu");typeof db_check_selected==="function"&&db_check_selected()},DELAY)}else{clearTimeout(timer);clicks=0;var f=$(b.target).parent("a").attr("href"),c=$(b.target).find("a").attr("href"),e=$(b.target).attr("href");if(f){window.location.href=f}else{if(c){window.location.href=c}else{if(e){window.location.href=e}}}}}).on("dblclick",function(a){a.preventDefault()});$("body").on("click",".select_all",function(){if($(this).parents("form").find('.icons-row div[class*="icons-container"]').length){$.each($(".icons-row .hidden-forged-6"),function(){$(this).parents('div[class*="icons-container"]').addClass("highlighted");$(this).parents('div[class*="icons-container"]').find(".fa-select").removeClass("fa-select").addClass("fa-selected")})}}).on("click",".select_invert",function(){$.each($(".icons-row .hidden-forged-6"),function(){if($(this).find("input").is(":checked")){$(this).parents('div[class*="icons-container"]').addClass("highlighted");$(this).parents('div[class*="icons-container"]').find(".fa-select, .fa-selected").removeClass("fa-select").addClass("fa-selected")}else{$(this).parents('div[class*="icons-container"]').removeClass("highlighted");$(this).parents('div[class*="icons-container"]').find(".fa-select, .fa-selected").removeClass("fa-selected").addClass("fa-select")}})});$.each($(".icons-row .hidden-forged-6"),function(){if($(this).find("input").is(":checked")){$(this).parents('div[class*="icons-container"]').addClass("highlighted")}});$.each($(".hidden-forged-7 > a"),function(){$(this).removeClass();if($(this).parents(".hidden-forged-7").hasClass("hidden-forged-7-small")){$(this).html(' ');$(this).parent().parent().prepend(' ')}else{$(this).html(' ');$(this).parent().parent().prepend(' ')}});$("body").on("mouseover",'.icons-row div[class*="icons-container"]',function(b){$(this).find(".hidden-forged-7").removeClass("hidden-forged")}).on("mouseout",function(b){$(this).find(".hidden-forged-7").addClass("hidden-forged")})}if($current_directory==$_____link+"virtualmin-registrar/"){$.each($("td > input "),function(){if($(this).parents("table.table-hardcoded").find('form[action="edit.cgi"]').length){$(this).css("margin-left","5px");$(this).parent("td").prev("td").find("select").css("margin-left","5px")}})}if($current_page_full==$_____link_full+"/cluster-webmin/edit_host.cgi"){$.each($(".panel-body > .table-hardcoded"),function(){$(this).attr("style","margin-top: 10px !important")})}if($current_page_full==$_____link_full+"/virtual-server/list_scripts.cgi"||$current_page_full==$_____link_full+"/virtual-server/edit_newscripts.cgi"){$('form[action="disable_scripts.cgi"] thead + thead tr th, form[action="disable_scripts.cgi"] tbody + thead tr th, form[action="script_form.cgi"] thead + thead tr th, form[action="script_form.cgi"] tbody + thead tr th').attr("colspan","5")}$.each($(".file_chooser_button_attached"),function(d,c){if($(this).prev('input[onclick*=".cgi"]')){$(this).prev('input[onclick*=".cgi"]').css("width","40px")}});if(product_name(1).toLowerCase()=="cloudmin"&&($current_page_full==$_____link_full+"/server-manager/add_form.cgi"||$current_page_full==$_____link_full+"/server-manager/scan_form.cgi")){$.each($("label"),function(){$(this).find("br").remove()})}if(($current_page_full==$_____link_full+"/mysql/view_table.cgi"||$current_page_full==$_____link_full+"/postgresql/view_table.cgi")&&$("td.td_tag > table.table-hardcoded")){var $___colspan=$("td.td_tag > table.table-hardcoded").parents("table").find("thead").find("tr").find("th").length;$("td.td_tag > table.table-hardcoded").parent("td.td_tag").attr("colspan",$___colspan).attr("style","padding: 1px !important;")}if($current_page_full==$_____link_full+"/virtual-server/backup_form.cgi"&&$__source_url&&$__source_url.indexOf("?sched=")>-1){$("body > div > div > div.panel-body > form > table:nth-child(4) > tbody > tr:nth-child(2) > td").css("display","table-cell");setTimeout(function(){$("a[href=\"javascript:hidden_opener('hiddendiv_adddest', 'hiddenopener_adddest')\"]").next().attr("style","").addClass("btn btn-tiny btn-default")},10)}if($__source_path==="/config.cgi"){$("thead tr th.table-title").prepend(' ')}$.each($('form[action="save_global.cgi"], form[action="save_iptables.cgi"], form[action="save_domain.cgi"],form[action="domain_setup.cgi"],form[action="mass_create.cgi"],form[action="save_roundrobin.cgi"],form[action="save_alert.cgi"], body.time form[action="apply.cgi"]'),function(){$(this).find(".col_header").removeClass("col_header")});if($__relative_url==="/virtual-server/edit_newchangelog.cgi"||$__relative_url==="/server-manager/edit_newchangelog.cgi"||$__relative_url==="/shell/"||$__relative_url==="/shell/index.cgi"||$__relative_url==="/server-manager/shell.cgi"){$("td.col_value.col_value").removeClass("col_header")}if($__relative_url==="/ldap-server/edit_ldif.cgi"){$("span > input.ui_opt_textbox").unwrap()}if($current_page_full==$_____link_full+"/server-manager/gvnc.cgi"){$("body.server-manager p > object").css("height","100%").parent("p").attr("style","display: block; height: "+parseInt($(window).outerHeight()/1.4)+"px")}if(t___wi.location.search!="?dashboard"&&dashboard_switch()==true){if($__source_file=="sysinfo.cgi"){t__wi_p.t__s("open_dashboard");t__wi_p.__cms()}else{if(t__wi_p.$("#open_webmin").length>0&&t__wi_p.$(".switch-toggle input:checked").attr("id")!="open_webmin"&&__num()){t__wi_p.t__s("open_webmin")}else{if(t__wi_p.$("#open_virtualmin").length>0&&t__wi_p.$(".switch-toggle input:checked").attr("id")!="open_virtualmin"&&__num()){t__wi_p.t__s("open_virtualmin")}else{if(t__wi_p.$("#open_cloudmin").length>0&&t__wi_p.$(".switch-toggle input:checked").attr("id")!="open_cloudmin"&&__num()){t__wi_p.t__s("open_cloudmin")}else{if(t__wi_p.$("#open_usermin").length>0&&t__wi_p.$(".switch-toggle input:checked").attr("id")!="open_usermin"&&__num()){t__wi_p.t__s("open_usermin")}}}}}}if($current_page_full==$_____link_full+"/spam/edit_simple.cgi"||$current_page_full==$_____link_full+"/spam/edit_header.cgi"){var target=$(".ui_form .table-responsive table.table.table-striped.table-condensed.table-subtable > thead tr th:first-child"),container=$(".ui_form .table-responsive table.table.table-striped.table-condensed.table-subtable > thead tr th:last-child"),link=container.find("a");target.append(link);container.remove();target.find("a").addClass("table_title_links pull-right btn btn-xs btn-grey").attr("style","position: absolute; right: 23px; margin-top: 7px !important;")}if($current_page_full==$_____link_full+"/server-manager/edit_pass.cgi"&&$('form[action="save_pass.cgi"]').find('a[href*="edit_pass.cgi?"]:not(.btn)').length){var target=$(".ui_form .table-responsive table.table.table-striped.table-condensed.table-subtable > thead tr th:first-child"),container=$(".ui_form .table-responsive table.table.table-striped.table-condensed.table-subtable > thead tr th:last-child"),link=container.find("a");target.append(link);container.remove();target.find("a").addClass("table_title_links pull-right btn btn-info btn-tiny").attr("style","position: absolute; right: 20px; margin-top: 3px !important;")}$('.panel-default + a[href="/virtual-server/"]').attr("href","/virtual-server/index.cgi");$('.panel-default + a[href="/server-manager/"]').attr("href","/server-manager/index.cgi");if($__current_directory==$_____link_full+"/virtual-server/"){$("#headln2l > a:first-child .fa-arrow-left").parent("a").attr("href","/virtual-server/index.cgi")}else{if($__current_directory==$_____link_full+"/server-manager/"){$("#headln2l > a:first-child .fa-arrow-left").parent("a").attr("href","/server-manager/index.cgi")}}if($current_directory==$_____link+"acl/"){$("body.acl > div > div > div.panel-body > form > div > table > tbody > tr > td > table > tbody > tr:nth-child(1) > td > table > tbody").attr("style","border: 0 !important");var $t__acl_title=$("br").next(".ui_grid_table.table-hardcoded").find("tbody").attr("style","border: 1px solid #"+((__isNR||__isNM)?"393b3f":"eee")+" !important").parent("table").prev("br").prev("b");$("br").next(".ui_grid_table.table-hardcoded").css("margin-bottom","3px");$.each($t__acl_title,function(c,d){if($(this).text()==""){$(this).next("br").remove();$(this).remove()}});$t__acl_title.attr("style","margin-bottom: -3px !important").next("br").remove()}$('form[action="bootup.cgi"]').on("submit",function(b){if($("#starting").length>0){$("#starting").remove();$(this).append(' ')}else{if($("#table").length>0){$(this).append(' ')}else{if($('input[name="boot"][type="hidden"]').length>0){$('input[name="boot"][type="hidden"]').remove();$(this).append(' ')}}}});if($('body[class*="bandwidth"]').length){$(".fa.fa-calendar.file_chooser_button_attached").attr("style","font-size: 11px; margin-top: 9px !important; pointer-events: none; margin-left: -27px !important;")}if($current_page_full==$_____link_full+"/mysql/exec_form.cgi"||$current_page_full==$_____link_full+"/postgresql/exec_form.cgi"){$('select[name="old"], input[name="clear"], select[name="charset"]').removeClass("heighter-34").addClass("heighter-28");$('input[name="clear"]').attr("style","margin-bottom: 3px !important;");$('select[name="old"]').attr("style","margin-bottom: 3px !important; margin-right: 0 !important;")}if($__source_file=="config.cgi"&&($__source_query=="mysql"||$__source_query=="postgresql")){$('input[name="style"]').parents("td.col_value").parent("tr").after(' '+lang("theme_xhred_xsql_fit_content_screen_height")+' '+lang("theme_xhred_global_yes")+' '+lang("theme_xhred_global_no")+" ");$('input[name="config_portable_module_xsql_fit_content_screen_height"]').on("change",function(){var b=$(this).attr("name"),a=$(this).val();localStorage.setItem($hostname+"-"+b,a);window[b]=a;t__wi_p.manageConfig("save")})}if($(".ui_post_header.hidden").html()&&$(".ui_post_header.hidden").html().length>5){$("#headln2c").append(""+$(".ui_post_header.hidden").html()+" ");$(".ui_post_header.hidden").remove()}if($current_page_full&&$current_page_full.indexOf("/sysinfo.cgi")>-1&&__num()){$('#status_services-status-collapse .tr_tag .td_tag > img[src*="images/up.gif"]:not(".ui_icon_protected")').each(function(d,e){var f=$(this);$(e).attr("src",""+$_____link_full+"/images/check.png").css("margin-right","3px").attr("title",$.trim(f.parent(".td_tag").text()))});$('#status_services-status-collapse .tr_tag .td_tag > img[src*="images/down.gif"]:not(".ui_icon_protected")').each(function(d,e){var f=$(this);$(e).attr("src",""+$_____link_full+"/images/cross.png").css("margin-right","3px").attr("title",$.trim(f.parent(".td_tag").text()))});$('#status_services-status-collapse .tr_tag .td_tag > img[src*="images/not.gif"]:not(".ui_icon_protected")').each(function(d,e){var f=$(this);$(e).attr("src",""+$_____link_full+"/images/not.png").css("margin-right","3px").attr("title",$.trim(f.parent(".td_tag").text()))});function _update_time_(){var a=$("[data-convertible-timestamp-full]");a.data("convertible-timestamp-full",(parseInt(a.data("convertible-timestamp-full"))+1));typeof t__wi_p.moment!=="undefined"&&a.text(t__wi_p.moment.unix(a.data("convertible-timestamp-full")).format(settings_window_replaced_timestamp_format_full))}$(function(){setInterval(_update_time_,1000)});$.each($(".piechart"),function(){if(isNaN($(this).data("percent"))){$(this).parents(".text-center").remove()}}).promise().done(function(){var c=$("span[data-charts]"),b='div[class^="col-xs-"]',a=c.parents(".row").find(b).length;$.each(c.parents(".row"),function(){$(this).find(b).removeClass().addClass("text-center col-xs-6 col-sm-"+(12/a)+"")})});$.each($(".panel-default:not(#system-status)"),function(a,b){if(!$(this).parent(".panel-group").length){$(this).detach().appendTo(".panel-group")}});$(".panel-default:not(#system-status)").sort(function(d,c){return $(d).data("sorter")>$(c).data("sorter")}).each(function(){var a=$(this);a.remove();$(a).appendTo(".panel-group")}).promise().done(function(){$("#serial-virtual-server").parent(".panel").detach().prependTo(".panel-group");$("#vm2servers-server-manager, #serial-server-manager").parent(".panel").detach().prependTo(".panel-group");$("#sysinfo-virtual-server").parent(".panel").detach().prependTo(".panel-group");$("#quota-virtual-server, #bw-virtual-server").parent(".panel").detach().prependTo(".panel-group");$("#ftypes-virtual-server").parent(".panel").detach().prependTo(".panel-group");$("#status-virtual-server").parent(".panel").detach().prependTo(".panel-group");$("#status_services-status").parent(".panel").detach().prependTo(".panel-group");$("#newfeatures-virtual-server").parent(".panel").detach().prependTo(".panel-group");$("#updates-virtual-server").parent(".panel").detach().prependTo(".panel-group");$("#acl_logins-acl").parent(".panel").detach().appendTo(".panel-group")})}$("body").on("click","a#atclearcache",function(a){Object.keys(localStorage).forEach(function(c){if(/^allowed_trigger|^notifications_|^sysinfo_/.test(c)){localStorage.removeItem($hostname+"-"+c)}});t__wi_p.$(".right-side-tabs-dismiss .fa-trash").trigger("click");t__wi_p.$(".right-side-tabs-dismiss .fa-refresh").trigger("click");var b=$(this);f__mgk_sp(b,[1.5,-33,"small",1000])});$("body").click(function(a){if($(a.target).is('select[name="settings_navigation_color"], select[name="settings_background_color"], select[name="settings_side_slider_palette"], input[name="settings_side_slider_fixed"], label[for^="settings_side_slider_fixed"], div.aradio')){return}if(t__wi_p.$(".right-side-tabs-toggler").hasClass("opened")&&!t__wi_p.$(".right-side-tabs-toggler").hasClass("hidden")){t__wi_p.$(".right-side-tabs-toggler:not(.hidden)").trigger("click")}});if($current_page_full==$_____link_full+"/virtual-server/edit_phpmode.cgi"){$("#hiddendiv_phpinfo table tbody tr").css("border","1px solid #"+(__isNR?"393b3f":"eee")+"")}if(settings_window_replace_timestamps){var xMoment=typeof t__wi_p.moment!=="undefined";$.each($("[data-convertible-timestamp-full]"),function(){xMoment&&$(this).text(t__wi_p.moment.unix($(this).data("convertible-timestamp-full")).format(settings_window_replaced_timestamp_format_full))});$.each($("[data-convertible-timestamp-short]"),function(){xMoment&&$(this).text(t__wi_p.moment.unix($(this).data("convertible-timestamp-short")).format(settings_window_replaced_timestamp_format_short))})}$.each($('a[href*="showpass.cgi?"][onclick]'),function(){$(this).html(' ').css("color","#555")});if($current_page_full==$_____link_full+"/webmin/edit_startpage.cgi"){$('select[name="deftab"]').parents("td.col_value").parent("tr").hide();$('select[name="gotomodule"] option').each(function(){($(this).val()=="virtual-server"||$(this).val()=="server-manager"||$(this).val()=="csf")&&$(this).remove()})}if($current_page_full==$_____link_full+"/webmin/edit_ui.cgi"||$current_page_full==$_____link_full+"/usermin/edit_ui.cgi"){$('input[name*="cs_link_def"], input[name*="cs_header_def"], input[name*="cs_table_def"], input[name*="cs_text_def"], input[name*="cs_page_def"], input[name*="width_def"], input[name*="height_def"], input[name*="sizedate_def"], input[name*="texttitles"]').parents("td.col_value").parent("tr").addClass("hidden")}if($__relative_url=="/config.cgi?virtual-server"||$__relative_url=="/config.cgi?server-manager"){$('input[name="theme_image"], input[name="theme_link"], input[name="theme_alt"]').parents("td.col_value").parent("tr").hide()}if($current_page_full==$_____link_full+"/virtual-server/edit_resel.cgi"){$('input[name="logo"][id="logo"], input[name="link"]').parents("td.col_value").parent("tr").hide()}if($current_page_full==$_____link_full+"/virtual-server/edit_newfeatures.cgi"){$('tr td:last-child label:contains("|")').replaceText(/\|/gi,"");$("td a.ui_link").addClass("ui_link_replaced btn btn-info btn-xxs").removeClass("heighter-34").removeClass("ui_link").prepend(' ')}if($current_page_full==$_____link_full+"/virtual-server/domain_form.cgi"||$current_page_full==$_____link_full+"/virtual-server/edit_domain.cgi"||$current_page_full==$_____link_full+"/virtual-server/edit_user.cgi"||$current_page_full==$_____link_full+"/virtual-server/edit_alias.cgi"||$current_page_full==$_____link_full+"/virtual-server/edit_limits.cgi"){__is_shifted=false;__is_tabbed=false;$(document).on("keyup keydown",function(a){var b=a.keyCode?a.keyCode:a.which;__is_shifted=a.shiftKey;__is_tabbed=(b==9?true:false)});$("input, select").on("blur",function(){if(__is_tabbed&&!$(this).next("input:visible").length&&!$(this).prev("input:visible").length&&!$(this).next("select:visible").length&&!$(this).prev("select:visible").length){if(!__is_shifted){if($(this).parent("td").parent("tr").next("tr").find('input[type="text"]:first:visible, input[type="password"]:first:visible').length||$(this).parent("td").parent("tr").next("script").next("tr").find('input[type="text"]:first:visible, input[type="password"]:first:visible').length||$(this).parent("td").parent("tr").next("script").next("script").next("tr").find('input[type="text"]:first:visible, input[type="password"]:first:visible').length){$(this).parent("td").parent("tr").next("tr").find('input[type="text"]:first:visible, input[type="password"]:first:visible').focus();$(this).parent("td").parent("tr").next("script").next("tr").find('input[type="text"]:first:visible, input[type="password"]:first:visible').focus();$(this).parent("td").parent("tr").next("script").next("script").next("tr").find('input[type="text"]:first:visible, input[type="password"]:first:visible').focus()}else{$(this).parent("td").parent("tr").next("tr").find("select:first:visible").focus();$(this).parent("td").parent("tr").next("script").next("tr").find("select:first:visible").focus();$(this).parent("td").parent("tr").next("script").next("script").next("tr").find("select:first:visible").focus()}}else{if($(this).parent("td").parent("tr").prev("tr").find("select:visible").length||$(this).parent("td").parent("tr").prev("script").prev("tr").find("select:visible").length||$(this).parent("td").parent("tr").prev("script").prev("script").prev("tr").find("select:visible").length){$(this).parent("td").parent("tr").prev("tr").find("select:first:visible").focus();$(this).parent("td").parent("tr").prev("script").prev("tr").find("select:first:visible").focus();$(this).parent("td").parent("tr").prev("script").prev("script").prev("tr").find("select:first:visible").focus()}else{$(this).parent("td").parent("tr").prev("tr").find('input[type="text"]:first:visible, input[type="password"]:first:visible').focus();$(this).parent("td").parent("tr").prev("script").prev("tr").find('input[type="text"]:first:visible, input[type="password"]:first:visible').focus();$(this).parent("td").parent("tr").prev("script").prev("script").prev("tr").find('input[type="text"]:first:visible, input[type="password"]:first:visible').focus()}}}})}if($("#headln2l .btn .fa-arrow-left").length){if($("body").attr("class")&&$("body").attr("class").indexOf($g__o__f_m)>-1){}else{$("#headln2l .btn .fa-arrow-left").parent("a").attr("href",$("#headln2l .btn .fa-arrow-left").parent("a").attr("href").replace("index.cgi",""))}var $_url=URI(t___wi.location);$__source_file=$_url.filename()}$("#headln2r, #headln2l").prepend(' ').append("
");$("#headln2r a").detach().appendTo("#headln2r .btn-group");$("#headln2l a").detach().appendTo("#headln2l .btn-group");$.each($(".ui_form_end_submit"),function(){if($source_path==$_____link+"proc/edit_proc.cgi"||$__source_file=="edit_dbase.cgi"||$__source_file=="edit_pam.cgi"||$__source_file=="list_records.cgi"||is__m("mailbox")||is__m("mailboxes")){return}var a=$(this).parent().find(".ui_form_end_submit");if(!a.parents(".btn-group").length&&a.length>1){$(this).parent().find(".ui_form_end_submit, .ui_form_end_submit + input").wrapAll('
')}}).promise().done(function(){$.each($(".end_submits"),function(a,b){if($(this).prev(".heighter-28").length||$(this).prev("input, select").css("height")=="28px"){$(this).find(".ui_form_end_submit").addClass("heighter-28")}})});$('.ui_form_end_submit[onclick^="window.open"]').click(function(){var a=$(this);setTimeout(function(){a.removeClass("disabled");t__wi_p.__lle()},100)});$.each($(".btn-group").find("span"),function(){($(this).not("[class]").length&&!$.trim($(this).text()).length)&&$(this).remove()});f__mgk_fi();if($(".panel-default").nextAll("a.btn.btn-primary").length===2){$(".panel-default").next("a.btn.btn-primary").find(".fa.fa-arrow-left").removeClass("fa-arrow-left").addClass("fa-arrow-circle-o-left")}if($(".panel-default").nextAll("a.btn.btn-primary").length===3){$(".panel-default").next("a.btn.btn-primary").next("a.btn.btn-primary").find(".fa.fa-arrow-left").removeClass("fa-arrow-left").addClass("fa-arrow-circle-left");$(".panel-default").next("a.btn.btn-primary").find(".fa.fa-arrow-left").removeClass("fa-arrow-left").addClass("fa-arrow-circle-o-left")}if($current_page_full==$_____link_full+"/init/reboot.cgi"){$("input.btn-success").removeClass("btn-success").addClass("btn-warning")}if($current_page_full==$_____link_full+"/init/shutdown.cgi"){$("input.btn-success").removeClass("btn-success").addClass("btn-danger")}if(!$g__v__nav){__s___()}$("body").on("click",'button.ui_form_end_submit[type="button"]:not(.disabled)',function(){var b=$(this).next('input[type="submit"].hidden'),a=$(this).parent(".btn-group").next('input[type="submit"].hidden');if(b.length){b.trigger("click")}else{a.trigger("click")}});$("body").on("click",".ui_form_end_submit:not(.disabled), .page_footer_submit:not(.disabled)",function(){var a=false,b=false;if($(this).hasClass("page_footer_submit")){a=1000}else{if($(this).parents('form[action="fetch.cgi"]').length){a=1000;b=1}}f__mgk_sp($(this),false,a,b)});$(".dataTable .ui_checked_checkbox").parent("tr").parent("tbody").prev("thead").find("th:first-child").addClass("opacity-0 pointer-events-none");$("table tr.thead td").addClass("tdhead");if(is__mf("virtual-server","edit_newchroot.cgi")||is__mf("virtual-server","edit_newglobal.cgi")||is__mf("virtual-server","edit_newshells.cgi")||is__mf("virtual-server","edit_newfields.cgi")||is__mf("server-manager","edit_docker.cgi")||is__mf("server-manager","edit_vserver.cgi")||is__mf("server-manager","edit_zone.cgi")||is__mf("server-manager","edit_openvz.cgi")||is__mf("server-manager","list_locations.cgi")||is__mf("server-manager","edit_lxc.cgi")||is__mf("server-manager","list_ips.cgi")||($('body[class*="bind8"]').length&&$__source_file)||($('body[class*="status"]').length&&$__source_file=="edit_mon.cgi")||($('body[class*="custom"]').length&&$__source_file=="edit_sql.cgi")||($('body[class*="custom"]').length&&$__source_file=="edit_cmd.cgi")||($('body[class*="custom"]').length&&$__source_file=="edit_file.cgi")){$(".table").removeClass("table-hover")}var dynamic_switch_off_on=$(".fa-toggle-switch-off").parent("button.btn-default");if(dynamic_switch_off_on.length===1){var dynamic_switch__val=dynamic_switch_off_on.parent("td").find('input[type="radio"]:checked').val();if(dynamic_switch__val=="1"){dynamic_switch_off_on.find(".fa-toggle-switch-off").addClass("fa-toggle-switch").removeClass("fa-toggle-switch-off")}}dynamic_switch_off_on.parents("td").addClass("vertical-align-bottom");var my_editor_page=$('form[action*="manual"] > select[name="file"], form[action*="manual.cgi"] > select[name="manual"], form[action*="edit_"] > select[name="file"]');if(my_editor_page.length){my_editor_page.addClass("heighter-34");$('form[action*="manual"], form[action*="edit_"]').css("margin-bottom","2px")}if(is__m("firewalld")){$("select#zone").addClass("heighter-34");$('form[action="save_ifaces.cgi"] button').addClass("heighter-28-force")}$('body[class*="proftpd"] .table-hardcoded tr td > input + input.btn.btn-default').removeClass("heighter-28").addClass("heighter-34").prev("input").addClass("heighter-34");$('body[class*="proftpd"] form[action="find_ftpaccess.cgi"] > input:first-child').removeClass("heighter-34").addClass("heighter-28");if($__source_file=="edit_simple.cgi"&&$('body[class*="spam"]').length){$("tr td").contents().filter(function(){return this.nodeType==3}).remove()}if($__source_file=="edit_awl.cgi"&&$('body[class*="spam"]').length){$('input[name="user"]').next("input").addBack().addClass("heighter-34")}if(is__mf("usermin","list_sessions.cgi")){$('#user, input[type="button"]').addClass("heighter-34")}if(is__mf("htaccess-htpasswd","")||is__mf("htaccess-htpasswd","index.cgi")){$("#search, .file_chooser_button").addClass("heighter-34").css("margin-bottom","-1px");$("#search").css("margin-top","0")}if(is__mf("mailboxes","")||is__mf("mailboxes","index.cgi")){$("#user, .file_chooser_button").addClass("heighter-34 vertical-align-middle").css("margin-bottom","-1px")}if(is__mf("mailboxes","list_mail.cgi")){$("#mfolder1, #mfolder2").addClass("heighter-34").css("margin-bottom","-1px").css("margin-top","-1px")}if(is__mf("quota","list_users.cgi")){$("#user, #user + input").addClass("heighter-34")}if(is__mf("quota","list_groups.cgi")){$("#group, #group + input").addClass("heighter-34")}if(is__mf("apache","htaccess.cgi")||is__mf("virtualmin-registrar","index.cgi")||is__mf("virtualmin-registrar","")){$(".ui_form_end_submit").addClass("heighter-28-force")}var attempt_make_all_elem=$('form:not([action="save_log.cgi"]) .table-responsive .table .sub_table_container .table tbody tr td > select, form:not([action="save_log.cgi"], [action="save_net.cgi"]) .table-responsive .table .sub_table_container .table tbody tr td > input, form:not([action="save_user.cgi"], [action="save_group.cgi"]) .table td.opener_container td.col_value table tbody tr td > select, form:not([action="save_user.cgi"], [action="save_group.cgi"]) .table td.opener_container td.col_value table tbody tr td > input, form[action="save_newglobal.cgi"] > table tbody tr td input, form[action="save_newfields.cgi"] > table tbody tr td input, form[action="save_newfields.cgi"] > table tbody tr td select, form[action="save_newshells.cgi"] > table tbody tr td select, form[action="save_newshells.cgi"] > table tbody tr td input, form[action="save_linkcats.cgi"] > table tbody tr td input, form[action="save_gen.cgi"] > table tbody tr td input ');$.each(attempt_make_all_elem,function(a,b){if($(this).parent().find("input[data-mmclick]").length||$(this).parent().find("button[data-mmclick]").length||$(this).parent().find('input[onclick*="window.open"]').length||$(this).parent().find('button[onclick*="window.open"]').length){return}if($(this).prev(".awobject").length){$(this).css("width","auto");return}if($(this).parent().find('input:not([type="checkbox"], [type="radio"]), select').length==1){$(this).css("width","100%").css("min-width","100%")}else{if($(this).parent().find('input:not([type="checkbox"], [type="radio"]), select').length==2){$(this).parent().find("input, select").first().css("width","39%");$(this).parent().find("input, select").last().css("width","60%").css("float","right")}}});if(is__mf("virtual-server","edit_newstyles.cgi")){$('a[onclick^="window.open(\\"thumb_style.cgi?"]').html(' ').addClass("btn btn-default btn-xxs margined-top--3")}else{if(is__m("virtual-server")){$('a[onclick^="window.open(\\"thumb_style.cgi?"]').html(' ').addClass("btn btn-default heighter-28-force")}}if(is__mf("virtual-server","edit_html.cgi")){$('script:contains("xinha")').remove();$('.ui_form_end_submit:not([name="create"], [name="cancel"], [name="save"], [name="delete"])').addClass("heighter-28-force");var is_html_mode_edit_web_pages=($__source_query.indexOf("editok")!==-1||$__source_query.indexOf("createok")!==-1?true:false),is_text_mode_edit_web_pages=($__source_query.indexOf("textok")!==-1?true:false);if(is_html_mode_edit_web_pages&&$("#body").length){$("#editok").removeClass("btn-default").addClass("btn-grey");$("#body").css("display","none");$("hr + b").addClass("hidden");$("#body").after('
');__init_ck_(["body",2,true,"edit_web"])}else{if(is_text_mode_edit_web_pages){$("#textok").removeClass("btn-default").addClass("btn-grey");v__cm___init()&&t__cm___init($("textarea"),false,false,"static",true,true)}}$(".ui_form_end_submit").click(function(){$("body").removeAttr("data-unload-warning")});$("input:file").change(function(){var a=$(this);setTimeout(function(){$('form[action*="upload_html.cgi"]').append(a)},500)})}typeof settings_allowed_hostname=="undefined"?settings_allowed_hostname=true:false;if($hostname==settings_allowed_hostname){if(is__mf("postfix","")){$.each($(".icons-container a"),function(a,b){if($(this).attr("href")!="general.cgi"&&$(this).attr("href")!="address_rewriting.cgi"&&$(this).attr("href")!="local_delivery.cgi"&&$(this).attr("href")!="resource.cgi"&&$(this).attr("href")!="virtual.cgi"&&$(this).attr("href")!="sasl.cgi"&&$(this).attr("href")!="rate.cgi"&&$(this).attr("href")!="rate.cgi"&&$(this).attr("href")!="mailq.cgi"&&$(this).attr("href")!="debug.cgi"&&$(this).attr("href")!="manual.cgi"){$(this).parent(".icons-container").remove()}})}}var $magic_button_selector=' body button[onclick*="window.open"][onclick*="choose"][onclick*="chooser.cgi"]:not([onclick*="_chooser.cgi"]), body input[onclick*="window.open"][onclick*="choose"][onclick*="chooser.cgi"]:not([onclick*="_chooser.cgi"]), body button[onclick*="window.open"][onclick*="choose"][onclick*="standard_chooser.cgi"], body input[onclick*="window.open"][onclick*="choose"][onclick*="standard_chooser.cgi"], body button[onclick*="window.open"][onclick*="choose"][onclick*="third_chooser.cgi"], body input[onclick*="window.open"][onclick*="choose"][onclick*="third_chooser.cgi"], body button[onclick*="window.open"][onclick*="choose"][onclick*="user_chooser.cgi"], body input[onclick*="window.open"][onclick*="choose"][onclick*="user_chooser.cgi"], body button[onclick*="window.open"][onclick*="choose"][onclick*="group_chooser.cgi"], body input[onclick*="window.open"][onclick*="choose"][onclick*="group_chooser.cgi"], body button[onclick*="window.open"][onclick*="choose"][onclick*="my_group_chooser.cgi"], body input[onclick*="window.open"][onclick*="choose"][onclick*="my_group_chooser.cgi"], body button[onclick*="window.open"][onclick*="choose"][onclick*="module_chooser.cgi"], body input[onclick*="window.open"][onclick*="choose"][onclick*="module_chooser.cgi"] ';if($($magic_button_selector).length){function magic_popup_run(b,f,h){if(h){if($(".refInputData").is("textarea")){var a=$(".refInputData");if(a.val()){a.val(a.val()+"\n"+b.replace(/\/\/+/g,"/"))}else{a.val(b.replace(/\/\/+/g,"/"))}}else{$(".refInputData").val(b.replace(/\/\/+/g,"/"))}var g=$(".refInputData").parent("td").prev("td").find('input[type="radio"]'),e=$(".refInputData").parent("span").prev("span").find('input[type="radio"]'),d=$(".refInputData").prev("span").find('input[type="radio"]'),c=$(".refInputData").prev("select").find('option[value="*"]');if(e.length){e.trigger("click")}else{if(d.length){d.trigger("click")}else{if(c.length){c.parent("select").val("*").trigger("change")}else{g.trigger("click")}}}}if(f){$("body .mppopup").modal("hide")}}function addmodule(b,a){adduser(b,a);return false}function addgroup(b,a){adduser(b,a);return false}function adduser(b,a){$v__mpp__g_olt=0;$('.mppopup input[data-role="tagsinput"]').tagsinput("add",b);setTimeout(function(){if(!v__mpp__ml_t__e){$(".mppopup_filter_input").val("");$(".mppopup_filter_input").focus().trigger("keyup")}v__mpp__ml_t__e=0},440);return false}function parentdir(a){fileclick(a,"1");$v__mpp__g_gp=1}function fileclick(a,b){$v__mpp__g_ol=a;$v__mpp__g_olt=b}function select(a,b){$data_mppopup_value.val(a);return false}function filter_match(n,e,r){e="";r=r||false;var t=function(g){g=g||false;var h=$(".mppopup table tbody tr");if(h.length>0){for(var b=0;b0){for(var a=0;a]*>/gi,"");if(o!==""){o=o.toLowerCase();if(o.match(n.toLowerCase())){q[a].style.display=""}}}}}}else{t(true)}}function breadcrumbx_format(a){a=$.url(a).attr("path").replace(/\/$/g,"").split("/");var b="";$.each(a,function(d,e){if(e===""){b+=''+(access_level()==0?' ':' ')+" \n"}else{b+=''+e+" \n"}});var c=' '+b+" ";return c+' '}function mppopup_extract_chooser_link(a){return a.replace(/&file.*&chroot/,"&file="+encodeURIComponentSafe(($v__mpp__g_ol+"/").replace(/\/\/+/g,"/"))+"&chroot")}function mppopup_extract_chooser(a){$(".mppopup .cspinner.hidden").removeClass("hidden");$.ajax({type:"POST",url:a,data:false,dataType:"text",success:function(e){var d=e.replace(/<(!doctype|script|link|meta)\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/(script|link|meta)>/gi,"").replace(/<\/body>|<\/html>/gi,""),c=$(d).filter(".table").html(),b=$(d).filter(".table").prev("b").html();b=breadcrumbx_format(b);$(".mppopup .modal-body").html(b+'");$v__mpp__g_gp=0;$(".mppopup_filter_input").focus();$(".mppopup_filter_input").val("")}})}$("body").on("dblclick",'.mppopup a[onclick*="fileclick("], .mppopup a[onclick*="parentdir("]',function(a){a.preventDefault()});var DELAY=240,clicks=0,timer=null;$("body").on("dblclick",'.mppopup a[onclick*="select("]',function(b){$(".mppopup button[data-mppopup_confirm]").trigger("click")});$("body").on("click",'.mppopup a[onclick*="fileclick("], .mppopup a[onclick*="parentdir("]',function(b){b.preventDefault();b.stopPropagation();b.stopImmediatePropagation();clicks++;$data_mppopup_value.val($v__mpp__g_ol);if(clicks===1){timer=setTimeout(function(){clicks=0;typeof $v__mpp__g_gp=="undefined"?$v__mpp__g_gp=0:0;if(!$v__mpp__g_gp){magic_popup_run($v__mpp__g_ol,0,0)}else{var a=mppopup_extract_chooser_link($v__mpp__g_op);mppopup_extract_chooser(a)}$v__mpp__g_gp=0},DELAY)}else{clearTimeout(timer);clicks=0;if($v__mpp__g_olt){var c=mppopup_extract_chooser_link($v__mpp__g_op);mppopup_extract_chooser(c)}else{magic_popup_run($v__mpp__g_ol,1,1)}}});$("body").on("click",".mppopup button[data-mppopup_confirm]",function(){magic_popup_run($data_mppopup_value.val(),1,1)});$("body").on("show.bs.modal",".mppopup",function(){v__mpp__ml_t__e=0;$data_mppopup_value=$(".mppopup input[data-mppopup_value]");$('.mppopup input[data-role="tagsinput"]').tagsinput({onTagExists:function(b,a){a.hide().fadeIn();v__mpp__ml_t__e=1}})});$("body").on("shown.bs.modal",".mppopup",function(){var b=$("body .mppopup").find(".modal-head"),a=$("body .mppopup").find(".modal-body"),d=$("body .mppopup").find(".modal-body table"),c=b.find(".mppopup_filter > input");setTimeout(function(){$(".mppopup_filter_input").animate({opacity:1},$settings_animation_tabs_slide_time);$(".mppopup_filter_input").focus()},0)});$("body").on("hidden.bs.modal",".mppopup",function(){refInput.removeClass("refInputData");$('.mppopup input[data-role="tagsinput"]').tagsinput("destroy");$("body .mppopup").remove();$("button[data-mmclick].disabled, input[data-mmclick].disabled").removeClass("disabled").removeAttr("disabled")});$("body").on("click",".mppopup_multi_done",function(a){refInput.val($.trim($('.mppopup input[data-role="tagsinput"]').val().replace(/,/g," ")));$('.mppopup span[aria-hidden="true"]').trigger("click")});$("body").on("keyup",".mppopup_filter_input",function(c){var d=c.which,j=$(".mppopup table tbody tr:visible"),g=j.find("td:first-child a"),e=$(".mppopup .breadcrumbx").length;if(e){return}if(d==13&&j.length===1&&!c.shiftKey){g.trigger("click")}else{if(d==13&&j.length===1&&c.shiftKey){g.trigger("click").trigger("dblclick");var f=$(".mppopup .mppopup_multi_done:visible");if(f.length){setTimeout(function(){f.trigger("click")},240)}}}if(!$(".mppopup table tbody tr.noresults").length){$(".mppopup table tbody").append(''+lang("theme_xhred_global_no_results_found")+" ")}var i=$(".mppopup table tbody tr:visible:not(.noresults)"),h=$(".mppopup table tbody tr.noresults");if(i.length){h.addClass("hidden")}else{h.removeClass("hidden")}});function mppopup_get_ref_input(c,a){var b=c.prev('input[type="text"], input[name]');if(!b.is("input")&&!c.prev("textarea").length&&!c.prev("br").prev("textarea").length){b=c.prev("span:not(.awradio)").find('input[type="text"]')}else{if(!b.length&&!b.is("input")&&a){b=c.prev("textarea");if(!b.length){b=c.prev("br").prev("textarea")}}}return b}$($magic_button_selector).each(function(){$(this).attr("data-mmclick",$(this).attr("onclick")).removeAttr("onclick");var a=mppopup_get_ref_input($(this),0);if(a.length){$(this).css("margin-left","-8px")}});$("body").on("click","button[data-mmclick]:not(.disabled), input[data-mmclick]:not(.disabled)",function(a){a.preventDefault();a.stopPropagation();refInput=mppopup_get_ref_input($(this),1);var h=$(this),c=refInput.val(),f=encodeURIComponent(c),i=$(this).attr("data-mmclick"),j=i.match("window.open\\(['\"]*(.*?)(\\s*['\"]*,.*?)"),b=j[1].match(/(\w+\.[a-z]{3,4})/gi)[0],e=b.replace(".cgi","");h.addClass("disabled").attr("disabled","disabled");if(j[1]){var d=j[1].replace("encodeURIComponent(ifield.value)","refInputCurrValSafe");d=d.replace('"+"',"").replace('"+',"").replace("refInputCurrValSafe",f);function k(q,p,o,n,r){var m;if(r){m=' "}else{m=' "}var l=' ";$("body").append(l);refInput.addClass("refInputData");$("body .mppopup").modal("show")}function g(l){if(!l[1].startsWith("/")){$v__mpp__g_op="/"+l[1]}else{$v__mpp__g_op=l[1]}}$.ajax({type:"POST",url:d,data:false,dataType:"text",success:function(p){var o=p;var l=p.match(')<[^<]*)*<\/(script|link|meta)>/gi,"").replace(/<\/body>|<\/html>/gi,""),r=$(s).filter(".table").html(),q=$(s).filter(".table").prev("b").html();var t=breadcrumbx_format(q);s=t+'";k(s,"type1",0,refInput,0)}})}else{if(!$.isArray(l)){if($.isArray(l)&&l[1].indexOf("&multi=1")===-1){return}var n=o,m=$(n).filter("table").html();k('","",1,refInput,0)}else{g(l);$.ajax({type:"POST",url:$v__mpp__g_op,data:false,dataType:"text",success:function(s){var r=s.replace(/<(!doctype|script|link|meta)\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/(script|link|meta)>/gi,"").replace(/<\/body>|<\/html>/gi,""),q=$(r).filter("table").html();r='";k(r,"type2",0,refInput,1)}})}}}})}else{$(this).removeClass("disabled");$(this).attr("onclick",$(this).attr("data-mmclick")).removeAttr("data-mmclick");$(this).trigger("click")}})}if(is__mf("virtualmin-nginx","")||is__mf("virtualmin-awstats","")||is__mf("fdisk","edit_disk.cgi")||is__mf("virtual-server","edit_newlinks.cgi")||is__mf("virtualmin-dav","list_shares.cgi")||($current_directory==$_____link+"pam/"&&!$__source_file)||($current_directory==$_____link+"syslog/"&&!$__source_file)||($current_page_full==$_____link_full+"/postfix/master.cgi")){setTimeout(function(){var b=$('.panel-body > .ui_link, .panel-body > .ui_link_replaced, body[data-uri*="virtualmin-awstats"] .panel-body > form > .ui_link_replaced, body[data-uri*="edit_disk.cgi"] .panel-body p > a.ui_link_replaced, body[data-uri*="edit_newlinks.cgi"] .panel-body > form > .ui_link_replaced, body[data-uri*="edit_newlinks.cgi"] .panel-body > .ui_emptymsg + p > .ui_link_replaced'),c=$.trim(b.first().text()),a=b.first().attr("href");$("#headln2r .btn-group a").addClass("pull-left").attr("style","");$("#headln2r .btn-group").prepend(' ');b.next("br").remove();b.remove()},0)}if(__isNR||__isNM){if($(".opener_shown").length>0){var __tmp_ui_grinTable=$(".opener_container, .opener_container:hidden").find(".ui_grid_table, .ui_grid_table:hidden");if(__tmp_ui_grinTable.length){$.each(__tmp_ui_grinTable,function(a,b){$(this).parent("td").attr("style","padding: 0 !important")})}}if($(".opener_table_style_small").length>0){var __tmp_ui_hardTable=$(".opener_table_style_small, .opener_table_style_small:hidden").find(".sub_table_container.table-hardcoded, .sub_table_container.table-hardcoded:hidden");if(__tmp_ui_hardTable.length){$.each(__tmp_ui_hardTable,function(a,b){$(this).parent("td").attr("style","padding: 0 !important");$(this).find("tbody tr td").attr("style","padding-left: 3px !important; padding-right: 3px !important")})}}}$('html[data-script-name*="webmin/edit_assignment.cgi"] table table tbody tr td, html[data-script-name*="usermin/edit_assignment.cgi"] table table tbody tr td').hover(function(){if($(this).is("td:nth-child(1)")||$(this).is("td:nth-child(3)")){$(this).addClass("hl-ow").next("td").addClass("hl-ow")}else{if($(this).is("td:nth-child(2)")||$(this).is("td:nth-child(4)")){$(this).addClass("hl-ow").prev("td").addClass("hl-ow")}}},function(){$(this).removeClass("hl-ow").next("td").removeClass("hl-ow");$(this).removeClass("hl-ow").prev("td").removeClass("hl-ow")});if($current_page_full&&$current_page_full.indexOf("/sysinfo.cgi")>-1&&__num()){$(".piechart canvas").hover(function(){var a=$(this).parent("span").attr("data-charts").split("_")[1];if((a=="cpu"||a=="mem"||a=="virt")&&!is_module("proc")){return}else{if(a=="disk"&&!is_module("disk-usage")&&!is_module("quota")){return}}$(this).addClass("cursor-alias");$(this).prev("span").prepend(' ')},function(){$(this).prev("span").find("i").remove()});$("body").on("click","canvas",function(b){b.preventDefault();var a=$(this).parent("span").attr("data-charts").split("_")[1];if(a=="cpu"&&is_module("proc")){window.location.href=$_____link_full+"/proc/index_cpu.cgi"}else{if((a=="mem"||a=="virt")&&is_module("proc")){window.location.href=$_____link_full+"/proc/index_size.cgi"}else{if(a=="disk"&&is_module("disk-usage")){window.location.href=$_____link_full+"/disk-usage"}else{if(a=="disk"&&is_module("quota")){window.location.href=$_____link_full+"/quota/list_users.cgi?dir=%2F"}}}}})}is__mf("sysstats","display_all.cgi")&&setTimeout(function(){__lre()},600);if(is__m("changepass")||is__mf("server-manager","edit_pass.cgi")||is__mf("virtual-server","list_databases.cgi")||is__mf("acl","edit_user.cgi")||is__mf("virtual-server","clone_form.cgi")||is__mf("virtual-server","edit_user.cgi")||is__mf("virtual-server","edit_domain.cgi")||is__mf("virtual-server","domain_form.cgi")||is__mf("samba","edit_euser.cgi")||is__mf("samba","ask_epass.cgi")||is__mfq("virtualmin-registrar","edit.cgi","registrar=")||is__mfq("htaccess-htpasswd","edit_user.cgi","new=")||is__mfq("postgresql","edit_user.cgi","new=")||is__mfq("mysql","edit_user.cgi","new=")||is__mf("useradmin","edit_group.cgi")||is__mf("useradmin","edit_user.cgi")||is__mfq("passwd","edit_passwd.cgi","user=")){setTimeout(function(){$("#headln2r .btn-group a").addClass("pull-left").attr("style","");$("#headln2r .btn-group").prepend(' ');$("body .generate-password-key").click(function(c){var a=passwordGenerator();$("body").append(' ');var b=new Clipboard(".tmp-clipboard-obj");$(".tmp-clipboard-obj").trigger("click");$(".tmp-clipboard-obj").remove();b.destroy();messenger(' '+lang("theme_xhred_password_generator_new_success").replace("%password",' '+a+"
"),10,"success","newGeneratedPassword")})},0)}if($access_level==0&&is_module("status")==1){}else{t___wi.settings_side_slider_enabled=false;t__wi_p.settings_side_slider_enabled=false;t__wi_p.$("html").attr("data-slider-fixed","0");t__wi_p.$("#right-side-tabs, .right-side-tabs-toggler").addClass("hidden")}if(is__mf("bind8","edit_zonekey.cgi")){format_new_lines($("textarea#ds"),$("#headln2c").find("span[data-sub_title]").text())}if(is__mf("virtual-server","edit_script.cgi")){$('select[name="version"]').addClass("heighter-34 margined-top-4")}if(is__mf("virtual-server","transfer_form.cgi")){$('input[name="newttl"]').addClass("heighter-34")}brake_long_lines((is__mf("firewall","")||is__mf("firewall","index.cgi")),$(".ui_checked_columns td label b"),",");$.each($(".gl-icon-container"),function(a,b){if(!$(this).find("a:first").find("i.fa-edit").length){$(this).find("a:first").prepend(' ');$(this).find("a:first").prepend(' ')}});t___wi.onbeforeunload=function(b){if($('form[action*="export"]:visible').length||($__relative_url&&$__relative_url.indexOf("software/list_pack.cgi?package=")>-1)){return}t___wi.parent.$___________right=0;t__wi_p.__lrs();if($('body[data-unload-warning="1"]').length&&$("#atsave, #save_user").length){$("#atsave, #save_user")[0].scrollIntoView()}if($('body[data-unload-warning="1"]').length||$('button[type="button"]:not(.ui_form_end_submit)').attr("data-form-onbeforeunload")==1||$('button[type="submit"]:not(.ui_form_end_submit)').attr("data-form-onbeforeunload")==1||$("body").find("._filemanager_file_editor_save.text-danger").length){if(typeof t__wi_p.NProgress==="object"){t__wi_p.NProgress.done()}return(!$('[data-form-onbeforeunload-tabledata="1"]').length?lang("theme_xhred_filemanager_file_edit_but_not_saved"):lang("theme_xhred_database_edit_but_not_saved"))+"\n\n"+lang("theme_xhred_filemanager_file_edit_but_not_saved_what_to_do")}};
\ No newline at end of file
+;charset_warning();typeof t__wi_p.t___p__xhr_r=="undefined"?t__wi_p.t___p__xhr_r=0:false;$(window).ajaxStart(function(){t__wi_p.t___p__xhr_r=1;if(t__wi_p.t___p__xhr_l===0){if(settings_loader_top&&t__wi_p.$___ajax_requested_url.indexOf("index.cgi/?xhr-info=1")===-1&&($("body").attr("class")&&$("body").attr("class").indexOf($g__o__f_m)===-1||t__wi_p.$___ajax_requested_url.indexOf("help.cgi")>-1||t__wi_p.$___ajax_requested_url.indexOf("edit_file.cgi")>-1)){t__wi_p.NProgress.remove();t__wi_p.NProgress.start()}}}).ajaxStop(function(){if(t__wi_p.t___p__xhr_l===0){if(settings_loader_top&&__num()&&!t__wi_p.$____loader_block__){t__wi_p.NProgress.done()}if(t__wi_p.t___p__ll===1){t__wi_p.__lle()}}t__wi_p.t___p__xhr_r=0});$("body").attr("style",$("body").data("style"));function _f__table(){var a=parseInt($(".tab-pane.active").attr("id").replace(/^\D+/g,""));return window["_f__table"+a]}function __r____changed(){if($("body").attr("class")&&$("body").attr("class").indexOf($g__o__f_m)>-1){$(".total_size_data").parent("span").addClass("hidden");var a=_f__table().dataTable().$("tr.hl-aw",{filter:"applied"}).length;if(a){__f___ub()}else{__f___lb()}$(".total_selected").html(a==1?lang("theme_xhred_filemanager_selected_entry").replace("%value","1 "):lang("theme_xhred_filemanager_selected_entries").replace("%value",""+a+" "))}}function __init_ck_(a){CKEDITOR_BASEPATH="/unauthenticated/js/ckeditor/";$.getScript(""+$_____link_full+"/unauthenticated/js/ckeditor/ckeditor.js",function(f,c,d){if(CKEDITOR.env.ie&&CKEDITOR.env.version<9){CKEDITOR.tools.enableHtml5Elements(document)}function g(){if(CKEDITOR.revision==("%REV%")){return true}return !!CKEDITOR.plugins.get("wysiwygarea")}CKEDITOR.config.height=$(window).height()/a[1];CKEDITOR.config.width="auto";CKEDITOR.config.removePlugins="save, about";var k=((__isNR||__isNM)?1:0);if(k){CKEDITOR.config.contentsCss=($_____link_full+"/unauthenticated/css/palettes/nightrider_ckeditor_content."+t__wi_p.$load____ext+".css?"+$g__t__ver_str);if(!$('html head link[href*="css/nightrider_ckeditor."]').length){$("html head").append(' ')}}var h=g();var j=CKEDITOR.document.getById(a[0]);if(h){var b=$("body").data("language");CKEDITOR.replace(a[0],{language:(b=="zh"?"zh-cn":b)})}else{j.setAttribute("contenteditable","true");CKEDITOR.inline(a[0])}if(a[2]===true){for(var e in CKEDITOR.instances){CKEDITOR.instances[e].on("change",function(i){i.removeListener();$("body").attr("data-unload-warning","1")})}}if(a[3]==="edit_web"){setTimeout(function(){$("hr + b").removeClass("hidden");$(".__tmp__spinner").remove()},100)}})}$.each($('tr td:last-child a:contains("..")'),function(){if($current_page_full==$_____link_full+"/virtual-server/list_databases.cgi"){$(this).html($(this).text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-info btn-xxs").removeClass("ui_link")}});function __init_dt_(f,e,a,d){typeof e=="undefined"?e=false:false;typeof a=="undefined"?a=false:false;typeof d=="undefined"?d=false:false;if(is__mf("virtual-server","index.cgi")){e=true}$.fn.dataTableExt.sErrMode="throw";function b(g){g.DataTable({order:[],aaSorting:[],bDestroy:true,bPaginate:false,columnDefs:[d],bInfo:false,bStateSave:e,destroy:true,dom:(a?"Rlfrtip":"f"),oLanguage:{sEmptyTable:lang("theme_xhred_datatable_semptytable"),sInfo:lang("theme_xhred_datatable_sinfo"),sInfoEmpty:lang("theme_xhred_datatable_sinfoempty"),sLengthMenu:lang("theme_xhred_datatable_slengthmenu"),sLoadingRecords:lang("theme_xhred_datatable_sloadingrecords"),sProcessing:lang("theme_xhred_datatable_sprocessing"),sSearch:" ",sZeroRecords:lang("theme_xhred_datatable_szerorecords")},initComplete:function(h){$(".dataTables_filter").find('input[type="search"]').attr("placeholder",lang("theme_xhred_datatable_filter"))}})}if(is__mf("virtual-server","list_users.cgi")){var c=$(".table thead tr th").filter(function(){return $(this).text().match(/Last login|Dernière Connexion|Siste innlogging|Letzer Login|Laatste login/)}).index();if(c>-1){$.each(f.find("tbody tr td:nth-child("+(c+1)+")"),function(h,i){var g=$(this).text();if(/Never|Jamais|Aldri|Niemals|Nigdy|Nooit/i.test(g)){g=0}$(this).attr("data-sort",g)}).promise().done(function(){b(f)})}else{b(f)}}else{b(f)}}function f__gc(){return t__wi_p.$("#favorites-menu .favorites-menu-content li:not(.exclude)").length}function f__g(){var b=[];$.each(t__wi_p.$("#favorites-menu .favorites-menu-content li:not(.exclude) a"),function(){var e=$(this).text(),f=$(this).attr("href"),a=$(this).find(".wbm-sm").attr("data-product");favorite={};favorite.link=f;favorite.title=e.trim();favorite.icon=(a=="virtualmin"?(a+""):a);b.push(favorite)});return b}function f__u(){$.ajax({type:"POST",url:$_____link_full+"/settings-favorites_save.cgi",data:{favorites:('{"favorites":'+JSON.stringify(f__g(),null,4).replace(/\\n/g,"\\n").replace(/\\'/g,"\\'").replace(/\\"/g,'\\"').replace(/\\&/g,"\\&").replace(/\\r/g,"\\r").replace(/\\t/g,"\\t").replace(/\\b/g,"\\b").replace(/\\f/g,"\\f")+"}")},success:function(b){t__wi_p.fetch_right_pane_favorites()},error:function(b){}})}function f__a(d,f,e){if(f__gc()===0){t__wi_p.$("#favorites-menu .favorites-menu-content li.favorites-no-message").addClass("hidden");t__wi_p.$("#favorites-menu .favorites-menu-content .favorites-title sup a").removeClass("hidden")}t__wi_p.$("#favorites-menu .favorites-menu-content li.favorites-title").after(' ')}function f__us(){if(f__gc()===0){t__wi_p.$("#favorites-menu .favorites-menu-content li.favorites-no-message").removeClass("hidden");t__wi_p.$("#favorites-menu .favorites-menu-content .favorites-title sup a").addClass("hidden")}}function f__r(b){t__wi_p.$("#favorites-menu .favorites-menu-content").find('a[href="'+b+'"]').parent("li").effect("drop",{},300,function(){$(this).remove();$("#headln2c > .favorites").addClass("fa-star-o").removeClass("fa-star text-warning");f__us();f__u()})}function f__dt(){$(f__g()).each(function(){if($(this)[0]){var b=URI(t___wi.location).resource();if($(this)[0].link==b||$(this)[0].link+"index.cgi"==b){setTimeout(function(){$("#headln2c > .favorites").addClass("fa-star").removeClass("fa-star-o")},100);return false}else{setTimeout(function(){$("#headln2c > .favorites").removeClass("fa-star").addClass("fa-star-o")},100)}}})}f__dt();if(access_level()==0&&$g__v__nav){$("#headln2c").prepend(' ');$("body").append(' ')}$("body").on("click","#headln2c > .favorites",function(m){m.preventDefault();var k=URI(t___wi.location).resource();if($(this).hasClass("fa-star-o")){$(this).removeClass("fa-star-o").addClass("fa-star text-warning");var j=$("#headln2c > font").text(),n=t__wi_p.$(".has-sub.active").text().trim(),e=t__wi_p.$(".sub_active").text().trim(),i="",l="";if(product_name()==="Virtualmin"||product_name()==="Cloudmin"){i=t__wi_p.$(".ui_select option:selected").text()}if($('body[class^="'+$g__o__f_m+'"]').length){l=URI.parseQuery(URI(t___wi.location).query())["path"];if(!l){l="[/]"}else{l="["+l+"]"}}f__a(k,(((i.length?(i+" - "):"")+(n.length?(n+"/"):"")+(e.length?(e+": "):""))+j.trim()+(l.length?(" "+l):"")),(product_name()==="Virtualmin"?"virtualmin":product_name()==="Cloudmin"?"cloudmin":"webmin"));f__u()}else{$(this).addClass("fa-star-o").removeClass("fa-star text-warning");f__r(k)}});if(typeof jQuery.ui=="object"){t__wi_p.$("#favorites-menu > div > nav > ul").sortable({revert:true,delay:100,update:function(){f__u()}})}t__wi_p.$("#favorites-menu .favorites-menu-content").on("mouseover","li:not(.exclude) span.f__c, li:not(.exclude) span.f__c small",function(){$(this).find("small").removeClass("hidden")}).on("mouseleave","li:not(.exclude) span.f__c, li:not(.exclude) span.f__c small",function(){$(this).find("small").addClass("hidden")});t__wi_p.$("#favorites-menu .favorites-menu-content").on("mouseover","li:not(.exclude) small",function(){$(this).find(".fa-times").removeClass("fa-times").addClass("fa-times-circle");$(this).animate({"font-size":"0.7em","margin-top":"-2px","margin-left":"-1px"},160)}).on("mouseleave","li:not(.exclude) small",function(){$(this).find(".fa-times-circle").removeClass("fa-times-circle").addClass("fa-times");$(this).animate({"font-size":"0.6em","margin-top":"-1px","margin-left":"0"},80)});t__wi_p.$("#favorites-menu .favorites-menu-content").on("click","li:not(.exclude) small .fa-times-circle",function(b){b.preventDefault();b.stopPropagation();f__r($(this).parents("a").attr("href"))});$(document).on("keydown",function(b){if(t__wi_p.$(".favorites-menu-outer").css("left")=="0px"&&b.keyCode==27){t__wi_p.$(".favorites-menu-outer").removeClass("hover")}});f__us();function l__res_fi(){$(".btn-filter-top-right .dataTable-mirror").val("").trigger("keyup");$(".btn-filter-top-right input").is(":visible")&&$(".btn-filter-top-right input").trigger("blur")}function l__ck_fi(){if(($(".nav.nav-tabs").length&&$(".active .dataTables_filter").length)||(!$(".nav.nav-tabs").length&&$(".dataTables_filter").length)){$(".btn-filter-top-right").show()}else{$(".btn-filter-top-right").hide()}}function f__mgk_sp(n,k,j,l){var e=(((n.attr("onclick")&&n.attr("onclick").indexOf("blank")!==-1)||(n.parents("form").attr("target")&&n.parents("form").attr("target").indexOf("blank")!==-1))?true:false),b=n.hasClass("heighter-28"),c=n.css("height")=="28px",g=n.hasClass("btn-lg"),f=is__m("server-manager")?2:0,m=n.find(".fa").hasClass("fa-1_25x"),d=n.find(".fa"),h=((typeof k=="undefined"||k==false)?false:k),i=' ',a=' ';!e&&n.addClass("disabled");if(d.length&&!e){if(n.hasClass("btn-default")){d.addClass("invisible").after(a)}else{d.addClass("invisible").after(i)}}typeof j=="undefind"?j=false:false;typeof l=="undefind"?l=false:false;if(h[3]||j){setTimeout(function(){n.removeClass("disabled");d.removeClass("invisible");n.find(".cspinner_container").remove()},(j?j:h[3]))}if(l){setTimeout(function(){__lre()},2)}}function f__mgk_fi(){if($(".dataTables_filter").length){setTimeout(function(){$("#headln2r .btn-group a").addClass("pull-left").attr("style","");$("#headln2r .btn-group").prepend(' ');if($(".nav.nav-tabs").length){$("body").on("shown.bs.tab",'a[data-toggle="tab"]',function(b){var c=$(b.target).parent(".active");if(c.data("filter-value")){$(".dataTable-mirror").val(c.data("filter-value")).trigger("keyup")}else{$(".dataTable-mirror").val("").trigger("keyup")}l__ck_fi()})}var a=$(".dataTables_filter");a.hide();$(".btn-filter-top-right").click(function(b){!$(b.target).is("input")&&$(this).find("label").slideToggle(300,function(){$(this).find("input").focus()})});$(".dataTable-mirror").keyup(function(b){if($(".nav.nav-tabs").length){$(".nav-tabs li.active").data("filter-value",$(this).val());$(".active .dataTables_filter input").val($(this).val()).trigger("keyup")}else{$(".dataTables_filter input").val($(this).val()).trigger("keyup")}if($.trim($(this).val()).length>0){$(".btn-filter-top-right i").addClass("text-danger")}else{$(".btn-filter-top-right i").removeClass("text-danger")}});$(".btn-filter-top-right input").blur(function(b){$(this).parent("label").slideToggle(0)});l__ck_fi()},0)}}function datePicker(p,n,o,m){var d=$(n).find("option:eq(0)").val()==1?0:1;var e=$(m),l=parseInt($(p).val()),q=($(n).val()?parseInt($(n).val())+d:false),i=$(o).val();e.datepicker({format:" yyyy-m-d",language:$("body").data("language"),autoclose:true}).on("hide",function(a){var b=e.val()?e.val().split("-"):false;e.val("");if(b){$(p).val(parseInt(b[2]));$(n).val(parseInt(b[1])-d);$(o).val(parseInt(b[0]))}}).focus()}var $product_name=t__wi_p.$("#wrapper").data("product");$('body:not(".mobile-menu-toggler")').on("click",function(b){t__wi_p.hide_mobile_menu();if(t__wi_p.$(".autocomplete-suggestions").is(":visible")){}});if(t__wi_p.$(".switch-toggle").find('label[for="open_thirdlane"]').length){t__wi_p.$('.switch-toggle input:not([id="open_webmin"])').each(function(){$(this).removeAttr("checked")}).promise().done(function(){t__wi_p.$("#open_webmin").prop("checked",true)})}if(__num()){if($current_directory==$_____link+"init/"){$("table.table tbody tr").addClass("ui_checked_columns")}function __mr(){var a=($("body").attr("class")&&$("body").attr("class").indexOf($g__o__f_m)>-1);if(a){return}$.each($(".ui_checked_columns"),function(b,e){if($(e).find("a[href]")&&!$("body").hasClass("servers")&&!$(this).hasClass("selectable")){$(e).addClass("cursor-pointer").find("td").addClass("cursor-pointer").find("label").addClass("cursor-pointer").find("tt").addClass("cursor-pointer")}$(e).find("td:not(.selectable)").click(function(d){if($(d.target).is(".awobject, .iawobject, .lawobject, .awcheckbox, .awradio")){return}if($(e).find("a[href]")&&!$("body").hasClass("servers")){var c=$(e).find("a[href]")[0],h=$(this).parents("tr.ui_checked_columns"),f=$(d.target).find('input[type="checkbox"]:not(":disabled")'),g=f.length;g&&f.trigger("click");if(c&&($(this).find("a").attr("href")===$(c).attr("href")||$(this).find("a").attr("href")===undefined)&&!$(d.target).is("select, input, .awobject, .iawobject, .lawobject, .awcheckbox, .awradio")&&($(this).parent("tr").find('a[href*="download.cgi"]').length===0)){d.preventDefault();if($(c).attr("target")){!g&&window.open($(c).attr("href"),$(c).attr("target"))}else{window.location.href=$(c).attr("href")}}}});$(e).find("td").contextmenu(function(c){var d=$(this).parents("tr.ui_checked_columns");c.preventDefault();if(($(this).parents("tr").find('input[type="checkbox"]:first').length&&$(this).parents("tr").find('input[type="checkbox"][disabled]').length===0)||($(this).parents("tr").find('input[type="checkbox"][disabled]').length&&$(this).parents("tr").find("input").length>1)){if(d.find('input[type="checkbox"]:first').is(":checked")){d.removeClass("hl-aw");__r____changed()}else{d.addClass("hl-aw");__r____changed()}d.find('input[type="checkbox"]:first').trigger("click")}})})}__mr();function __mcr(){$.each($('input[type="radio"]:not(.iawobject), input[type="checkbox"]:not(.iawobject)'),function(){if($(this)[0]){$___text=$(this)[0].nextSibling}var e=$(this).next('input:not([type="radio"], [type="checkbox"], [type="hidden"]), select, textarea'),k=($___text&&$___text.nodeValue&&$.trim($___text.nodeValue).length>1),d=(k?$___text.nodeValue:" "),j=$(this).attr("type").toLowerCase();if($(this).next("label").length===0&&e.length===0&&k){$(this).addClass("iawobject");var g=$(this).attr("id")?'for="'+$(this).attr("id")+'"':false;if(g===false&&$(this).attr("name")&&$(this).val()){var h="__replaced_"+$(this).attr("name")+"_"+$(this).val()+"";var g='for="'+h+'"';$(this).attr("id",h)}$($___text).wrap('"+d.replace(/ /g,"<hr>").replace(/ ");$($___text).remove();$(this).next("label").addBack().wrapAll(' ')}else{if(e.length===0&&$(this).next("label").length===0&&$(this).prev("label").length===1&&!k){var c=$(this).prev("label"),f=c.text();$(this).addClass("iawobject");if(!$(this).attr("id")&&!$("#"+$(this).attr("name")).length){$(this).attr("id",$(this).attr("name"))}$(this).after(''+f+" ");$(this).next("label").addBack().wrapAll(' ');$(this).attr("id",$(this).attr("name")+"-aur0").removeClass("form-control").css("width","initial");c.remove()}else{if(e.length===0&&$(this).next("label").length===0&&!k){$(this).addClass("iawobject");var i=$(this).attr("name");if(i){i=$(this).attr("name").replace(".","").replace("%","")}if(!$(this).attr("id")&&!$("#"+i).length){$(this).attr("id",i)}$(this).after(' ');$(this).next("label").addBack().wrapAll(' ')}}}if(e.length===1&&$(this).next("label").length===0){$(this).addClass("iawobject");if(!$("#"+e.attr("name")).length){$(this).attr("id",e.attr("name"))}else{if(!$("#"+e.attr("name")).length){e.attr("id",e.attr("name"))}}$(this).after(''+d+" ");$(this).next("label").addBack().wrapAll(' ');k&&$($___text).remove()}})}__mcr();var $onLoad_checkBox=$('.ui_checked_columns td.ui_checked_checkbox input[type="checkbox"]:checked:not(disabled)').parents("tr.ui_checked_columns").addClass("hl-aw");$("body").on("change",'input[type="checkbox"], input[type="radio"]',function(b){var c=$(this).parents("tr.ui_checked_columns");if(c.length&&c.find("input:first").is($(this))){if($(this).is(":checked")){c.addClass("hl-aw");__r____changed()}else{c.removeClass("hl-aw");__r____changed()}}});$("body").on("click",".ui_link, .ui_link_replaced",function(){$.each($('input[type="checkbox"]'),function(){if($(this).is(":checked")){$(this).parents("tr.ui_checked_columns").addClass("hl-aw");__r____changed()}else{$(this).parents("tr.ui_checked_columns").removeClass("hl-aw");__r____changed()}})})}if($("body").hasClass("servers")){$('form[action="delete_servs.cgi"] a.icon_link, form[action="delete_servs.cgi"] a.ui_link, form[action="delete_servs.cgi"] .col-xs-1').on("click",function(e){if($(e.target).is(".gl-icon-select")){return}var g=$__source_url+$(this).attr("href"),f=$(this).attr("href"),h=$(this);if((f&&f.indexOf("edit_serv.cgi")>-1)||(f&&f.indexOf("logout.cgi")>-1)){t___wi.location.href=f}else{if(f&&f.indexOf("://")===-1){t___wi.open(g)}else{t___wi.open(f)}}e.preventDefault();e.stopPropagation()})}if($current_page_full==$_____link_full+"/apache/edit_global.cgi"||$current_page_full==$_____link_full+"/apache/edit_virt.cgi"||$current_page_full==$_____link_full+"/apache/edit_dir.cgi"){$.each($(".ui_opt_textbox.form-control"),function(){if($(this).parent("span").next("button.btn.btn-default.file_chooser_button").length>0){$(this).css("margin-right","4px")}})}if($(".opener_container").length){$.each($(".opener_container"),function(){if($(this).find(".opener_shown").is(":visible")){$(this).parent("tr").prev("tr").find("td a:nth-child(1)").addClass("opener_container_opened").removeClass("opener_container_closed")}})}function hidden_opener(c,d){if($("#"+c).parent(".opener_container").length===0){$("#"+c).wrapAll('
')}if($("#"+c).hasClass("opener_shown")){$("#"+c).parent(".opener_container").prev(".opener_extra_container.opener_extra_container_style").find(".opener_extra_container_a_style").removeClass("opener_container_opened").addClass("opener_container_closed");$("#"+c).parent(".opener_container").prev("p").find(".opener_extra_container_a_style").removeClass("opener_container_opened").addClass("opener_container_closed");$("#"+c).parent(".opener_container").parent("tr").prev("tr").find("td a:nth-child(1)").removeClass("opener_container_opened").addClass("opener_container_closed");$("#"+c).parent(".opener_container").show().find("#"+c).slideUp($settings_animation_tabs_slide_time,function(){$("#"+c).removeClass("opener_shown").addClass("opener_hidden").parent('.opener_container:not(".opener_sub_container")').hide();$("#"+c).parent(".opener_sub_container").removeClass("margined-top")})}else{$("#"+c).parent(".opener_container").prev(".opener_extra_container.opener_extra_container_style").find(".opener_extra_container_a_style").addClass("opener_container_opened").removeClass("opener_container_closed");$("#"+c).parent(".opener_container").prev("p").find(".opener_extra_container_a_style").addClass("opener_container_opened").removeClass("opener_container_closed");$("#"+c).parent(".opener_container").parent("tr").prev("tr").find("td a:nth-child(1)").addClass("opener_container_opened").removeClass("opener_container_closed");$("#"+c).slideUp(0).removeClass("opener_hidden").addClass("opener_shown").parent(".opener_container").slideDown($settings_animation_tabs_slide_time).find(".opener_shown").slideDown($settings_animation_tabs_slide_time);$("#"+c).parent(".opener_sub_container").addClass("margined-top")}}if($(".opener_shown").length>0){if($(".opener_trigger").length>0){$(".panel-body .ui_form .table tbody tr").removeClass("thead");$(".opener_trigger").parents("table.table").addClass("opener_table_style");$(".opener_trigger").parents("tr").addClass("_c__op_r").attr("style","border: 0 !important");$(".opener_trigger").parent("td").addClass("_c__op_d");$(".opener_trigger").parent("td").find("a").addClass("link_hover_effect link_hover_effect_style_extra")}}if($('a[href^="javascript:hidden_opener"]:not(".opener_trigger")').length>0){$('a[href^="javascript:hidden_opener"]:not(".opener_trigger")').each(function(e,g){var d=(($current_page_full==$_____link_full+"/virtual-server/backup_form.cgi"&&$__source_url&&$__source_url.indexOf("?sched=")>-1)?true:false);$(this).find("img").length>0?$(this).remove():false;$(this).css("border-bottom","0");$(this).parents("table.table").addClass("opener_table_style_small");$(this).parent("td").addClass("opener_table_cell_style_small");if(!d){$(this).parent("td").addClass("opener_table_cell_style_small opener_table_cell_style_small_exclusion_border_top")}$(this).parent("td").find("a").addClass("link_hover_effect link_hover_effect_style");if($(this).parent().is(".panel-body")||$(this).parent().is(".ui_form")){var h=$(this),c=h.parent().is(".panel-body")?".panel-body":".ui_form";h.parent(c).find('a[href^="javascript:hidden_opener"]:eq(1)').wrapAll('');if(is__mf("bind8","edit_zonekey.cgi")){h.parent(c).find('a[href^="javascript:hidden_opener"]:eq('+(e+1)+")").wrapAll('')}h.parent('.panel-body > a[href^="javascript:hidden_opener"]:first-child').remove();var f=h.parent(c).find(".opener_extra_container");$(f).next("br").remove();$(f).addClass("opener_extra_container_style");$(f).find("a").addClass("opener_extra_container_a_style link_hover_effect");$(f).next(".opener_hidden").attr("style","padding:8px")}});$.each($(".opener_hidden"),function(){$(this).css("display","none")})}$("a.opener_trigger").each(function(){$(this).parent("td").css("text-align","left")});$('form[action*="seen_newfeatures.cgi"]').each(function(){$(this).parents("table.table-striped").next(".ui_form_end_buttons").css("margin-top","14px")});$("body").on("submit",'form[action*="seen_newfeatures.cgi"]',function(b){b.preventDefault();$this=$(this);$.ajax({type:"GET",url:$(this).attr("action"),data:false,statusCode:{200:function(){$this.parents(".panel.panel-default").remove()}}})});$(t__wi_p.$('iframe[name="page"]').contents()).keydown(function(b){if(t__wi_p.$(".-shell-port-").hasClass("opened")){b.preventDefault();b.stopPropagation();return}t__wi_p.search_control(b);t__wi_p.shortcut_control(b)});$("body").on("click",'.authentic_update:not([data-git="0"]):not(.disabled)',function(b){b.preventDefault();b.stopPropagation();var c=$(this),e=$("body").add(t__wi_p.$("body")),d=c.data("stable")=="1"?"-release":"-beta";e.addClass("pointer-events-none");$("body").attr("data-unload-warning","1");t__wi_p.NProgress.start();t__wi_p.$("#wrapper").addClass("bg-filter-blur-grayscale-opacity50");messenger(' '+lang("theme_xhred_git_patch_initiated")+" "+lang("theme_xhred_global_please_wait")+' ',1800,"info","themeUpgrade",0);$.ajax({type:"POST",url:$_____link_full+"/index.cgi?xhr-update=1&xhr-update-type="+d+"",data:false,dataType:"json",success:function(a){if(a[0]&&a[0].success){messenger(' '+a[0].success,4,"success","themeUpgrade");setTimeout(function(){t___wi.top.location.reload()},2000)}else{if(a[0]&&a[0].no_git){messenger(' '+a[0].no_git,20,"warning","themeUpgrade");t__wi_p.$("#wrapper").removeClass("bg-filter-blur-grayscale-opacity50");e.removeClass("pointer-events-none")}else{messenger(' '+lang("theme_xhred_git_patch_update"),20,"error","themeUpgrade");t__wi_p.$("#wrapper").removeClass("bg-filter-blur-grayscale-opacity50");e.removeClass("pointer-events-none")}}},error:function(a){messenger(' '+lang("theme_xhred_git_patch_update"),20,"error","themeUpgrade");t__wi_p.$("#wrapper").removeClass("bg-filter-blur-grayscale-opacity50");e.removeClass("pointer-events-none")},complete:function(a){t__wi_p.NProgress.done();$("body").removeAttr("data-unload-warning")}})});$("body").on("click",'.authentic_update:not([data-git="1"])',function(b){b.preventDefault();b.stopPropagation();t__wi_p.history.pushState(null,null,$_____link_full+"/?updating-webmin-theme");t__wi_p.$('iframe[name="page"]').attr("src",$(this).attr("href"))});$("body").on("click contextmenu",'a[data-href*="/webmin/edit_webmincron.cgi"], a[data-href*="/package-updates/index.cgi"]',function(b){b.preventDefault();b.stopPropagation();if($(this).attr("data-refresh").indexOf("package-updates")!==-1){t__wi_p.history.pushState(null,null,$_____link_full+"/?recollecting")}else{t__wi_p.history.pushState(null,null,$_____link_full+"/?recollect")}t__wi_p.$('iframe[name="page"]').attr("src",$(this).attr("data-href"))});$("#tall_0").before(" ");$(".opener_container").each(function(d,c){if($(this).find("div").hasClass("opener_hidden")){$(this).hide()}else{$(this).show()}});$("body").tooltip({selector:'[data-toggle="tooltip"], [data-toggle="virtualmin-license"], .panel-body td a',container:"body",placement:"auto top",html:true});$.each($("div.barchart"),function(){var d=$(this).find('img[src*="red.gif"]'),c=$(this).parent("td").contents().filter(function(){return this.nodeType==3}).text();if(d&&d.attr("width")){$(this).parent("td").html(' '+c+'
'+d.attr("width")+" ")}});$('.panel-body > form > table > tbody > tr > td:has(input[type="submit"])').parents("table.table-hardcoded > tbody > tr").css("border","none").parents("table").css("margin-top","20px");$('.panel-body > form > table > tbody > tr > td:has(input[type="submit"])').parents("table.table-hardcoded > tbody").css("border","none");$('.ui_grid_table > tbody > tr.ui_grid_row > td:has(button[type="submit"])').parents("table.ui_grid_table").css("border","none");$("form.ui_form > table label.radio, form.ui_form > table label.checkbox").each(function(){var h=$(this),g=h.find("i.fa"),e=h.find("i.fa").text().trim(),f=h.text().trim();if(e.length===0&&f.length===0){g.parent("label").remove()}});if($current_page_full&&($current_page_full.indexOf("/webmin/edit_themes.cgi")>-1||$source_path==$_____link+"settings-user.cgi")&&t__wi_p.location.search!="?updating-webmin-theme"){if($source_path==$_____link+"settings-user.cgi"){t__wi_p.__cms()}$("body").on("change",'form[action*="settings.cgi"] select, form[action*="save_config.cgi"] select, form[action*="settings.cgi"] input, form[action*="save_config.cgi"] input',function(a){var b=$(this).val();if(b=="true"||b=="false"){if(b=="true"){var d=true}else{if(b=="false"){var d=false}}}else{var d=b}window[$(this).attr("name")]=d;t__wi_p[$(this).attr("name")]=d;if(a.originalEvent!==undefined){if((t__wi_p.$___________initial&&$__source_file!=="settings-user.cgi")){t__wi_p.$___________initial=0}else{at__s_s__b(1)}}});$("body").on("keydown",'form[action*="settings.cgi"] input, form[action*="save_config.cgi"] input',function(a){if(a.originalEvent!==undefined){at__s_s__b(1)}});if($source_path==$_____link+"settings-user.cgi"){$('button[type="button"][name="save_user"]').on("click",function(a){a.preventDefault();a.stopPropagation();t__wi_p.$___ajax_requested_url="_blank";t__wi_p.manageConfig("save");t__wi_p.__lls();f__mgk_sp($(this),[-0.5,-25,"small",750]);setTimeout(function(){t__wi_p.f__l_reload()},1400)})}$(function(){function b(){$("body").on("click","#atrestore:not(.disabled)",function(){$(this).off();var a=$(this);if(!a.hasClass("btn-inverse")){setTimeout(function(){f__mgk_sp(a,[1.5,-33,"small",false]);var d=$(".ui_form").serialize();$.ajax({type:"POST",url:$_____link_full+"/index.cgi?xhr-settings=1&restore=1",data:d,success:function(c){t___wi.top.location.reload()},error:function(c){a.addClass("btn-danger").removeClass("btn-default btn-inverse opacity-0_5")}})},0)}})}if(is_module("webmin")){$(".nav.nav-tabs").prepend(' ');$(".tab-pane").first().before('
');$('.nav-tabs a[href="#atsettings"]').tab("show")}else{}$.ajax({type:"GET",url:$_____link_full+"/index.cgi/?xhr-settings=1",data:false,dataType:"text",success:function(k){$("#atsettings").html(k);var n=$("div#atsettings").find(".ui_form");$__theme_text_right_save=n.data("text-save");$__theme_text_right_saved=n.data("text-settings_right_saved");$__theme_text_right_saving=n.data("text-settings_right_saving");$__theme_text_right_restore_defaults=n.data("text-settings_right_restore_defaults");$__theme_text_right_restored=n.data("text-settings_right_restored");$__theme_text_right_restoring=n.data("text-settings_right_restoring");$__theme_text_right_error=n.data("text-error");$('.nav-tabs a[href="#atsettings"]').text(n.data("text-current_theme"));$("div#atsettings").removeClass("text-center");b();settings_update();var m=$("body").find(".fa.fa-sub-title").parent("span");$(m).next("br").remove();$(m).next("div.smaller").attr("style","margin-top: -15px !important");m.remove();function e(c){typeof c=="undefined"?c=$('input[name="settings_right_hide_table_icons"]:checked'):false;var f=["settings_right_small_table_icons","settings_right_animate_table_icons","settings_right_grayscaled_table_icons"];if(c.val()=="true"){$.each(f,function(g,h){$('input[name="'+h+'"]').prop("disabled",true);$('input[name="'+h+'"]').parent(".aradio").addClass("disabled")})}else{$.each(f,function(g,h){$('input[name="'+h+'"]').prop("disabled",false);$('input[name="'+h+'"]').parent(".aradio").removeClass("disabled")})}}e();$('input[name="settings_right_hide_table_icons"]').on("change",function(){e($(this))});function i(c){typeof c=="undefined"?c=$('input[name="settings_hotkeys_active"]:checked'):false;var f=["settings_hotkey_custom_1","settings_hotkey_custom_2","settings_hotkey_custom_3","settings_hotkey_custom_4","settings_hotkey_custom_5","settings_hotkey_custom_6","settings_hotkey_custom_7","settings_hotkey_custom_8","settings_hotkey_custom_9","settings_hotkey_toggle_modifier","settings_hotkey_toggle_key_webmin","settings_hotkey_toggle_key_virtualmin","settings_hotkey_toggle_key_cloudmin","settings_hotkey_toggle_key_usermin","settings_hotkey_toggle_key_webmail","settings_hotkey_focus_search","settings_hotkey_toggle_slider","settings_hotkey_reload","settings_hotkey_reload","settings_hotkey_toggle_key_night_mode","settings_hotkey_sysinfo","settings_hotkey_favorites"];if(c.val()=="false"){$.each(f,function(g,h){$('input[name="'+h+'"], select[name="'+h+'"]').prop("disabled",true)})}else{$.each(f,function(g,h){$('input[name="'+h+'"], select[name="'+h+'"]').prop("disabled",false)})}}i();$('input[name="settings_hotkeys_active"]').on("change",function(){i($(this))});function j(c){typeof c=="undefined"?c=$('input[name="settings_side_slider_enabled"]:checked'):false;var f=["settings_side_slider_palette","settings_side_slider_fixed","settings_side_slider_background_refresh_time","settings_side_slider_sysinfo_enabled","settings_side_slider_notifications_enabled","settings_side_slider_favorites_enabled","settings_side_slider_tabs_hotkeys"];if(c.val()=="false"){$.each(f,function(g,h){if(h=="settings_side_slider_fixed"){$('input[name="settings_side_slider_fixed"][value="false"]').trigger("click")}$('input[name="'+h+'"], select[name="'+h+'"]').prop("disabled",true).parent(".aradio").addClass("disabled")})}else{$.each(f,function(g,h){$('input[name="'+h+'"], select[name="'+h+'"]').prop("disabled",false).parent(".aradio").removeClass("disabled")})}}j();$('input[name="settings_side_slider_enabled"]').on("change",function(){j($(this))});function l(c){typeof c=="undefined"?c=$('input[name="settings_sysinfo_easypie_charts"]:checked'):false;var f=["settings_sysinfo_easypie_charts_size","settings_sysinfo_easypie_charts_width","settings_sysinfo_easypie_charts_scale"];if(c.val()=="true"){$.each(f,function(g,h){$('input[name="'+h+'"]').prop("disabled",false).removeClass("disabled")})}else{$.each(f,function(g,h){$('input[name="'+h+'"]').prop("disabled",true).addClass("disabled")})}}l();$('input[name="settings_sysinfo_easypie_charts"]').on("change",function(){l($(this))});function a(c){typeof c=="undefined"?c=$('input[name="settings_sysinfo_theme_updates"]:checked'):false;var f=["settings_sysinfo_theme_patched_updates"];if(c.val()=="true"){$.each(f,function(g,h){$('input[name="'+h+'"]').prop("disabled",false).removeClass("disabled")})}else{$('input[name="settings_sysinfo_theme_patched_updates"][value="false"]').trigger("click");$.each(f,function(g,h){$('input[name="'+h+'"]').prop("disabled",true).addClass("disabled")})}}a();$('input[name="settings_sysinfo_theme_updates"]').on("change",function(){a($(this))});$('select[name="settings_navigation_color"]').on("click keyup change",function(c){var f=$(this).val();$("body").attr("data-theme",f);t__wi_p.$("body").attr("data-theme",f);t__wi_p.$("link[data-palette]").remove();if(f!="blue"){t__wi_p.$("head").append(' ')}t__wi_p.$("body").attr("data-default-theme",f);$(t__wi_p.page.document).find("body").attr("data-default-theme",f);t__wi_p.$("body .user-link.palette-toggle").find(".fa-sun").trigger("click");settings_update()});$('select[name="settings_background_color"]').on("click keyup change",function(c){var f=$(this).val();t__wi_p.$("html").attr("data-background-style",f);$("html").attr("data-background-style",f);$("link[data-palette]").remove();if(f!="gainsboro"){$("head").append(' ');$('select[name="settings_navigation_color"]').val("gunmetal").trigger("change")}settings_update()});$('select[name="settings_side_slider_palette"]').change(function(c){t__wi_p.$("body .right-side-tabs, body .right-side-tabs-toggler").attr("data-background-style",$(this).val())});$('input[name="settings_side_slider_enabled"]').change(function(c){if($(this).val()=="true"){t__wi_p.$("body .right-side-tabs-toggler").removeClass("hidden");t__wi_p.$("body .right-side-tabs").removeClass("hidden");$('input[name="settings_side_slider_sysinfo_enabled"][value="true"], input[name="settings_side_slider_notifications_enabled"][value="true"], input[name="settings_side_slider_favorites_enabled"][value="true"]').trigger("click")}else{t__wi_p.$("body .right-side-tabs-toggler").addClass("hidden");t__wi_p.$("body .right-side-tabs").addClass("hidden")}settings_update()});$('input[name="settings_side_slider_fixed"]').change(function(c){if($(this).val()=="true"){n___p__f(1)}else{n___p__f(0)}settings_update()});$('input[name="settings_side_slider_sysinfo_enabled"], input[name="settings_side_slider_notifications_enabled"], input[name="settings_side_slider_favorites_enabled"]').change(function(c){var g=("right-side-tabs-"+$(this).attr("name").split("_")[3]),q=$(this).attr("name"),f=t__wi_p.$("body").find("#"+g).hasClass("active"),h=$('input[name="settings_side_slider_sysinfo_enabled"][value="true"]:checked, input[name="settings_side_slider_notifications_enabled"][value="true"]:checked, input[name="settings_side_slider_favorites_enabled"][value="true"]:checked').length;if($(this).val()=="true"){t__wi_p.$("body").find('a[href="#'+g+'"], #'+g+"").removeClass("hidden").parent().removeClass("hidden");if(q==="settings_side_slider_notifications_enabled"){t__wi_p.$(".right-side-tab-notification-asterix").removeClass("invisible hidden hidden-forged");t__wi_p.$(".right-side-tabs-toggler .badge.badge-danger").removeClass("invisible hidden hidden-forged");setTimeout(function(){if(typeof t__wi_p.n___fv==="function"){t__wi_p.n___fv()}},300)}}else{t__wi_p.$("body").find('a[href="#'+g+'"], #'+g+"").addClass("hidden");if(f&&h){t__wi_p.$("body #right-side-tabs").find("li:not(.active) a:not(.hidden)").first().trigger("click")}else{if(h===0){$('input[name="settings_side_slider_enabled"][value="false"]').trigger("click")}}if(q==="settings_side_slider_notifications_enabled"){t__wi_p.$(".right-side-tab-notification-asterix").addClass("invisible hidden hidden-forged");t__wi_p.$(".right-side-tabs-toggler .badge.badge-danger").addClass("invisible hidden hidden-forged");t__wi_p.favicon.badge(0);t__wi_p.titlenotifier.set(0)}}settings_update()});$('input[name="settings_side_slider_sysinfo_enabled"], input[name="settings_side_slider_notifications_enabled"], input[name="settings_side_slider_favorites_enabled"]').each(function(){$('input[name="'+$(this).attr("name")+'"][value="'+window[$(this).attr("name")]+'"]').trigger("change")});$('select[name="settings_navigation_color"]').after(' ');$(".settings_navigation_color_toggle, .settings_background_color_toggle").on("click",function(){if(typeof window[$(this).attr("data-name")+"controller"]=="undefined"||window[$(this).attr("data-name")+"controller"]=="hidden"){$("."+$(this).attr("data-name")+"_reset, ."+$(this).attr("data-name")+"_rows").removeClass("hidden");window[$(this).attr("data-name")+"controller"]="shown"}else{$("."+$(this).attr("data-name")+"_reset, ."+$(this).attr("data-name")+"_rows").addClass("hidden");window[$(this).attr("data-name")+"controller"]="hidden"}});$(".settings_navigation_color_reset, .settings_background_color_reset").on("click",function(){if($(this).attr("data-name")=="settings_navigation_color"){f__l__filter_r()}else{f__c__filter_r()}});var d=$('input[name="settings_grayscale_level_navigation"], input[name="settings_sepia_level_navigation"], input[name="settings_saturate_level_navigation"], input[name="settings_hue_level_navigation"], input[name="settings_invert_level_navigation"], input[name="settings_brightness_level_navigation"], input[name="settings_contrast_level_navigation"]');d.on("click keyup change",function(c){var f="-webkit-filter: grayscale("+$('input[name="settings_grayscale_level_navigation"]').val()+") sepia("+$('input[name="settings_sepia_level_navigation"]').val()+") saturate("+$('input[name="settings_saturate_level_navigation"]').val()+") hue-rotate("+$('input[name="settings_hue_level_navigation"]').val()+"deg) invert("+$('input[name="settings_invert_level_navigation"]').val()+") brightness("+$('input[name="settings_brightness_level_navigation"]').val()+") contrast("+$('input[name="settings_contrast_level_navigation"]').val()+"); filter: grayscale("+$('input[name="settings_grayscale_level_navigation"]').val()+") sepia("+$('input[name="settings_sepia_level_navigation"]').val()+") saturate("+$('input[name="settings_saturate_level_navigation"]').val()+") hue-rotate("+$('input[name="settings_hue_level_navigation"]').val()+"deg) invert("+$('input[name="settings_invert_level_navigation"]').val()+") brightness("+$('input[name="settings_brightness_level_navigation"]').val()+") contrast("+$('input[name="settings_contrast_level_navigation"]').val()+");";t__wi_p.$(".visible-xs.mobile-menu-toggler").attr("style","position: fixed;"+f);t__wi_p.$("aside, .visible-xs.mobile-menu-toggler").attr("style","z-index: 10; overflow: visible; transform: translate("+settings_leftmenu_width+"px, 0px);"+f);$('code[data-name="'+$(this).attr("name")+'"]').text($(this).val());settings_update()});d.each(function(){$('code[data-name="'+$(this).attr("name")+'"]').text($(this).val());$(this).parent().parent("td").parent("tr.atshover").addClass("hidden settings_navigation_color_rows")});var p=$('input[name="settings_grayscale_level_content"], input[name="settings_saturate_level_content"], input[name="settings_hue_level_content"]');p.on("click keyup change",function(c){var f="-webkit-filter: grayscale("+$('input[name="settings_grayscale_level_content"]').val()+") saturate("+$('input[name="settings_saturate_level_content"]').val()+") hue-rotate("+$('input[name="settings_hue_level_content"]').val()+"deg); filter: grayscale("+$('input[name="settings_grayscale_level_content"]').val()+") saturate("+$('input[name="settings_saturate_level_content"]').val()+") hue-rotate("+$('input[name="settings_hue_level_content"]').val()+"deg);";$("body").attr("style",f);t__wi_p.$("#content .loading-container").attr("style",f);$('code[data-name="'+$(this).attr("name")+'"]').text($(this).val());settings_update()});p.each(function(){$('code[data-name="'+$(this).attr("name")+'"]').text($(this).val());$(this).parent().parent("td").parent("tr.atshover").addClass("hidden settings_background_color_rows")});var o=$('input[name="settings_leftmenu_width"]');o.on("click keyup change",function(c){t__wi_p.f__r__s($(this).val(),$(this).val());$('code[data-name="'+$(this).attr("name")+'"]').text($(this).val());settings_update();t__wi_p.settings_leftmenu_width_initial=$(this).val()});o.each(function(){$('code[data-name="'+$(this).attr("name")+'"]').text($(this).val());t__wi_p.settings_leftmenu_width_initial=$(this).val()});if($__source_query=="restored"){d.trigger("click");p.trigger("click");o.trigger("click");$('select[name="settings_navigation_color"], select[name="settings_background_color"]').trigger("change");window.history.pushState(null,null,$_____link_full+"/webmin/edit_themes.cgi")}t__wi_p.$("aside ul.user-html li.user-html-string").html($('input[name="settings_leftmenu_user_html"]').val());$('input[name="settings_leftmenu_user_html"]').keyup(function(c){t__wi_p.$("aside ul.user-html li.user-html-string").html($(this).val())});if(dashboard_switch()){$('input[name="settings_sysinfo_link_mini"]').parent().parent().parent().parent("tr").remove()}if(!$t_uri_virtualmin&&!$t_uri_cloudmin){}$('input[name^="settings_leftmenu_netdata_link"], input[name^="settings_leftmenu_user_html_only_for_administrator"], input[name="settings_sysinfo_easypie_charts_size"], input[name="settings_sysinfo_easypie_charts_width"], input[name="settings_sysinfo_easypie_charts_scale"], input[name="settings_sysinfo_theme_patched_updates"]').parents("td.col_value.atscontent").parent("tr.atshover").addClass("settings_option_padded");$('input[data-role="tagsinput"]').tagsinput();$("body").css("overflow","auto");$.getScript(""+$_____link_full+"/unauthenticated/js/detector."+t__wi_p.$load____ext+".js?"+$g__t__ver_str+"",function(c,h,g){var f=new Detector;$.each($('select[name="settings_font_family"] option'),function(){var q=$(this).text();if(!f.detect(q)&&$(this).val()!="system-default"){$(this).attr("disabled","disabled").text(q+" ("+lang("theme_xhred_global_not_available")+")")}});$('select[name="settings_font_family"]').on("click keyup change",function(q){var u=$(this).val(),r=$.merge(t__wi_p.$("head"),t___wi.$("head")),s=t__wi_p.$("head").find('link[href*="font-"]').add(t___wi.$("head").find('link[href*="font-"]')).add(t__wi_p.$("head").find('link[href*="fonts-roboto"]')).add(t___wi.$("head").find('link[href*="fonts-roboto"]')),t=$.merge(t__wi_p.$("head").find('link[href*="/authentic."]'),t___wi.$("head").find('link[href*="/authentic."]')),t=t.length?t:$.merge(t__wi_p.$("head").find('link[href*="/bundle."]'),t___wi.$("head").find('link[href*="/bundle."]'));s.remove();if(u=="0"||u=="1"){if(u=="0"){t.after(' ')}}else{t.after(' ')}})});$('input[name="settings_leftmenu_netdata"]').on("change",function(){var c=$('input[name="settings_leftmenu_netdata_link"]');if($(this).val()=="true"){c.removeAttr("disabled")}else{c.attr("disabled","disabled")}});$('input[name="settings_leftmenu_netdata"]:checked').trigger("change");if(is_module("status")==0||!t__wi_p.$(".right-side-tabs-toggler").length){$('input[name="settings_side_slider_enabled"][value="false"]').trigger("click");$('input[name="settings_side_slider_enabled"]').attr("disabled","disabled")}}})});$("body").on("click","#atsave:not(.btn-inverse):not(.disabled)",function(d){d.preventDefault();var c=$(this);f__mgk_sp(c,[1.5,-33,"small",1000]);settings_update();t__wi_p.manageConfig("save");setTimeout(function(){$.ajax({type:"POST",url:$_____link_full+"/index.cgi?xhr-settings=1&save=1",data:c.parents("form").serialize(),dataType:"text",success:function(a){t__wi_p.f__l_reload();at__s_s__b(0)},error:function(){c.addClass("btn-danger").removeClass("btn-success btn-inverse opacity-0_5")}})},1000)});$("body").on("click",".authentic_update:not(.disabled), .page_footer_ajax_submit:not(.disabled)",function(){f__mgk_sp($(this),[1.5,-33,"small",false])})}function set_location_search(){if(t__wi_p.$("#wrapper").data("virtual-server")!=-1){t__wi_p.history.pushState(null,null,$_____link_full+"/?virtualmin")}else{if(t__wi_p.$("#wrapper").data("server-manager")!=-1){t__wi_p.history.pushState(null,null,$_____link_full+"/?cloudmin")}else{if(t__wi_p.$("#wrapper").data("dashboard")!=-1){t__wi_p.history.pushState(null,null,$_____link_full+"/?dashboard")}else{t__wi_p.history.pushState(null,null,$_____link_full+"/")}}}}$("body").on("click",'a[data-href="#theme-info"]',function(b){b.preventDefault();$(this).addClass("manual");$("#update_notice").modal("show")});$("body").on("hide.bs.modal","#update_notice",function(){var a=$('a[data-href="#theme-info"]');if(!a.hasClass("manual")){a.removeClass("manual");t__wi_p.$("body").append('
');t__wi_p.$("div.update_notice_overlay").animate({opacity:1},560,function(){setTimeout(function(){t__wi_p.location=t__wi_p.location},100)})}else{t__wi_p.$("#content").animate({"margin-left":___________content_initial_},280);t__wi_p.$("aside").animate({"margin-left":0},280,function(){t__wi_p.$(".right-side-tabs, .right-side-tabs-toggler").removeClass("pointer-events-none bg-filter-grayscale-opacity50")})}}).on("show.bs.modal","#update_notice",function(){var e=$('a[data-href="#theme-info"]'),d=t__wi_p.$("aside").css("left");___________content_initial_=t__wi_p.$("#content").css("margin-left"),________version_date_obj=$(this).find(".modal-body > h4:first-child"),________version_curr_text=________version_date_obj.text().split(/\s+/)[1],________version_first_text=$(".version_separator:last").text(),________multi_in_branch=$(".version_separator").length,_____version__x=(________version_first_text+"..."+________version_curr_text),__release_time=$g__t__gver.slice(-4,-2)+":"+$g__t__gver.slice(-2),_____release_date_=________version_date_obj.text().match(/\(([^)]+)\)/),_____release_date=_____release_date_?_____release_date_[1]:false,__release_date_time=(_____release_date+(__release_time.length>2?(", "+__release_time):""));var b=lang("theme_xhred_global_release").toLowerCase(),i=$(".version_separator"),a=lang("theme_xhred_global_beta_version");$.each(i,function(){if($(this).text().indexOf(b)===-1&&$(this).text().indexOf(a)===-1){$(this).append('-'+b+" ")}});if(!e.hasClass("manual")){setTimeout(function(){$(".container-fluid").addClass("bg-filter-blur-grayscale-opacity50")},0)}t__wi_p.$("#content").animate({"margin-left":0},560);t__wi_p.$("aside").animate({"margin-left":d},560);t__wi_p.$(".right-side-tabs, .right-side-tabs-toggler").addClass("pointer-events-none bg-filter-grayscale-opacity50");var f=$(this).find(".modal-body h4");$modal_h4_first=$(this).find(".modal-body h4:first");if(!$(this).find(".modal-body h4:first .diffctl").length){var h=new RegExp(RegExp.quote(________version_curr_text),"g");if(________multi_in_branch){f.replaceText(h,""+_____version__x+" ");f.replaceText(/Version/,"Versions")}if(f.length&&$(this).find('.modal-body h4:contains("patch")').length){var c=parseFloat($(this).find('.modal-body a[href*="authentic-theme/releases"]:first').text().match(/-?(?:\d+(?:\.\d*)?|\.\d+)/)[0]);$modal_h4_first.append(' "+(lang("theme_xhred_global_committed_on")+": "+__release_date_time)+' " class="btn btn-transparent diffctl text-dark text-force-link-hover" href="https://github.com/qooob/authentic-theme/compare/'+c+'...master"> ');$modal_h4_first.after(' '+a+" ")}else{if(________multi_in_branch){$modal_h4_first.after(' '+________version_curr_text+'-'+lang("theme_xhred_global_release").toLowerCase()+" ")}$modal_h4_first.append(' "+(lang("theme_xhred_global_released_on")+": "+__release_date_time)+' " class="btn btn-transparent diffctl changelogctl text-dark text-force-link-hover" href="https://github.com/qooob/authentic-theme/blob/master/CHANGELOG.md"> ')}}var h=new RegExp(RegExp.quote("("+_____release_date+")"),"g");f.replaceText(h,"");var g=[];$.each($(this).find('li span:contains("Fixed bugs")'),function(){var m=$(this),j=$(this).parent("li"),k=j.parent("ul"),n=j.find("a:not(.bctl)"),l=n.length;if(________multi_in_branch){g.push(n);if(k.find("li").length===1){k.prev("hr").prev("a").remove();k.prev("hr").remove();k.addClass("no-data")}j.remove()}else{m.html([m.text().slice(0,6),""+l+" ",m.text().slice(6)].join(""));j.find("a:first").before(' ');j.find("a.bctl").click(function(o){n.toggleClass("hidden");j.find("a.bctl i").toggleClass("fa-minus-square-o")});n.addClass("obj-popup hidden")}}).promise().done(function(){if(________multi_in_branch&&!$(".bctl").length){$(".modal-body h4[data-development]").prev("hr").before(' ');$(".modal-body span[data-bugs-container]").append(g);function j(p,o){return(parseInt($(o).text().replace("#",""))) ');l.find("a.bctl").click(function(o){m.toggleClass("hidden");l.find("a.bctl i").toggleClass("fa-minus-square-o")});m.addClass("obj-popup hidden")}})});var $___remove_theme_version=localStorage.getItem($hostname+"-sysinfo_authentic_remote_version"),$__remove_theme_version=($___remove_theme_version?$___remove_theme_version:$g__t__ver);if($__remove_theme_version&&$__remove_theme_version.indexOf("git")>-1){$__remove_theme_version=parseFloat($__remove_theme_version).toFixed(2)}var $__theme_link_upd="https://github.com/qooob/authentic-theme/releases/download/"+$__remove_theme_version+"/authentic-theme-"+$__remove_theme_version+".wbt.gz";if($current_page_full&&$current_page_full.indexOf("/webmin/edit_themes.cgi")>-1&&t__wi_p.location.search=="?updating-webmin-theme"){setTimeout(function(){$iframe=t__wi_p.$('iframe[name="page"]').contents();$iframe.find(".panel-body .tab-pane.active").removeClass("active");$iframe.find(".panel-body #att_install").addClass("active");$iframe.find('.panel-body .ui_radio_table.table-hardcoded input[id="source_2"]').prop("checked",true);$iframe.find('.panel-body .ui_radio_table.table-hardcoded input[id="source_2"]').parents("td").next("td").find('input[name="url"]').attr("autocomplete","off").val($__theme_link_upd);setTimeout(function(){$iframe.find('.panel-body .tab-pane.active form[action^="install_theme."]').submit();t__wi_p.history.pushState(null,null,$_____link_full+"/?downloading-webmin-theme")},200)},400)}else{if($current_page_full&&($current_page_full.indexOf("/webmin/install_theme.cgi")>-1||$current_page_full.indexOf("/usermin/install_theme.cgi")>-1||$current_page_full.indexOf("/usermin/edit_themes.cgi")>-1)&&(t__wi_p.location.search=="?downloading-webmin-theme"||t__wi_p.location.search=="?downloading-usermin-theme"||t__wi_p.location.search=="?updating-usermin-theme")){if(t__wi_p.$t_av__usermin&&t__wi_p.location.search!="?downloading-usermin-theme"){if(t__wi_p.location.search=="?updating-usermin-theme"){setTimeout(function(){$__iframe=t__wi_p.$('iframe[name="page"]').contents();$__iframe.find('input[name="source"][value="2"]').prop("checked",true);$__iframe.find('input[name="url"]').val($__theme_link_upd);$__iframe.find('form[action^="install_theme."]').submit();t__wi_p.history.pushState(null,null,$_____link_full+"/?downloading-usermin-theme")},400)}else{t__wi_p.history.pushState(null,null,$_____link_full+"/?updating-usermin-theme");t__wi_p.$('iframe[name="page"]').attr("src",$_____link_full+"/usermin/edit_themes.cgi")}}else{t__wi_p.history.pushState(null,null,$_____link_full+"/?theme-update-finished");t__wi_p.$('iframe[name="page"]').attr("src",$_____link_full+"/sysinfo.cgi")}}else{if($current_page_full&&$current_page_full.indexOf("/sysinfo.cgi")>-1&&t__wi_p.location.search=="?theme-update-finished"){set_location_search();$(t__wi_p).on("popstate",function(){t__wi_p.history.pushState(null,null,$_____link_full+"/")})}}}if($current_page_full&&$current_page_full.indexOf("/package-updates/index.cgi")>-1&&t__wi_p.location.search=="?recollecting"){t__wi_p.history.pushState(null,null,$_____link_full+"/?recollecting-package-updates");t__wi_p.$('iframe[name="page"]').attr("src",$_____link_full+"/package-updates/index.cgi?mode=updates")}else{if($current_page_full&&$current_page_full.indexOf("/package-updates/index.cgi")>-1&&t__wi_p.location.search=="?recollecting-package-updates"){setTimeout(function(){$iframe=t__wi_p.$('iframe[name="page"]').contents();var b=$iframe.find('form[action^="update."]');b.append(' ');b.submit();t__wi_p.history.pushState(null,null,$_____link_full+"/?recollecting-package-updates-processing")},400)}else{if($current_page_full&&$current_page_full.indexOf("/package-updates/update.cgi")>-1&&t__wi_p.location.search=="?recollecting-package-updates-processing"){$iframe=t__wi_p.$('iframe[name="page"]').contents();$iframe.find("#refresh").trigger("click");t__wi_p.history.pushState(null,null,$_____link_full+"/?recollect");t__wi_p.$('iframe[name="page"]').attr("src",$_____link_full+"/webmin/edit_webmincron.cgi")}}}if($current_page_full&&$current_page_full.indexOf("/webmin/edit_webmincron.cgi")>-1&&t__wi_p.location.search=="?recollect"){setTimeout(function(){$sysinfo_content=$("body");$sysinfo_content.find("#"+$sysinfo_content.find("label:contains('cleanup_temp_files')").attr("for")).prop("checked",true);$sysinfo_content.find("#"+$sysinfo_content.find("label:contains('scheduled_collect_system_info')").attr("for")).prop("checked",true);$sysinfo_content.find("#"+$sysinfo_content.find("label:contains('collectinfo.pl')").attr("for")).prop("checked",true);$sysinfo_content.find("#"+$sysinfo_content.find("label:contains('status.pl')").attr("for")).prop("checked",true);$form_sysinfo=$sysinfo_content.find('form[action^="delete_webmincron."]');$form_sysinfo.append(' ');$form_sysinfo.submit();t__wi_p.history.pushState(null,null,$_____link_full+"/?recollect-system-status")},400)}else{if($current_page_full&&$current_page_full.indexOf("/webmin/delete_webmincron.cgi")>-1&&t__wi_p.location.search=="?recollect-system-status"){t__wi_p.history.pushState(null,null,$_____link_full+"/?recollect-finished");t__wi_p.$('iframe[name="page"]').attr("src",$_____link_full+"/sysinfo.cgi")}else{if($current_page_full&&$current_page_full.indexOf("/sysinfo.cgi")>-1&&t__wi_p.location.search=="?recollect-finished"){set_location_search();$(t__wi_p).on("popstate",function(){t__wi_p.history.pushState(null,null,$_____link_full+"/")})}}}$("#system-status > div.panel-body > table > tbody > tr").on("mouseover",function(){$(this).find(".btn-hidden").removeClass("hidden")}).on("mouseout",function(){$(this).find(".btn-hidden").addClass("hidden")});$('input[name="but_switch"]').on("click",function(b){$(t__wi_p).on("popstate",function(){t__wi_p.history.pushState(null,null,$_____link_full+"/")});$(this).parents("form").attr("target","_top")});$('form[action*="switch_user.cgi"], a[href*="switch_user.cgi"]').each(function(){$(t__wi_p).on("popstate",function(){t__wi_p.history.pushState(null,null,$_____link_full+"/")});$(this).attr("target","_top")});if(is__m("mysql")||is__m("postgresql")){$('a > img[src*="images/left.gif"]').each(function(d,e){var f=$(this);f.replaceWith(' ')});$('a > img[src*="images/right.gif"]').each(function(d,e){var f=$(this);f.replaceWith(' ')})}if(is__m("mailboxes")||is__m("mailbox")){var $mail_ar_selector='form.ui_form[action="index.cgi"]',$mail_icon_class="fa fa-fw fa-lg text-semi-light vertical-align-baseline fa-angle-";$(""+$mail_ar_selector+' img[src*="images/left"], center img[src*="images/left"]').each(function(){$(this).replaceWith(' ')});$(""+$mail_ar_selector+' img[src*="images/right"], center img[src*="images/right"]').each(function(){$(this).replaceWith(' ')});$(""+$mail_ar_selector+' img[src*="images/first"]').each(function(){$(this).replaceWith(' ')});$(""+$mail_ar_selector+' img[src*="images/last"]').each(function(){$(this).replaceWith(' ')})}if(is__mf("virtual-server","list_scripts.cgi")){$('td > a > img[src*="images/staroff.gif"]').each(function(d,e){var f=$(this);$(e).attr("src",""+$_____link_full+"/images/staroff.gif")});$('td > a > img[src*="images/staron.gif"]').each(function(d,e){var f=$(this);$(e).attr("src",""+$_____link_full+"/images/staron.gif")})}if($current_directory==$_____link+"status/"){$('td img[src*="images/up.gif"]:not(".ui_icon_protected")').each(function(d,e){var f=$(this);$(e).attr("src",""+$_____link_full+"/images/check.png");f.addClass("scale-08")});$('td img[src*="images/down.gif"]:not(".ui_icon_protected")').each(function(d,e){var f=$(this);$(e).attr("src",""+$_____link_full+"/images/cross.png");f.addClass("scale-08")});$('td img[src*="images/not.gif"]:not(".ui_icon_protected")').each(function(d,e){var f=$(this);$(e).attr("src",""+$_____link_full+"/images/not.png");f.addClass("scale-08")})}$('.ui_form[action^="delete_mons"] tr.ui_checked_columns > td > label > img[src="images/up.gif"]:not(".ui_icon_protected"), .ui_form[action^="save_mon"] img[src="images/up.gif"]:not(".ui_icon_protected"), table.ui_buttons_table > tbody > tr.ui_buttons_row > td.ui_buttons_label > img[src="images/up.gif"]:not(".ui_icon_protected")').each(function(d,e){var f=$(this);$(e).attr("src",""+$_____link_full+"/images/check.png");f.addClass("scale-08")});$('.ui_form[action^="delete_mons"] tr.ui_checked_columns > td > label > img[src="images/down.gif"]:not(".ui_icon_protected"), .ui_form[action^="save_mon"] img[src="images/down.gif"]:not(".ui_icon_protected"), table.ui_buttons_table > tbody > tr.ui_buttons_row > td.ui_buttons_label > img[src="images/down.gif"]:not(".ui_icon_protected")').each(function(d,e){var f=$(this);$(e).attr("src",""+$_____link_full+"/images/cross.png");f.addClass("scale-08")});$('.ui_form[action^="delete_mons"] tr.ui_checked_columns > td > label > img[src="images/not.gif"]:not(".ui_icon_protected"), .ui_form[action^="save_mon"] img[src="images/not.gif"]:not(".ui_icon_protected"), table.ui_buttons_table > tbody > tr.ui_buttons_row > td.ui_buttons_label > img[src="images/not.gif"]:not(".ui_icon_protected")').each(function(d,e){var f=$(this);$(e).attr("src",""+$_____link_full+"/images/not.png");f.addClass("scale-08")});if(is__m("proc")||is__m("firewall")||is__m("firewall6")||is__m("shorewall")||is__m("shorewall6")||is__mf("pam","edit_pam.cgi")||is__m("filter")){$("td a img[src], td label a img[src]").parents("td").addClass("text-center");$('td img[src*="images/gap.gif"]').replaceWith(' ');$('td a img[src*="images/down.gif"]').replaceWith(' ');$('td a img[src*="images/up.gif"]').replaceWith(' ');$('td a img[src*="images/after.gif"]').replaceWith(' ');$('td a img[src*="images/before.gif"]').replaceWith(' ')}if(is__m("squid")||is__m("cron")){$('td a img[src*="images/movedown.gif"]').replaceWith(' ');$('td a img[src*="images/moveup.gif"]').replaceWith(' ')}if(is__m("cron")){$('td a img[src*="images/bottom.gif"]').replaceWith(' ');$('td a img[src*="images/top.gif"]').replaceWith(' ')}$("input").each(function(c,d){if($(this).attr("src")=="images/ok.gif"){$(d).attr("src",""+$_____link_full+"/"+$(this).attr("src"));$(this).parents("td").attr("style","white-space: nowrap")}});v__cm___init()&&t__cm___init($("textarea"),false,false,"static");v__cm_viewer()&&f__cm_viewer();if($(".ui_table tr td").has(".ui_grid_table.table-hardcoded")&&($current_directory==$_____link+"passwd/"||$current_directory==$_____link+"mailboxes/"||$current_page_full==$_____link_full+"/usermin/list_configs.cgi")){$(".ui_table tr td .ui_grid_table.table-hardcoded").parents("table").css("border","1px solid #f0f0f0");$(".ui_table tr td .ui_grid_table.table-hardcoded").addClass("table").parents("tr").css("border","1px solid #f0f0f0")}if(($("body").attr("class")&&$('body[class="custom"]').length||($("body").attr("class")&&$("body").attr("class").search(/custom\d+$/)===0))&&$__source_file=="view.cgi"){var $_tt=$('form[action="save.cgi"]').find(".table-title").find("tt").text();$('form[action="save.cgi"]').find(".table-title").find("b").empty().append(""+$_tt+" ")}$.each($("form > table"),function(){if($(this).next('input[type="submit"]')){if($(this).attr("style")){}else{}}});$.each($("table tr"),function(){if($(this).is(":empty")){$(this).remove()}});function __tables(){if($current_page_full==$_____link_full+"fsdump/restore_form.cgi"||$current_page_full==$_____link_full+"/virtual-server/summary_domain.cgi"||$current_page_full==$_____link_full+"/usermin/edit_categories.cgi"||$current_page_full==$_____link_full+"/usermin/edit_defacl.cgi"||$current_page_full==$_____link_full+"/proc/index_search.cgi"||$current_page_full==$_____link_full+"/quota/list_groups.cgi"||$current_page_full==$_____link_full+"/bind8/conf_misc.cgi"||$current_page_full==$_____link_full+"/bind8/edit_recs.cgi"||$current_page_full==$_____link_full+"/postfix/sasl.cgi"||$current_page_full==$_____link_full+"/postfix/edit_master.cgi"||$current_page_full==$_____link_full+"/squid/edit_icp.cgi"||$current_page_full==$_____link_full+"/squid/edit_misc.cgi"||$current_page_full==$_____link_full+"/cpan/edit_mod.cgi"||$current_page_full==$_____link_full+"/phpini/edit_errors.cgi"||$current_page_full==$_____link_full+"/acl/edit_acl.cgi"||$current_page_full==$_____link_full+"/virtual-server/edit_domain.cgi"||$current_page_full==$_____link_full+"/apache/edit_virt.cgi"||$current_page_full==$_____link_full+"/apache/edit_dir.cgi"||$current_page_full==$_____link_full+"/mysql/edit_cnf.cgi"||$current_page_full==$_____link_full+"/squid/edit_logs.cgi"||$current_page_full==$_____link_full+"/net/edit_aifc.cgi"||$current_page_full==$_____link_full+"/phpini/edit_misc.cgi"){return[$("table#show_backup_destination"),$('form[action="save_categories.cgi"] > .table-hardcoded'),$('form[action="save_defacl.cgi"] > .table-hardcoded'),$('form[action="index_search.cgi"] .sub_table_container.table-hardcoded'),$('form[action="save_misc.cgi"] .sub_table_container.table-hardcoded'),$('form[action="save_sasl.cgi"] .table-hardcoded'),$('form[action="save_master.cgi"] .sub_table_container.table-hardcoded'),$('form[action="save_icp.cgi"] .table.table-striped.table-condensed.table-subtable'),$('form[action="save_misc.cgi"] .table.table-striped.table-condensed.table-subtable'),$(".table-responsive > .table.table-striped.table-condensed.table-subtable"),$(".table-responsive > .table.table-striped.table-condensed.table-subtable > .sub_table_container.table-hardcoded"),$("#hiddendiv_opts"),$('.ui_form[action="save_virt.cgi"] .sub_table_container.table-hardcoded')]}else{return false}}if(__tables()){$.each(__tables(),function(d,f){var e=$(this);$.each(e.find("td"),function(){if(!$(this).find("hr").length){$(this).removeAttr("colspan")}});$.each(e.find("tbody"),function(){var a=$(this).children("tr"),c=[];$.each(a,function(){c.push($(this).children("td").length)});var b=Math.max.apply(this,c);$.each(a,function(){var i=$(this).children("td").length;if(b!=i&&!$(this).find("hr").length&&__tables()){for(var g=0;g<(b-i);g++){$(this).append(" ")}}})})})}$.each($("span > input"),function(){var f=$(this).parent("span").next(".file_chooser_button"),e=$(this).parent("span").next('input[type="button"][onclick]'),d=$(this).parent("span").next("select");if(f){f.attr("style","display: inline; width:40px; height: 28px; margin-right:0 !important; margin-top:4px !important;").find("i.fa-files-o").css("margin-top","0").addClass("vertical-align-middle")}if($(this).parents(".tab-content")){f.css("margin-top","4px")}if(e){e.attr("style","display: inline; width:40px; height: 28px; margin-right:0 !important; vertical-align: middle").next("i.fa-files-o").css("margin-top","11px").addClass("vertical-align-middle");e.attr("style","display: inline; width:40px; height: 28px; margin-right:0 !important; vertical-align: middle").next("i.fa-calendar").attr("style","margin-top: 8px !important; font-size: 11px; margin-left: -27px; pointer-events: none;")}});$.each($('input[type="button"][onclick^="ifield"]'),function(d,c){$(this).css("margin-left","0").css("width","40px").css("height","28px")});$('.ui_form[action="switch.cgi"] > input.form-control.ui_textbox').next('input[type="button"][onclick^="ifield"]').attr("style","margin-top: 2px !important; margin-bottom: 2px !important; margin-left: 0 !important");setTimeout(function(){$('.ui_form[action="switch.cgi"] .file_chooser_button_attached').attr("style","font-size: 11px; pointer-events: none; margin-top: 14px !important;")},10);if($current_directory==$_____link+"cshrc/"){$("textarea").each(function(d,c){$(this).attr("style","height: 20em !important")})}if($current_page_full==$_____link_full+"/acl/"||$current_page_full==$_____link_full+"/acl/edit_user.cgi"){$('.ui_grid_table.table-hardcoded .ui_grid_row .ui_grid_cell input[type="checkbox"], .table-hardcoded .col_value input[type="checkbox"]').each(function(d,c){$(this).attr("style","vertical-align: bottom !important")})}if($("body").attr("class")&&$('body[class="custom"]').length||($("body").attr("class")&&$("body").attr("class").search(/custom\d+$/)===0)){$(".panel-body > .ui_grid_table.table-hardcoded").each(function(d,c){$(this).attr("style","margin-top: 3px !important")});$(".panel-body td > .ui_form").each(function(){$(this).attr("style","padding-top: 0 !important")});$(".panel-body > a.ui_link").each(function(d,c){$(this).addClass("btn btn-inverse btn-tiny ui_link_replaced").removeClass("ui_link");$(this).text($(this).text().replace(/\.$/,""));$(this).parent().contents().filter(function(){return this.nodeType==3}).remove();if(($(this).attr("href").indexOf("edit_cmd.cgi?new")===0)){$(this).html(' '+$(this).text())}if(($(this).attr("href").indexOf("edit_file.cgi?new")===0)){$(this).html(' '+$(this).text())}if(($(this).attr("href").indexOf("edit_sql.cgi?new")===0)){$(this).html(' '+$(this).text())}});$.each($('td.td_tag:contains("|")'),function(){$(this).find('a[href^="edit_"]').addClass("ui_link_replaced btn btn-success btn-xxs").css("margin-right","3px").removeClass("ui_link").prepend(' ');$(this).find('a:not([href^="edit_"])').remove();$(this).parents("table").find("thead > tr > th:eq(2)").addClass("pointer-events-none").html("")});$('td.td_tag:contains("|")').contents().filter(function(){return this.nodeType==3}).remove()}f__lnk_t_btn(["/sysinfo.cgi","/virtual-server/edit_newchangelog.cgi","/server-manager/edit_newchangelog.cgi"],"#newfeatures-virtual-server-collapse dt, #newfeatures-server-manager-collapse dt, .table td dt","a","btn btn-link btn-link-bordered btn-xxs margined-left-3 vertical-align-top margined-top-2","fa-eye","|","");f__lnk_t_btn(["/virtual-server/","/virtual-server/index.cgi","/virtual-server/edit_plan.cgi"],"form table tbody td",'a[href*="list_users.cgi?"], a[href*="list_aliases.cgi?"]',"btn btn-transparent btn-transparent-link-force btn-borderless btn-xxs vertical-align-top margined-top-2",0,"(~)"," ~ ","(~..)");f__lnk_t_btn(["/quota/","/quota/index.cgi"],".table tbody td.td_tag",'a[href*="activate.cgi"][href*="&active=3"]',"btn btn-warning btn-xxs vertical-align-top margined-top-2","fa-ban");f__lnk_t_btn(["/quota/","/quota/index.cgi"],".table tbody td.td_tag",'a[href*="activate.cgi"][href*="&active=0"]',"btn btn-success btn-xxs vertical-align-top margined-top-2","fa-check-circle-o");f__lnk_t_btn(["/virtualmin-google-analytics/","/virtualmin-google-analytics/index.cgi"],".table tbody td.td_tag",'a[href*="edit.cgi"]',"btn btn-warning btn-xxs vertical-align-top margined-top-2","fa-pencil-square");if($('body[class*="status"]').length&&$__source_file=="edit_mon.cgi"||$current_page_full==$_____link_full+"/virtual-server/list_sched.cgi"||$current_page_full==$_____link_full+"/ldap-server/edit_schema.cgi"||$current_page_full==$_____link_full+"/software/list_pack.cgi"||$current_page_full==$_____link_full+"/mailboxes/view_mail.cgi"||$current_page_full==$_____link_full+"/mailbox/view_mail.cgi"||$current_page_full==$_____link_full+"/mailbox/list_folders.cgi"||$current_page_full==$_____link_full+"/phpini/"||$current_page_full==$_____link_full+"/phpini/index.cgi"||$current_page_full==$_____link_full+"/fsdump/"||$current_page_full==$_____link_full+"/fsdump/index.cgi"||$current_page_full==$_____link_full+"/fdisk/"||$current_page_full==$_____link_full+"/fdisk/index.cgi"||$current_page_full==$_____link_full+"/virtualmin-awstats/"||$current_page_full==$_____link_full+"/virtualmin-awstats/index.cgi"||$current_page_full==$_____link_full+"/syslog/"||$current_page_full==$_____link_full+"/syslog/index.cgi"){$.each($('tr td:last-child:contains("|")'),function(){if($current_page_full==$_____link_full+"/virtual-server/list_sched.cgi"){$(this).find('a[href^="backup_form.cgi"]').html($(this).find('a[href^="backup_form.cgi"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-success btn-xxs").removeClass("ui_link").prepend(' ');$(this).find('a[href^="restore_form.cgi"]').html($(this).find('a[href^="restore_form.cgi"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-primary btn-xxs").removeClass("ui_link").prepend(' ');$(this).find('a[href^="backuplog.cgi"]').html($(this).find('a[href^="backuplog.cgi"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-info btn-xxs").removeClass("ui_link").prepend(' ')}if($current_page_full==$_____link_full+"/ldap-server/edit_schema.cgi"){$(this).find('a[href^="view_sfile.cgi"]').html($(this).find('a[href^="view_sfile.cgi"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-success btn-xxs").removeClass("ui_link").prepend(' ');$(this).find('a[href^="edit_sfile.cgi"]').html($(this).find('a[href^="edit_sfile.cgi"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-primary btn-xxs").removeClass("ui_link").prepend(' ')}if($current_page_full==$_____link_full+"/phpini/"||$current_page_full==$_____link_full+"/phpini/index.cgi"){$(this).find('a[href^="list_ini.cgi"]').html($(this).find('a[href^="list_ini.cgi"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-success btn-xxs").removeClass("ui_link").prepend(' ');$(this).find('a[href^="edit_manual.cgi"]').html($(this).find('a[href^="edit_manual.cgi"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-primary btn-xxs").removeClass("ui_link").prepend(' ')}if($current_page_full==$_____link_full+"/fdisk/"||$current_page_full==$_____link_full+"/fdisk/index.cgi"){$(this).find('a[href^="edit_hdparm.cgi"]').html($(this).find('a[href^="edit_hdparm.cgi"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-success btn-xxs").removeClass("heighter-34").removeClass("ui_link");$(this).find('a[href*="smart-status/index.cgi"]').html($(this).find('a[href*="smart-status/index.cgi"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-info btn-xxs").removeClass("heighter-34").removeClass("ui_link");$(this).find('a[href^="blink.cgi"]').html($(this).find('a[href^="blink.cgi"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-warning btn-xxs").removeClass("heighter-34").removeClass("ui_link")}if($current_page_full==$_____link_full+"/mailbox/list_folders.cgi"){$(this).find('a[href^="index.cgi"]').html($(this).find('a[href^="index.cgi"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-success btn-xxs").removeClass("heighter-34").removeClass("ui_link").removeClass("ui_link").prepend(' ');$(this).find('a[href^="edit_auto.cgi"]').html($(this).find('a[href^="edit_auto.cgi"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-info btn-xxs").removeClass("heighter-34").removeClass("ui_link").removeClass("ui_link").prepend(' ');$(this).find('a[href^="copy_form.cgi"]').html($(this).find('a[href^="copy_form.cgi"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-warning btn-xxs").removeClass("heighter-34").removeClass("ui_link").removeClass("ui_link").prepend(' ')}if($current_page_full==$_____link_full+"/mailboxes/view_mail.cgi"||$current_page_full==$_____link_full+"/mailbox/view_mail.cgi"){$(this).find('a[href^="detach.cgi"]:not([href*="&save=1"]):not([target="_blank"])').html($(this).find('a[href^="detach.cgi"]:not([href*="&save=1"]):not([target="_blank"])').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-primary btn-xxs").removeClass("heighter-34").removeClass("ui_link").removeClass("ui_link").prepend(' ');$(this).find('a[href*="detach.cgi"][target="_blank"]').html($(this).find('a[href*="detach.cgi"][target="_blank"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-success btn-xxs").removeClass("heighter-34").removeClass("ui_link").prepend(' ');$(this).find('a[href*="&save=1"]:not([target="_blank"])').html($(this).find('a[href*="&save=1"]:not([target="_blank"])').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-warning btn-xxs").removeClass("heighter-34").removeClass("ui_link").prepend(' ')}if($current_page_full==$_____link_full+"/virtualmin-awstats/"||$current_page_full==$_____link_full+"/virtualmin-awstats/index.cgi"){$(this).find('a[href^="view.cgi"]').html($(this).find('a[href^="view.cgi"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-success btn-xxs").removeClass("heighter-34").removeClass("ui_link").prepend(' ');$(this).find('a[href^="config.cgi"]').html($(this).find('a[href^="config.cgi"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-primary btn-xxs").removeClass("heighter-34").removeClass("ui_link").prepend(' ')}});if($('body[class*="status"]').length&&$__source_file=="edit_mon.cgi"){$('a[href*="edit_mon.cgi?id"]').addClass("ui_link_replaced btn btn-default btn-xxs").removeClass("heighter-34").removeClass("ui_link");$('a[href*="edit_mon.cgi?id"]').last().css("margin-left","-1px");$('tr td:last-child:contains("|")').replaceText(/\|/gi,"")}else{$('tr td:last-child:contains("|")').contents().filter(function(){return this.nodeType==3}).remove()}if($current_page_full==$_____link_full+"/fdisk/"||$current_page_full==$_____link_full+"/fdisk/index.cgi"){$("body").find('a[href^="blink.cgi"]:not(.ui_link_replaced)').html($("body").find('a[href^="blink.cgi"]:not(.ui_link_replaced)').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-warning btn-xxs").removeClass("heighter-34").removeClass("ui_link")}if($current_page_full==$_____link_full+"/fsdump/"||$current_page_full==$_____link_full+"/fsdump/index.cgi"){$.each($("tr td:last-child"),function(){$(this).find('a[href^="backup.cgi"]').html($(this).find('a[href^="backup.cgi"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-success btn-xxs").removeClass("heighter-34").removeClass("ui_link").prepend(' ');$(this).find('a[href^="kill.cgi"]').html($(this).find('a[href^="kill.cgi"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-danger btn-xxs").removeClass("heighter-34").removeClass("ui_link").prepend(' ')})}if($current_page_full==$_____link_full+"/syslog/"||$current_page_full==$_____link_full+"/syslog/index.cgi"){$.each($("tr td:last-child"),function(){$(this).find('a[href*="save_log.cgi"][href*="view=1"]').html($(this).find('a[href*="save_log.cgi"][href*="view=1"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-primary btn-xxs").removeClass("heighter-34").removeClass("ui_link").prepend(' ')})}if($current_page_full==$_____link_full+"/software/list_pack.cgi"){var __btn___str='td a.ui_link[href*="view.cgi"]';$(__btn___str).html(' ').addClass("ui_link_replaced btn btn-default btn-xxs").removeClass("heighter-34").attr("style","margin-top: 2px !important; margin-bottom: 0 !important; margin-right: 15px").removeClass("ui_link").prepend(' ')}}if($current_page_full==$_____link_full+"/fdisk/edit_disk.cgi"){var __delete=[];$.each($(".panel-body > table.table.table-striped tbody tr"),function(a,b){if($(this).find("td:nth-child(3)").find('img[src*="images/use"]').length||$(this).find("td:nth-child(3)").find('img[src*="images/gap"]').length){$(this).find("td:nth-child(3)").remove();__delete.push(a)}});if(!$.isEmptyObject(__delete)){$(".panel-body > table.table.table-striped thead").find("th:nth-child(3)").remove();delete __delete}}if($current_page_full==$_____link_full+"/virtual-server/edit_link.cgi"){$(".table-hardcoded").find('input[name="open"]').parent("td").parent("tr").remove()}if($current_directory==$_____link+"init/"){$('.table.table-striped.table-condensed tr.tr_tag td.td_tag input[type="checkbox"]').each(function(d,c){$(this).attr("style","vertical-align: middle !important")})}if($current_directory==$_____link+"proc/"||$source_path==$_____link+"proc/index.cgi"){if(($current_directory==$_____link+"proc/"&&$__source_file&&$__source_file.indexOf("index_")>-1)||$source_path==$_____link+"proc/index.cgi"){$("a.ui_link + b").addClass("btn").css("margin-left","3px");$("b + a.ui_link").addClass("btn").css("margin-left","3px");if($('.panel-body > b:first-child:contains("Display")').length>0){$(".panel-body > b:first-child").remove()}$(".panel-body > b").addClass("btn btn-success")}$(".panel-body").contents().filter(function(){return this.nodeType==3}).remove();$(".panel-body > a.ui_link").addClass("btn").css("margin-left","3px")}if($source_path==$_____link+"proc/edit_proc.cgi"){$("#signal").attr("style","margin-bottom: 0 !important;")}if($current_directory==$_____link+"procmail/"){$(".panel-body p:first-child").next("p").contents().filter(function(){return this.nodeType==3}).remove();$(".panel-body p:last-child").prev("a.ui_link").remove()}if($current_directory==$_____link+"cron/"||$source_path==$_____link+"cron/index.cgi"){$('.panel-body form.ui_form[action="index.cgi"]').next("script").next("b").next("p").contents().filter(function(){return this.nodeType==3}).remove()}if($current_directory==$_____link+"filter/"){$(".panel-body > b").next("p").contents().filter(function(){return this.nodeType==3}).remove()}if($current_directory==$_____link+"dhcpd/"){$(".panel-body > p").contents().filter(function(){return this.nodeType==3}).remove()}if($current_directory==$_____link+"htaccess-htpasswd/"||$current_directory==$_____link+"forward/"){$("td table.table-hardcoded.table.table-subtable").removeClass("table-striped")}$(".ui_buttons_hr > td > table.table-hardcoded > tbody > tr > td[nowrap]").each(function(){$(this).parents("table").attr("style","margin-bottom: 15px !important")});$("textarea.form-control.ui_textarea").next('button[type="button"].btn-default').each(function(){$(this).prev("textarea").attr("style","margin-bottom: 1px !important");$(this).attr("style","width:100% !important; padding-top: 0; height:28px !important")});$("textarea.form-control.ui_textarea").next("br").next('button[type="button"].btn-default').each(function(){$(this).prev("textarea").attr("style","margin-bottom: 1px !important");$(this).attr("style","width:100% !important; padding-top: 0; height:28px !important")});$(".table-hardcoded > tbody > tr > td > input.form-control.ui_textbox").next('button[type="button"].ui_button').each(function(){$(this).attr("style","margin-top: 2px !important")});$(".table-hardcoded > tbody > tr > td.col_label b a, .ui_table_row td a").each(function(d,c){if(!$(this).attr("href")){$(this).attr("style","color: #333; text-decoration: none; cursor:default")}});$('input[name="all_weekdays"], .ui_grid_cell > table.table-condensed, table.table-hardcoded table.table-condensed, select[multiple][name="days"]').each(function(){$(this).parent("td").attr("style","vertical-align: top !important; padding-left:2px; padding-right:2px;")});$('input[type="submit"]').each(function(){$(this).addClass("btn btn-default")});$("table tr th").each(function(){if($(this).text()){$(this).attr("style","width: auto")}});$("table thead th:not(.table-title)").each(function(){$(this).css("border-top","none");$(this).css("border-bottom","none")});if($("body").attr("class")&&$("body").attr("class").indexOf($g__o__f_m)>-1){!$("body").hasClass("file-manager")&&$("body").addClass("file-manager");$("#headln2l").prepend(" ')}if(settings_right_iconize_header_links){$.each($(".panel-heading > table.header > tbody > tr > td > a"),function(){if($(this).attr("href")&&$(this).attr("href").indexOf("config.cgi")>-1||$(this).attr("href").indexOf("man/search.cgi")>-1||$(this).attr("href").indexOf("/index.cgi")>-1||$(this).attr("href")==$__current_directory||($(this).attr("href").indexOf("index.cgi")>-1&&$current_directory==$_____link+"openvpn/")||($(this).attr("href").indexOf("index.cgi?")>-1&&$current_directory==$_____link+"spam/")||$(this).attr("href").indexOf("restart_zone.cgi")>-1||$(this).attr("href").indexOf("restart.cgi")>-1||$(this).attr("href").indexOf("apply.cgi")>-1||$(this).attr("href").indexOf("start.cgi")>-1||$(this).attr("href").indexOf("stop.cgi")>-1||($(this).attr("href")=="//"&&($source_path==$_____link+"settings-editor_read.cgi"||$source_path==$_____link+"settings-upload.cgi"))||$(this).attr("href").indexOf("delete_")>-1||$(this).attr("href").indexOf("list_mail.cgi")>-1||$(this).attr("href").indexOf("/virtual-")>-1||$(this).attr("href").indexOf("/virtualmin-")>-1||$(this).attr("href").indexOf("/server-")>-1||$(this).attr("href").indexOf("help.cgi")>-1){$.each($(this).next("br"),function(){$(this).remove()});$.each($(this).prev("br"),function(){$(this).remove()});if($(this).attr("href").indexOf("help.cgi")>-1){var d=$(this),c=$(this).parent("td");$(this).remove();c.append(d)}if($(this).attr("href").indexOf("/index.cgi")>-1||$(this).attr("href")==$__current_directory||$(this).attr("href").indexOf("/virtual-")>-1||$(this).attr("href").indexOf("/virtualmin-")>-1||$(this).attr("href").indexOf("/server-")>-1){$iconized_class="fa-arrow-left";$(this).data("title","").data("back",1)}else{if($(this).attr("href")=="//"&&($source_path==$_____link+"settings-editor_read.cgi"||$source_path==$_____link+"settings-upload.cgi")){$iconized_class="fa-arrow-left";$(this).attr("href","/webmin/edit_themes.cgi").data("title","").data("back",1)}else{if($(this).attr("href").indexOf("config.cgi")>-1){$iconized_class="fa-cog";$(this).data("title","")}else{if($(this).attr("href").indexOf("restart.cgi")>-1||$(this).attr("href").indexOf("apply.cgi")>-1){$iconized_class="fa-refresh"}else{if($(this).attr("href").indexOf("restart_zone.cgi")>-1){$iconized_class="fa-retweet"}else{if($(this).attr("href").indexOf("start.cgi")>-1){$iconized_class="fa-play"}else{if($(this).attr("href").indexOf("stop.cgi")>-1){$iconized_class="fa-square"}else{if($(this).attr("href").indexOf("man/search.cgi")>-1){$iconized_class="fa-search"}else{if($(this).attr("href").indexOf("delete_")>-1){$iconized_class="fa-trash-o"}else{if($(this).attr("href").indexOf("list_mail.cgi")>-1){$iconized_class="fa-inbox"}else{if($(this).attr("href").indexOf("index.cgi")>-1&&$current_directory==$_____link+"openvpn/"){$iconized_class="fa-cogs"}else{if($(this).attr("href").indexOf("index.cgi?")>-1&&$current_directory==$_____link+"spam/"){$iconized_class="fa-arrow-left";$(this).data("back",1)}}}}}}}}}}}}var e=$(this).attr("href").indexOf("help.cgi")>-1;if(e){$iconized_class="fa-question-circle";$(this).data("title","")}$(this).data("toggle","tooltip").data("title",upperFirstLowerAll(e?lang("theme_xhred_global_help"):($(this).data("back")===1?(!is__m($g__o__f_m)?lang("theme_xhred_global_prev_page"):""):$(this).text()))).attr("data-container","body").addClass("btn btn-link text-lighter").removeClass("ui_link").append(' ');$(this).contents().filter(function(){return this.nodeType==3}).remove();$(this).tooltip({container:"body",placement:"auto top"});if((($current_directory==$_____link+"apache/"||$current_directory==$_____link+"proftpd/")&&($(this).attr("href").indexOf("restart.cgi")>-1||$(this).attr("href").indexOf("apply.cgi")>-1))||$(this).parent("td").find("a")&&$(this).parent("td").find("a").length==1||$(this).attr("href").indexOf("man/search.cgi")>-1||$(this).attr("href").indexOf("config.cgi")>-1||$(this).attr("href").indexOf("/index.cgi")>-1||$(this).attr("href").indexOf("/index.cgi")>-1||$(this).attr("href").indexOf("/virtual-")>-1||$(this).attr("href").indexOf("/virtualmin-")>-1||$(this).attr("href").indexOf("/server-")>-1){if(($(this).attr("href").indexOf("/index.cgi")>-1||$(this).attr("href").indexOf("config.cgi")>-1)&&$("body").attr("class")&&$("body").attr("class").indexOf($g__o__f_m)>-1){$(this).attr("style","margin-right: 0 !important; padding: 6px 12px")}else{$(this).attr("style","margin-right: 0 !important")}}}$("#headln2l").removeClass("invisible")});$("body").on("click","#headln2l a",function(a){if(unbuffered_header()){return}if($(this).find(".fa-arrow-left").length){a.preventDefault();a.stopPropagation();window.history.back()}})}if($source_path==$_____link+"settings-editor_read.cgi"||$source_path==$_____link+"settings-upload.cgi"){if(t__wi_p.$('link[href*="/unauthenticated/css/styles.css"]').length){t__wi_p.$('link[href*="/unauthenticated/css/styles.css"]').attr("href",t__wi_p.$('link[href*="/unauthenticated/css/styles.css"]').attr("href").split("?")[0]+"?"+(new Date()).getTime())}if(t__wi_p.$('script[src*="/unauthenticated/js/scripts.js"]').length){t__wi_p.$('script[src*="/unauthenticated/js/scripts.js"]').attr("src",t__wi_p.$('script[src*="/unauthenticated/js/scripts.js"]').attr("src").split("?")[0]+"?"+(new Date()).getTime())}$("body").on("click",'a[href="/settings-editor_read.cgi"], a[href="/settings-upload.cgi"]',function(){});setTimeout(function(){$(".file-editor-saved").remove();$(".file-editor-save").removeClass("hidden")},2400);if($__relative_url=="/settings-upload.cgi?saved=1"){$.each($(".file_chooser_button_preview:first"),function(){if(!$(this).hasClass("disabled")){if(t__wi_p.$("aside + .__logo").length){t__wi_p.$('.__logo img[src*="/images/logo.png"]').attr("src",t__wi_p.$('.__logo img[src*="/images/logo.png"]').attr("src").split("?")[0]+"?"+(new Date()).getTime());t__wi_p.$("aside + .__logo").attr("style","transform: translate(0px, 0px);");setTimeout(function(){t__wi_p.$(".__logo").transition({y:"-140px"},1200)},400)}else{t__wi_p.$("aside").after(' ');setTimeout(function(){t__wi_p.$(".__logo").transition({y:"-140px"},1200)},400)}}else{t__wi_p.$("aside + .__logo").remove()}})}$("body").on("click",".page_footer_ajax_submit:not(.disabled):not(.file-editor-saved)",function(){f__mgk_sp($(this),[1.5,-28,"small",false])});setTimeout(function(){if($source_path==$_____link+"settings-editor_read.cgi"){$(".end_submits").parent("td").after('').parents(".ui_form_end_buttons").css("width","100%")}$(".btn-group.end_submits").css("margin-left","2px")},100)}if($source_path==$_____link+"settings-upload.cgi"){$(function(){$_authenticated_logo=$('input[name="authenticated_logo"]:checked').val();$_unauthenticated_logo=$('input[name="unauthenticated_logo"]:checked').val();function c(a){typeof a=="undefined"?a=$('input[name="authenticated_logo"]:checked'):false;var b=["authenticated_logo_file"];if(a.val()!="1"){$.each(b,function(e,h){$('input[name="'+h+'"]').parents(".file-input-wrapper").addClass("disabled").prev(".file_chooser_button_preview").addClass("disabled")})}else{$.each(b,function(e,h){$('input[name="'+h+'"]').parents(".file-input-wrapper").removeClass("disabled");if($_authenticated_logo=="1"){$('input[name="'+h+'"]').parents(".file-input-wrapper").prev(".file_chooser_button_preview").removeClass("disabled")}})}}c();$('input[name="authenticated_logo"]').on("change",function(){c($(this))});function d(a){typeof a=="undefined"?a=$('input[name="unauthenticated_logo"]:checked'):false;var b=["unauthenticated_logo_file"];if(a.val()!="1"){$.each(b,function(e,h){$('input[name="'+h+'"]').parents(".file-input-wrapper").addClass("disabled").prev(".file_chooser_button_preview").addClass("disabled")})}else{$.each(b,function(e,h){$('input[name="'+h+'"]').parents(".file-input-wrapper").removeClass("disabled");if($_unauthenticated_logo=="1"){$('input[name="'+h+'"]').parents(".file-input-wrapper").prev(".file_chooser_button_preview").removeClass("disabled")}})}}d();$('input[name="unauthenticated_logo"]').on("change",function(){d($(this))})});$(".file_chooser_button_preview").on("mouseout",function(b){$(this).css("background","white")}).on("mouseover",function(b){$(this).css("background","#eee")});$.each($(".file_chooser_button_preview"),function(){if($(this).data("image")){$(this).popover({trigger:"hover",html:true,content:function(){return" "}})}});var $__webmin_path=$('a[href^="/settings-editor_read.cgi?file=%path%"]');$__webmin_path.attr("href",$__webmin_path.attr("href").replace("%path%",$("#path").val()))}$.each($('td.ui_grid_cell:contains("|")'),function(){$(this).contents().filter(function(){return this.nodeType==3}).remove()});$('a[href*="help.cgi"][onclick], a[href*="showpass.cgi?"][onclick]').attr("onclick","").unbind("click").addClass("help_popup");$(".help_popup").each(function(){$(this).attr("style","color: #333; text-decoration: none; cursor:help")});function module_help_focuser(a){$.each($(".module-help"),function(b,c){if(!a.is($(this))){$(this).css({"z-index":(214748364-b),opacity:0.85})}else{$(this).css({"z-index":(214748364+b),opacity:1})}})}$("body").on("click",function(a){if($(a.target).is(".close-popover-trigger")){$(a.target).parent().parent().popover("hide")}$(".showpass-popover").each(function(){if(!$(this).is(a.target)&&$(this).has(a.target).length===0&&$(".popover").has(a.target).length===0){$(this).popover("hide")}})});$(".help_popup").on("click",function(f){f.stopPropagation();f.preventDefault();var h=$(this),g=$(this).attr("href"),e=$(this).parents("td");e.append('
');t__wi_p.$___ajax_requested_url="help.cgi";$.ajax({type:"POST",url:h.attr("href"),data:false,dataType:"text",success:function(b){e.find("._tmp_help_content").html(b.replace(/<(script|link|meta)\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/(script|link|meta)>/gi,""));$help_title=e.find("._tmp_help_content .ui_subheading").first().text();$help_body=e.find("._tmp_help_content title").remove();$help_body=e.find("._tmp_help_content h3.ui_subheading").remove();$help_body=e.find("._tmp_help_content h3").addClass("h3_help");$help_body=e.find("._tmp_help_content hr").remove();var a=e.find("._tmp_help_content a");if(typeof a.attr("href")!="undefined"){$.each(a,function(){var i=$(this).attr("href");if(i.startsWith("http")){$help_body=e.find("._tmp_help_content a").attr("target","_blank").css("text-decoration","none").css("font-style","italic")}else{$("body").undelegate('a[href="'+i+'"]',"click");$("body").one("click",'a[href="'+i+'"]',function(k){if($(k.target).is($('a[href="'+i+'"]'))){k.preventDefault();var j=(removeLastDirectoryPartOf(h.attr("href"))+"/"+i);$('a[href="'+g+'"].help_popup').attr("data-initial",g).attr("data-substituted",j);$('a[href="'+g+'"].help_popup').attr("href",j);h.trigger("click")}})}})}$help_body=e.find("._tmp_help_content").html();e.find("._tmp_help_content").remove();var d='× ',c=(h.attr("href").indexOf("showpass.cgi")>-1);if(c){d=""}h.popover({html:true,container:"body",template:'',title:function(){return(d+$help_title)},content:function(){return $help_body},placement:"auto right"});h.popover("show");h.on("shown.bs.popover",function(){if($help_body.indexOf("")>-1){$(".popover").animate({"max-width":"540px"},300)}$("body").find(".popover:visible").addClass("module-help");$('body[class*="'+$g__o__f_m+'"]').find(".popover:visible").addClass("file-manager-help");if($current_page_full&&$current_page_full.indexOf("/webmin/edit_themes.cgi")>-1&&t__wi_p.location.search!="?updating-webmin-theme"){$("body").find(".popover:visible").addClass("at-help");var n=$(".link-theme").text(),k=$(".link-theme2").text(),j=$(".link-changelog").text(),i=$(".link-me").text(),o=$(".link-donation").text(),m=$(".link-youtube").text(),l=$(".link-github").text();$(".link-theme").replaceWith(''+n+" ");$(".link-theme2").replaceWith(''+k+" ");$(".link-changelog").replaceWith(' '+j+" ");$(".link-changelog").detach().appendTo(".at-help .popover-title");$(".link-me").replaceWith(''+i+" ");$(".link-donation").replaceWith(' '+o+" ");$(".link-youtube").replaceWith(' '+m+" ");$(".link-github").replaceWith(' '+l+" ")}setTimeout(function(){$.each($(".module-help"),function(){if(!$(this).is(h.next(".module-help"))){($(".module-help").length>1)?$(this).css("opacity",0.85):$(this).css("opacity",1)}else{$(this).animate({opacity:1},600);module_help_focuser($(this))}})},100)});h.on("hidden.bs.popover",function(){$("body").undelegate(":not(tt)","click");if(h.attr("data-initial")){h.attr("href",h.attr("data-initial"));h.removeAttr("data-initial").removeAttr("data-substituted")}})}})});$("body").on("click",".module-help",function(a){module_help_focuser($(this))});if($current_directory==$_____link+"fdisk/"||$current_directory==$_____link+"postfix/"||$current_directory==$_____link+"pam/"||$current_directory==$_____link+"syslog/"){$("p > a[href], table + a[href], div.panel-body > a.ui_link").each(function(d,c){$(this).text($(this).text().replace(/\.$/,""))})}$('.panel-body > form > p > a.ui_link, .panel-body > table.table + a.ui_link, .panel-body > p > a:not([href*="config.cgi?bacula-backup"]), body[data-current-product="usermin"] div.panel-body > p > a, div.panel-body > a[href^="edit_"]:not([href^="edit_user.cgi?user="], [href^="edit_group.cgi?group="]), .ui_form > a, .ui_grid_cell > :not(input):not(.acheckbox):not(.aradio):not(label) + a.ui_link:not([href^="edit_acl.cgi"], [href^="edit_rpc.cgi"], [href^="edit_user.cgi?user="], [href^="edit_group.cgi?group="]), .ui_grid_cell > a.select_all, .ui_grid_cell > a.select_invert, .ui_grid_cell > :not(input):not(.acheckbox):not(.aradio):not(label) + a[href*=".cgi"]:not([href^="edit_acl.cgi"], [href^="edit_rpc.cgi"], [href^="edit_user.cgi?user="], [href^="edit_group.cgi?group="]), .ui_grid_cell > a[href*=".cgi"]:first-child:not([href^="edit_rpc.cgi"],[href^="edit_nuser.cgi"],[href*="edit_user.cgi?idx"]), .tab-pane > p > a, .tab-pane > a.ui_link, .tab-pane > .table-condensed > a.ui_link, .tab-pane > a, .panel-body > p > a.ui_link, a.select_all, a.select_invert, form[action="delete.cgi"] > table table.ui_grid_table + a').each(function(){if(is__mf("samba","edit_epass.cgi")||(is__m("acl")&&($(this).is('[href^="edit_user.cgi?user="]')||$(this).parent("td.ui_grid_cell").length)&&!$(this).parents("b").length)){return}if(!is__mf("virtual-server","history.cgi")&&!is__mf("server-manager","one_history.cgi")&&$current_directory!=$_____link+"passwd/"&&$(this).text()&&$current_page_full!=$_____link_full+"/mailboxes/"&&$current_page_full!=$_____link_full+"/mailboxes/index.cgi"&&$current_page_full!=$_____link_full+"/usermin/list_configs.cgi"&&!$(this).hasClass("help_popup")){$(this).addClass("btn btn-inverse btn-tiny ui_link_replaced");$(this).text($(this).text().replace(/\.$/,""));var b=$(this).parent().contents().filter(function(){return this.nodeType==3});if(b){$.each(b,function(){if($(this).text()&&$(this).text().length<=3){$(this).remove()}})}if($(this).hasClass("select_all")){$(this).html(' '+$(this).text())}if($(this).hasClass("select_invert")){$(this).html(' '+$(this).text())}if($(this).attr("href")&&(($(this).attr("href").indexOf("edit")===0&&$(this).attr("href").indexOf("edit_allow")!==0)||$(this).attr("href").indexOf("master_form")===0||$(this).attr("href").indexOf("slave_form")===0||$(this).attr("href").indexOf("stub_form")===0||$(this).attr("href").indexOf("forward_form")===0||$(this).attr("href").indexOf("delegation_form")===0||$(this).attr("href").indexOf("mass_form")===0||$(this).attr("href").indexOf("newdb_form")===0)){$(this).html(' '+$(this).text())}else{if($(this).attr("href")&&$(this).attr("href").indexOf("edit_allow")===0){$(this).html(' '+$(this).text())}else{if($(this).attr("href")&&$(this).attr("href").indexOf("mass_ucreate")===0){$(this).html(' '+$(this).text())}}}if($current_directory==$_____link+"custom/"){if(($(this).attr("href")&&$(this).attr("href").indexOf("edit_cmd.cgi?new")===0)){$(this).html(' '+$(this).text())}if(($(this).attr("href")&&$(this).attr("href").indexOf("edit_file.cgi?new")===0)){$(this).html(' '+$(this).text())}if(($(this).attr("href")&&$(this).attr("href").indexOf("edit_sql.cgi?new")===0)){$(this).html(' '+$(this).text())}}if(!$(this).attr("href")){$(this).remove()}}});$.each($(".btn-tiny.ui_link_replaced"),function(){if($(this).prev('[class="table table-striped table-condensed"]').length&&$(this).next(':not(".ui_link_replaced")').length){$(this).removeClass("btn-tiny ui_link_replaced").addClass("ui_link_re-replaced")}});$("a.ui_link_replaced").each(function(){if($(this).prev().is("b")){$(this).prev("b").addClass("btn btn-success btn-tiny")}if($(this).next().is("b")){$(this).next("b").addClass("btn btn-success btn-tiny")}});$("a.ui_link_replaced").each(function(){if($(this).next().is("a.ui_link_replaced")&&!$(this).hasClass("select_all")&&!$(this).hasClass("select_invert")){$(this).next("a.ui_link_replaced").not(".btn-xxs");return false}else{if($(this).prev().is("a.ui_link_replaced")&&!$(this).hasClass("select_all")&&!$(this).hasClass("select_invert")){$(this).prev("a.ui_link_replaced").not(".btn-xxs");return false}}});if($current_directory==$_____link+"fetchmail/"){$("a.ui_link").each(function(){$(this).addClass("btn btn-inverse btn-tiny ui_link_replaced").css("margin-bottom","10px").css("margin-top","4px");$(this).text($(this).text().replace(/\.$/,""));$(this).parent().contents().filter(function(){return this.nodeType==3}).remove()})}$('select.ui_select[name="days"]').each(function(){$(this).parent("td").attr("style","vertical-align: top !important")});if($current_directory==$_____link+"mailboxes/"||$current_page_full==$_____link_full+"/mailboxes/index.cgi"||$current_directory==$_____link+"mailbox/"||$current_page_full==$_____link_full+"/postfix/view_mailq.cgi"){if(!$__source_file){$(".ui_form_end_submit").css("margin-top","0");$("input#user").addClass("heighter-34 vertical-align-top")}else{if($__source_file=="list_mail.cgi"){$('input:not([type="checkbox"]), .ui_form_end_submit, select').addClass("heighter-34").removeClass("heighter-28").css("margin-bottom","-1px")}}$("body").find("form").removeAttr("onsubmit");$header_tables=$("body").find('input[name="from"]').parents(".tab-pane").parent("td");$header_tables.children("table").hide();$.each($header_tables.find("input, textarea, select"),function(){if(!$(this).hasClass("ui_select")&&!$(this).attr("onclick")&&$(this).attr("type")!="checkbox"&&$(this).attr("type")!="submit"){$(this).attr("style","width: 60%").addClass("inline-block")}if($(this).attr("onclick")){$(this).addClass("inline-block")}});t___wi.onbeforeunload=null;if($("body").find('input.ui_hidden[name="html_edit"]').val()==1){__init_ck_(["body",2,false,"edit_web"])}$("body").find('input[name="from"]').parents(".tab-pane").prev("table").remove();$("body").find('input[name="from"]').parents(".tab-pane ").parent("td").find("div, table").each(function(d,c){$(this).find(".col_label").css("width","20%");$(this).find('input[name="subject"]').parent("td").prev("td").find("b").attr("style","font-size: 13px !important");$(this).find('input[name="subject"]').parents("table").show();$(this).find('input[name="subject"]').parent("td").find(".submitter").remove()});$editor_mode_link_container=$("body").find('textarea[id="body"]').parents("table").find("thead > tr > th:last-child");$editor_mode_link=$editor_mode_link_container.find("a").addClass("editor_mode_link");$editor_mode_link_container.parent("tr").find("th:first-child").append($editor_mode_link);$editor_mode_link_container.remove();$editor_mode_link_button=$("body").find('textarea[id="body"]').parents("table").find(".editor_mode_link");$editor_mode_link_button_state=$editor_mode_link_button.attr("href")?$editor_mode_link_button.attr("href").indexOf("html=0"):false;$editor_mode_link_button.attr("title",$editor_mode_link_button.text()).addClass("editor_mode_link_button pull-right btn btn-sm "+($editor_mode_link_button_state==-1?"btn-success":"btn-primary")).html(' ');$("body").find('textarea[id="body"]').parents("table").find("thead > tr > th").find("b").css("padding-left","45px");$(".editor_mode_link_button").tooltip();$fileinput_container=$("body").find('a[onclick="return add_ss_attachment()"]');$fileinput_container.parent("td").contents().filter(function(){return this.nodeType==3}).remove();$fileinput_container.remove();$fileinput_add_another_attachment=$("body").find('a[onclick="return add_attachment()"]');$fileinput_add_another_attachment.addClass("btn btn-default");$fileinput_add_another_attachment.text($fileinput_add_another_attachment.text().replace(/\.$/,""));if($current_page_full.indexOf("view_mail.cgi")>-1||$current_page_full.indexOf("view_mailq.cgi")>-1){$table_title_header_container=$(".ui_form").find("div.table-responsive").first().find(".table-title");$table_title_links_container=$table_title_header_container.next();$table_title_links_container.contents().filter(function(){return this.nodeType==3}).remove();$table_title_links_container.find("a").addClass("table_title_links pull-right btn btn-info btn-tiny");$table_title_links=$table_title_links_container.html();$table_title_header_container.append($table_title_links);$table_title_links_container.remove();$table_title_header_container_text_padding=35;$(".table-title > a.table_title_links").each(function(){$table_title_header_container_text_padding=($current_page_full==$_____link_full+"/postfix/view_mailq.cgi"?120:235)});$(".table_title_links_container a").each(function(){$table_title_header_container_text_padding=$table_title_header_container_text_padding+$(this).width()});$table_title_header_container.find("b").css("padding-left",$table_title_header_container_text_padding);$table_title_second_container=$(".ui_form").find("div.table-responsive").first().next("div.table-responsive").find("table:first-child");$table_title_header_container=$(".ui_form").find("div.table-responsive").first().next("div.table-responsive").find("th:first-child");$table_title_links_container=$(".ui_form").find("div.table-responsive").first().next("div.table-responsive").find("th:last-child");if($(".ui_form").find("div.table-responsive").first().next("div.table-responsive").find("th").length==2){$table_title_links_container.remove()}else{}$table_title_links_container.find("a").addClass("table_title_links pull-right btn btn-tiny");if($table_title_links_container.find("a").attr("href")&&$table_title_links_container.find("a").attr("href").indexOf("body=1")>-1){$table_title_links_container.find("a").addClass("btn-info")}else{$table_title_links_container.find("a").addClass("btn-warning")}$table_title_links=$table_title_links_container.html();$table_title_header_container.append($table_title_links);$table_title_header_container_text_padding=10;$table_title_header_container.find("a").each(function(){$table_title_header_container_text_padding=$table_title_header_container_text_padding+$(this).width()});setTimeout(function(){if($(".ui_form").find("div.table-responsive").first().find("table:first-child").outerWidth()!=$(".ui_form").find("div.table-responsive").first().next("div.table-responsive").find("table:first-child").outerWidth()){var b=parseInt($(".ui_form").find("div.table-responsive").first().find("table:first-child").width()/2);$table_title_second_container.find(".table-title").addClass("left").find("b").css("padding-left",b-175);$table_title_second_container.find(".pull-right").removeClass("pull-right").addClass("pull-left")}$.each($table_title_second_container.find("table"),function(){$(this).removeClass().addClass("clear-formatting");$.each($(this).find("td.col_value"),function(){$(this).css("background-color","white")})})},30);$table_title_header_container.find("b").css("padding-left",$table_title_header_container_text_padding);if($table_title_header_container.find("b")&&$table_title_header_container.find("b").length>1){if($table_title_header_container.find("b:first-child").text()==$table_title_header_container.find("b:last-child").text()){$table_title_header_container.find("b:last-child").remove()}}}$("td > a").on("click",function(){if($(this).attr("onclick")=="return add_attachment()"){}$("input[type=file]").each(function(){if(!$(this).parent("a").hasClass("file-input-wrapper")){$(this).bootstrapFileInput()}})});if(settings_mailbox_slash_delimiter){$("select.ui_select[name] > option").each(function(d,c){$(c).text($(c).text().replace(/\./g,"/").replace(/\/\//g,"/"))})}$.each($('table td[align="right"], table td[align="left"]'),function(d,c){$(this).attr("style","border: 0 !important;");$(this).parents("tbody").attr("style","border: 0 !important;");$(this).parents("table.table-hardcoded.table.table-striped.table-condensed.table-subtable").removeClass("table-hardcoded table table-striped table-condensed table-subtable")});$.each($("div.table-responsive > table tbody tr td > table.table-hardcoded"),function(d,c){$(this).find("tr > td.col_label > b").removeAttr("style");$(this).removeClass("table table-condensed")});$.each($("div.table-responsive > table tbody tr td > div.tab-pane"),function(d,c){$(this).find("table").removeClass("table");$(this).parents("div.table-responsive").find("table").removeClass("table-striped table-subtable")});$.each($('div.table-responsive > table tbody tr td > div.tab-pane .col_value > input[type="button"][onclick^="ifield"]'),function(d,c){$(this).attr("style","margin-left: 0; margin-bottom: 3px !important")})}$.each($(".barchart"),function(){$(this).find("img").attr("height",4)});$('#extended_sysinfo div[aria-labelledby^="updates-"] div.panel-body div.table-responsive table.table.table-striped.table-condensed').next("table.ui_form_end_buttons").css("margin-top","10px");$('#extended_sysinfo div[aria-labelledby^="updates-"] div.panel-body div.table-responsive table.table.table-striped.table-condensed').next("table.ui_form_end_buttons").css("margin-top","10px").prev("table.table-condensed").prev("table.table.table-striped").addClass("invisible");$("a").each(function(){if(!$(this).attr("href")){$(this).addClass("no_effect")}});if($current_page_full==$_____link_full+"/virtual-server/domain_form.cgi"||$current_page_full==$_____link_full+"/server-manager/list_images.cgi"){$(".panel-body > a").each(function(){$(this).addClass("btn btn-inverse btn-tiny ui_link_replaced").removeClass("ui_link");$(this).text($(this).text().replace(/\.$/,""))});$.each($('.panel-body:contains("|")'),function(){$(this).contents().filter(function(){return this.nodeType==3}).wrap(' ')});$.each($(".btn-automated"),function(){if($(this).text().length<4){$(this).remove()}else{$(this).text($(this).text().replace("|","").replace("|","").replace(/(?:\r\n|\r|\n)/g,""))}});$(".panel-body > b").css("margin-right","7px");if($current_page_full==$_____link_full+"/virtual-server/domain_form.cgi"){$.each($(".btn-automated, .ui_link_replaced"),function(c,d){if(c==0){$(this).html(' '+$(this).text())}if(c==1){$(this).html(' '+$(this).text())}if(c==2){$(this).html(' '+$(this).text())}if(c==3){$(this).html(' '+$(this).text())}})}}if($current_page_full==$_____link_full+"/server-manager/edit_serv.cgi"){setTimeout(function(){$('.opener_container .table-hardcoded .col_value a[href^="edit_serv.cgi"]').each(function(){$(this).addClass("btn btn-inverse btn-xxs ui_link_replaced margined-right--2").removeClass("ui_link").attr("style","margin-top: 0 !important");$(this).text($(this).text().replace(/\.$/,""))});$.each($('.opener_container .table-hardcoded .col_value:contains("|")'),function(){if($(this).find('a[href^="edit_serv.cgi"]').length){$(this).contents().filter(function(){return this.nodeType==3}).wrap(' ')}$.each($(".btn-automated"),function(){if($(this).text().length<4){$(this).remove()}else{$(this).text($(this).text().replace("|","").replace("|","").replace(/(?:\r\n|\r|\n)/g,""))}})})},20)}if(settings_sysinfo_easypie_charts&&$current_page_full==$_____link_full+"/sysinfo.cgi"){var isNR=((__isNR||__isNM)?1:0);$("body").find(".page.__sytem_information").find(".piechart").easyPieChart({barColor:function(b){return(b<50?(isNR?"#269373":"#5cb85c"):b<85?(isNR?"#c38d40":"#f0ad4e"):"#cb3935")},trackColor:(isNR?"#3b424b":"#f8f8f8"),scaleColor:(isNR?"#3b424b":"#dfe0e0"),size:settings_sysinfo_easypie_charts_size,scaleLength:settings_sysinfo_easypie_charts_scale,trackWidth:settings_sysinfo_easypie_charts_width,lineWidth:0,lineCap:"square",onStep:function(f,d,e){$(this.el).find(".percent").text(Math.round(e))}})}$.each($("input:not(.ui_upload)"),function(){if($(this).css("height")=="28px"){$(this).prev("input").addClass("heighter-28")}});$.each($("select"),function(){if($(this).next("input").css("height")=="34px"){$(this).addClass("heighter-34")}});$.each($(".ui_buttons_row input, .ui_buttons_row select"),function(){$(this).addClass("heighter-34")});if(is__mf("gnupg","list_keys.cgi")){$('input[id="id"]').addClass("heighter-34")}$.each($("tr > .ui_form"),function(){if($(this).next().next("td").find("input.submitter")){$(this).next().next("td").find("input.submitter").addClass("heighter-34")}});$.each($("input.heighter-34").next(".file_chooser_button"),function(){$(this).addClass("heighter-34");$(this).find(".fa.fa-files-o").css("margin-top","0").addClass("vertical-align-middle")});setTimeout(function(){$.each($("select"),function(){if($(this).next("input").outerHeight()==34||$(this).prev("input").outerHeight()==34){$(this).addClass("heighter-34").removeClass("heighter-28")}else{if($(this).next("input").outerHeight()==28||$(this).prev("input").outerHeight()==28){$(this).addClass("heighter-28").removeClass("heighter-34")}}})},1);if(t__wi_p.$('iframe[name="page"]').contents().find('iframe:not([name="page"])').length){var $this=t__wi_p.$('iframe[name="page"]').contents().find('iframe:not([name="page"])');$this.on("load",function(){$this.contents().find("#term").css("width","99.3%").css("height","576px").css("margin-top","4px")});$(this).next("br").remove().next('input[type="button"]').remove();$(this).next('input[type="button"]').remove();$(this).next("p").remove()}$.each($(".file_chooser_button"),function(){if($(this).prev("input").attr("style")&&$(this).prev("input").attr("style").indexOf("max-width: 100%")>-1){$(this).prev("input").css("max-width","93%")}});if($source_path==$_____link+"sysinfo.cgi"&&settings_sysinfo_link_mini==true){t__wi_p.$(".navigation > li:not('.has-sub')").removeClass("sub_active").find("span.current-large").remove()}$.each($('input[value="..."], input[value=" ..."], input[value=" ..."], input[value="... "], input[value="... "], input[value=" ... "], input[value=" ... "]'),function(){$(this).after(' ');$(this).attr("value","")});$.each($(".file_chooser_button"),function(){$(this).prev("input").css("margin-top","2px").css("margin-bottom","2px")});$.each($(".file_chooser_button_attached"),function(){$(this).prev('input[type="button"]').prev("input").css("margin-top","2px").css("margin-bottom","2px");if(!$(this).parents(".ui_buttons_label").length&&!$(this).parents(".table-subtable").length){$(this).css("margin-top","11px")}});$.each($(".ui_form > .file_chooser_button_attached"),function(){if(($(this).prev(".heighter-34")&&$(this).prev(".heighter-34").length)||($(this).next(".heighter-34")&&$(this).next(".heighter-34").length)){$(this).css("margin-top","16px");$(this).prev("input[onclick]").css("width","40px")}});$.each($('.ui_form[action="init_cache.cgi"] > .file_chooser_button_attached'),function(){if(($(this).prev(".heighter-34")&&$(this).prev(".heighter-34").length)||($(this).next(".heighter-34")&&$(this).next(".heighter-34").length)){$(this).css("margin-top","14px")}});$.each($(".col_value > .file_chooser_button_attached"),function(){$(this).prev("input[onclick]").css("width","40px").css("margin-left","0")});$("a.ui_link, .btn").each(function(){if($(this).text().substr(-1)=="."){$(this).text($(this).text().substr(0,$(this).text().length-1))}if($(this).text().substr(-1)=="."){$(this).text($(this).text().substr(0,$(this).text().length-1))}if($(this).text().substr(-1)=="."){$(this).text($(this).text().substr(0,$(this).text().length-1))}});if($current_page_full==$_____link_full+"/virtualmin-mailman/"||$current_page_full==$_____link_full+"/virtualmin-mailman/index.cgi"){$("input[name^=reset_]").addClass("heighter-28")}if($current_page_full==$_____link_full+"/software/edit_pack.cgi"||$current_page_full==$_____link_full+"/apache/show.cgi"||$current_page_full==$_____link_full+"/proc/index_search.cgi"){$.each($(".btn:not(.file_chooser_button)"),function(){$(this).removeClass("heighter-28").addClass("heighter-34")})}if($current_page_full==$_____link_full+"/virtualmin-git/"||$current_page_full==$_____link_full+"/virtualmin-git/index.cgi"){$.each($(".btn.btn-default.submitter.ui_submit"),function(){$(this).removeClass("heighter-28").addClass("heighter-28")})}if($current_page_full==$_____link_full+"/apache/edit_global.cgi"||$current_page_full==$_____link_full+"/virtual-server/edit_newlinks.cgi"||$current_page_full==$_____link_full+"/virtualmin-awstats/"||$current_page_full==$_____link_full+"/postfix/master.cgi"){$.each($(".ui_link_replaced"),function(){$(this).not(".btn-xxs").removeClass("btn-tiny").addClass("heighter-34")})}if($current_page_full==$_____link_full+"/virtualmin-init/"||$current_page_full==$_____link_full+"/virtualmin-dav/list_shares.cgi"||$current_page_full==$_____link_full+"/squid/edit_acl.cgi"||$current_page_full==$_____link_full+"/virtualmin-nginx/"||$current_page_full==$_____link_full+"/fdisk/edit_disk.cgi"||$current_page_full==$_____link_full+"/server-manager/edit_newlinks.cgi"||$current_directory==$_____link+"backup-config/"){$.each($(".ui_link_re-replaced"),function(){$(this).addClass("btn-tiny").removeClass("heighter-34")})}if($current_page_full==$_____link_full+"/pam/"){$(".panel-body > a.ui_link").addClass("btn-tiny")}if($current_page_full==$_____link_full+"/syslog/"||$current_page_full==$_____link_full+"/syslog/index.cgi"){$.each($(".btn"),function(){$(this).removeClass("btn-tiny")})}if($current_page_full==$_____link_full+"/software/"||$current_page_full==$_____link_full+"/software/index.cgi"){$("input#search").addClass("heighter-34 vertical-align-top");$('form[action="file_info.cgi"] > .ui_form_end_submit').addClass("heighter-28 heighter-28-force margined-top-0")}if($current_page_full==$_____link_full+"/software/tree.cgi"){$(".ui_link").addClass("margined-top-10")}if($current_page_full==$_____link_full+"/syslog/save_log.cgi"){$.each($(".heighter-34"),function(){$(this).removeClass("heighter-34").addClass("heighter-28")});$("form:first").next("script").next("br").remove();$("form:last").css("margin-top","5px")}if($current_page_full==$_____link_full+"/status/edit_mon.cgi"){$('td.col_value > table[cellspacing="1"] tbody').attr("style","border: 0 !important;");$(".opener_trigger:last-child").css("font-size","16px");$.each($("table.sub_table_container td > font"),function(){$(this).parents("tbody");$(this).contents().unwrap().wrap(' ')})}if($current_page_full==$_____link_full+"/shell/"||$current_page_full==$_____link_full+"/shell/index.cgi"||$current_page_full==$_____link_full+"/server-manager/shell.cgi"){$.each($(".btn:not(.btn-link), select, input"),function(){$(this).removeClass("heighter-28").addClass("heighter-34");if($(this).is('input[type="button"]')){$($(this).addClass("submitter"))}if(t__wi_p.$(".form-control.sidebar-search").val()&&t__wi_p.$(".form-control.sidebar-search").val().trim().startsWith("!")){t__wi_p.$(".form-control.sidebar-search").val("")}$(".ui_form").find("input.btn.btn-default:first").addClass("btn-success")});$("input#cmd").focus()}$.each($("input"),function(){if($(this).css("height")=="28px"&&$(this).next("input").css("height")!="28px"){if($(this).is(':not([type="hidden"])')){$(this).next("input").addClass("heighter-28")}}});$.each($("select"),function(){if($(this).css("height")=="34px"&&$(this).next("select").css("height")!="34px"){$(this).next("select").addClass("heighter-34")}});if($current_page_full==$_____link_full+"/cluster-passwd/edit_passwd.cgi"){$.each($("input + button"),function(d,c){if($(this).css("height")=="28px"){$(this).addClass("heighter-28").css("line-height","12px").css("margin-top","2px")}})}if(t___wi.location.pathname=="/virtual-server/history.cgi"||t___wi.location.pathname=="/server-manager/bwgraph.cgi"||t___wi.location.pathname=="/server-manager/history.cgi"||t___wi.location.pathname=="/server-manager/one_history.cgi"){$("body").find("table.ui_form_end_buttons .btn.btn-default.submitter.ui_submit").addClass("btn-success");$(".panel-body > table tr td b").each(function(d,c){$(this).addClass("btn btn-success btn-tiny ui_link_replaced")});$(".panel-body > table a").each(function(d,c){$(this).addClass("btn btn-inverse btn-tiny ui_link_replaced").removeClass("ui_link");$(this).text($(this).text().replace(/\.$/,""));if($(this).text()&&$(this).text().indexOf("<<")>-1){$(this).text($(this).text().replace(/\<\,""));$(this).html(' '+$(this).text())}if($(this).text()&&$(this).text().indexOf(">>")>-1){$(this).text($(this).text().replace(/\>\>/,""));$(this).html($(this).text()+' ')}$(this).parent().contents().filter(function(){return this.nodeType==3}).remove();if(($(this).attr("href").indexOf("edit_cmd.cgi?new")===0)){$(this).html(' '+$(this).text())}if(($(this).attr("href").indexOf("edit_file.cgi?new")===0)){$(this).html(' '+$(this).text())}if(($(this).attr("href").indexOf("edit_sql.cgi?new")===0)){$(this).html(' '+$(this).text())}$(this).parents("table").css("margin-bottom","3px")});if($("#history").next("table.ui_grid_table").next("a").length){$("#history").next("table").next("a").addClass("btn btn-info btn-tiny ui_link_replaced").attr("style","margin-top: 4px !important").attr("target","_blank");$("#history").next("table").next("a").text($("#history").next("table").next("a").text().replace(/\.\.$/,""));$("#history").next("table").next("a").html(' '+$("#history").next("table").next("a").text())}else{$("#history").next("a").addClass("btn btn-info btn-tiny ui_link_replaced").attr("style","margin-top: 4px !important").attr("target","_blank");$("#history").next("a").text($("#history").next("a").text().replace(/\.\.$/,""));$("#history").next("a").html(' '+$("#history").next("a").text())}$(".panel-body > hr + b").attr("style","font-size: 16px; font-weight: normal;");$(".panel-body > hr + b").text($(".panel-body > hr + b").text().replace(/\:$/,""))}function tt__m__res(){var b;$(window).on("resize",function(){clearTimeout(b);b=setTimeout(function(){container_fluid_size()},1000);t__wi_p.ported_shell_size()})}tt__m__res();$('input[type="file"]').bootstrapFileInput();setTimeout(function(){$.each($(".file-input-wrapper > span"),function(){$(this).html('')})},1);setTimeout(function(){if(typeof onLoad==="function"&&typeof onResize==="function"){onLoad();$(window).resize(function(b){onResize()})}},600);$.each($('tr > td[valign="top"][width="50%"]'),function(){$(this).attr("style","vertical-align: top !important; "+$(this).attr("style"))});$("body table").each(function(d,e){var f=$(this);if(!$(e).hasClass("table")&&!$(e).hasClass("header")&&!$(e).hasClass("ui_form_end_buttons")&&!$(e).hasClass("ui_table")){$(e).addClass("table-hardcoded");if($product_name=="usermin"){$(e).addClass("table-subtable");if($(e).find("tr.thead").length||$(e).hasClass("sub_table_container table-hardcoded table-subtable")){$(e).find("tr.thead").attr("style","border: 1px solid #efefef");$(e).attr("style","border: 1px solid #efefef")}else{if($(e).attr("style")&&$current_page_full.indexOf("view_mail.cgi")>-1){}else{$(e).attr("style","margin-top: 10px;")}}}}});if((($current_page_full.indexOf(".cgi")===-1||$current_page_full.indexOf("link.cgi")!==-1)||$current_page_full==$_____link_full+"/proc/open_files.cgi"||$current_page_full==$_____link_full+"/webmin/edit_webmincron.cgi"||$current_page_full==$_____link_full+"/postfix/mailq.cgi"||$current_page_full==$_____link_full+"/webmin_search.cgi"||$current_page_full==$_____link_full+"/useradmin/index.cgi"||$current_page_full==$_____link_full+"/quota/list_users.cgi"||$current_page_full==$_____link_full+"/quota/list_groups.cgi"||$current_page_full==$_____link_full+"/init/index.cgi")&&($current_directory==$_____link+"webmin/"&&$_____link_full.indexOf("servers/link.cgi")===-1||$current_directory==$_____link+"proc/"||$source_path==$_____link+"webmin_search.cgi"||$current_directory==$_____link+"postfix/"||$current_directory==$_____link+"virtual-server/"||$current_directory==$_____link+"init/"||$current_directory==$_____link+"mount/"||$current_directory==$_____link+"custom/"||$current_directory==$_____link+"quota/"||$current_directory==$_____link+"php-pear/"||$current_directory==$_____link+"fsdump/"||$current_directory==$_____link+"inittab/"||$current_directory==$_____link+"logrotate/"||$current_directory==$_____link+"mailcap/"||$current_directory==$_____link+"cron/"||$current_directory==$_____link+"software/"||$current_directory==$_____link+"syslog/"||$current_directory==$_____link+"useradmin/"||$current_directory==$_____link+"apache/"||$current_directory==$_____link+"webalizer/"||$current_directory==$_____link+"cpan/"||$current_directory==$_____link+"htaccess-htpasswd/"||$current_directory==$_____link+"fdisk/")||is__mf("ruby-gems","index.cgi")||is__mf("postfix","master.cgi")||is__mf("fail2ban","list_filters.cgi")||is__mf("fail2ban","list_actions.cgi")||is__mf("fail2ban","list_jails.cgi")||is__mf("virtual-server","list_databases.cgi")||is__mf("virtual-server","connectivity.cgi")||is__mf("virtualmin-git","index.cgi")||$current_page_full==$_____link_full+"/useradmin/list_logins.cgi"||$current_page_full==$_____link_full+"/man/search.cgi"||$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_search.cgi"||$current_page_full==$_____link_full+"/software/search.cgi"||$current_page_full==$_____link_full+"/software/file_info.cgi"||$current_page_full==$_____link_full+"/software/list_pack.cgi"||$current_page_full==$_____link_full+"/virtual-server/index.cgi"||$current_page_full==$_____link_full+"/virtual-server/list_users.cgi"||$current_page_full==$_____link_full+"/virtual-server/edit_newplan.cgi"||$current_page_full==$_____link_full+"/virtual-server/edit_newfeatures.cgi"||$current_page_full==$_____link_full+"/virtual-server/edit_newtmpl.cgi"||$current_page_full==$_____link_full+"/virtual-server/backuplog.cgi"||$current_page_full==$_____link_full+"/package-updates/index.cgi"||$current_page_full==$_____link_full+"/virtual-server/usage.cgi"||$current_page_full==$_____link_full+"/virtual-server/search.cgi"||(($current_page_full==$_____link_full+"/fetchmail/"||$current_page_full==$_____link_full+"/filter/")&&product_name()=="Usermin")){$("table.table").each(function(){if($(this).find("thead")&&$(this).find("thead").length&&$(this).find("thead tr th")&&$(this).find("thead tr th").length>2){if($(this).find("thead")&&$(this).find("thead").length>1){var d=$(this).find("thead:first-child");d.remove();if(product_name()=="Webmin"&&($current_page_full==$_____link_full+"/quota/list_users.cgi"||$current_page_full==$_____link_full+"/quota/list_groups.cgi")){$(this).before(d);$(this).prev("thead").replaceTagName("table")}}__init_dt_($(this));$(this).find("th").each(function(){if(!$(this).text()){$(this).css("opacity","0").css("cursor","default")}});var c=-Infinity;$(this).find("tr").each(function(a,b){c=Math.max(c,parseFloat(a))});if(c<10){$(this).parents(".dataTables_wrapper").find(".dataTables_filter").remove()}var f=$(this).parents(".dataTables_wrapper").find(".dataTables_filter").length?1:0;if(f&&(($('body[class="init"]').length||($('body[class^="init"]').length&&$('body[class^="init"]').attr("class").match(/\d+$/)!=null))||($('body[class="quota"]').length||($('body[class^="quota"]').length&&$('body[class^="quota"]').attr("class").match(/\d+$/)!=null))||($('body[class="cron"]').length||($('body[class^="cron"]').length&&$('body[class^="cron"]').attr("class").match(/\d+$/)!=null)))){var g=-15,e=$(this).parents(".dataTables_wrapper").attr("style");if($('body[class^="quota"]').length){g=-27}$(this).parents(".dataTables_wrapper").attr("style","margin-top: "+g+"px !important; "+(e?e:""))}}})}if($current_page_full==$_____link_full+"/bind8/"||$current_page_full==$_____link_full+"/postfix/virtual.cgi"){__init_dt_($(".table.table-striped.table-hover.table-condensed"))}if($current_page_full==$_____link_full+"/virtual-server/list_scripts.cgi"){__init_dt_($("#att_existing > form > table.table.table-striped.table-condensed"))}if($current_page_full==$_____link_full+"/virtual-server/edit_newscripts.cgi"){__init_dt_($("#att_summary > table.table.table-striped.table-condensed"))}if($current_page_full==$_____link_full+"/server-manager/index.cgi"||$current_page_full==$_____link_full+"/virtualmin-htpasswd/index.cgi"){__init_dt_($("body > div > div > div.panel-body > form > table.table.table-striped.table-condensed"))}if((($('body[class*="status"]').length&&!$('body[class*="smart-status"]').length)&&!$__source_file)||$current_page_full==$_____link_full+"/servers/"||$current_page_full==$_____link_full+"/servers/index.cgi"||$current_page_full==$_____link_full+"/webminlog/search.cgi"){__init_dt_($("table.table-striped.table-condensed"))}if($('body[class*="ldap-useradmin"]').length){__init_dt_($("form > table.table.table-striped.table-condensed"))}if($current_page_full==$_____link_full+"/virtual-server/list_sched.cgi"){__init_dt_($(".table.table-striped.table-hover.table-condensed"),false,false,{orderable:false,targets:[0,-1]})}if($current_page_full==$_____link_full+"/servers/"||$current_page_full==$_____link_full+"/servers/index.cgi"){$(".ui_checked_columns td table tr td").find('a.ui_link[href*="edit_serv.cgi"]').addClass("margined-left-4 label label-sm label-primary hidden").html(' ');$(".ui_checked_columns").hover(function(){$(this).find("td table tr a.ui_link.label.hidden").removeClass("hidden")},function(){$(this).find("td table tr a.ui_link.label").addClass("hidden")})}$.each($('table.table.table-striped.table-condensed.dataTable.no-footer > thead > tr[role="row"]:first-child'),function(d,c){$(this).attr("style","border-top: 4px solid #f2f2f2 !important")});if(typeof refresher!="undefined"){t___wi.clearInterval(refresher)}if(typeof $__was_runner!="undefined"){t___wi.clearInterval($__was_runner)}$("body").unbind("mousewheel");$("html").unbind("mousewheel");delete refresh;delete refresher;delete $__was_runner;$__was_runner_is_done=1;$.each($('button[onclick^="t___wi.ifield"].btn.btn-default.ui_button'),function(){$(this).addClass("file_chooser_button_emulate")});$.each($(".file_chooser_button_emulate"),function(){if(!$(this).find(".fa-files-o").length){$(this).append(' ')}if($(this).prev("input").css("height")=="28px"){$(this).addClass("heighter-28")}});$.each($("label > img"),function(d,c){$(this).attr("style","vertical-align: baseline !important")});$.each($('select[multiple][name="weekdays"]'),function(){$(this).parents('td[valign="top"], td.td_tag').attr("style","vertical-align: top !important");$(this).parents('table[width="100%"]').parents(".ui_radio_table.table-hardcoded").css("width","100%")});$("body").on("click",".csf-submit",function(d){d.preventDefault();var c=$(this).data("id");$("#"+c).submit()});$.each($("label").find("br"),function(){$(this).parent("label").prev(".aradio, .acheckbox").attr("style","margin-left: 0 !important;");$(this).parent("label").next(".aradio, .acheckbox").attr("style","margin-left: 0 !important;")});$.each($(".table-responsive + .table-responsive + .table-hardcoded td"),function(){if($(this).find(".heighter-34").length){$.each($(".table-responsive + .table-responsive + .table-hardcoded td"),function(){$(this).find(".btn").addClass("heighter-34")})}});if($current_page_full==$_____link_full+"/cpan/edit_mod.cgi"){$('form[action="download.cgi"]').next().next().next().find(".submitter.ui_submit").addClass("heighter-34")}if($current_page_full==$_____link_full+"/cpan/"||$current_page_full==$_____link_full+"/cpan/index.cgi"){$('input[name="cpan"]').next("button").append(' ').attr("style","width: 40px; height: 28px; vertical-align:middle !important; margin-top:2px; margin-bottom:2px;")}if($("form").find(".icons-row:not(.inline-row)").length){$("form").find(".icons-row").addClass("_processed_");$("form").find(".icons-row").css("border-top","1px solid #efefef").css("border-bottom","1px solid #efefef");$("form").find(".icons-row").find(".icons-container").addClass("icons-container-stretched")}function __m_ico_row_tb(){$("body").find(".icons-row:not(._processed_):not(.inline-row)").css({"padding-top":"8px","padding-bottom":"8px"});$("body").find(".icons-row:not(._processed_):not(.inline-row)").css("border-top","1px solid #efefef").css("border-bottom","1px solid #efefef")}function __m_ico_row_t(){$("body").find(".icons-row:not(._processed_):not(.inline-row)").css({"padding-top":"8px"});$("body").find(".icons-row:not(._processed_):not(.inline-row)").css("border-top","1px solid #efefef")}function __m_ico_row_b(){$("body").find(".icons-row:not(._processed_):not(.inline-row)").css({"padding-bottom":"6px"});$("body").find(".icons-row:not(._processed_):not(.inline-row)").css("border-bottom","1px solid #efefef")}if($current_page_full==$_____link_full+"/lvm/"||$current_page_full==$_____link_full+"/virtualmin-support/"||$current_page_full==$_____link_full+"/proftpd/virt_index.cgi"||$current_page_full==$_____link_full+"/dhcpd/"||$current_page_full==$_____link_full+"/dhcpd/index.cgi"||$current_page_full==$_____link_full+"/cluster-usermin/"||$current_page_full==$_____link_full+"/cluster-usermin/index.cgi"||$current_page_full==$_____link_full+"/cluster-useradmin/"||$current_page_full==$_____link_full+"/cluster-useradmin/index.cgi"||$current_page_full==$_____link_full+"/cluster-webmin/"||$current_page_full==$_____link_full+"/cluster-webmin/index.cgi"){__m_ico_row_tb()}if($current_page_full==$_____link_full+"/proftpd/"||$current_page_full==$_____link_full+"/proftpd/index.cgi"||$current_page_full==$_____link_full+"/bacula-backup/"||$current_page_full==$_____link_full+"/bacula-backup/index.cgi"){__m_ico_row_t()}if($current_page_full==$_____link_full+"//"){__m_ico_row_b()}$("body").on("contextmenu","div.icons-container, div.small-icons-container",function(b){b.preventDefault();if($(this).find("input").is(":checked")){$(this).find("input").prop("checked",false);$(this).removeClass("highlighted")}else{if($(this).find("input").length){$(this).find("input").prop("checked",true);$(this).addClass("highlighted")}}var c=($(b.target).is(".icon_link")?$(b.target).parent(".gl-icon-container").find(".fa-select, .fa-selected"):($(b.target).is(".gl-icon-select")?$(b.target):($(b.target).is("img")?$(b.target).parent("a").parent(".gl-icon-container").find(".fa-select, .fa-selected"):$(b.target).find(".fa-select, .fa-selected"))));c.hasClass("fa-select")?c.removeClass("fa-select").addClass("fa-selected"):c.removeClass("fa-selected").addClass("fa-select")});function __m_ico_row_func(){return 0}$.each($(".row.icons-row.inline-row"),function(a,b){$(this).find("a.icon_link").contents().filter(function(){return this.nodeType==3}).remove()});$.each($(".row.icons-row:not(.inline-row) .icons-container"),function(a,b){$(this).removeAttr("data-title").removeAttr("data-toggle").removeAttr("data-placement").removeAttr("data-container")});if($("body").find(".icons-row > div.icons-container").length||$("body").find(".icons-row > div.small-icons-container").length){$(".row.icons-row.vertical-align").on("click",".icons-container, .small-icons-container",function(){if(!$(this).hasClass("forged-xx-skip")){return}t___wi.location.href=$(this).find("a").attr("href")});var DELAY=240,clicks=0,timer=null;$("body").on("click",'.icons-row div[class*="icons-container"] .forged-xx-data, .icons-container, .small-icons-container',function(b){var d=$(this);if($(this).hasClass("forged-xx-skip")||$(b.target).is(".gl-icon-edit")){return}if($(b.target).parents(".inline-row").length){if($(b.target).is("input.iawobject")){if(!$(b.target).is(":checked")){$(b.target).parents(".icons-container, .small-icons-container").removeClass("highlighted")}else{$(b.target).parents(".icons-container, .small-icons-container").addClass("highlighted")}}return}b.preventDefault();b.stopPropagation();b.stopImmediatePropagation();if($(b.target).is(".gl-icon-select")){$(b.target).trigger("contextmenu");return}clicks++;if(clicks===1){timer=setTimeout(function(){clicks=0;$(b.target).trigger("contextmenu");typeof db_check_selected==="function"&&db_check_selected()},DELAY)}else{clearTimeout(timer);clicks=0;var f=$(b.target).parent("a").attr("href"),c=$(b.target).find("a").attr("href"),e=$(b.target).attr("href");if(f){window.location.href=f}else{if(c){window.location.href=c}else{if(e){window.location.href=e}}}}}).on("dblclick",function(a){a.preventDefault()});$("body").on("click",".select_all",function(){if($(this).parents("form").find('.icons-row div[class*="icons-container"]').length){$.each($(".icons-row .hidden-forged-6"),function(){$(this).parents('div[class*="icons-container"]').addClass("highlighted");$(this).parents('div[class*="icons-container"]').find(".fa-select").removeClass("fa-select").addClass("fa-selected")})}}).on("click",".select_invert",function(){$.each($(".icons-row .hidden-forged-6"),function(){if($(this).find("input").is(":checked")){$(this).parents('div[class*="icons-container"]').addClass("highlighted");$(this).parents('div[class*="icons-container"]').find(".fa-select, .fa-selected").removeClass("fa-select").addClass("fa-selected")}else{$(this).parents('div[class*="icons-container"]').removeClass("highlighted");$(this).parents('div[class*="icons-container"]').find(".fa-select, .fa-selected").removeClass("fa-selected").addClass("fa-select")}})});$.each($(".icons-row .hidden-forged-6"),function(){if($(this).find("input").is(":checked")){$(this).parents('div[class*="icons-container"]').addClass("highlighted")}});$.each($(".hidden-forged-7 > a"),function(){$(this).removeClass();if($(this).parents(".hidden-forged-7").hasClass("hidden-forged-7-small")){$(this).html(' ');$(this).parent().parent().prepend(' ')}else{$(this).html(' ');$(this).parent().parent().prepend(' ')}});$("body").on("mouseover",'.icons-row div[class*="icons-container"]',function(b){$(this).find(".hidden-forged-7").removeClass("hidden-forged")}).on("mouseout",function(b){$(this).find(".hidden-forged-7").addClass("hidden-forged")})}if($current_directory==$_____link+"virtualmin-registrar/"){$.each($("td > input "),function(){if($(this).parents("table.table-hardcoded").find('form[action="edit.cgi"]').length){$(this).css("margin-left","5px");$(this).parent("td").prev("td").find("select").css("margin-left","5px")}})}if($current_page_full==$_____link_full+"/cluster-webmin/edit_host.cgi"){$.each($(".panel-body > .table-hardcoded"),function(){$(this).attr("style","margin-top: 10px !important")})}if($current_page_full==$_____link_full+"/virtual-server/list_scripts.cgi"||$current_page_full==$_____link_full+"/virtual-server/edit_newscripts.cgi"){$('form[action="disable_scripts.cgi"] thead + thead tr th, form[action="disable_scripts.cgi"] tbody + thead tr th, form[action="script_form.cgi"] thead + thead tr th, form[action="script_form.cgi"] tbody + thead tr th').attr("colspan","5")}$.each($(".file_chooser_button_attached"),function(d,c){if($(this).prev('input[onclick*=".cgi"]')){$(this).prev('input[onclick*=".cgi"]').css("width","40px")}});if(product_name(1).toLowerCase()=="cloudmin"&&($current_page_full==$_____link_full+"/server-manager/add_form.cgi"||$current_page_full==$_____link_full+"/server-manager/scan_form.cgi")){$.each($("label"),function(){$(this).find("br").remove()})}if(($current_page_full==$_____link_full+"/mysql/view_table.cgi"||$current_page_full==$_____link_full+"/postgresql/view_table.cgi")&&$("td.td_tag > table.table-hardcoded")){var $___colspan=$("td.td_tag > table.table-hardcoded").parents("table").find("thead").find("tr").find("th").length;$("td.td_tag > table.table-hardcoded").parent("td.td_tag").attr("colspan",$___colspan).attr("style","padding: 1px !important;")}if($current_page_full==$_____link_full+"/virtual-server/backup_form.cgi"&&$__source_url&&$__source_url.indexOf("?sched=")>-1){$("body > div > div > div.panel-body > form > table:nth-child(4) > tbody > tr:nth-child(2) > td").css("display","table-cell");setTimeout(function(){$("a[href=\"javascript:hidden_opener('hiddendiv_adddest', 'hiddenopener_adddest')\"]").next().attr("style","").addClass("btn btn-tiny btn-default")},10)}if($__source_path==="/config.cgi"){$("thead tr th.table-title").prepend(' ')}$.each($('form[action="save_global.cgi"], form[action="save_iptables.cgi"], form[action="save_domain.cgi"],form[action="domain_setup.cgi"],form[action="mass_create.cgi"],form[action="save_roundrobin.cgi"],form[action="save_alert.cgi"], body.time form[action="apply.cgi"]'),function(){$(this).find(".col_header").removeClass("col_header")});if($__relative_url==="/virtual-server/edit_newchangelog.cgi"||$__relative_url==="/server-manager/edit_newchangelog.cgi"||$__relative_url==="/shell/"||$__relative_url==="/shell/index.cgi"||$__relative_url==="/server-manager/shell.cgi"){$("td.col_value.col_value").removeClass("col_header")}if($__relative_url==="/ldap-server/edit_ldif.cgi"){$("span > input.ui_opt_textbox").unwrap()}if($current_page_full==$_____link_full+"/server-manager/gvnc.cgi"){$("body.server-manager p > object").css("height","100%").parent("p").attr("style","display: block; height: "+parseInt($(window).outerHeight()/1.4)+"px")}if(t___wi.location.search!="?dashboard"&&dashboard_switch()==true){if($__source_file=="sysinfo.cgi"){t__wi_p.t__s("open_dashboard");t__wi_p.__cms()}else{if(t__wi_p.$("#open_webmin").length>0&&t__wi_p.$(".switch-toggle input:checked").attr("id")!="open_webmin"&&__num()){t__wi_p.t__s("open_webmin")}else{if(t__wi_p.$("#open_virtualmin").length>0&&t__wi_p.$(".switch-toggle input:checked").attr("id")!="open_virtualmin"&&__num()){t__wi_p.t__s("open_virtualmin")}else{if(t__wi_p.$("#open_cloudmin").length>0&&t__wi_p.$(".switch-toggle input:checked").attr("id")!="open_cloudmin"&&__num()){t__wi_p.t__s("open_cloudmin")}else{if(t__wi_p.$("#open_usermin").length>0&&t__wi_p.$(".switch-toggle input:checked").attr("id")!="open_usermin"&&__num()){t__wi_p.t__s("open_usermin")}}}}}}if($current_page_full==$_____link_full+"/spam/edit_simple.cgi"||$current_page_full==$_____link_full+"/spam/edit_header.cgi"){var target=$(".ui_form .table-responsive table.table.table-striped.table-condensed.table-subtable > thead tr th:first-child"),container=$(".ui_form .table-responsive table.table.table-striped.table-condensed.table-subtable > thead tr th:last-child"),link=container.find("a");target.append(link);container.remove();target.find("a").addClass("table_title_links pull-right btn btn-xs btn-grey").attr("style","position: absolute; right: 23px; margin-top: 7px !important;")}if($current_page_full==$_____link_full+"/server-manager/edit_pass.cgi"&&$('form[action="save_pass.cgi"]').find('a[href*="edit_pass.cgi?"]:not(.btn)').length){var target=$(".ui_form .table-responsive table.table.table-striped.table-condensed.table-subtable > thead tr th:first-child"),container=$(".ui_form .table-responsive table.table.table-striped.table-condensed.table-subtable > thead tr th:last-child"),link=container.find("a");target.append(link);container.remove();target.find("a").addClass("table_title_links pull-right btn btn-info btn-tiny").attr("style","position: absolute; right: 20px; margin-top: 3px !important;")}$('.panel-default + a[href="/virtual-server/"]').attr("href","/virtual-server/index.cgi");$('.panel-default + a[href="/server-manager/"]').attr("href","/server-manager/index.cgi");if($__current_directory==$_____link_full+"/virtual-server/"){$("#headln2l > a:first-child .fa-arrow-left").parent("a").attr("href","/virtual-server/index.cgi")}else{if($__current_directory==$_____link_full+"/server-manager/"){$("#headln2l > a:first-child .fa-arrow-left").parent("a").attr("href","/server-manager/index.cgi")}}if($current_directory==$_____link+"acl/"){$("body.acl > div > div > div.panel-body > form > div > table > tbody > tr > td > table > tbody > tr:nth-child(1) > td > table > tbody").attr("style","border: 0 !important");var $t__acl_title=$("br").next(".ui_grid_table.table-hardcoded").find("tbody").attr("style","border: 1px solid #"+((__isNR||__isNM)?"393b3f":"eee")+" !important").parent("table").prev("br").prev("b");$("br").next(".ui_grid_table.table-hardcoded").css("margin-bottom","3px");$.each($t__acl_title,function(c,d){if($(this).text()==""){$(this).next("br").remove();$(this).remove()}});$t__acl_title.attr("style","margin-bottom: -3px !important").next("br").remove()}$('form[action="bootup.cgi"]').on("submit",function(b){if($("#starting").length>0){$("#starting").remove();$(this).append(' ')}else{if($("#table").length>0){$(this).append(' ')}else{if($('input[name="boot"][type="hidden"]').length>0){$('input[name="boot"][type="hidden"]').remove();$(this).append(' ')}}}});if($('body[class*="bandwidth"]').length){$(".fa.fa-calendar.file_chooser_button_attached").attr("style","font-size: 11px; margin-top: 9px !important; pointer-events: none; margin-left: -27px !important;")}if($current_page_full==$_____link_full+"/mysql/exec_form.cgi"||$current_page_full==$_____link_full+"/postgresql/exec_form.cgi"){$('select[name="old"], input[name="clear"], select[name="charset"]').removeClass("heighter-34").addClass("heighter-28");$('input[name="clear"]').attr("style","margin-bottom: 3px !important;");$('select[name="old"]').attr("style","margin-bottom: 3px !important; margin-right: 0 !important;")}if(($__source_file=="config.cgi"||$__source_file=="uconfig.cgi")&&($__source_query=="mysql"||$__source_query=="postgresql")){$('input[name="style"]').parents("td.col_value").parent("tr").after(' '+lang("theme_xhred_xsql_fit_content_screen_height")+' '+lang("theme_xhred_global_yes")+' '+lang("theme_xhred_global_no")+" ");$('input[name="config_portable_module_xsql_fit_content_screen_height"]').on("change",function(){var b=$(this).attr("name"),a=$(this).val();localStorage.setItem($hostname+"-"+b,a);window[b]=a;t__wi_p.manageConfig("save")})}if($(".ui_post_header.hidden").html()&&$(".ui_post_header.hidden").html().length>5){$("#headln2c").append(""+$(".ui_post_header.hidden").html()+" ");$(".ui_post_header.hidden").remove()}if($current_page_full&&$current_page_full.indexOf("/sysinfo.cgi")>-1&&__num()){$('#status_services-status-collapse .tr_tag .td_tag > img[src*="images/up.gif"]:not(".ui_icon_protected")').each(function(d,e){var f=$(this);$(e).attr("src",""+$_____link_full+"/images/check.png").css("margin-right","3px").attr("title",$.trim(f.parent(".td_tag").text()))});$('#status_services-status-collapse .tr_tag .td_tag > img[src*="images/down.gif"]:not(".ui_icon_protected")').each(function(d,e){var f=$(this);$(e).attr("src",""+$_____link_full+"/images/cross.png").css("margin-right","3px").attr("title",$.trim(f.parent(".td_tag").text()))});$('#status_services-status-collapse .tr_tag .td_tag > img[src*="images/not.gif"]:not(".ui_icon_protected")').each(function(d,e){var f=$(this);$(e).attr("src",""+$_____link_full+"/images/not.png").css("margin-right","3px").attr("title",$.trim(f.parent(".td_tag").text()))});function _update_time_(){var a=$("[data-convertible-timestamp-full]");a.data("convertible-timestamp-full",(parseInt(a.data("convertible-timestamp-full"))+1));typeof t__wi_p.moment!=="undefined"&&a.text(t__wi_p.moment.unix(a.data("convertible-timestamp-full")).format(settings_window_replaced_timestamp_format_full))}$(function(){setInterval(_update_time_,1000)});$.each($(".piechart"),function(){if(isNaN($(this).data("percent"))){$(this).parents(".text-center").remove()}}).promise().done(function(){var c=$("span[data-charts]"),b='div[class^="col-xs-"]',a=c.parents(".row").find(b).length;$.each(c.parents(".row"),function(){$(this).find(b).removeClass().addClass("text-center col-xs-6 col-sm-"+(12/a)+"")})});$.each($(".panel-default:not(#system-status)"),function(a,b){if(!$(this).parent(".panel-group").length){$(this).detach().appendTo(".panel-group")}});$(".panel-default:not(#system-status)").sort(function(d,c){return $(d).data("sorter")>$(c).data("sorter")}).each(function(){var a=$(this);a.remove();$(a).appendTo(".panel-group")}).promise().done(function(){$("#serial-virtual-server").parent(".panel").detach().prependTo(".panel-group");$("#vm2servers-server-manager, #serial-server-manager").parent(".panel").detach().prependTo(".panel-group");$("#sysinfo-virtual-server").parent(".panel").detach().prependTo(".panel-group");$("#quota-virtual-server, #bw-virtual-server").parent(".panel").detach().prependTo(".panel-group");$("#ftypes-virtual-server").parent(".panel").detach().prependTo(".panel-group");$("#status-virtual-server").parent(".panel").detach().prependTo(".panel-group");$("#status_services-status").parent(".panel").detach().prependTo(".panel-group");$("#newfeatures-virtual-server").parent(".panel").detach().prependTo(".panel-group");$("#updates-virtual-server").parent(".panel").detach().prependTo(".panel-group");$("#acl_logins-acl").parent(".panel").detach().appendTo(".panel-group")})}$("body").on("click","a#atclearcache",function(a){Object.keys(localStorage).forEach(function(c){if(/^allowed_trigger|^notifications_|^sysinfo_/.test(c)){localStorage.removeItem($hostname+"-"+c)}});t__wi_p.$(".right-side-tabs-dismiss .fa-trash").trigger("click");t__wi_p.$(".right-side-tabs-dismiss .fa-refresh").trigger("click");var b=$(this);f__mgk_sp(b,[1.5,-33,"small",1000])});$("body").click(function(a){if($(a.target).is('select[name="settings_navigation_color"], select[name="settings_background_color"], select[name="settings_side_slider_palette"], input[name="settings_side_slider_fixed"], label[for^="settings_side_slider_fixed"], div.aradio')){return}if(t__wi_p.$(".right-side-tabs-toggler").hasClass("opened")&&!t__wi_p.$(".right-side-tabs-toggler").hasClass("hidden")){t__wi_p.$(".right-side-tabs-toggler:not(.hidden)").trigger("click")}});if($current_page_full==$_____link_full+"/virtual-server/edit_phpmode.cgi"){$("#hiddendiv_phpinfo table tbody tr").css("border","1px solid #"+(__isNR?"393b3f":"eee")+"")}if(settings_window_replace_timestamps){var xMoment=typeof t__wi_p.moment!=="undefined";$.each($("[data-convertible-timestamp-full]"),function(){xMoment&&$(this).text(t__wi_p.moment.unix($(this).data("convertible-timestamp-full")).format(settings_window_replaced_timestamp_format_full))});$.each($("[data-convertible-timestamp-short]"),function(){xMoment&&$(this).text(t__wi_p.moment.unix($(this).data("convertible-timestamp-short")).format(settings_window_replaced_timestamp_format_short))})}$.each($('a[href*="showpass.cgi?"][onclick]'),function(){$(this).html(' ').css("color","#555")});if($current_page_full==$_____link_full+"/webmin/edit_startpage.cgi"){$('select[name="deftab"]').parents("td.col_value").parent("tr").hide();$('select[name="gotomodule"] option').each(function(){($(this).val()=="virtual-server"||$(this).val()=="server-manager"||$(this).val()=="csf")&&$(this).remove()})}if($current_page_full==$_____link_full+"/webmin/edit_ui.cgi"||$current_page_full==$_____link_full+"/usermin/edit_ui.cgi"){$('input[name*="cs_link_def"], input[name*="cs_header_def"], input[name*="cs_table_def"], input[name*="cs_text_def"], input[name*="cs_page_def"], input[name*="width_def"], input[name*="height_def"], input[name*="sizedate_def"], input[name*="texttitles"]').parents("td.col_value").parent("tr").addClass("hidden")}if($__relative_url=="/config.cgi?virtual-server"||$__relative_url=="/config.cgi?server-manager"){$('input[name="theme_image"], input[name="theme_link"], input[name="theme_alt"]').parents("td.col_value").parent("tr").hide()}if($current_page_full==$_____link_full+"/virtual-server/edit_resel.cgi"){$('input[name="logo"][id="logo"], input[name="link"]').parents("td.col_value").parent("tr").hide()}if($current_page_full==$_____link_full+"/virtual-server/edit_newfeatures.cgi"){$('tr td:last-child label:contains("|")').replaceText(/\|/gi,"");$("td a.ui_link").addClass("ui_link_replaced btn btn-info btn-xxs").removeClass("heighter-34").removeClass("ui_link").prepend(' ')}if($current_page_full==$_____link_full+"/virtual-server/domain_form.cgi"||$current_page_full==$_____link_full+"/virtual-server/edit_domain.cgi"||$current_page_full==$_____link_full+"/virtual-server/edit_user.cgi"||$current_page_full==$_____link_full+"/virtual-server/edit_alias.cgi"||$current_page_full==$_____link_full+"/virtual-server/edit_limits.cgi"){__is_shifted=false;__is_tabbed=false;$(document).on("keyup keydown",function(a){var b=a.keyCode?a.keyCode:a.which;__is_shifted=a.shiftKey;__is_tabbed=(b==9?true:false)});$("input, select").on("blur",function(){if(__is_tabbed&&!$(this).next("input:visible").length&&!$(this).prev("input:visible").length&&!$(this).next("select:visible").length&&!$(this).prev("select:visible").length){if(!__is_shifted){if($(this).parent("td").parent("tr").next("tr").find('input[type="text"]:first:visible, input[type="password"]:first:visible').length||$(this).parent("td").parent("tr").next("script").next("tr").find('input[type="text"]:first:visible, input[type="password"]:first:visible').length||$(this).parent("td").parent("tr").next("script").next("script").next("tr").find('input[type="text"]:first:visible, input[type="password"]:first:visible').length){$(this).parent("td").parent("tr").next("tr").find('input[type="text"]:first:visible, input[type="password"]:first:visible').focus();$(this).parent("td").parent("tr").next("script").next("tr").find('input[type="text"]:first:visible, input[type="password"]:first:visible').focus();$(this).parent("td").parent("tr").next("script").next("script").next("tr").find('input[type="text"]:first:visible, input[type="password"]:first:visible').focus()}else{$(this).parent("td").parent("tr").next("tr").find("select:first:visible").focus();$(this).parent("td").parent("tr").next("script").next("tr").find("select:first:visible").focus();$(this).parent("td").parent("tr").next("script").next("script").next("tr").find("select:first:visible").focus()}}else{if($(this).parent("td").parent("tr").prev("tr").find("select:visible").length||$(this).parent("td").parent("tr").prev("script").prev("tr").find("select:visible").length||$(this).parent("td").parent("tr").prev("script").prev("script").prev("tr").find("select:visible").length){$(this).parent("td").parent("tr").prev("tr").find("select:first:visible").focus();$(this).parent("td").parent("tr").prev("script").prev("tr").find("select:first:visible").focus();$(this).parent("td").parent("tr").prev("script").prev("script").prev("tr").find("select:first:visible").focus()}else{$(this).parent("td").parent("tr").prev("tr").find('input[type="text"]:first:visible, input[type="password"]:first:visible').focus();$(this).parent("td").parent("tr").prev("script").prev("tr").find('input[type="text"]:first:visible, input[type="password"]:first:visible').focus();$(this).parent("td").parent("tr").prev("script").prev("script").prev("tr").find('input[type="text"]:first:visible, input[type="password"]:first:visible').focus()}}}})}if($("#headln2l .btn .fa-arrow-left").length){if($("body").attr("class")&&$("body").attr("class").indexOf($g__o__f_m)>-1){}else{$("#headln2l .btn .fa-arrow-left").parent("a").attr("href",$("#headln2l .btn .fa-arrow-left").parent("a").attr("href").replace("index.cgi",""))}var $_url=URI(t___wi.location);$__source_file=$_url.filename()}$("#headln2r, #headln2l").prepend(' ').append("
");$("#headln2r a").detach().appendTo("#headln2r .btn-group");$("#headln2l a").detach().appendTo("#headln2l .btn-group");$.each($(".ui_form_end_submit"),function(){if($source_path==$_____link+"proc/edit_proc.cgi"||$__source_file=="edit_dbase.cgi"||$__source_file=="edit_pam.cgi"||$__source_file=="list_records.cgi"||is__m("mailbox")||is__m("mailboxes")){return}var a=$(this).parent().find(".ui_form_end_submit");if(!a.parents(".btn-group").length&&a.length>1){$(this).parent().find(".ui_form_end_submit, .ui_form_end_submit + input").wrapAll('
')}}).promise().done(function(){$.each($(".end_submits"),function(a,b){if($(this).prev(".heighter-28").length||$(this).prev("input, select").css("height")=="28px"){$(this).find(".ui_form_end_submit").addClass("heighter-28")}})});$('.ui_form_end_submit[onclick^="window.open"]').click(function(){var a=$(this);setTimeout(function(){a.removeClass("disabled");t__wi_p.__lle()},100)});$.each($(".btn-group").find("span"),function(){($(this).not("[class]").length&&!$.trim($(this).text()).length)&&$(this).remove()});f__mgk_fi();if($(".panel-default").nextAll("a.btn.btn-primary").length===2){$(".panel-default").next("a.btn.btn-primary").find(".fa.fa-arrow-left").removeClass("fa-arrow-left").addClass("fa-arrow-circle-o-left")}if($(".panel-default").nextAll("a.btn.btn-primary").length===3){$(".panel-default").next("a.btn.btn-primary").next("a.btn.btn-primary").find(".fa.fa-arrow-left").removeClass("fa-arrow-left").addClass("fa-arrow-circle-left");$(".panel-default").next("a.btn.btn-primary").find(".fa.fa-arrow-left").removeClass("fa-arrow-left").addClass("fa-arrow-circle-o-left")}if($current_page_full==$_____link_full+"/init/reboot.cgi"){$("input.btn-success").removeClass("btn-success").addClass("btn-warning")}if($current_page_full==$_____link_full+"/init/shutdown.cgi"){$("input.btn-success").removeClass("btn-success").addClass("btn-danger")}if(!$g__v__nav){__s___()}$("body").on("click",'button.ui_form_end_submit[type="button"]:not(.disabled)',function(){var b=$(this).next('input[type="submit"].hidden'),a=$(this).parent(".btn-group").next('input[type="submit"].hidden');if(b.length){b.trigger("click")}else{a.trigger("click")}});$("body").on("click",".ui_form_end_submit:not(.disabled), .page_footer_submit:not(.disabled)",function(){var a=false,b=false;if($(this).hasClass("page_footer_submit")){a=1000}else{if($(this).parents('form[action="fetch.cgi"]').length){a=1000;b=1}}f__mgk_sp($(this),false,a,b)});$(".dataTable .ui_checked_checkbox").parent("tr").parent("tbody").prev("thead").find("th:first-child").addClass("opacity-0 pointer-events-none");$("table tr.thead td").addClass("tdhead");if(is__mf("virtual-server","edit_newchroot.cgi")||is__mf("virtual-server","edit_newglobal.cgi")||is__mf("virtual-server","edit_newshells.cgi")||is__mf("virtual-server","edit_newfields.cgi")||is__mf("server-manager","edit_docker.cgi")||is__mf("server-manager","edit_vserver.cgi")||is__mf("server-manager","edit_zone.cgi")||is__mf("server-manager","edit_openvz.cgi")||is__mf("server-manager","list_locations.cgi")||is__mf("server-manager","edit_lxc.cgi")||is__mf("server-manager","list_ips.cgi")||($('body[class*="bind8"]').length&&$__source_file)||($('body[class*="status"]').length&&$__source_file=="edit_mon.cgi")||($('body[class*="custom"]').length&&$__source_file=="edit_sql.cgi")||($('body[class*="custom"]').length&&$__source_file=="edit_cmd.cgi")||($('body[class*="custom"]').length&&$__source_file=="edit_file.cgi")){$(".table").removeClass("table-hover")}var dynamic_switch_off_on=$(".fa-toggle-switch-off").parent("button.btn-default");if(dynamic_switch_off_on.length===1){var dynamic_switch__val=dynamic_switch_off_on.parent("td").find('input[type="radio"]:checked').val();if(dynamic_switch__val=="1"){dynamic_switch_off_on.find(".fa-toggle-switch-off").addClass("fa-toggle-switch").removeClass("fa-toggle-switch-off")}}dynamic_switch_off_on.parents("td").addClass("vertical-align-bottom");var my_editor_page=$('form[action*="manual"] > select[name="file"], form[action*="manual.cgi"] > select[name="manual"], form[action*="edit_"] > select[name="file"]');if(my_editor_page.length){my_editor_page.addClass("heighter-34");$('form[action*="manual"], form[action*="edit_"]').css("margin-bottom","2px")}if(is__m("firewalld")){$("select#zone").addClass("heighter-34");$('form[action="save_ifaces.cgi"] button').addClass("heighter-28-force")}$('body[class*="proftpd"] .table-hardcoded tr td > input + input.btn.btn-default').removeClass("heighter-28").addClass("heighter-34").prev("input").addClass("heighter-34");$('body[class*="proftpd"] form[action="find_ftpaccess.cgi"] > input:first-child').removeClass("heighter-34").addClass("heighter-28");if($__source_file=="edit_simple.cgi"&&$('body[class*="spam"]').length){$("tr td").contents().filter(function(){return this.nodeType==3}).remove()}if($__source_file=="edit_awl.cgi"&&$('body[class*="spam"]').length){$('input[name="user"]').next("input").addBack().addClass("heighter-34")}if(is__mf("usermin","list_sessions.cgi")){$('#user, input[type="button"]').addClass("heighter-34")}if(is__mf("htaccess-htpasswd","")||is__mf("htaccess-htpasswd","index.cgi")){$("#search, .file_chooser_button").addClass("heighter-34").css("margin-bottom","-1px");$("#search").css("margin-top","0")}if(is__mf("mailboxes","")||is__mf("mailboxes","index.cgi")){$("#user, .file_chooser_button").addClass("heighter-34 vertical-align-middle").css("margin-bottom","-1px")}if(is__mf("mailboxes","list_mail.cgi")){$("#mfolder1, #mfolder2").addClass("heighter-34").css("margin-bottom","-1px").css("margin-top","-1px")}if(is__mf("quota","list_users.cgi")){$("#user, #user + input").addClass("heighter-34")}if(is__mf("quota","list_groups.cgi")){$("#group, #group + input").addClass("heighter-34")}if(is__mf("apache","htaccess.cgi")||is__mf("virtualmin-registrar","index.cgi")||is__mf("virtualmin-registrar","")){$(".ui_form_end_submit").addClass("heighter-28-force")}var attempt_make_all_elem=$('form:not([action="save_log.cgi"]) .table-responsive .table .sub_table_container .table tbody tr td > select, form:not([action="save_log.cgi"], [action="save_net.cgi"]) .table-responsive .table .sub_table_container .table tbody tr td > input, form:not([action="save_user.cgi"], [action="save_group.cgi"]) .table td.opener_container td.col_value table tbody tr td > select, form:not([action="save_user.cgi"], [action="save_group.cgi"]) .table td.opener_container td.col_value table tbody tr td > input, form[action="save_newglobal.cgi"] > table tbody tr td input, form[action="save_newfields.cgi"] > table tbody tr td input, form[action="save_newfields.cgi"] > table tbody tr td select, form[action="save_newshells.cgi"] > table tbody tr td select, form[action="save_newshells.cgi"] > table tbody tr td input, form[action="save_linkcats.cgi"] > table tbody tr td input, form[action="save_gen.cgi"] > table tbody tr td input ');$.each(attempt_make_all_elem,function(a,b){if($(this).parent().find("input[data-mmclick]").length||$(this).parent().find("button[data-mmclick]").length||$(this).parent().find('input[onclick*="window.open"]').length||$(this).parent().find('button[onclick*="window.open"]').length){return}if($(this).prev(".awobject").length){$(this).css("width","auto");return}if($(this).parent().find('input:not([type="checkbox"], [type="radio"]), select').length==1){$(this).css("width","100%").css("min-width","100%")}else{if($(this).parent().find('input:not([type="checkbox"], [type="radio"]), select').length==2){$(this).parent().find("input, select").first().css("width","39%");$(this).parent().find("input, select").last().css("width","60%").css("float","right")}}});if(is__mf("virtual-server","edit_newstyles.cgi")){$('a[onclick^="window.open(\\"thumb_style.cgi?"]').html(' ').addClass("btn btn-default btn-xxs margined-top--3")}else{if(is__m("virtual-server")){$('a[onclick^="window.open(\\"thumb_style.cgi?"]').html(' ').addClass("btn btn-default heighter-28-force")}}if(is__mf("virtual-server","edit_html.cgi")){$('script:contains("xinha")').remove();$('.ui_form_end_submit:not([name="create"], [name="cancel"], [name="save"], [name="delete"])').addClass("heighter-28-force");var is_html_mode_edit_web_pages=($__source_query.indexOf("editok")!==-1||$__source_query.indexOf("createok")!==-1?true:false),is_text_mode_edit_web_pages=($__source_query.indexOf("textok")!==-1?true:false);if(is_html_mode_edit_web_pages&&$("#body").length){$("#editok").removeClass("btn-default").addClass("btn-grey");$("#body").css("display","none");$("hr + b").addClass("hidden");$("#body").after('
');__init_ck_(["body",2,true,"edit_web"])}else{if(is_text_mode_edit_web_pages){$("#textok").removeClass("btn-default").addClass("btn-grey");v__cm___init()&&t__cm___init($("textarea"),false,false,"static",true,true)}}$(".ui_form_end_submit").click(function(){$("body").removeAttr("data-unload-warning")});$("input:file").change(function(){var a=$(this);setTimeout(function(){$('form[action*="upload_html.cgi"]').append(a)},500)})}typeof settings_allowed_hostname=="undefined"?settings_allowed_hostname=true:false;if($hostname==settings_allowed_hostname){if(is__mf("postfix","")){$.each($(".icons-container a"),function(a,b){if($(this).attr("href")!="general.cgi"&&$(this).attr("href")!="address_rewriting.cgi"&&$(this).attr("href")!="local_delivery.cgi"&&$(this).attr("href")!="resource.cgi"&&$(this).attr("href")!="virtual.cgi"&&$(this).attr("href")!="sasl.cgi"&&$(this).attr("href")!="rate.cgi"&&$(this).attr("href")!="rate.cgi"&&$(this).attr("href")!="mailq.cgi"&&$(this).attr("href")!="debug.cgi"&&$(this).attr("href")!="manual.cgi"){$(this).parent(".icons-container").remove()}})}}var $magic_button_selector=' body button[onclick*="window.open"][onclick*="choose"][onclick*="chooser.cgi"]:not([onclick*="_chooser.cgi"]), body input[onclick*="window.open"][onclick*="choose"][onclick*="chooser.cgi"]:not([onclick*="_chooser.cgi"]), body button[onclick*="window.open"][onclick*="choose"][onclick*="standard_chooser.cgi"], body input[onclick*="window.open"][onclick*="choose"][onclick*="standard_chooser.cgi"], body button[onclick*="window.open"][onclick*="choose"][onclick*="third_chooser.cgi"], body input[onclick*="window.open"][onclick*="choose"][onclick*="third_chooser.cgi"], body button[onclick*="window.open"][onclick*="choose"][onclick*="user_chooser.cgi"], body input[onclick*="window.open"][onclick*="choose"][onclick*="user_chooser.cgi"], body button[onclick*="window.open"][onclick*="choose"][onclick*="group_chooser.cgi"], body input[onclick*="window.open"][onclick*="choose"][onclick*="group_chooser.cgi"], body button[onclick*="window.open"][onclick*="choose"][onclick*="my_group_chooser.cgi"], body input[onclick*="window.open"][onclick*="choose"][onclick*="my_group_chooser.cgi"], body button[onclick*="window.open"][onclick*="choose"][onclick*="module_chooser.cgi"], body input[onclick*="window.open"][onclick*="choose"][onclick*="module_chooser.cgi"] ';if($($magic_button_selector).length){function magic_popup_run(b,f,h){if(h){if($(".refInputData").is("textarea")){var a=$(".refInputData");if(a.val()){a.val(a.val()+"\n"+b.replace(/\/\/+/g,"/"))}else{a.val(b.replace(/\/\/+/g,"/"))}}else{$(".refInputData").val(b.replace(/\/\/+/g,"/"))}var g=$(".refInputData").parent("td").prev("td").find('input[type="radio"]'),e=$(".refInputData").parent("span").prev("span").find('input[type="radio"]'),d=$(".refInputData").prev("span").find('input[type="radio"]'),c=$(".refInputData").prev("select").find('option[value="*"]');if(e.length){e.trigger("click")}else{if(d.length){d.trigger("click")}else{if(c.length){c.parent("select").val("*").trigger("change")}else{g.trigger("click")}}}}if(f){$("body .mppopup").modal("hide")}}function addmodule(b,a){adduser(b,a);return false}function addgroup(b,a){adduser(b,a);return false}function adduser(b,a){$v__mpp__g_olt=0;$('.mppopup input[data-role="tagsinput"]').tagsinput("add",b);setTimeout(function(){if(!v__mpp__ml_t__e){$(".mppopup_filter_input").val("");$(".mppopup_filter_input").focus().trigger("keyup")}v__mpp__ml_t__e=0},440);return false}function parentdir(a){fileclick(a,"1");$v__mpp__g_gp=1}function fileclick(a,b){$v__mpp__g_ol=a;$v__mpp__g_olt=b}function select(a,b){$data_mppopup_value.val(a);return false}function filter_match(n,e,r){e="";r=r||false;var t=function(g){g=g||false;var h=$(".mppopup table tbody tr");if(h.length>0){for(var b=0;b0){for(var a=0;a]*>/gi,"");if(o!==""){o=o.toLowerCase();if(o.match(n.toLowerCase())){q[a].style.display=""}}}}}}else{t(true)}}function breadcrumbx_format(a){a=$.url(a).attr("path").replace(/\/$/g,"").split("/");var b="";$.each(a,function(d,e){if(e===""){b+=''+(access_level()==0?' ':' ')+" \n"}else{b+=''+e+" \n"}});var c=' '+b+" ";return c+' '}function mppopup_extract_chooser_link(a){return a.replace(/&file.*&chroot/,"&file="+encodeURIComponentSafe(($v__mpp__g_ol+"/").replace(/\/\/+/g,"/"))+"&chroot")}function mppopup_extract_chooser(a){$(".mppopup .cspinner.hidden").removeClass("hidden");$.ajax({type:"POST",url:a,data:false,dataType:"text",success:function(e){var d=e.replace(/<(!doctype|script|link|meta)\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/(script|link|meta)>/gi,"").replace(/<\/body>|<\/html>/gi,""),c=$(d).filter(".table").html(),b=$(d).filter(".table").prev("b").html();b=breadcrumbx_format(b);$(".mppopup .modal-body").html(b+'");$v__mpp__g_gp=0;$(".mppopup_filter_input").focus();$(".mppopup_filter_input").val("")}})}$("body").on("dblclick",'.mppopup a[onclick*="fileclick("], .mppopup a[onclick*="parentdir("]',function(a){a.preventDefault()});var DELAY=240,clicks=0,timer=null;$("body").on("dblclick",'.mppopup a[onclick*="select("]',function(b){$(".mppopup button[data-mppopup_confirm]").trigger("click")});$("body").on("click",'.mppopup a[onclick*="fileclick("], .mppopup a[onclick*="parentdir("]',function(b){b.preventDefault();b.stopPropagation();b.stopImmediatePropagation();clicks++;$data_mppopup_value.val($v__mpp__g_ol);if(clicks===1){timer=setTimeout(function(){clicks=0;typeof $v__mpp__g_gp=="undefined"?$v__mpp__g_gp=0:0;if(!$v__mpp__g_gp){magic_popup_run($v__mpp__g_ol,0,0)}else{var a=mppopup_extract_chooser_link($v__mpp__g_op);mppopup_extract_chooser(a)}$v__mpp__g_gp=0},DELAY)}else{clearTimeout(timer);clicks=0;if($v__mpp__g_olt){var c=mppopup_extract_chooser_link($v__mpp__g_op);mppopup_extract_chooser(c)}else{magic_popup_run($v__mpp__g_ol,1,1)}}});$("body").on("click",".mppopup button[data-mppopup_confirm]",function(){magic_popup_run($data_mppopup_value.val(),1,1)});$("body").on("show.bs.modal",".mppopup",function(){v__mpp__ml_t__e=0;$data_mppopup_value=$(".mppopup input[data-mppopup_value]");$('.mppopup input[data-role="tagsinput"]').tagsinput({onTagExists:function(b,a){a.hide().fadeIn();v__mpp__ml_t__e=1}})});$("body").on("shown.bs.modal",".mppopup",function(){var b=$("body .mppopup").find(".modal-head"),a=$("body .mppopup").find(".modal-body"),d=$("body .mppopup").find(".modal-body table"),c=b.find(".mppopup_filter > input");setTimeout(function(){$(".mppopup_filter_input").animate({opacity:1},$settings_animation_tabs_slide_time);$(".mppopup_filter_input").focus()},0)});$("body").on("hidden.bs.modal",".mppopup",function(){refInput.removeClass("refInputData");$('.mppopup input[data-role="tagsinput"]').tagsinput("destroy");$("body .mppopup").remove();$("button[data-mmclick].disabled, input[data-mmclick].disabled").removeClass("disabled").removeAttr("disabled")});$("body").on("click",".mppopup_multi_done",function(a){refInput.val($.trim($('.mppopup input[data-role="tagsinput"]').val().replace(/,/g," ")));$('.mppopup span[aria-hidden="true"]').trigger("click")});$("body").on("keyup",".mppopup_filter_input",function(c){var d=c.which,j=$(".mppopup table tbody tr:visible"),g=j.find("td:first-child a"),e=$(".mppopup .breadcrumbx").length;if(e){return}if(d==13&&j.length===1&&!c.shiftKey){g.trigger("click")}else{if(d==13&&j.length===1&&c.shiftKey){g.trigger("click").trigger("dblclick");var f=$(".mppopup .mppopup_multi_done:visible");if(f.length){setTimeout(function(){f.trigger("click")},240)}}}if(!$(".mppopup table tbody tr.noresults").length){$(".mppopup table tbody").append(''+lang("theme_xhred_global_no_results_found")+" ")}var i=$(".mppopup table tbody tr:visible:not(.noresults)"),h=$(".mppopup table tbody tr.noresults");if(i.length){h.addClass("hidden")}else{h.removeClass("hidden")}});function mppopup_get_ref_input(c,a){var b=c.prev('input[type="text"], input[name]');if(!b.is("input")&&!c.prev("textarea").length&&!c.prev("br").prev("textarea").length){b=c.prev("span:not(.awradio)").find('input[type="text"]')}else{if(!b.length&&!b.is("input")&&a){b=c.prev("textarea");if(!b.length){b=c.prev("br").prev("textarea")}}}return b}$($magic_button_selector).each(function(){$(this).attr("data-mmclick",$(this).attr("onclick")).removeAttr("onclick");var a=mppopup_get_ref_input($(this),0);if(a.length){$(this).css("margin-left","-8px")}});$("body").on("click","button[data-mmclick]:not(.disabled), input[data-mmclick]:not(.disabled)",function(a){a.preventDefault();a.stopPropagation();refInput=mppopup_get_ref_input($(this),1);var h=$(this),c=refInput.val(),f=encodeURIComponent(c),i=$(this).attr("data-mmclick"),j=i.match("window.open\\(['\"]*(.*?)(\\s*['\"]*,.*?)"),b=j[1].match(/(\w+\.[a-z]{3,4})/gi)[0],e=b.replace(".cgi","");h.addClass("disabled").attr("disabled","disabled");if(j[1]){var d=j[1].replace("encodeURIComponent(ifield.value)","refInputCurrValSafe");d=d.replace('"+"',"").replace('"+',"").replace("refInputCurrValSafe",f);function k(q,p,o,n,r){var m;if(r){m=' "}else{m=' "}var l=' ";$("body").append(l);refInput.addClass("refInputData");$("body .mppopup").modal("show")}function g(l){if(!l[1].startsWith("/")){$v__mpp__g_op="/"+l[1]}else{$v__mpp__g_op=l[1]}}$.ajax({type:"POST",url:d,data:false,dataType:"text",success:function(p){var o=p;var l=p.match(')<[^<]*)*<\/(script|link|meta)>/gi,"").replace(/<\/body>|<\/html>/gi,""),r=$(s).filter(".table").html(),q=$(s).filter(".table").prev("b").html();var t=breadcrumbx_format(q);s=t+'";k(s,"type1",0,refInput,0)}})}else{if(!$.isArray(l)){if($.isArray(l)&&l[1].indexOf("&multi=1")===-1){return}var n=o,m=$(n).filter("table").html();k('","",1,refInput,0)}else{g(l);$.ajax({type:"POST",url:$v__mpp__g_op,data:false,dataType:"text",success:function(s){var r=s.replace(/<(!doctype|script|link|meta)\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/(script|link|meta)>/gi,"").replace(/<\/body>|<\/html>/gi,""),q=$(r).filter("table").html();r='";k(r,"type2",0,refInput,1)}})}}}})}else{$(this).removeClass("disabled");$(this).attr("onclick",$(this).attr("data-mmclick")).removeAttr("data-mmclick");$(this).trigger("click")}})}if(is__mf("virtualmin-nginx","")||is__mf("virtualmin-awstats","")||is__mf("fdisk","edit_disk.cgi")||is__mf("virtual-server","edit_newlinks.cgi")||is__mf("virtualmin-dav","list_shares.cgi")||($current_directory==$_____link+"pam/"&&!$__source_file)||($current_directory==$_____link+"syslog/"&&!$__source_file)||($current_page_full==$_____link_full+"/postfix/master.cgi")){setTimeout(function(){var b=$('.panel-body > .ui_link, .panel-body > .ui_link_replaced, body[data-uri*="virtualmin-awstats"] .panel-body > form > .ui_link_replaced, body[data-uri*="edit_disk.cgi"] .panel-body p > a.ui_link_replaced, body[data-uri*="edit_newlinks.cgi"] .panel-body > form > .ui_link_replaced, body[data-uri*="edit_newlinks.cgi"] .panel-body > .ui_emptymsg + p > .ui_link_replaced'),c=$.trim(b.first().text()),a=b.first().attr("href");$("#headln2r .btn-group a").addClass("pull-left").attr("style","");$("#headln2r .btn-group").prepend(' ');b.next("br").remove();b.remove()},0)}if(__isNR||__isNM){if($(".opener_shown").length>0){var __tmp_ui_grinTable=$(".opener_container, .opener_container:hidden").find(".ui_grid_table, .ui_grid_table:hidden");if(__tmp_ui_grinTable.length){$.each(__tmp_ui_grinTable,function(a,b){$(this).parent("td").attr("style","padding: 0 !important")})}}if($(".opener_table_style_small").length>0){var __tmp_ui_hardTable=$(".opener_table_style_small, .opener_table_style_small:hidden").find(".sub_table_container.table-hardcoded, .sub_table_container.table-hardcoded:hidden");if(__tmp_ui_hardTable.length){$.each(__tmp_ui_hardTable,function(a,b){$(this).parent("td").attr("style","padding: 0 !important");$(this).find("tbody tr td").attr("style","padding-left: 3px !important; padding-right: 3px !important")})}}}$('html[data-script-name*="webmin/edit_assignment.cgi"] table table tbody tr td, html[data-script-name*="usermin/edit_assignment.cgi"] table table tbody tr td').hover(function(){if($(this).is("td:nth-child(1)")||$(this).is("td:nth-child(3)")){$(this).addClass("hl-ow").next("td").addClass("hl-ow")}else{if($(this).is("td:nth-child(2)")||$(this).is("td:nth-child(4)")){$(this).addClass("hl-ow").prev("td").addClass("hl-ow")}}},function(){$(this).removeClass("hl-ow").next("td").removeClass("hl-ow");$(this).removeClass("hl-ow").prev("td").removeClass("hl-ow")});if($current_page_full&&$current_page_full.indexOf("/sysinfo.cgi")>-1&&__num()){$(".piechart canvas").hover(function(){var a=$(this).parent("span").attr("data-charts").split("_")[1];if((a=="cpu"||a=="mem"||a=="virt")&&!is_module("proc")){return}else{if(a=="disk"&&!is_module("disk-usage")&&!is_module("quota")){return}}$(this).addClass("cursor-alias");$(this).prev("span").prepend(' ')},function(){$(this).prev("span").find("i").remove()});$("body").on("click","canvas",function(b){b.preventDefault();var a=$(this).parent("span").attr("data-charts").split("_")[1];if(a=="cpu"&&is_module("proc")){window.location.href=$_____link_full+"/proc/index_cpu.cgi"}else{if((a=="mem"||a=="virt")&&is_module("proc")){window.location.href=$_____link_full+"/proc/index_size.cgi"}else{if(a=="disk"&&is_module("disk-usage")){window.location.href=$_____link_full+"/disk-usage"}else{if(a=="disk"&&is_module("quota")){window.location.href=$_____link_full+"/quota/list_users.cgi?dir=%2F"}}}}})}is__mf("sysstats","display_all.cgi")&&setTimeout(function(){__lre()},600);if(is__m("changepass")||is__mf("server-manager","edit_pass.cgi")||is__mf("virtual-server","list_databases.cgi")||is__mf("acl","edit_user.cgi")||is__mf("virtual-server","clone_form.cgi")||is__mf("virtual-server","edit_user.cgi")||is__mf("virtual-server","edit_domain.cgi")||is__mf("virtual-server","domain_form.cgi")||is__mf("samba","edit_euser.cgi")||is__mf("samba","ask_epass.cgi")||is__mfq("virtualmin-registrar","edit.cgi","registrar=")||is__mfq("htaccess-htpasswd","edit_user.cgi","new=")||is__mfq("postgresql","edit_user.cgi","new=")||is__mfq("mysql","edit_user.cgi","new=")||is__mf("useradmin","edit_group.cgi")||is__mf("useradmin","edit_user.cgi")||is__mfq("passwd","edit_passwd.cgi","user=")){setTimeout(function(){$("#headln2r .btn-group a").addClass("pull-left").attr("style","");$("#headln2r .btn-group").prepend(' ');$("body .generate-password-key").click(function(c){var a=passwordGenerator();$("body").append(' ');var b=new Clipboard(".tmp-clipboard-obj");$(".tmp-clipboard-obj").trigger("click");$(".tmp-clipboard-obj").remove();b.destroy();messenger(' '+lang("theme_xhred_password_generator_new_success").replace("%password",' '+a+"
"),10,"success","newGeneratedPassword")})},0)}if($access_level==0&&is_module("status")==1){}else{t___wi.settings_side_slider_enabled=false;t__wi_p.settings_side_slider_enabled=false;t__wi_p.$("html").attr("data-slider-fixed","0");t__wi_p.$("#right-side-tabs, .right-side-tabs-toggler").addClass("hidden")}if(is__mf("bind8","edit_zonekey.cgi")){format_new_lines($("textarea#ds"),$("#headln2c").find("span[data-sub_title]").text())}if(is__mf("virtual-server","edit_script.cgi")){$('select[name="version"]').addClass("heighter-34 margined-top-4")}if(is__mf("virtual-server","transfer_form.cgi")){$('input[name="newttl"]').addClass("heighter-34")}brake_long_lines((is__mf("firewall","")||is__mf("firewall","index.cgi")),$(".ui_checked_columns td label b"),",");$.each($(".gl-icon-container"),function(a,b){if(!$(this).find("a:first").find("i.fa-edit").length){$(this).find("a:first").prepend(' ');$(this).find("a:first").prepend(' ')}});t___wi.onbeforeunload=function(b){if($('form[action*="export"]:visible').length||($__relative_url&&$__relative_url.indexOf("software/list_pack.cgi?package=")>-1)){return}t___wi.parent.$___________right=0;t__wi_p.__lrs();if($('body[data-unload-warning="1"]').length&&$("#atsave, #save_user").length){$("#atsave, #save_user")[0].scrollIntoView()}if($('body[data-unload-warning="1"]').length||$('button[type="button"]:not(.ui_form_end_submit)').attr("data-form-onbeforeunload")==1||$('button[type="submit"]:not(.ui_form_end_submit)').attr("data-form-onbeforeunload")==1||$("body").find("._filemanager_file_editor_save.text-danger").length){if(typeof t__wi_p.NProgress==="object"){t__wi_p.NProgress.done()}return(!$('[data-form-onbeforeunload-tabledata="1"]').length?lang("theme_xhred_filemanager_file_edit_but_not_saved"):lang("theme_xhred_database_edit_but_not_saved"))+"\n\n"+lang("theme_xhred_filemanager_file_edit_but_not_saved_what_to_do")}};
\ No newline at end of file
diff --git a/unauthenticated/js/init.js b/unauthenticated/js/init.js
index 16f367f9e..caed1642d 100644
--- a/unauthenticated/js/init.js
+++ b/unauthenticated/js/init.js
@@ -639,7 +639,9 @@ t__wi_p.$('iframe[name="page"]').on("load", function() {
t__wi_p.location = t___wi.location.origin
}
____iframe___ = t__wi_p.$("#iframe")[0];
- ____iframe___ && ____iframe___.contentWindow.focus();
+ if (!t__wi_p.$(".form-control.sidebar-search").is(":focus")) {
+ ____iframe___ && ____iframe___.contentWindow.focus()
+ }
$("body").on("shown.bs.modal", ".modal.in", function() {
$(this).focus()
});
diff --git a/unauthenticated/js/init.min.js b/unauthenticated/js/init.min.js
index 2da0ccee0..a7d4fc06c 100644
--- a/unauthenticated/js/init.min.js
+++ b/unauthenticated/js/init.min.js
@@ -3,4 +3,4 @@
* Copyright 2014-2017 Ilia Rostovtsev
* Licensed under MIT (https://github.com/qooob/authentic-theme/blob/master/LICENSE)
*/
-;$__theme_name__="authentic";$___________ready=0;t___wi=window;t__wi_p=t___wi.parent;t__wi_p.$___________right=0;t__wi_p.$____shelling__=0;t__wi_p.$____loader_block__=0;t__wi_p.$____cm__has_init__=0;t__wi_p.$____has_frame__=(!!t__wi_p.$("aside").length?1:0);const $t_av__session=$("html").data("session"),$t_av__script_name=$("html").data("script-name").replace(/^\//g,""),$hostname=$("html").data("hostname"),$t_av_sestatus=$("html").data("sestatus");var __isNM=($("html").attr("data-night-mode")=="1"?1:0);typeof t__wi_p.$___________lrs_r_l=="undefined"?t__wi_p.$___________lrs_r_l=0:false;if(t___wi.location==t__wi_p.location){t__wi_p.$___________left=0}typeof t__wi_p.$___________initial=="undefined"?t__wi_p.$___________initial=1:false;typeof t__wi_p.$___ajax_requested_url=="undefined"?t__wi_p.$___ajax_requested_url="_blank":false;typeof settings_mailbox_slash_delimiter=="undefined"?settings_mailbox_slash_delimiter=true:false;typeof settings_window_autoscroll=="undefined"?settings_window_autoscroll=true:false;typeof settings_right_reload=="undefined"?settings_right_reload=true:false;typeof settings_right_default_tab_usermin=="undefined"?settings_right_default_tab_usermin="/":false;typeof settings_right_virtualmin_default=="undefined"?settings_right_virtualmin_default="sysinfo.cgi":false;typeof settings_right_cloudmin_default=="undefined"?settings_right_cloudmin_default="sysinfo.cgi":false;typeof settings_navigation_color=="undefined"?settings_navigation_color="blue":false;typeof settings_background_color=="undefined"?settings_background_color="gainsboro":false;typeof settings_cm_view_palette=="undefined"?settings_cm_view_palette="monokai":false;typeof settings_cm_editor_palette=="undefined"?settings_cm_editor_palette="monokai":false;typeof settings_side_slider_palette=="undefined"?settings_side_slider_palette="grey":false;typeof settings_side_slider_enabled=="undefined"?settings_side_slider_enabled=true:false;typeof settings_side_slider_fixed=="undefined"?settings_side_slider_fixed=false:false;typeof settings_side_slider_sysinfo_enabled=="undefined"?settings_side_slider_sysinfo_enabled=true:false;typeof settings_side_slider_notifications_enabled=="undefined"?settings_side_slider_notifications_enabled=true:false;typeof settings_side_slider_favorites_enabled=="undefined"?settings_side_slider_favorites_enabled=true:false;typeof settings_side_slider_tabs_hotkeys=="undefined"?settings_side_slider_tabs_hotkeys=true:false;config_portable_module_filemanager_hide_actions=(typeof localStorage!="undefined"&&localStorage.getItem($hostname+"-config_portable_module_filemanager_hide_actions")=="false"?false:true);config_portable_module_filemanager_hide_toolbar=(typeof localStorage!="undefined"&&localStorage.getItem($hostname+"-config_portable_module_filemanager_hide_toolbar")=="true"?true:false);config_portable_module_filemanager_hovered_toolbar=(typeof localStorage!="undefined"&&localStorage.getItem($hostname+"-config_portable_module_filemanager_hovered_toolbar")=="true"?true:false);config_portable_module_filemanager_notification_type=(typeof localStorage!="undefined"&&localStorage.getItem($hostname+"-config_portable_module_filemanager_notification_type")?localStorage.getItem($hostname+"-config_portable_module_filemanager_notification_type"):1);config_portable_module_filemanager_calculate_size=(typeof localStorage!="undefined"&&localStorage.getItem($hostname+"-config_portable_module_filemanager_calculate_size")=="true"?true:false);config_portable_module_filemanager_remember_tabs=(typeof localStorage!="undefined"&&localStorage.getItem($hostname+"-config_portable_module_filemanager_remember_tabs")=="false"?false:true);config_portable_module_xsql_fit_content_screen_height=(typeof localStorage!="undefined"&&localStorage.getItem($hostname+"-config_portable_module_xsql_fit_content_screen_height")=="true"?true:false);typeof settings_hotkeys_active=="undefined"?settings_hotkeys_active=true:false;typeof settings_button_tooltip=="undefined"?settings_button_tooltip=true:false;typeof settings_hotkey_toggle_modifier=="undefined"?settings_hotkey_toggle_modifier="altKey":false;typeof settings_hotkey_toggle_key_webmin=="undefined"?settings_hotkey_toggle_key_webmin="w":false;typeof settings_hotkey_toggle_key_virtualmin=="undefined"?settings_hotkey_toggle_key_virtualmin="v":false;typeof settings_hotkey_toggle_key_cloudmin=="undefined"?settings_hotkey_toggle_key_cloudmin="c":false;typeof settings_hotkey_toggle_key_usermin=="undefined"?settings_hotkey_toggle_key_usermin="u":false;typeof settings_hotkey_toggle_key_webmail=="undefined"?settings_hotkey_toggle_key_webmail="m":false;typeof settings_hotkey_toggle_key_night_mode=="undefined"?settings_hotkey_toggle_key_night_mode="l":false;typeof settings_hotkey_shell=="undefined"?settings_hotkey_shell="k":false;typeof settings_hotkey_sysinfo=="undefined"?settings_hotkey_sysinfo="i":false;typeof settings_hotkey_favorites=="undefined"?settings_hotkey_favorites="f":false;typeof settings_hotkey_focus_search=="undefined"?settings_hotkey_focus_search="s":false;typeof settings_hotkey_toggle_slider=="undefined"?settings_hotkey_toggle_slider="n":false;typeof settings_hotkey_reload=="undefined"?settings_hotkey_reload="r":false;typeof settings_global_passgen_format=="undefined"?settings_global_passgen_format="12|a-z,A-Z,0-9,#":false;typeof settings_window_replace_timestamps=="undefined"?settings_window_replace_timestamps=true:false;typeof settings_window_replaced_timestamp_format_full=="undefined"?settings_window_replaced_timestamp_format_full="LLLL":false;typeof settings_window_replaced_timestamp_format_short=="undefined"?settings_window_replaced_timestamp_format_short="L, LTS":false;typeof settings_leftmenu_vm_cm_dropdown_icons=="undefined"?settings_leftmenu_vm_cm_dropdown_icons=true:false;typeof settings_hotkey_custom_1=="undefined"?settings_hotkey_custom_1=false:false;typeof settings_hotkey_custom_2=="undefined"?settings_hotkey_custom_2=false:false;typeof settings_hotkey_custom_3=="undefined"?settings_hotkey_custom_3=false:false;typeof settings_hotkey_custom_4=="undefined"?settings_hotkey_custom_4=false:false;typeof settings_hotkey_custom_5=="undefined"?settings_hotkey_custom_5=false:false;typeof settings_hotkey_custom_6=="undefined"?settings_hotkey_custom_6=false:false;typeof settings_hotkey_custom_7=="undefined"?settings_hotkey_custom_7=false:false;typeof settings_hotkey_custom_8=="undefined"?settings_hotkey_custom_8=false:false;typeof settings_hotkey_custom_9=="undefined"?settings_hotkey_custom_9=false:false;typeof settings_right_iconize_header_links=="undefined"?settings_right_iconize_header_links=true:false;typeof settings_side_slider_background_refresh_time=="undefined"?settings_side_slider_background_refresh_time=5:false;typeof settings_leftmenu_width=="undefined"?settings_leftmenu_width=260:false;typeof settings_sysinfo_easypie_charts=="undefined"?settings_sysinfo_easypie_charts=true:false;typeof settings_sysinfo_easypie_charts_size=="undefined"?settings_sysinfo_easypie_charts_size=172:(settings_sysinfo_easypie_charts_size=parseInt(settings_sysinfo_easypie_charts_size));typeof settings_sysinfo_easypie_charts_width=="undefined"?settings_sysinfo_easypie_charts_width=4:(settings_sysinfo_easypie_charts_width=parseInt(settings_sysinfo_easypie_charts_width));typeof settings_sysinfo_easypie_charts_scale=="undefined"?settings_sysinfo_easypie_charts_scale=8:(settings_sysinfo_easypie_charts_scale=parseInt(settings_sysinfo_easypie_charts_scale));typeof settings_sysinfo_theme_updates=="undefined"?settings_sysinfo_theme_updates=false:false;typeof settings_sysinfo_theme_patched_updates=="undefined"?settings_sysinfo_theme_patched_updates=false:false;typeof settings_sysinfo_csf_updates=="undefined"?settings_sysinfo_csf_updates=false:false;typeof settings_sysinfo_link_mini=="undefined"?settings_sysinfo_link_mini=false:false;typeof settings_loader_top=="undefined"?settings_loader_top=true:false;typeof settings_animation_left=="undefined"?settings_animation_left=true:false;settings_animation_left?$settings_animation_left_slide_time=280:$settings_animation_left_slide_time=0;typeof settings_animation_tabs=="undefined"?settings_animation_tabs=true:false;settings_animation_tabs?$settings_animation_tabs_slide_time=280:$settings_animation_tabs_slide_time=0;typeof settings_show_terminal_link=="undefined"?settings_show_terminal_link=true:false;typeof settings_favorites=="undefined"?settings_favorites=true:false;try{t__wi_p.$}catch(e){t__wi_p=window}if(typeof localStorage==="object"){try{localStorage.setItem("d41d8cd98f00",1);localStorage.removeItem("d41d8cd98f00");$_v__ls__a=1}catch(e){Storage.prototype._setItem=Storage.prototype.setItem;Storage.prototype.setItem=function(){};$_v__ls__a=0}}if(!String.prototype.endsWith){String.prototype.endsWith=function(c,b){var a=this.toString();if(typeof b!=="number"||!isFinite(b)||Math.floor(b)!==b||b>a.length){b=a.length}b-=c.length;var d=a.lastIndexOf(c,b);return d!==-1&&d===b}}if(!String.prototype.startsWith){if(!String.prototype.startsWith){String.prototype.startsWith=function(b,a){a=a||0;return this.indexOf(b,a)===a}}}function escape_html(b){var a={"&":"&","<":"<",">":">",'"':""","'":"'","=":"="};return String(b).replace(/[&<>"'=]/g,function(c){return a[c]})}function decode_html(d){var c=[["amp","&"],["apos","'"],["#x27","'"],["#x2F","/"],["#39","'"],["#47","/"],["#61","="],["lt","<"],["gt",">"],["nbsp"," "],["quot",'"']];if(!!d){for(var b=0,a=c.length;b=this.length){var b=a-this.length;while((b--)+1){this.push(undefined)}}this.splice(a,0,this.splice(c,1)[0]);return this}});function __slm(){if(t__wi_p.$("aside").css("transform")=="none"){t__wi_p.$("aside").transition({x:settings_leftmenu_width},600,function(){if(t__wi_p.$(".__logo")&&t__wi_p.$(".__logo").css("transform")=="none"&&!t__wi_p.$(".mobile-menu-toggler:visible").length){t__wi_p.$(".__logo").transition({y:"-140px"},900)}});setTimeout(function(){t__wi_p.$(".switch-toggle").css("display","table")},1)}}__slm();(function(c){function a(g){var f=c(this);f.data("mouseheld_timeout",setTimeout(function(){f.trigger("mouseheld")},g.data))}function b(){var f=c(this);clearTimeout(f.data("mouseheld_timeout"))}var d=c.event.special.mouseheld={setup:function(f){var g=c(this);g.bind("mousedown",+f||d.time,a);g.bind("mouseleave mouseup",b)},teardown:function(){var f=c(this);f.unbind("mousedown",a);f.unbind("mouseleave mouseup",b)},time:750}})(jQuery);function array_flip(c){var b,a={};for(b in c){if(c.hasOwnProperty(b)){a[c[b]]=b}}return a}function removeLastDirectoryPartOf(a){var b=a.split("/");b.pop();return(b.join("/"))}function arrayIntersect(g,d){var f=[];$.each(g,function(b,a){if(d.match(new RegExp(a,"gi"))){f.push(a)}});return !$.isEmptyObject(f)}function is_numeric(a){return Number(parseFloat(a))==a}function is_module(a){if(t__wi_p.$("body").data(a)!=undefined){if(t__wi_p.$('iframe[name="page"]').contents().length&&t__wi_p.$('iframe[name="page"]').contents().find("body").data(a)!=undefined){return t__wi_p.$('iframe[name="page"]').contents().find("body").data(a)}else{return t__wi_p.$("body").data(a)}}else{if($.inArray(a,t__wi_p.$("body").data("available-modules"))>-1){return true}else{return false}}}function is__m(a){return $('body[class*="'+a+'"]').length}function is__f(a){return($__source_file==a)}function is__mf(a,b){return($('body[class*="'+a+'"]').length&&$__source_file==b)}function is__mfq(a,c,b){return($('body[class*="'+a+'"]').length&&$__source_file==c&&($__source_query&&$__source_query.indexOf(b)!==-1))}function lang(b,a){typeof a=="undefined"?a=false:false;var c=t__wi_p.$("body").data("language-strings");if(a){return c?array_flip(c)[$.trim(b)]:false}else{return c?c[b]:false}}function manageConfig(d){var b=["config_portable_module_csf_style_custom_promoted","config_portable_theme_charset_warning_shown","config_portable_module_xsql_fit_content_screen_height","config_portable_module_filemanager_hide_toolbar","config_portable_module_filemanager_hovered_toolbar","config_portable_module_filemanager_hide_actions","config_portable_module_filemanager_remember_tabs","config_portable_module_filemanager_calculate_size","config_portable_module_filemanager_notification_type"];if(d=="get_options"){return b}if(d=="save"){var a={},c=0;$.each(localStorage,function(g,f){if(typeof g=="string"&&g.indexOf($hostname)>-1&&arrayIntersect(b,g)){if(f=="true"){c=true}else{if(f=="false"){c=false}else{if(is_numeric(f)){c=parseInt(f)}else{c=f}}}if(c!="undefined"){a[g.replace($hostname+"-","")]=c}}});a.settings_force_night_mode=__isNM;t__wi_p.settings_font_family!="undefind"&&(a.settings_font_family=t__wi_p.settings_font_family);t__wi_p.settings_navigation_color!="undefind"&&(a.settings_navigation_color=t__wi_p.settings_navigation_color);t__wi_p.settings_background_color!="undefind"&&(a.settings_background_color=t__wi_p.settings_background_color);t__wi_p.settings_button_tooltip!="undefind"&&(a.settings_button_tooltip=t__wi_p.settings_button_tooltip);t__wi_p.settings_hide_top_loader!="undefind"&&(a.settings_hide_top_loader=t__wi_p.settings_hide_top_loader);t__wi_p.settings_animation_left!="undefind"&&(a.settings_animation_left=t__wi_p.settings_animation_left);t__wi_p.settings_animation_tabs!="undefind"&&(a.settings_animation_tabs=t__wi_p.settings_animation_tabs);t__wi_p.settings_sysinfo_link_mini!="undefind"&&(a.settings_sysinfo_link_mini=t__wi_p.settings_sysinfo_link_mini);t__wi_p.settings_show_night_mode_link!="undefind"&&(a.settings_show_night_mode_link=t__wi_p.settings_show_night_mode_link);t__wi_p.settings_theme_options_button!="undefind"&&(a.settings_theme_options_button=t__wi_p.settings_theme_options_button);t__wi_p.settings_leftmenu_button_refresh!="undefind"&&(a.settings_leftmenu_button_refresh=t__wi_p.settings_leftmenu_button_refresh);t__wi_p.settings_hotkeys_active!="undefind"&&(a.settings_hotkeys_active=t__wi_p.settings_hotkeys_active);t__wi_p.$___ajax_requested_url="___blocked";setTimeout(function(){$.ajax({type:"POST",url:$_____link_full+"/index.cgi?xhr-manage-config=1&save=1",data:a,dataType:"text",success:function(f){setTimeout(function(){if(typeof t___wi.page.at__s_s__b=="function"){t__wi_p.$____has_frame__?t___wi.page.at__s_s__b(0):at__s_s__b(0)}},400)},error:function(){}})},300)}else{if(d==="load"){t__wi_p.$___ajax_requested_url="___blocked";var c=0;$.ajax({type:"GET",url:$_____link_full+"/index.cgi?xhr-manage-config=1&load=1",data:false,dataType:"json",success:function(f){$.each(f,function(h,g){if(g=="true"){c=true}else{if(g=="false"){c=false}else{if(is_numeric(g)){c=parseInt(g)}else{c=g}}}localStorage.setItem(($hostname+"-"+h),c);window[h]=c})},error:function(){}})}}}function __lrs(j,g){var h=t__wi_p.document.getElementById("iframe"),k=t__wi_p.document.activeElement,i=["export","export as csv.","download","upload"];if(k){if(($(k).is("a")&&$(k).attr("href")&&($(k).attr("href").indexOf("awstats/view.cgi")>-1||$(k).attr("href").indexOf("cwaf")>-1))){return}}h?h=h.contentDocument.activeElement:h=false;if(h){if((t__wi_p.$('iframe[name="page"]').attr("src")!=="/csf/")&&(($(h).is("a")&&$(h).attr("href")&&($(h).attr("href").indexOf("webminlog.csv")>-1||$(h).attr("href").indexOf("detach.cgi")>-1||$(h).attr("href").indexOf("download.cgi")>-1||($("body.virtualmin-awstats")&&$("body.virtualmin-awstats").length&&$(h).attr("href").indexOf("view.cgi?config")>-1)))||($(h).is("a")&&$(h).text()&&(arrayIntersect(i,$(h).text())))||($(h).is("input")&&$(h).val()&&(arrayIntersect(i,$(h).val())||$(h).parents('form[action="create_vpn.cgi"]').length)))){return}}if(t__wi_p.$('iframe[name="page"]').attr("src")&&t__wi_p.$('iframe[name="page"]').attr("src").indexOf("cwaf")>-1){return}typeof j=="undefined"?j=false:j=true;typeof g=="undefined"?g=80:false;if(t__wi_p.$___________initial===1){t__wi_p.$(".loader-container").addClass("loading-started");if(((t__wi_p.$("aside").css("transform")=="none"||t__wi_p.$("aside").css("transform")!="matrix(1, 0, 0, 1, "+settings_leftmenu_width+", 0)")&&!t__wi_p.$(".btn-menu-toggler").is(":visible"))){t__wi_p.$(".loader-container").css("background-color","#ededed").css("display","block")}else{t__wi_p.setTimeout(function(){if(t__wi_p.$___________right===0&&t__wi_p.$___________lrs_r_l===0){t__wi_p.$___________lrs_r_l=1;if(t__wi_p.$(".loader-container").hasClass("loading-started")){if(settings_loader_top&&t__wi_p.t___p__xhr_l===0){t__wi_p.NProgress.remove();t__wi_p.NProgress.start()}t__wi_p.$(".loader-container").css("background-color","#ededed").css("display","block")}t__wi_p.setTimeout(function(){t__wi_p.$___________lrs_r_l=0},1500)}},1500)}}else{if(settings_loader_top&&t__wi_p.t___p__xhr_l===0){t__wi_p.NProgress.remove();t__wi_p.NProgress.start()}}}function product_name_lang(d){if(t__wi_p.$("#wrapper").data("server-manager")!=-1){return lang("theme_xhred_titles_cm")}else{if(t__wi_p.$("#wrapper").data("virtual-server")!=-1){return lang("theme_xhred_titles_vm")}else{if(t__wi_p.$("#wrapper").data("webmail")!=-1&&!d){return lang("theme_xhred_titles_mail")}else{var c=t__wi_p.$("#wrapper").data("product");return(c=="webmin"?lang("theme_xhred_titles_wm"):lang("theme_xhred_titles_um"))}}}}function product_name(d){if(t__wi_p.$("#wrapper").data("server-manager")!=-1){return"Cloudmin"}else{if(t__wi_p.$("#wrapper").data("virtual-server")!=-1){return"Virtualmin"}else{if(t__wi_p.$("#wrapper").data("webmail")!=-1&&!d){return"Mail"}else{var c=t__wi_p.$("#wrapper").data("product");return c.charAt(0).toUpperCase()+c.slice(1)}}}}function __s___(){if(t__wi_p.$____loader_block__){return}var g=t__wi_p.$('iframe[name="page"]').get(0),d=t__wi_p.$('iframe[name="page"]').contents(),d=(d.length?d:$(document));if(g&&typeof g.contentWindow.$!="function"||!__num()){return}var b=false,f=false,c=false;if(g){f=g.contentWindow.$("body");b=g.contentWindow.$("body").find(".container-fluid");c=g.contentWindow.$("head")}else{f=$("body");b=$("body").find(".container-fluid");c=$("head")}b.css({opacity:1,"pointer-events":"auto"});f.css("overflow","auto");c.find("#__tmp_no_overflow").remove()}function __lre(a){typeof a=="undefined"?a=1:false;if(t__wi_p.$____loader_block__){return}__s___();t__wi_p.$(".loader-container").removeClass("loading-started").css("background-color","transparent").css("display","none");t__wi_p.$('iframe[name="page"]').css("opacity",1);if(t__wi_p.$("aside").css("transform")=="none"){__slm()}if(__num()){if(typeof t__wi_p.$('iframe[name="page"]').get(0)!=="undefined"&&typeof t__wi_p.$('iframe[name="page"]').get(0).contentWindow.__dlm=="function"){t__wi_p.$('iframe[name="page"]').get(0).contentWindow.__dlm()}}t__wi_p.$(".loader .loader-close").hide();if(settings_loader_top&&t__wi_p.t___p__xhr_l===0&&__num()&&a){t__wi_p.NProgress.done()}if(typeof hide_mobile_menu=="function"){hide_mobile_menu()}}function f__r__s(b,a){if(typeof $.injectCSS=="function"){t__wi_p.$("#injected-css").remove();a?(a="translate("+a+"px, 0px) !important"):(a=false);$.injectCSS({"#sidebar":{left:-b+"px",width:b+"px",transform:a},".switch-toggle":{width:b+"px"},"#content.__page":{"margin-left":b+"px"},".autocomplete-suggestions":{"min-width":(b-23)+"px !important"},".__logo":{width:b+"px","max-width":b+"px"}});if(t__wi_p.$("aside select").length){t__wi_p.$("aside select[data-autocomplete-title]").attr("style","width:"+(b-24)+"px; margin-top: 0 !important");t__wi_p.t_sel_i()}}}function f__c_view(){if(typeof t__wi_p.settings_leftmenu_width_initial=="undefined"){t__wi_p.settings_leftmenu_width_initial=t__wi_p.settings_leftmenu_width}if(t__wi_p.matchMedia("(max-width: 767px)").matches){t__wi_p.settings_leftmenu_width=260;t__wi_p.f__r__s(t__wi_p.settings_leftmenu_width,0)}else{if(t__wi_p.$___________initial===1){return}t__wi_p.settings_leftmenu_width=t__wi_p.settings_leftmenu_width_initial;t__wi_p.f__r__s(t__wi_p.settings_leftmenu_width,t__wi_p.settings_leftmenu_width)}}function s(d){var g=document.getElementsByTagName("head")[0];var f=document.createElement("script");f.type="text/javascript";f.src=d;g.appendChild(f)}t__wi_p.$('iframe[name="page"]').unbind("load");t__wi_p.$('iframe[name="page"]').on("load",function(){if(t__wi_p.$___________initial===1&&typeof $__post_init_script!="undefined"){$.each(manageConfig("get_options"),function(b,a){localStorage.setItem(($hostname+"-"+a),t__wi_p[a]);window[a]=t__wi_p[a]});__mss();t__wi_p.fetch_right_pane_favorites()}var c=t__wi_p.$('iframe[name="page"]').contents();if(c&&c.find('iframe[name="page"]').length){console.log("Error! Entered fail state.. Authentic Theme is reloading...");t___wi.top.location.reload();return}var d=false;if(c&&c.find("title").text()&&c.find("title").text().indexOf("ConfigServer Security & Firewall")>-1){d=true}if(__num()&&!d){t__wi_p.__lre()}if($("body").find(".form-signin-banner").length===1||$("body").find('form[action*="session_login.cgi"]').length===1||$("body").find('form[action*="pam_login.cgi"]').length===1||$("body").is("[vlink=#376ebd]")){t__wi_p.location=t___wi.location.origin}____iframe___=t__wi_p.$("#iframe")[0];____iframe___&&____iframe___.contentWindow.focus();$("body").on("shown.bs.modal",".modal.in",function(){$(this).focus()});setTimeout(function(){if(typeof t__m__m!="undefined"&&typeof t__m__m=="function"){t__m__m(false,true)}t__wi_p.$___________m_locked=0},200);setTimeout(function(){t__wi_p.$___________initial=0},1000);$("body").find('a[href*="virtual-server/switch_user.cgi"]').attr("target","_parent");if(c&&!c.text().match(/___authentic_theme_footer___/)){if(d){return}__lre();if(typeof $load____ext!="undefined"){s(t__wi_p.$_____link_full+"/unauthenticated/js/postinit."+$load____ext+".js?"+$g__t__ver_str+"");s(t__wi_p.$_____link_full+"/unauthenticated/js/content."+$load____ext+".js?"+$g__t__ver_str+"")}}if(settings_loader_top&&t__wi_p.t___p__xhr_l===0&&__num()&&!t__wi_p.$____loader_block__){t__wi_p.NProgress.done()}if(typeof t__wi_p.__dpt=="function"){t__wi_p.__dpt()}$("body").unbind("mousewheel");!t__wi_p.$___________initial&&__lre();delete __________was_runner___;t__wi_p.$___________right=1;$(function(){if(t__wi_p.location.search=="?theme-update-finished"||$("#wrapper").data("notice")==1){t__wi_p.$('.right-side-tabs-notification[data-type="authentic_remote_version"]').find("i.af-clear-all").trigger("click");$("#update_notice").modal("show");__s___()}})});$(function(){if($("html.session_login").length){$("body").attr("style",$("body").data("style"));if(t__wi_p.$("aside").length){t__wi_p.location.href="/"}$("form").on("click",'button[type="submit"]',function(b){b.preventDefault();$(this).prop("disabled","true").removeClass("btn-primary").addClass("btn-default").find(".fa-sign-in").removeClass("fa-sign-in").addClass("fa fa-circle-o-notch faa-spin faa-slow animated");$(this).parents("form").submit()})}if(t___wi.location==t__wi_p.location&&window.matchMedia("(max-width: 767px)").matches){f__c_view()}if(typeof $access_level!="undefined"&&$access_level!=0){settings_right_virtualmin_default="sysinfo.cgi";settings_right_cloudmin_default="sysinfo.cgi"}$___________ready=1});function __num(){var d=URI(t___wi.location),c=d.path();if((c&&c.indexOf("/webmin/edit_themes.cgi")>-1&&t__wi_p.location.search=="?updating-webmin-theme")||(c&&c.indexOf("/webmin/edit_themes.cgi")>-1&&t__wi_p.location.search=="?downloading-webmin-theme")||(c&&c.indexOf("/webmin/install_theme.cgi")>-1&&t__wi_p.location.search=="?downloading-webmin-theme")||(c&&c.indexOf("/webmin/install_theme.cgi")>-1&&t__wi_p.location.search=="?updating-usermin-theme")||(c&&c.indexOf("/usermin/edit_themes.cgi")>-1&&t__wi_p.location.search=="?updating-usermin-theme")||(c&&c.indexOf("/usermin/edit_themes.cgi")>-1&&t__wi_p.location.search=="?downloading-usermin-theme")||(c&&c.indexOf("/usermin/install_theme.cgi")>-1&&t__wi_p.location.search=="?downloading-usermin-theme")||(c&&c.indexOf("/webmin/install_theme.cgi")>-1&&t__wi_p.location.search=="?theme-update-finished")||(c&&c.indexOf("/webmin/edit_webmincron.cgi")>-1&&(t__wi_p.location.search=="?recollect"||t__wi_p.location.search=="?recollecting"||t__wi_p.location.search=="?recollect-system-status"||t__wi_p.location.search=="?recollect"||t__wi_p.location.search=="?recollecting-system-status"))||(c&&c.indexOf("/webmin/delete_webmincron.cgi")>-1&&(t__wi_p.location.search=="?recollecting-system-status"||t__wi_p.location.search=="?recollect-system-status"||t__wi_p.location.search=="?recollect-finished"||t__wi_p.location.search=="?recollecting-finished"||t__wi_p.location.search=="?recollecting-package-updates"))||(c&&c.indexOf("/package-updates/index.cgi")>-1&&(t__wi_p.location.search=="?recollect"||t__wi_p.location.search=="?recollecting"||t__wi_p.location.search=="?recollecting-package-updates"||t__wi_p.location.search=="?recollecting-package-updates-processing"))||(c&&c.indexOf("/package-updates/update.cgi")>-1&&(t__wi_p.location.search=="?recollect"||t__wi_p.location.search=="?recollecting"||t__wi_p.location.search=="?recollecting-package-updates"||t__wi_p.location.search=="?recollecting-package-updates-processing"||t__wi_p.location.search=="?recollecting-finished"))){return false}else{return true}}function unbuffered_header(){var d=URI(t___wi.location),c=d.path();if(c&&c.indexOf("/virtual-server/import.cgi")>-1||c.indexOf("/virtual-server/edit_newlinks.cgi")>-1||c.indexOf("/virtual-server/postsave.cgi")>-1||c.indexOf("/virtual-server/validate.cgi")>-1||c.indexOf("/server-manager/edit_serv.cgi")>-1||c.indexOf("/server-manager/save_serv.cgi")>-1||c.indexOf("/server-manager/index.cgi")>-1||c.indexOf("/server-manager/list_ifaces.cgi")>-1||c.indexOf("/server-manager/mass_update.cgi")>-1||c.indexOf("/server-manager/get_images.cgi")>-1||c.indexOf("/server-manager/edit_newlinks.cgi")>-1||c.indexOf("/server-manager/list_gces.cgi")>-1||c.indexOf("/server-manager/list_ec2s.cgi")>-1||c.indexOf("/server-manager/unpause.cgi")>-1||c.indexOf("/server-manager/find.cgi")>-1||c.indexOf("useradmin/batch_exec.cgi")>-1||c.indexOf("useradmin/gbatch_exec.cgi")>-1||c.indexOf("useradmin/mass_delete_user.cgi")>-1||c.indexOf("virtual-server/domain_setup.cgi")>-1||c.indexOf("virtual-server/upgrade.cgi")>-1||c.indexOf("virtual-server/mass_create.cgi")>-1||c.indexOf("virtual-server/restore.cgi")>-1||c.indexOf("virtual-server/save_newip.cgi")>-1||c.indexOf("virtual-server/mass_domains_change.cgi")>-1||c.indexOf("virtual-server/save_domain.cgi")>-1||c.indexOf("virtual-server/backup.cgi")>-1||c.indexOf("virtual-server/save_phpmode.cgi")>-1||c.indexOf("virtual-server/script_install.cgi")>-1||c.indexOf("virtual-server/mass_change.cgi")>-1||c.indexOf("virtual-server/save_ratelimit.cgi")>-1||c.indexOf("virtual-server/mass_scripts.cgi")>-1||c.indexOf("virtual-server/mass_upgrade.cgi")>-1||c.indexOf("virtual-server/save_newips.cgi")>-1||c.indexOf("virtual-server/letsencrypt.cgi")>-1||c.indexOf("virtual-server/migrate.cgi")>-1||c.indexOf("virtual-server/save_mail.cgi")>-1||c.indexOf("virtual-server/mass_delete_domains.cgi")>-1||c.indexOf("virtual-server/delete_domain.cgi")>-1||c.indexOf("virtual-server/unscript_install.cgi")>-1||c.indexOf("virtual-server/mass_uninstall.cgi")>-1||c.indexOf("virtual-server/clone.cgi")>-1||c.indexOf("virtual-server/fix_symlinks.cgi")>-1||c.indexOf("virtual-server/disable_domain.cgi")>-1||c.indexOf("virtual-server/delete_databases.cgi")>-1||c.indexOf("virtual-server/move.cgi")>-1||c.indexOf("virtual-server/enable_domain.cgi")>-1||c.indexOf("virtual-server/transfer.cgi")>-1||c.indexOf("virtual-server/mass_disable.cgi")>-1||c.indexOf("virtual-server/rename.cgi")>-1||c.indexOf("virtual-server/save_dbname.cgi")>-1||c.indexOf("virtual-server/mass_enable.cgi")>-1||c.indexOf("virtual-server/save_frame.cgi")>-1||c.indexOf("virtual-server/check.cgi")>-1||c.indexOf("virtual-server/save_newchroot.cgi")>-1||c.indexOf("virtual-server/enable_dkim.cgi")>-1||c.indexOf("virtual-server/save_proxy.cgi")>-1||c.indexOf("virtual-server/save_dbpass.cgi")>-1||c.indexOf("virtual-server/save_dbhosts.cgi")>-1||c.indexOf("virtual-server/unalias.cgi")>-1||c.indexOf("virtual-server/save_newautoconfig.cgi")>-1||c.indexOf("virtual-server/quotacheck.cgi")>-1||c.indexOf("virtual-server/unsub.cgi")>-1||c.indexOf("virtual-server/save_domdkim.cgi")>-1||c.indexOf("virtual-server/fix_modphp.cgi")>-1||c.indexOf("virtual-server/connectivity.cgi")>-1||c.indexOf("virtual-server/all_webmin.cgi")>-1||c.indexOf("virtualmin-support/send_ticket.cgi")>-1||c.indexOf("virtualmin-support/enable_login.cgi")>-1||c.indexOf("virtualmin-support/disable_login.cgi")>-1||c.indexOf("server-manager/create.cgi")>-1||c.indexOf("server-manager/mass.cgi")>-1||c.indexOf("server-manager/manual_image.cgi")>-1||c.indexOf("server-manager/save_limits.cgi")>-1||c.indexOf("server-manager/upgrade.cgi")>-1||c.indexOf("server-manager/empty.cgi")>-1||c.indexOf("server-manager/save_pass.cgi")>-1||c.indexOf("server-manager/create_image.cgi")>-1||c.indexOf("server-manager/restore.cgi")>-1||c.indexOf("server-manager/clone.cgi")>-1||c.indexOf("server-manager/scan.cgi")>-1||c.indexOf("server-manager/add.cgi")>-1||c.indexOf("server-manager/gcescan.cgi")>-1||c.indexOf("server-manager/create_gceattach.cgi")>-1||c.indexOf("server-manager/ec2scan.cgi")>-1||c.indexOf("server-manager/create_domain.cgi")>-1||c.indexOf("server-manager/restore_domain.cgi")>-1||c.indexOf("server-manager/create_ec2attach.cgi")>-1||c.indexOf("server-manager/newami.cgi")>-1||c.indexOf("server-manager/move_disk.cgi")>-1||c.indexOf("server-manager/convert_image.cgi")>-1||c.indexOf("server-manager/save_vcpus.cgi")>-1||c.indexOf("server-manager/boot.cgi")>-1||c.indexOf("server-manager/delete_backuplogs.cgi")>-1||c.indexOf("server-manager/mass_script.cgi")>-1||c.indexOf("server-manager/save_ec2address.cgi")>-1||c.indexOf("server-manager/mass_move.cgi")>-1||c.indexOf("server-manager/delete_ec2attach.cgi")>-1||c.indexOf("server-manager/move.cgi")>-1||c.indexOf("server-manager/backup.cgi")>-1||c.indexOf("server-manager/create_dimage.cgi")>-1||c.indexOf("server-manager/massupload.cgi")>-1||c.indexOf("server-manager/delete_volumes.cgi")>-1||c.indexOf("server-manager/delete_ec2_snapshots.cgi")>-1||c.indexOf("server-manager/download.cgi")>-1||c.indexOf("server-manager/create_gdisk.cgi")>-1||c.indexOf("server-manager/failover.cgi")>-1||c.indexOf("server-manager/create_dkvolume.cgi")>-1||c.indexOf("server-manager/upload.cgi")>-1||c.indexOf("server-manager/transfer.cgi")>-1||c.indexOf("server-manager/delete_gceattach.cgi")>-1||c.indexOf("server-manager/reset.cgi")>-1||c.indexOf("server-manager/find.cgi")>-1||c.indexOf("server-manager/create_volume.cgi")>-1||c.indexOf("server-manager/create_gsnapshot.cgi")>-1||c.indexOf("server-manager/create_gimage.cgi")>-1||c.indexOf("server-manager/exec_vbackup.cgi")>-1||c.indexOf("server-manager/unpause.cgi")>-1||c.indexOf("server-manager/pause.cgi")>-1||c.indexOf("server-manager/create_ec2_snapshot.cgi")>-1||c.indexOf("server-manager/delete_addresses.cgi")>-1||c.indexOf("server-manager/exec_vsync.cgi")>-1||c.indexOf("server-manager/create_address.cgi")>-1||c.indexOf("cluster-usermin/upgrade.cgi")>-1||c.indexOf("cluster-usermin/install.cgi")>-1||c.indexOf("cluster-usermin/update.cgi")>-1||c.indexOf("ldap-useradmin/batch_exec.cgi")>-1||c.indexOf("ldap-useradmin/mass_delete_user.cgi")>-1||c.indexOf("usermin/upgrade.cgi")>-1||c.indexOf("usermin/update.cgi")>-1||c.indexOf("cpan/download.cgi")>-1||c.indexOf("cpan/install.cgi")>-1||c.indexOf("burner/save_profile.cgi")>-1||c.indexOf("burner/burn.cgi")>-1||c.indexOf("bind8/mass_create.cgi")>-1||c.indexOf("bind8/mass_rcreate.cgi")>-1||c.indexOf("bind8/mass_delete.cgi")>-1||c.indexOf("bind8/mass_update.cgi")>-1||c.indexOf("bind8/zone_dnssecmigrate_dt.cgi")>-1||c.indexOf("bind8/mass_rdelete.cgi")>-1||c.indexOf("bind8/enable_zonekey.cgi")>-1||c.indexOf("bind8/enable_zonedt.cgi")>-1||c.indexOf("bind8/disable_zonedt.cgi")>-1||c.indexOf("webalizer/save_log.cgi")>-1||c.indexOf("bacula-backup/restore.cgi")>-1||c.indexOf("bacula-backup/backup.cgi")>-1||c.indexOf("bacula-backup/gbackup.cgi")>-1||c.indexOf("bacula-backup/label.cgi")>-1||c.indexOf("bacula-backup/mount.cgi")>-1||c.indexOf("cluster-software/install_pack.cgi")>-1||c.indexOf("updown/download.cgi")>-1||c.indexOf("software/install_pack.cgi")>-1||c.indexOf("software/do_install.cgi")>-1||c.indexOf("software/apt_upgrade.cgi")>-1||c.indexOf("software/rhn_check.cgi")>-1||c.indexOf("software/yum_upgrade.cgi")>-1||c.indexOf("software/urpmi_upgrade.cgi")>-1||c.indexOf("software/csw_upgrade.cgi")>-1||c.indexOf("software/ports_upgrade.cgi")>-1||c.indexOf("webmin/letsencrypt.cgi")>-1||c.indexOf("webmin/delete_webmincron.cgi")>-1||c.indexOf("webmin/test_sendmail.cgi")>-1||c.indexOf("webmin/refresh_modules.cgi")>-1||c.indexOf("package-updates/update.cgi")>-1||c.indexOf("custom/run.cgi")>-1||c.indexOf("custom/sql.cgi")>-1||c.indexOf("virtualmin-init/save.cgi")>-1||c.indexOf("virtualmin-init/mass.cgi")>-1||c.indexOf("backup-config/save.cgi")>-1||c.indexOf("squid/init_cache.cgi")>-1||c.indexOf("squid/clear.cgi")>-1||c.indexOf("squid/chown.cgi")>-1||c.indexOf("ldap-client/check.cgi")>-1||c.indexOf("sendmail/del_mailqs.cgi")>-1||c.indexOf("sendmail/flushq.cgi")>-1||c.indexOf("init/mass_start_stop.cgi")>-1||c.indexOf("init/mass_launchd.cgi")>-1||c.indexOf("init/mass_systemd.cgi")>-1||c.indexOf("init/mass_upstarts.cgi")>-1||c.indexOf("init/mass_rcs.cgi")>-1||c.indexOf("init/save_services.cgi")>-1||c.indexOf("ldap-server/create.cgi")>-1||c.indexOf("change-user/change.cgi")>-1||c.indexOf("virtualmin-slavedns/save.cgi")>-1||c.indexOf("proc/trace.cgi")>-1||c.indexOf("proc/run.cgi")>-1||c.indexOf("proc/kill_proc_list.cgi")>-1||c.indexOf("fsdump/backup.cgi")>-1||c.indexOf("fsdump/restore.cgi")>-1||c.indexOf("webmin_search.cgi")>-1||c.indexOf("security-updates/update.cgi")>-1||c.indexOf("virtualmin-mailrelay/save.cgi")>-1||c.indexOf("cluster-copy/exec.cgi")>-1||c.indexOf("cron/exec_cron.cgi")>-1||c.indexOf("virtualmin-registrar/import.cgi")>-1||c.indexOf("virtualmin-registrar/save_ns.cgi")>-1||c.indexOf("virtualmin-registrar/transfer.cgi")>-1||c.indexOf("virtualmin-registrar/renew.cgi")>-1||c.indexOf("virtualmin-registrar/create.cgi")>-1||c.indexOf("htaccess-htpasswd/search.cgi")>-1||c.indexOf("acl/makedn.cgi")>-1||c.indexOf("acl/cert_issue.cgi")>-1||c.indexOf("acl/maketables.cgi")>-1||c.indexOf("acl/schema.cgi")>-1||c.indexOf("filter/move.cgi")>-1||c.indexOf("fetchmail/check.cgi")>-1||c.indexOf("servers/find.cgi")>-1||c.indexOf("cluster-cron/exec.cgi")>-1||c.indexOf("raid/mkfs.cgi")>-1||c.indexOf("lvm/pvmove.cgi")>-1||c.indexOf("lvm/mkfs.cgi")>-1||c.indexOf("ppp-client/init.cgi")>-1||c.indexOf("fdisk/mkfs.cgi")>-1||c.indexOf("fdisk/tunefs.cgi")>-1||c.indexOf("fdisk/fsck.cgi")>-1||c.indexOf("spam/deleteall_awl.cgi")>-1||c.indexOf("quota/check_quotas.cgi")>-1||c.indexOf("virtualmin-awstats/generate.cgi")>-1||c.indexOf("postfix/flushq.cgi")>-1||c.indexOf("status/delete_mons.cgi")>-1||c.indexOf("status/refresh.cgi")>-1||c.indexOf("/webmin/upgrade.cgi")>-1){return 1}else{return 0}}var $__was=function(){var d=URI(t___wi.location),c=d.path();if(unbuffered_header()){$("html").data("data-pagescroll",true)}if($("body").hasClass("__e__")){return}if(!$('body[class^="syslog"]').length&&(($("pre")&&$("pre").length>0&&$("pre").length<=2)||$("html").data("data-pagescroll")===true)){if(__num()){setTimeout(function(){__s___()},1200)}$("body").bind("mousewheel",function(){return false});__________was_runner___=t___wi.onbeforeunload=function(b){return lang("theme_xhred_server_process_running")};t___wi.clearInterval($__was_runner);refresh=function(){$("body, html").animate({scrollTop:$(document).height()},400)};refresher=t___wi.setInterval(refresh,401)}};if(t___wi.location==t__wi_p.location){t__wi_p.f__r__s(settings_leftmenu_width,0);t__wi_p.f__c_view()}else{$("head").append('')}$("html").on("dblclick","body",function(){if($(this).find(".container-fluid").css("opacity")!=1){__s___()}});if(settings_window_autoscroll&&t___wi.location!=t__wi_p.location){$__was_runner=t___wi.setInterval($__was,201)}setTimeout(function(){if($("body").hasClass("__e__")){__lre(0)}},400);if($t_av__session===0){setTimeout(function(){__s___()},200)};
\ No newline at end of file
+;$__theme_name__="authentic";$___________ready=0;t___wi=window;t__wi_p=t___wi.parent;t__wi_p.$___________right=0;t__wi_p.$____shelling__=0;t__wi_p.$____loader_block__=0;t__wi_p.$____cm__has_init__=0;t__wi_p.$____has_frame__=(!!t__wi_p.$("aside").length?1:0);const $t_av__session=$("html").data("session"),$t_av__script_name=$("html").data("script-name").replace(/^\//g,""),$hostname=$("html").data("hostname"),$t_av_sestatus=$("html").data("sestatus");var __isNM=($("html").attr("data-night-mode")=="1"?1:0);typeof t__wi_p.$___________lrs_r_l=="undefined"?t__wi_p.$___________lrs_r_l=0:false;if(t___wi.location==t__wi_p.location){t__wi_p.$___________left=0}typeof t__wi_p.$___________initial=="undefined"?t__wi_p.$___________initial=1:false;typeof t__wi_p.$___ajax_requested_url=="undefined"?t__wi_p.$___ajax_requested_url="_blank":false;typeof settings_mailbox_slash_delimiter=="undefined"?settings_mailbox_slash_delimiter=true:false;typeof settings_window_autoscroll=="undefined"?settings_window_autoscroll=true:false;typeof settings_right_reload=="undefined"?settings_right_reload=true:false;typeof settings_right_default_tab_usermin=="undefined"?settings_right_default_tab_usermin="/":false;typeof settings_right_virtualmin_default=="undefined"?settings_right_virtualmin_default="sysinfo.cgi":false;typeof settings_right_cloudmin_default=="undefined"?settings_right_cloudmin_default="sysinfo.cgi":false;typeof settings_navigation_color=="undefined"?settings_navigation_color="blue":false;typeof settings_background_color=="undefined"?settings_background_color="gainsboro":false;typeof settings_cm_view_palette=="undefined"?settings_cm_view_palette="monokai":false;typeof settings_cm_editor_palette=="undefined"?settings_cm_editor_palette="monokai":false;typeof settings_side_slider_palette=="undefined"?settings_side_slider_palette="grey":false;typeof settings_side_slider_enabled=="undefined"?settings_side_slider_enabled=true:false;typeof settings_side_slider_fixed=="undefined"?settings_side_slider_fixed=false:false;typeof settings_side_slider_sysinfo_enabled=="undefined"?settings_side_slider_sysinfo_enabled=true:false;typeof settings_side_slider_notifications_enabled=="undefined"?settings_side_slider_notifications_enabled=true:false;typeof settings_side_slider_favorites_enabled=="undefined"?settings_side_slider_favorites_enabled=true:false;typeof settings_side_slider_tabs_hotkeys=="undefined"?settings_side_slider_tabs_hotkeys=true:false;config_portable_module_filemanager_hide_actions=(typeof localStorage!="undefined"&&localStorage.getItem($hostname+"-config_portable_module_filemanager_hide_actions")=="false"?false:true);config_portable_module_filemanager_hide_toolbar=(typeof localStorage!="undefined"&&localStorage.getItem($hostname+"-config_portable_module_filemanager_hide_toolbar")=="true"?true:false);config_portable_module_filemanager_hovered_toolbar=(typeof localStorage!="undefined"&&localStorage.getItem($hostname+"-config_portable_module_filemanager_hovered_toolbar")=="true"?true:false);config_portable_module_filemanager_notification_type=(typeof localStorage!="undefined"&&localStorage.getItem($hostname+"-config_portable_module_filemanager_notification_type")?localStorage.getItem($hostname+"-config_portable_module_filemanager_notification_type"):1);config_portable_module_filemanager_calculate_size=(typeof localStorage!="undefined"&&localStorage.getItem($hostname+"-config_portable_module_filemanager_calculate_size")=="true"?true:false);config_portable_module_filemanager_remember_tabs=(typeof localStorage!="undefined"&&localStorage.getItem($hostname+"-config_portable_module_filemanager_remember_tabs")=="false"?false:true);config_portable_module_xsql_fit_content_screen_height=(typeof localStorage!="undefined"&&localStorage.getItem($hostname+"-config_portable_module_xsql_fit_content_screen_height")=="true"?true:false);typeof settings_hotkeys_active=="undefined"?settings_hotkeys_active=true:false;typeof settings_button_tooltip=="undefined"?settings_button_tooltip=true:false;typeof settings_hotkey_toggle_modifier=="undefined"?settings_hotkey_toggle_modifier="altKey":false;typeof settings_hotkey_toggle_key_webmin=="undefined"?settings_hotkey_toggle_key_webmin="w":false;typeof settings_hotkey_toggle_key_virtualmin=="undefined"?settings_hotkey_toggle_key_virtualmin="v":false;typeof settings_hotkey_toggle_key_cloudmin=="undefined"?settings_hotkey_toggle_key_cloudmin="c":false;typeof settings_hotkey_toggle_key_usermin=="undefined"?settings_hotkey_toggle_key_usermin="u":false;typeof settings_hotkey_toggle_key_webmail=="undefined"?settings_hotkey_toggle_key_webmail="m":false;typeof settings_hotkey_toggle_key_night_mode=="undefined"?settings_hotkey_toggle_key_night_mode="l":false;typeof settings_hotkey_shell=="undefined"?settings_hotkey_shell="k":false;typeof settings_hotkey_sysinfo=="undefined"?settings_hotkey_sysinfo="i":false;typeof settings_hotkey_favorites=="undefined"?settings_hotkey_favorites="f":false;typeof settings_hotkey_focus_search=="undefined"?settings_hotkey_focus_search="s":false;typeof settings_hotkey_toggle_slider=="undefined"?settings_hotkey_toggle_slider="n":false;typeof settings_hotkey_reload=="undefined"?settings_hotkey_reload="r":false;typeof settings_global_passgen_format=="undefined"?settings_global_passgen_format="12|a-z,A-Z,0-9,#":false;typeof settings_window_replace_timestamps=="undefined"?settings_window_replace_timestamps=true:false;typeof settings_window_replaced_timestamp_format_full=="undefined"?settings_window_replaced_timestamp_format_full="LLLL":false;typeof settings_window_replaced_timestamp_format_short=="undefined"?settings_window_replaced_timestamp_format_short="L, LTS":false;typeof settings_leftmenu_vm_cm_dropdown_icons=="undefined"?settings_leftmenu_vm_cm_dropdown_icons=true:false;typeof settings_hotkey_custom_1=="undefined"?settings_hotkey_custom_1=false:false;typeof settings_hotkey_custom_2=="undefined"?settings_hotkey_custom_2=false:false;typeof settings_hotkey_custom_3=="undefined"?settings_hotkey_custom_3=false:false;typeof settings_hotkey_custom_4=="undefined"?settings_hotkey_custom_4=false:false;typeof settings_hotkey_custom_5=="undefined"?settings_hotkey_custom_5=false:false;typeof settings_hotkey_custom_6=="undefined"?settings_hotkey_custom_6=false:false;typeof settings_hotkey_custom_7=="undefined"?settings_hotkey_custom_7=false:false;typeof settings_hotkey_custom_8=="undefined"?settings_hotkey_custom_8=false:false;typeof settings_hotkey_custom_9=="undefined"?settings_hotkey_custom_9=false:false;typeof settings_right_iconize_header_links=="undefined"?settings_right_iconize_header_links=true:false;typeof settings_side_slider_background_refresh_time=="undefined"?settings_side_slider_background_refresh_time=5:false;typeof settings_leftmenu_width=="undefined"?settings_leftmenu_width=260:false;typeof settings_sysinfo_easypie_charts=="undefined"?settings_sysinfo_easypie_charts=true:false;typeof settings_sysinfo_easypie_charts_size=="undefined"?settings_sysinfo_easypie_charts_size=172:(settings_sysinfo_easypie_charts_size=parseInt(settings_sysinfo_easypie_charts_size));typeof settings_sysinfo_easypie_charts_width=="undefined"?settings_sysinfo_easypie_charts_width=4:(settings_sysinfo_easypie_charts_width=parseInt(settings_sysinfo_easypie_charts_width));typeof settings_sysinfo_easypie_charts_scale=="undefined"?settings_sysinfo_easypie_charts_scale=8:(settings_sysinfo_easypie_charts_scale=parseInt(settings_sysinfo_easypie_charts_scale));typeof settings_sysinfo_theme_updates=="undefined"?settings_sysinfo_theme_updates=false:false;typeof settings_sysinfo_theme_patched_updates=="undefined"?settings_sysinfo_theme_patched_updates=false:false;typeof settings_sysinfo_csf_updates=="undefined"?settings_sysinfo_csf_updates=false:false;typeof settings_sysinfo_link_mini=="undefined"?settings_sysinfo_link_mini=false:false;typeof settings_loader_top=="undefined"?settings_loader_top=true:false;typeof settings_animation_left=="undefined"?settings_animation_left=true:false;settings_animation_left?$settings_animation_left_slide_time=280:$settings_animation_left_slide_time=0;typeof settings_animation_tabs=="undefined"?settings_animation_tabs=true:false;settings_animation_tabs?$settings_animation_tabs_slide_time=280:$settings_animation_tabs_slide_time=0;typeof settings_show_terminal_link=="undefined"?settings_show_terminal_link=true:false;typeof settings_favorites=="undefined"?settings_favorites=true:false;try{t__wi_p.$}catch(e){t__wi_p=window}if(typeof localStorage==="object"){try{localStorage.setItem("d41d8cd98f00",1);localStorage.removeItem("d41d8cd98f00");$_v__ls__a=1}catch(e){Storage.prototype._setItem=Storage.prototype.setItem;Storage.prototype.setItem=function(){};$_v__ls__a=0}}if(!String.prototype.endsWith){String.prototype.endsWith=function(c,b){var a=this.toString();if(typeof b!=="number"||!isFinite(b)||Math.floor(b)!==b||b>a.length){b=a.length}b-=c.length;var d=a.lastIndexOf(c,b);return d!==-1&&d===b}}if(!String.prototype.startsWith){if(!String.prototype.startsWith){String.prototype.startsWith=function(b,a){a=a||0;return this.indexOf(b,a)===a}}}function escape_html(b){var a={"&":"&","<":"<",">":">",'"':""","'":"'","=":"="};return String(b).replace(/[&<>"'=]/g,function(c){return a[c]})}function decode_html(d){var c=[["amp","&"],["apos","'"],["#x27","'"],["#x2F","/"],["#39","'"],["#47","/"],["#61","="],["lt","<"],["gt",">"],["nbsp"," "],["quot",'"']];if(!!d){for(var b=0,a=c.length;b =this.length){var b=a-this.length;while((b--)+1){this.push(undefined)}}this.splice(a,0,this.splice(c,1)[0]);return this}});function __slm(){if(t__wi_p.$("aside").css("transform")=="none"){t__wi_p.$("aside").transition({x:settings_leftmenu_width},600,function(){if(t__wi_p.$(".__logo")&&t__wi_p.$(".__logo").css("transform")=="none"&&!t__wi_p.$(".mobile-menu-toggler:visible").length){t__wi_p.$(".__logo").transition({y:"-140px"},900)}});setTimeout(function(){t__wi_p.$(".switch-toggle").css("display","table")},1)}}__slm();(function(c){function a(g){var f=c(this);f.data("mouseheld_timeout",setTimeout(function(){f.trigger("mouseheld")},g.data))}function b(){var f=c(this);clearTimeout(f.data("mouseheld_timeout"))}var d=c.event.special.mouseheld={setup:function(f){var g=c(this);g.bind("mousedown",+f||d.time,a);g.bind("mouseleave mouseup",b)},teardown:function(){var f=c(this);f.unbind("mousedown",a);f.unbind("mouseleave mouseup",b)},time:750}})(jQuery);function array_flip(c){var b,a={};for(b in c){if(c.hasOwnProperty(b)){a[c[b]]=b}}return a}function removeLastDirectoryPartOf(a){var b=a.split("/");b.pop();return(b.join("/"))}function arrayIntersect(g,d){var f=[];$.each(g,function(b,a){if(d.match(new RegExp(a,"gi"))){f.push(a)}});return !$.isEmptyObject(f)}function is_numeric(a){return Number(parseFloat(a))==a}function is_module(a){if(t__wi_p.$("body").data(a)!=undefined){if(t__wi_p.$('iframe[name="page"]').contents().length&&t__wi_p.$('iframe[name="page"]').contents().find("body").data(a)!=undefined){return t__wi_p.$('iframe[name="page"]').contents().find("body").data(a)}else{return t__wi_p.$("body").data(a)}}else{if($.inArray(a,t__wi_p.$("body").data("available-modules"))>-1){return true}else{return false}}}function is__m(a){return $('body[class*="'+a+'"]').length}function is__f(a){return($__source_file==a)}function is__mf(a,b){return($('body[class*="'+a+'"]').length&&$__source_file==b)}function is__mfq(a,c,b){return($('body[class*="'+a+'"]').length&&$__source_file==c&&($__source_query&&$__source_query.indexOf(b)!==-1))}function lang(b,a){typeof a=="undefined"?a=false:false;var c=t__wi_p.$("body").data("language-strings");if(a){return c?array_flip(c)[$.trim(b)]:false}else{return c?c[b]:false}}function manageConfig(d){var b=["config_portable_module_csf_style_custom_promoted","config_portable_theme_charset_warning_shown","config_portable_module_xsql_fit_content_screen_height","config_portable_module_filemanager_hide_toolbar","config_portable_module_filemanager_hovered_toolbar","config_portable_module_filemanager_hide_actions","config_portable_module_filemanager_remember_tabs","config_portable_module_filemanager_calculate_size","config_portable_module_filemanager_notification_type"];if(d=="get_options"){return b}if(d=="save"){var a={},c=0;$.each(localStorage,function(g,f){if(typeof g=="string"&&g.indexOf($hostname)>-1&&arrayIntersect(b,g)){if(f=="true"){c=true}else{if(f=="false"){c=false}else{if(is_numeric(f)){c=parseInt(f)}else{c=f}}}if(c!="undefined"){a[g.replace($hostname+"-","")]=c}}});a.settings_force_night_mode=__isNM;t__wi_p.settings_font_family!="undefind"&&(a.settings_font_family=t__wi_p.settings_font_family);t__wi_p.settings_navigation_color!="undefind"&&(a.settings_navigation_color=t__wi_p.settings_navigation_color);t__wi_p.settings_background_color!="undefind"&&(a.settings_background_color=t__wi_p.settings_background_color);t__wi_p.settings_button_tooltip!="undefind"&&(a.settings_button_tooltip=t__wi_p.settings_button_tooltip);t__wi_p.settings_hide_top_loader!="undefind"&&(a.settings_hide_top_loader=t__wi_p.settings_hide_top_loader);t__wi_p.settings_animation_left!="undefind"&&(a.settings_animation_left=t__wi_p.settings_animation_left);t__wi_p.settings_animation_tabs!="undefind"&&(a.settings_animation_tabs=t__wi_p.settings_animation_tabs);t__wi_p.settings_sysinfo_link_mini!="undefind"&&(a.settings_sysinfo_link_mini=t__wi_p.settings_sysinfo_link_mini);t__wi_p.settings_show_night_mode_link!="undefind"&&(a.settings_show_night_mode_link=t__wi_p.settings_show_night_mode_link);t__wi_p.settings_theme_options_button!="undefind"&&(a.settings_theme_options_button=t__wi_p.settings_theme_options_button);t__wi_p.settings_leftmenu_button_refresh!="undefind"&&(a.settings_leftmenu_button_refresh=t__wi_p.settings_leftmenu_button_refresh);t__wi_p.settings_hotkeys_active!="undefind"&&(a.settings_hotkeys_active=t__wi_p.settings_hotkeys_active);t__wi_p.$___ajax_requested_url="___blocked";setTimeout(function(){$.ajax({type:"POST",url:$_____link_full+"/index.cgi?xhr-manage-config=1&save=1",data:a,dataType:"text",success:function(f){setTimeout(function(){if(typeof t___wi.page.at__s_s__b=="function"){t__wi_p.$____has_frame__?t___wi.page.at__s_s__b(0):at__s_s__b(0)}},400)},error:function(){}})},300)}else{if(d==="load"){t__wi_p.$___ajax_requested_url="___blocked";var c=0;$.ajax({type:"GET",url:$_____link_full+"/index.cgi?xhr-manage-config=1&load=1",data:false,dataType:"json",success:function(f){$.each(f,function(h,g){if(g=="true"){c=true}else{if(g=="false"){c=false}else{if(is_numeric(g)){c=parseInt(g)}else{c=g}}}localStorage.setItem(($hostname+"-"+h),c);window[h]=c})},error:function(){}})}}}function __lrs(j,g){var h=t__wi_p.document.getElementById("iframe"),k=t__wi_p.document.activeElement,i=["export","export as csv.","download","upload"];if(k){if(($(k).is("a")&&$(k).attr("href")&&($(k).attr("href").indexOf("awstats/view.cgi")>-1||$(k).attr("href").indexOf("cwaf")>-1))){return}}h?h=h.contentDocument.activeElement:h=false;if(h){if((t__wi_p.$('iframe[name="page"]').attr("src")!=="/csf/")&&(($(h).is("a")&&$(h).attr("href")&&($(h).attr("href").indexOf("webminlog.csv")>-1||$(h).attr("href").indexOf("detach.cgi")>-1||$(h).attr("href").indexOf("download.cgi")>-1||($("body.virtualmin-awstats")&&$("body.virtualmin-awstats").length&&$(h).attr("href").indexOf("view.cgi?config")>-1)))||($(h).is("a")&&$(h).text()&&(arrayIntersect(i,$(h).text())))||($(h).is("input")&&$(h).val()&&(arrayIntersect(i,$(h).val())||$(h).parents('form[action="create_vpn.cgi"]').length)))){return}}if(t__wi_p.$('iframe[name="page"]').attr("src")&&t__wi_p.$('iframe[name="page"]').attr("src").indexOf("cwaf")>-1){return}typeof j=="undefined"?j=false:j=true;typeof g=="undefined"?g=80:false;if(t__wi_p.$___________initial===1){t__wi_p.$(".loader-container").addClass("loading-started");if(((t__wi_p.$("aside").css("transform")=="none"||t__wi_p.$("aside").css("transform")!="matrix(1, 0, 0, 1, "+settings_leftmenu_width+", 0)")&&!t__wi_p.$(".btn-menu-toggler").is(":visible"))){t__wi_p.$(".loader-container").css("background-color","#ededed").css("display","block")}else{t__wi_p.setTimeout(function(){if(t__wi_p.$___________right===0&&t__wi_p.$___________lrs_r_l===0){t__wi_p.$___________lrs_r_l=1;if(t__wi_p.$(".loader-container").hasClass("loading-started")){if(settings_loader_top&&t__wi_p.t___p__xhr_l===0){t__wi_p.NProgress.remove();t__wi_p.NProgress.start()}t__wi_p.$(".loader-container").css("background-color","#ededed").css("display","block")}t__wi_p.setTimeout(function(){t__wi_p.$___________lrs_r_l=0},1500)}},1500)}}else{if(settings_loader_top&&t__wi_p.t___p__xhr_l===0){t__wi_p.NProgress.remove();t__wi_p.NProgress.start()}}}function product_name_lang(d){if(t__wi_p.$("#wrapper").data("server-manager")!=-1){return lang("theme_xhred_titles_cm")}else{if(t__wi_p.$("#wrapper").data("virtual-server")!=-1){return lang("theme_xhred_titles_vm")}else{if(t__wi_p.$("#wrapper").data("webmail")!=-1&&!d){return lang("theme_xhred_titles_mail")}else{var c=t__wi_p.$("#wrapper").data("product");return(c=="webmin"?lang("theme_xhred_titles_wm"):lang("theme_xhred_titles_um"))}}}}function product_name(d){if(t__wi_p.$("#wrapper").data("server-manager")!=-1){return"Cloudmin"}else{if(t__wi_p.$("#wrapper").data("virtual-server")!=-1){return"Virtualmin"}else{if(t__wi_p.$("#wrapper").data("webmail")!=-1&&!d){return"Mail"}else{var c=t__wi_p.$("#wrapper").data("product");return c.charAt(0).toUpperCase()+c.slice(1)}}}}function __s___(){if(t__wi_p.$____loader_block__){return}var g=t__wi_p.$('iframe[name="page"]').get(0),d=t__wi_p.$('iframe[name="page"]').contents(),d=(d.length?d:$(document));if(g&&typeof g.contentWindow.$!="function"||!__num()){return}var b=false,f=false,c=false;if(g){f=g.contentWindow.$("body");b=g.contentWindow.$("body").find(".container-fluid");c=g.contentWindow.$("head")}else{f=$("body");b=$("body").find(".container-fluid");c=$("head")}b.css({opacity:1,"pointer-events":"auto"});f.css("overflow","auto");c.find("#__tmp_no_overflow").remove()}function __lre(a){typeof a=="undefined"?a=1:false;if(t__wi_p.$____loader_block__){return}__s___();t__wi_p.$(".loader-container").removeClass("loading-started").css("background-color","transparent").css("display","none");t__wi_p.$('iframe[name="page"]').css("opacity",1);if(t__wi_p.$("aside").css("transform")=="none"){__slm()}if(__num()){if(typeof t__wi_p.$('iframe[name="page"]').get(0)!=="undefined"&&typeof t__wi_p.$('iframe[name="page"]').get(0).contentWindow.__dlm=="function"){t__wi_p.$('iframe[name="page"]').get(0).contentWindow.__dlm()}}t__wi_p.$(".loader .loader-close").hide();if(settings_loader_top&&t__wi_p.t___p__xhr_l===0&&__num()&&a){t__wi_p.NProgress.done()}if(typeof hide_mobile_menu=="function"){hide_mobile_menu()}}function f__r__s(b,a){if(typeof $.injectCSS=="function"){t__wi_p.$("#injected-css").remove();a?(a="translate("+a+"px, 0px) !important"):(a=false);$.injectCSS({"#sidebar":{left:-b+"px",width:b+"px",transform:a},".switch-toggle":{width:b+"px"},"#content.__page":{"margin-left":b+"px"},".autocomplete-suggestions":{"min-width":(b-23)+"px !important"},".__logo":{width:b+"px","max-width":b+"px"}});if(t__wi_p.$("aside select").length){t__wi_p.$("aside select[data-autocomplete-title]").attr("style","width:"+(b-24)+"px; margin-top: 0 !important");t__wi_p.t_sel_i()}}}function f__c_view(){if(typeof t__wi_p.settings_leftmenu_width_initial=="undefined"){t__wi_p.settings_leftmenu_width_initial=t__wi_p.settings_leftmenu_width}if(t__wi_p.matchMedia("(max-width: 767px)").matches){t__wi_p.settings_leftmenu_width=260;t__wi_p.f__r__s(t__wi_p.settings_leftmenu_width,0)}else{if(t__wi_p.$___________initial===1){return}t__wi_p.settings_leftmenu_width=t__wi_p.settings_leftmenu_width_initial;t__wi_p.f__r__s(t__wi_p.settings_leftmenu_width,t__wi_p.settings_leftmenu_width)}}function s(d){var g=document.getElementsByTagName("head")[0];var f=document.createElement("script");f.type="text/javascript";f.src=d;g.appendChild(f)}t__wi_p.$('iframe[name="page"]').unbind("load");t__wi_p.$('iframe[name="page"]').on("load",function(){if(t__wi_p.$___________initial===1&&typeof $__post_init_script!="undefined"){$.each(manageConfig("get_options"),function(b,a){localStorage.setItem(($hostname+"-"+a),t__wi_p[a]);window[a]=t__wi_p[a]});__mss();t__wi_p.fetch_right_pane_favorites()}var c=t__wi_p.$('iframe[name="page"]').contents();if(c&&c.find('iframe[name="page"]').length){console.log("Error! Entered fail state.. Authentic Theme is reloading...");t___wi.top.location.reload();return}var d=false;if(c&&c.find("title").text()&&c.find("title").text().indexOf("ConfigServer Security & Firewall")>-1){d=true}if(__num()&&!d){t__wi_p.__lre()}if($("body").find(".form-signin-banner").length===1||$("body").find('form[action*="session_login.cgi"]').length===1||$("body").find('form[action*="pam_login.cgi"]').length===1||$("body").is("[vlink=#376ebd]")){t__wi_p.location=t___wi.location.origin}____iframe___=t__wi_p.$("#iframe")[0];if(!t__wi_p.$(".form-control.sidebar-search").is(":focus")){____iframe___&&____iframe___.contentWindow.focus()}$("body").on("shown.bs.modal",".modal.in",function(){$(this).focus()});setTimeout(function(){if(typeof t__m__m!="undefined"&&typeof t__m__m=="function"){t__m__m(false,true)}t__wi_p.$___________m_locked=0},200);setTimeout(function(){t__wi_p.$___________initial=0},1000);$("body").find('a[href*="virtual-server/switch_user.cgi"]').attr("target","_parent");if(c&&!c.text().match(/___authentic_theme_footer___/)){if(d){return}__lre();if(typeof $load____ext!="undefined"){s(t__wi_p.$_____link_full+"/unauthenticated/js/postinit."+$load____ext+".js?"+$g__t__ver_str+"");s(t__wi_p.$_____link_full+"/unauthenticated/js/content."+$load____ext+".js?"+$g__t__ver_str+"")}}if(settings_loader_top&&t__wi_p.t___p__xhr_l===0&&__num()&&!t__wi_p.$____loader_block__){t__wi_p.NProgress.done()}if(typeof t__wi_p.__dpt=="function"){t__wi_p.__dpt()}$("body").unbind("mousewheel");!t__wi_p.$___________initial&&__lre();delete __________was_runner___;t__wi_p.$___________right=1;$(function(){if(t__wi_p.location.search=="?theme-update-finished"||$("#wrapper").data("notice")==1){t__wi_p.$('.right-side-tabs-notification[data-type="authentic_remote_version"]').find("i.af-clear-all").trigger("click");$("#update_notice").modal("show");__s___()}})});$(function(){if($("html.session_login").length){$("body").attr("style",$("body").data("style"));if(t__wi_p.$("aside").length){t__wi_p.location.href="/"}$("form").on("click",'button[type="submit"]',function(b){b.preventDefault();$(this).prop("disabled","true").removeClass("btn-primary").addClass("btn-default").find(".fa-sign-in").removeClass("fa-sign-in").addClass("fa fa-circle-o-notch faa-spin faa-slow animated");$(this).parents("form").submit()})}if(t___wi.location==t__wi_p.location&&window.matchMedia("(max-width: 767px)").matches){f__c_view()}if(typeof $access_level!="undefined"&&$access_level!=0){settings_right_virtualmin_default="sysinfo.cgi";settings_right_cloudmin_default="sysinfo.cgi"}$___________ready=1});function __num(){var d=URI(t___wi.location),c=d.path();if((c&&c.indexOf("/webmin/edit_themes.cgi")>-1&&t__wi_p.location.search=="?updating-webmin-theme")||(c&&c.indexOf("/webmin/edit_themes.cgi")>-1&&t__wi_p.location.search=="?downloading-webmin-theme")||(c&&c.indexOf("/webmin/install_theme.cgi")>-1&&t__wi_p.location.search=="?downloading-webmin-theme")||(c&&c.indexOf("/webmin/install_theme.cgi")>-1&&t__wi_p.location.search=="?updating-usermin-theme")||(c&&c.indexOf("/usermin/edit_themes.cgi")>-1&&t__wi_p.location.search=="?updating-usermin-theme")||(c&&c.indexOf("/usermin/edit_themes.cgi")>-1&&t__wi_p.location.search=="?downloading-usermin-theme")||(c&&c.indexOf("/usermin/install_theme.cgi")>-1&&t__wi_p.location.search=="?downloading-usermin-theme")||(c&&c.indexOf("/webmin/install_theme.cgi")>-1&&t__wi_p.location.search=="?theme-update-finished")||(c&&c.indexOf("/webmin/edit_webmincron.cgi")>-1&&(t__wi_p.location.search=="?recollect"||t__wi_p.location.search=="?recollecting"||t__wi_p.location.search=="?recollect-system-status"||t__wi_p.location.search=="?recollect"||t__wi_p.location.search=="?recollecting-system-status"))||(c&&c.indexOf("/webmin/delete_webmincron.cgi")>-1&&(t__wi_p.location.search=="?recollecting-system-status"||t__wi_p.location.search=="?recollect-system-status"||t__wi_p.location.search=="?recollect-finished"||t__wi_p.location.search=="?recollecting-finished"||t__wi_p.location.search=="?recollecting-package-updates"))||(c&&c.indexOf("/package-updates/index.cgi")>-1&&(t__wi_p.location.search=="?recollect"||t__wi_p.location.search=="?recollecting"||t__wi_p.location.search=="?recollecting-package-updates"||t__wi_p.location.search=="?recollecting-package-updates-processing"))||(c&&c.indexOf("/package-updates/update.cgi")>-1&&(t__wi_p.location.search=="?recollect"||t__wi_p.location.search=="?recollecting"||t__wi_p.location.search=="?recollecting-package-updates"||t__wi_p.location.search=="?recollecting-package-updates-processing"||t__wi_p.location.search=="?recollecting-finished"))){return false}else{return true}}function unbuffered_header(){var d=URI(t___wi.location),c=d.path();if(c&&c.indexOf("/virtual-server/import.cgi")>-1||c.indexOf("/virtual-server/edit_newlinks.cgi")>-1||c.indexOf("/virtual-server/postsave.cgi")>-1||c.indexOf("/virtual-server/validate.cgi")>-1||c.indexOf("/server-manager/edit_serv.cgi")>-1||c.indexOf("/server-manager/save_serv.cgi")>-1||c.indexOf("/server-manager/index.cgi")>-1||c.indexOf("/server-manager/list_ifaces.cgi")>-1||c.indexOf("/server-manager/mass_update.cgi")>-1||c.indexOf("/server-manager/get_images.cgi")>-1||c.indexOf("/server-manager/edit_newlinks.cgi")>-1||c.indexOf("/server-manager/list_gces.cgi")>-1||c.indexOf("/server-manager/list_ec2s.cgi")>-1||c.indexOf("/server-manager/unpause.cgi")>-1||c.indexOf("/server-manager/find.cgi")>-1||c.indexOf("useradmin/batch_exec.cgi")>-1||c.indexOf("useradmin/gbatch_exec.cgi")>-1||c.indexOf("useradmin/mass_delete_user.cgi")>-1||c.indexOf("virtual-server/domain_setup.cgi")>-1||c.indexOf("virtual-server/upgrade.cgi")>-1||c.indexOf("virtual-server/mass_create.cgi")>-1||c.indexOf("virtual-server/restore.cgi")>-1||c.indexOf("virtual-server/save_newip.cgi")>-1||c.indexOf("virtual-server/mass_domains_change.cgi")>-1||c.indexOf("virtual-server/save_domain.cgi")>-1||c.indexOf("virtual-server/backup.cgi")>-1||c.indexOf("virtual-server/save_phpmode.cgi")>-1||c.indexOf("virtual-server/script_install.cgi")>-1||c.indexOf("virtual-server/mass_change.cgi")>-1||c.indexOf("virtual-server/save_ratelimit.cgi")>-1||c.indexOf("virtual-server/mass_scripts.cgi")>-1||c.indexOf("virtual-server/mass_upgrade.cgi")>-1||c.indexOf("virtual-server/save_newips.cgi")>-1||c.indexOf("virtual-server/letsencrypt.cgi")>-1||c.indexOf("virtual-server/migrate.cgi")>-1||c.indexOf("virtual-server/save_mail.cgi")>-1||c.indexOf("virtual-server/mass_delete_domains.cgi")>-1||c.indexOf("virtual-server/delete_domain.cgi")>-1||c.indexOf("virtual-server/unscript_install.cgi")>-1||c.indexOf("virtual-server/mass_uninstall.cgi")>-1||c.indexOf("virtual-server/clone.cgi")>-1||c.indexOf("virtual-server/fix_symlinks.cgi")>-1||c.indexOf("virtual-server/disable_domain.cgi")>-1||c.indexOf("virtual-server/delete_databases.cgi")>-1||c.indexOf("virtual-server/move.cgi")>-1||c.indexOf("virtual-server/enable_domain.cgi")>-1||c.indexOf("virtual-server/transfer.cgi")>-1||c.indexOf("virtual-server/mass_disable.cgi")>-1||c.indexOf("virtual-server/rename.cgi")>-1||c.indexOf("virtual-server/save_dbname.cgi")>-1||c.indexOf("virtual-server/mass_enable.cgi")>-1||c.indexOf("virtual-server/save_frame.cgi")>-1||c.indexOf("virtual-server/check.cgi")>-1||c.indexOf("virtual-server/save_newchroot.cgi")>-1||c.indexOf("virtual-server/enable_dkim.cgi")>-1||c.indexOf("virtual-server/save_proxy.cgi")>-1||c.indexOf("virtual-server/save_dbpass.cgi")>-1||c.indexOf("virtual-server/save_dbhosts.cgi")>-1||c.indexOf("virtual-server/unalias.cgi")>-1||c.indexOf("virtual-server/save_newautoconfig.cgi")>-1||c.indexOf("virtual-server/quotacheck.cgi")>-1||c.indexOf("virtual-server/unsub.cgi")>-1||c.indexOf("virtual-server/save_domdkim.cgi")>-1||c.indexOf("virtual-server/fix_modphp.cgi")>-1||c.indexOf("virtual-server/connectivity.cgi")>-1||c.indexOf("virtual-server/all_webmin.cgi")>-1||c.indexOf("virtualmin-support/send_ticket.cgi")>-1||c.indexOf("virtualmin-support/enable_login.cgi")>-1||c.indexOf("virtualmin-support/disable_login.cgi")>-1||c.indexOf("server-manager/create.cgi")>-1||c.indexOf("server-manager/mass.cgi")>-1||c.indexOf("server-manager/manual_image.cgi")>-1||c.indexOf("server-manager/save_limits.cgi")>-1||c.indexOf("server-manager/upgrade.cgi")>-1||c.indexOf("server-manager/empty.cgi")>-1||c.indexOf("server-manager/save_pass.cgi")>-1||c.indexOf("server-manager/create_image.cgi")>-1||c.indexOf("server-manager/restore.cgi")>-1||c.indexOf("server-manager/clone.cgi")>-1||c.indexOf("server-manager/scan.cgi")>-1||c.indexOf("server-manager/add.cgi")>-1||c.indexOf("server-manager/gcescan.cgi")>-1||c.indexOf("server-manager/create_gceattach.cgi")>-1||c.indexOf("server-manager/ec2scan.cgi")>-1||c.indexOf("server-manager/create_domain.cgi")>-1||c.indexOf("server-manager/restore_domain.cgi")>-1||c.indexOf("server-manager/create_ec2attach.cgi")>-1||c.indexOf("server-manager/newami.cgi")>-1||c.indexOf("server-manager/move_disk.cgi")>-1||c.indexOf("server-manager/convert_image.cgi")>-1||c.indexOf("server-manager/save_vcpus.cgi")>-1||c.indexOf("server-manager/boot.cgi")>-1||c.indexOf("server-manager/delete_backuplogs.cgi")>-1||c.indexOf("server-manager/mass_script.cgi")>-1||c.indexOf("server-manager/save_ec2address.cgi")>-1||c.indexOf("server-manager/mass_move.cgi")>-1||c.indexOf("server-manager/delete_ec2attach.cgi")>-1||c.indexOf("server-manager/move.cgi")>-1||c.indexOf("server-manager/backup.cgi")>-1||c.indexOf("server-manager/create_dimage.cgi")>-1||c.indexOf("server-manager/massupload.cgi")>-1||c.indexOf("server-manager/delete_volumes.cgi")>-1||c.indexOf("server-manager/delete_ec2_snapshots.cgi")>-1||c.indexOf("server-manager/download.cgi")>-1||c.indexOf("server-manager/create_gdisk.cgi")>-1||c.indexOf("server-manager/failover.cgi")>-1||c.indexOf("server-manager/create_dkvolume.cgi")>-1||c.indexOf("server-manager/upload.cgi")>-1||c.indexOf("server-manager/transfer.cgi")>-1||c.indexOf("server-manager/delete_gceattach.cgi")>-1||c.indexOf("server-manager/reset.cgi")>-1||c.indexOf("server-manager/find.cgi")>-1||c.indexOf("server-manager/create_volume.cgi")>-1||c.indexOf("server-manager/create_gsnapshot.cgi")>-1||c.indexOf("server-manager/create_gimage.cgi")>-1||c.indexOf("server-manager/exec_vbackup.cgi")>-1||c.indexOf("server-manager/unpause.cgi")>-1||c.indexOf("server-manager/pause.cgi")>-1||c.indexOf("server-manager/create_ec2_snapshot.cgi")>-1||c.indexOf("server-manager/delete_addresses.cgi")>-1||c.indexOf("server-manager/exec_vsync.cgi")>-1||c.indexOf("server-manager/create_address.cgi")>-1||c.indexOf("cluster-usermin/upgrade.cgi")>-1||c.indexOf("cluster-usermin/install.cgi")>-1||c.indexOf("cluster-usermin/update.cgi")>-1||c.indexOf("ldap-useradmin/batch_exec.cgi")>-1||c.indexOf("ldap-useradmin/mass_delete_user.cgi")>-1||c.indexOf("usermin/upgrade.cgi")>-1||c.indexOf("usermin/update.cgi")>-1||c.indexOf("cpan/download.cgi")>-1||c.indexOf("cpan/install.cgi")>-1||c.indexOf("burner/save_profile.cgi")>-1||c.indexOf("burner/burn.cgi")>-1||c.indexOf("bind8/mass_create.cgi")>-1||c.indexOf("bind8/mass_rcreate.cgi")>-1||c.indexOf("bind8/mass_delete.cgi")>-1||c.indexOf("bind8/mass_update.cgi")>-1||c.indexOf("bind8/zone_dnssecmigrate_dt.cgi")>-1||c.indexOf("bind8/mass_rdelete.cgi")>-1||c.indexOf("bind8/enable_zonekey.cgi")>-1||c.indexOf("bind8/enable_zonedt.cgi")>-1||c.indexOf("bind8/disable_zonedt.cgi")>-1||c.indexOf("webalizer/save_log.cgi")>-1||c.indexOf("bacula-backup/restore.cgi")>-1||c.indexOf("bacula-backup/backup.cgi")>-1||c.indexOf("bacula-backup/gbackup.cgi")>-1||c.indexOf("bacula-backup/label.cgi")>-1||c.indexOf("bacula-backup/mount.cgi")>-1||c.indexOf("cluster-software/install_pack.cgi")>-1||c.indexOf("updown/download.cgi")>-1||c.indexOf("software/install_pack.cgi")>-1||c.indexOf("software/do_install.cgi")>-1||c.indexOf("software/apt_upgrade.cgi")>-1||c.indexOf("software/rhn_check.cgi")>-1||c.indexOf("software/yum_upgrade.cgi")>-1||c.indexOf("software/urpmi_upgrade.cgi")>-1||c.indexOf("software/csw_upgrade.cgi")>-1||c.indexOf("software/ports_upgrade.cgi")>-1||c.indexOf("webmin/letsencrypt.cgi")>-1||c.indexOf("webmin/delete_webmincron.cgi")>-1||c.indexOf("webmin/test_sendmail.cgi")>-1||c.indexOf("webmin/refresh_modules.cgi")>-1||c.indexOf("package-updates/update.cgi")>-1||c.indexOf("custom/run.cgi")>-1||c.indexOf("custom/sql.cgi")>-1||c.indexOf("virtualmin-init/save.cgi")>-1||c.indexOf("virtualmin-init/mass.cgi")>-1||c.indexOf("backup-config/save.cgi")>-1||c.indexOf("squid/init_cache.cgi")>-1||c.indexOf("squid/clear.cgi")>-1||c.indexOf("squid/chown.cgi")>-1||c.indexOf("ldap-client/check.cgi")>-1||c.indexOf("sendmail/del_mailqs.cgi")>-1||c.indexOf("sendmail/flushq.cgi")>-1||c.indexOf("init/mass_start_stop.cgi")>-1||c.indexOf("init/mass_launchd.cgi")>-1||c.indexOf("init/mass_systemd.cgi")>-1||c.indexOf("init/mass_upstarts.cgi")>-1||c.indexOf("init/mass_rcs.cgi")>-1||c.indexOf("init/save_services.cgi")>-1||c.indexOf("ldap-server/create.cgi")>-1||c.indexOf("change-user/change.cgi")>-1||c.indexOf("virtualmin-slavedns/save.cgi")>-1||c.indexOf("proc/trace.cgi")>-1||c.indexOf("proc/run.cgi")>-1||c.indexOf("proc/kill_proc_list.cgi")>-1||c.indexOf("fsdump/backup.cgi")>-1||c.indexOf("fsdump/restore.cgi")>-1||c.indexOf("webmin_search.cgi")>-1||c.indexOf("security-updates/update.cgi")>-1||c.indexOf("virtualmin-mailrelay/save.cgi")>-1||c.indexOf("cluster-copy/exec.cgi")>-1||c.indexOf("cron/exec_cron.cgi")>-1||c.indexOf("virtualmin-registrar/import.cgi")>-1||c.indexOf("virtualmin-registrar/save_ns.cgi")>-1||c.indexOf("virtualmin-registrar/transfer.cgi")>-1||c.indexOf("virtualmin-registrar/renew.cgi")>-1||c.indexOf("virtualmin-registrar/create.cgi")>-1||c.indexOf("htaccess-htpasswd/search.cgi")>-1||c.indexOf("acl/makedn.cgi")>-1||c.indexOf("acl/cert_issue.cgi")>-1||c.indexOf("acl/maketables.cgi")>-1||c.indexOf("acl/schema.cgi")>-1||c.indexOf("filter/move.cgi")>-1||c.indexOf("fetchmail/check.cgi")>-1||c.indexOf("servers/find.cgi")>-1||c.indexOf("cluster-cron/exec.cgi")>-1||c.indexOf("raid/mkfs.cgi")>-1||c.indexOf("lvm/pvmove.cgi")>-1||c.indexOf("lvm/mkfs.cgi")>-1||c.indexOf("ppp-client/init.cgi")>-1||c.indexOf("fdisk/mkfs.cgi")>-1||c.indexOf("fdisk/tunefs.cgi")>-1||c.indexOf("fdisk/fsck.cgi")>-1||c.indexOf("spam/deleteall_awl.cgi")>-1||c.indexOf("quota/check_quotas.cgi")>-1||c.indexOf("virtualmin-awstats/generate.cgi")>-1||c.indexOf("postfix/flushq.cgi")>-1||c.indexOf("status/delete_mons.cgi")>-1||c.indexOf("status/refresh.cgi")>-1||c.indexOf("/webmin/upgrade.cgi")>-1){return 1}else{return 0}}var $__was=function(){var d=URI(t___wi.location),c=d.path();if(unbuffered_header()){$("html").data("data-pagescroll",true)}if($("body").hasClass("__e__")){return}if(!$('body[class^="syslog"]').length&&(($("pre")&&$("pre").length>0&&$("pre").length<=2)||$("html").data("data-pagescroll")===true)){if(__num()){setTimeout(function(){__s___()},1200)}$("body").bind("mousewheel",function(){return false});__________was_runner___=t___wi.onbeforeunload=function(b){return lang("theme_xhred_server_process_running")};t___wi.clearInterval($__was_runner);refresh=function(){$("body, html").animate({scrollTop:$(document).height()},400)};refresher=t___wi.setInterval(refresh,401)}};if(t___wi.location==t__wi_p.location){t__wi_p.f__r__s(settings_leftmenu_width,0);t__wi_p.f__c_view()}else{$("head").append('')}$("html").on("dblclick","body",function(){if($(this).find(".container-fluid").css("opacity")!=1){__s___()}});if(settings_window_autoscroll&&t___wi.location!=t__wi_p.location){$__was_runner=t___wi.setInterval($__was,201)}setTimeout(function(){if($("body").hasClass("__e__")){__lre(0)}},400);if($t_av__session===0){setTimeout(function(){__s___()},200)};
\ No newline at end of file
diff --git a/unauthenticated/js/postinit.js b/unauthenticated/js/postinit.js
index c6e3dd752..563d63284 100644
--- a/unauthenticated/js/postinit.js
+++ b/unauthenticated/js/postinit.js
@@ -70,11 +70,21 @@ if ($current_page_full && $current_page_full.indexOf("/servers/link.cgi/") > -1)
$_____link = $webprefix;
$_____link_full = $webprefix_full
} else {
- $_____link = $webprefix;
+ if ($webprefix) {
+ $_____link = $webprefix.replace(/^\//g, "");
+ $_____link = ($_____link.endsWith("/") ? $_____link : ($_____link + "/"))
+ } else {
+ $_____link = $webprefix
+ }
$_____link_full = (("/" + $webprefix.replace(/\/$/g, "")).replace(/\/\//g, "/")).replace(/\/$/g, "")
}
} else {
- $_____link = $webprefix;
+ if ($webprefix) {
+ $_____link = $webprefix.replace(/^\//g, "");
+ $_____link = ($_____link.endsWith("/") ? $_____link : ($_____link + "/"))
+ } else {
+ $_____link = $webprefix
+ }
$_____link_full = (("/" + $webprefix.replace(/\/$/g, "")).replace(/\/\//g, "/")).replace(/\/$/g, "")
}
if ($__source_host_complete.substr(-1) == "/") {
diff --git a/unauthenticated/js/postinit.min.js b/unauthenticated/js/postinit.min.js
index a729e45b3..35dd96d55 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,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-prompt").width());t__wi_p.$("body").find('.-shell-port- input[data-command="true"]').css("width",(a-b-50)+"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=' '+lang("theme_xhred_encoding_warning").replace("_hidden_",(product_name(true)=="Usermin"?"hidden":"")).replace("%prod",product_name_lang(true)).replace("%lang",$("body").data("language")).replace("%charset",$("body").data("charset")).replace("%link",$_____link_full+(product_name(true)=="Usermin"?"/language":"/webmin/edit_lang.cgi"))+"
";$("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('");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(' '+e+lang("theme_xhred_global_save")+' '+lang("theme_xhred_global_save_and_close")+" ");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(n){n.preventDefault();var m=$(this),k=m.parents("form"),o=(k.attr("enctype")&&k.attr("enctype").indexOf("form-data")>-1?0:1),l=(o?k.serialize():(new FormData(k[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:l,dataType:"text",cache:false,contentType:false,processData:false,success:function(p){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($(p).find(".panel-body > hr + h3").length&&!$(p).find(".panel-body .table").length&&!$(p).find(".panel-body form[action]").length){messenger(' '+$(p).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(p){}})},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__m("gnupg")||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=p.replace(/<(?:.|\n)*?>/gm,"").replace(/ *\([^)]*\) */g,"");p=v}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 __locked__");$(":focus").parents(".jsPanel").find("select[data-encoding]").addClass("pointer-events-none")}});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 f__g_notifications(b,d,a){if(!settings_side_slider_enabled||!settings_side_slider_notifications_enabled){return}var b=(decode_html($.trim(b.replace(/(<([^>]+)>)/ig,""))).replace(/\s+/g," ")),d=(decode_html($.trim(d.replace(/(<([^>]+)>)/ig,""))).replace(/\s+/g," "));if(Notification.permission==="granted"){var c=new Notification(b,{body:d,icon:$_____link_full+"/images/notifications_"+a+".png"});c.onclick=function(){window.focus()}}else{if(Notification.permission!=="denied"){Notification.requestPermission(function(e){if(e==="granted"){var f=new Notification(b,{body:d,icon:$_____link_full+"/images/notifications_"+a+".png"});f.onclick=function(){window.focus()}}})}}}(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__mf("syslog","save_log.cgi")){$(".container-fluid.col-lg-10.col-lg-offset-1").removeClass("col-lg-10 col-lg-offset-1").addClass("margined-top-15")}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"||(b.responseText&&(b.responseText.indexOf("reset-fonts-grids-base")>-1&&b.responseText.indexOf("window.top.location = window.location;")>-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{if($webprefix){$_____link=$webprefix.replace(/^\//g,"");$_____link=($_____link.endsWith("/")?$_____link:($_____link+"/"))}else{$_____link=$webprefix}$_____link_full=(("/"+$webprefix.replace(/\/$/g,"")).replace(/\/\//g,"/")).replace(/\/$/g,"")}}else{if($webprefix){$_____link=$webprefix.replace(/^\//g,"");$_____link=($_____link.endsWith("/")?$_____link:($_____link+"/"))}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-prompt").width());t__wi_p.$("body").find('.-shell-port- input[data-command="true"]').css("width",(a-b-50)+"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=' '+lang("theme_xhred_encoding_warning").replace("_hidden_",(product_name(true)=="Usermin"?"hidden":"")).replace("%prod",product_name_lang(true)).replace("%lang",$("body").data("language")).replace("%charset",$("body").data("charset")).replace("%link",$_____link_full+(product_name(true)=="Usermin"?"/language":"/webmin/edit_lang.cgi"))+"
";$("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('");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(' '+e+lang("theme_xhred_global_save")+' '+lang("theme_xhred_global_save_and_close")+" ");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(n){n.preventDefault();var m=$(this),k=m.parents("form"),o=(k.attr("enctype")&&k.attr("enctype").indexOf("form-data")>-1?0:1),l=(o?k.serialize():(new FormData(k[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:l,dataType:"text",cache:false,contentType:false,processData:false,success:function(p){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($(p).find(".panel-body > hr + h3").length&&!$(p).find(".panel-body .table").length&&!$(p).find(".panel-body form[action]").length){messenger(' '+$(p).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(p){}})},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__m("gnupg")||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=p.replace(/<(?:.|\n)*?>/gm,"").replace(/ *\([^)]*\) */g,"");p=v}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 __locked__");$(":focus").parents(".jsPanel").find("select[data-encoding]").addClass("pointer-events-none")}});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 f__g_notifications(b,d,a){if(!settings_side_slider_enabled||!settings_side_slider_notifications_enabled){return}var b=(decode_html($.trim(b.replace(/(<([^>]+)>)/ig,""))).replace(/\s+/g," ")),d=(decode_html($.trim(d.replace(/(<([^>]+)>)/ig,""))).replace(/\s+/g," "));if(Notification.permission==="granted"){var c=new Notification(b,{body:d,icon:$_____link_full+"/images/notifications_"+a+".png"});c.onclick=function(){window.focus()}}else{if(Notification.permission!=="denied"){Notification.requestPermission(function(e){if(e==="granted"){var f=new Notification(b,{body:d,icon:$_____link_full+"/images/notifications_"+a+".png"});f.onclick=function(){window.focus()}}})}}}(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__mf("syslog","save_log.cgi")){$(".container-fluid.col-lg-10.col-lg-offset-1").removeClass("col-lg-10 col-lg-offset-1").addClass("margined-top-15")}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"||(b.responseText&&(b.responseText.indexOf("reset-fonts-grids-base")>-1&&b.responseText.indexOf("window.top.location = window.location;")>-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 a1b15b845..ca5dc481a 100644
--- a/version
+++ b/version
@@ -1 +1 @@
-18.47-git-201705061059
+18.47-git-201705061545