From f260cd8a2ec654da59dce889580a356059c93b40 Mon Sep 17 00:00:00 2001 From: Ilia Rostovtsev Date: Sun, 19 Mar 2017 20:19:54 +0300 Subject: [PATCH] Version 18.32-patch [hot-fix #680, multiple enhancements] --- extensions/file-manager/file-manager.js | 10 +- extensions/file-manager/file-manager.min.js | 2 +- lang/ca.UTF-8 | 40 ++--- lang/cz.UTF-8 | 40 ++--- lang/da.UTF-8 | 40 ++--- lang/de.UTF-8 | 40 ++--- lang/en.UTF-8 | 40 ++--- lang/es.UTF-8 | 40 ++--- lang/fr.UTF-8 | 40 ++--- lang/it.UTF-8 | 40 ++--- lang/nl.UTF-8 | 40 ++--- lang/no.UTF-8 | 40 ++--- lang/pl.UTF-8 | 40 ++--- lang/pt.UTF-8 | 40 ++--- lang/ro_RO.UTF-8 | 40 ++--- lang/ru.UTF-8 | 40 ++--- lang/zh_CN.UTF-8 | 40 ++--- unauthenticated/css/authentic.css | 148 +++++++++++++----- unauthenticated/css/authentic.min.css | 2 +- unauthenticated/css/bundle.min.css | 2 +- unauthenticated/css/palettes/gunmetal.min.css | 2 +- .../css/palettes/nightrider.min.css | 2 +- unauthenticated/js/content.js | 46 +++--- unauthenticated/js/content.min.js | 2 +- unauthenticated/js/postinit.js | 94 ++++++----- unauthenticated/js/postinit.min.js | 2 +- 26 files changed, 493 insertions(+), 419 deletions(-) diff --git a/extensions/file-manager/file-manager.js b/extensions/file-manager/file-manager.js index 02083bc31..0a5abc146 100644 --- a/extensions/file-manager/file-manager.js +++ b/extensions/file-manager/file-manager.js @@ -126,7 +126,7 @@ function __f____success(a, d, D, f, c, r, h, e, A, B, s, o, k, v, w) { var F = JSON.parse(G), E = '
'; $.each(F, function(I, H) { - E += "• " + I + " - " + H + "
" + E += "• " + I + " - " + H + "
" }); E += "
"; return E @@ -466,7 +466,7 @@ function __f____a(n, e) { $(".__o__f_m-search-results").remove(); $(".ui_checked_columns.directory_go_up").addClass("hidden"); $_br = $(".breadcrumb > li:last-child"); - $_br.html($_br.html() + '' + ($(".breadcrumb > li:last-child a i").hasClass("fa-search") ? "   / " : "") + '  :  `' + o + "" + (m && !k ? ' [' + m + "]" : (m && k) ? ' [' + m + ' -> ' + k + "]" : "") + "`"); + $_br.html($_br.html() + '' + ($(".breadcrumb > li:last-child a i").hasClass("fa-search") ? "   / " : "") + '  :  `' + o + "" + (m && !k ? ' [' + m + "]" : (m && k) ? ' [' + m + ' -> ' + k + "]" : "") + "`"); var a = 5000; if (__list_table_total_rows > 1) { if (m && k) { @@ -1653,7 +1653,7 @@ function ___f__tw() { $("body").on("click", "#createFolderDialog button._at_filemanager_create_folder_submit", function(d) { d.preventDefault(); d.stopPropagation(); - messenger('   ' + lang("theme_xhred_filemanager_creating_directory") + " `" + $('#createFolderForm input[name="name"]').val() + "`. " + lang("theme_xhred_global_please_wait") + "", 10, "info", "create_folder_info"); + messenger('   ' + lang("theme_xhred_filemanager_creating_directory") + " `" + $('#createFolderForm input[name="name"]').val() + "`. " + lang("theme_xhred_global_please_wait") + "", 10, "info", "create_folder_info"); __f____a("create_folder", false) }); $("body").on("submit", "#createFolderForm", function(d) { @@ -1683,7 +1683,7 @@ function ___f__tw() { $("body").on("click", "#createFileDialog button._at_filemanager_create_file_submit", function(d) { d.preventDefault(); d.stopPropagation(); - messenger('   ' + lang("theme_xhred_filemanager_creating_file") + " `" + $('#createFileForm input[name="name"]').val() + "`. " + lang("theme_xhred_global_please_wait"), 10, "info", "create_file_info"); + messenger('   ' + lang("theme_xhred_filemanager_creating_file") + " `" + $('#createFileForm input[name="name"]').val() + "`. " + lang("theme_xhred_global_please_wait"), 10, "info", "create_file_info"); __f____a("create_file", false) }); $("body").on("submit", "#createFileForm", function(d) { @@ -1713,7 +1713,7 @@ function ___f__tw() { $("body").on("click", "#downFromUrlDialog button.o__f_m-submitter-url_download", function(d) { d.preventDefault(); d.stopPropagation(); - messenger('   ' + lang("theme_xhred_filemanager_downloading_from") + " " + URI($('#downFromUrlForm input[name="link"]').val()).hostname() + ". " + lang("theme_xhred_global_please_wait"), 1000000, "info", "url_download_info"); + messenger('   ' + lang("theme_xhred_filemanager_downloading_from") + " " + URI($('#downFromUrlForm input[name="link"]').val()).hostname() + ". " + lang("theme_xhred_global_please_wait"), 1000000, "info", "url_download_info"); __f____a("url_download", false) }); $("body").on("submit", "#downFromUrlForm", function(d) { diff --git a/extensions/file-manager/file-manager.min.js b/extensions/file-manager/file-manager.min.js index e04f868b3..ef143b74f 100644 --- a/extensions/file-manager/file-manager.min.js +++ b/extensions/file-manager/file-manager.min.js @@ -3,4 +3,4 @@ * Copyright 2014-2017 Ilia Rostovtsev * Licensed under MIT (https://github.com/qooob/authentic-theme/blob/master/LICENSE) */ -;t__wi_p.$____loader_block__=1;function __f___mn(){return $g__m__name}function checkSelected(){return _f__table().dataTable().$("tr.hl-aw",{filter:"applied"}).length}function __f___gd(){return $(_f__table().fnGetNodes()).find("input").add($(".active form > input")).serialize()}function _f__gr(b){if(b){return $(_f__table().fnGetNodes()).find("input:checked")}else{return $(_f__table().fnGetNodes()).find("input")}}function __f__ld__sh(){if(typeof t__wi_p.NProgress=="object"){t__wi_p.NProgress.start()}}function __f__ld__bg(){modal_dismiss();__f_____ul()}function __f__upd_____tl(b){var a=$("div.total").children().clone();$("div.total").empty().html(b+". ").append(a)}function __f___ub(){$("div button.o__f_m-button-delete").removeClass("disabled").attr("onclick","removeDialog()");$(".o__f_m-button-chmod").removeClass("disabled").find("a").attr("onclick","chmodDialog()");$(".o__f_m-button-chown").removeClass("disabled").find("a").attr("onclick","chownDialog()");$(".o__f_m-button-chattr").removeClass("disabled").find("a").attr("onclick","chattrDialog()");$(".o__f_m-button-chcon").removeClass("disabled").find("a").attr("onclick","chconDialog()");$(".o__f_m-button-compress").removeClass("disabled").find("a").attr("onclick","compressDialog()");$(".o__f_m-button-copy").removeClass("disabled");$(".o__f_m-button-cut").removeClass("disabled")}function __f___lb(){$("div button.o__f_m-button-delete").addClass("disabled").removeAttr("onclick");$(".o__f_m-button-chmod").addClass("disabled").find("a").removeAttr("onclick");$(".o__f_m-button-chown").addClass("disabled").find("a").removeAttr("onclick");$(".o__f_m-button-chattr").addClass("disabled").find("a").removeAttr("onclick");$(".o__f_m-button-chcon").addClass("disabled").find("a").removeAttr("onclick");$(".o__f_m-button-compress").addClass("disabled").find("a").removeAttr("onclick");$(".o__f_m-button-copy").addClass("disabled").find("a").removeAttr("onclick");$(".o__f_m-button-cut").addClass("disabled").find("a").removeAttr("onclick")}function __f_____sl(){}function __f_____hl(){}function __f_____hl_(){setTimeout(function(){},750)}function __f_____lo(c,d){if(d===true){$("body").find("#list_form table tbody").addClass((c?" o__f_m-updating":"")+"");$("body").find("ul.pagination").addClass("pointer-events-none");$(".nav.nav-tabs li").addClass("disabled");$("#file-manager-new-instance").addClass("disabled_no_styling cursor-na")}__f_____sl()}function __f_____ul(){$("body").find("#list_form table tbody").css("opacity","1").removeClass("o__f_m-updating");$("body").find("ul.pagination").css("opacity","1").removeClass("pointer-events-none");__f_____hl();$(".btn-group.pull-right > .btn-group > button, .nav.nav-tabs li").removeClass("disabled");$("#file-manager-new-instance").removeClass("disabled_no_styling cursor-na")}function __init__dt_ck__e(){if($(".active td.dataTables_empty").length){$(".active table").attr("style","border-top-width: 1px !important;");$(".active td.dataTables_empty").css({padding:"4px","border-top-color":"#eaeaea"});$(".dataTables_paginate").addClass("hidden");$(".active td.dataTables_empty").attr("colspan",(parseInt($(".active thead tr th:visible").length)));setTimeout(function(){if($(".__o__f_m-search-results").length){$("td.dataTables_empty").html(lang("theme_xhred_datatable_no_search_results"))}},0)}else{$(".active table, .active td.dataTables_empty").removeAttr("style");$(".dataTables_paginate").removeClass("hidden")}}function __f____success(a,d,D,f,c,r,h,e,A,B,s,o,k,v,w){var x=$.parseHTML(a),m=($(x[2]).html()&&$(x[2]).html().length),z=($(x[3]).html()&&$(x[3]).html().length),n=(typeof w=="undefined"?false:w),u=$(".active form input#path").val(),q=1,p=1,t=1;function C(G){var F=JSON.parse(G),E='
';$.each(F,function(I,H){E+="• "+I+" - "+H+"
"});E+="
";return E}if(n&&n[0]=="compress"){var y=n[1],b=n[2];if(u!=y){q=0;p=0;t=0;if(m){messenger('   '+((lang("theme_xhred_filemanager_successful_compression_bg_with_errors").replace("%file",b).replace("%path",y))+(C($(x[2]).text()))),e,(A),v+"_"+A)}else{messenger('   '+(lang("theme_xhred_filemanager_successful_compression_bg").replace("%file",b).replace("%path",y)),o,"info",v+"_"+k)}}}if(m&&q){messenger('   '+lang(h+(z?"_fatal":""))+(C($(x[2]).text())),e,(z?"error":A),v+"_"+A)}else{if(p){messenger('   '+lang(s),o,k,v+"_"+k)}}c&&$("."+c).remove();if(!z){d&&__f_____ul();D&&modal_dismiss();(f&&t)&&__f___u("upd",$(x[1]).find("table.ui_columns").find(".ui_checked_columns"),1,false,false,$(x[0]).text())}}function __f____a(n,e){if(e&&!$.isArray(e)){e=encodeURIParam(e,"path")}if(n==="extract"){}var q=$('#list_form > input[type="hidden"][name="path"]').val();if(n!="bookmark"){__f_____lo(false,true)}if(n==="copy"||n==="cut"){__f__ld__sh();$.ajax({type:"POST",url:$g__e__path+"/file-manager/"+n+".cgi?module="+$g__m__name,data:__f___gd(),dataType:"text",success:function(a){localStorage.removeItem($hostname+"-cut");localStorage.removeItem($hostname+"-copy");localStorage.setItem($hostname+"-"+n,1);$(".o__f_m-button-paste").removeClass("disabled");if(n==="copy"){messenger('   '+lang("theme_xhred_filemanager_copying_successful"),1.5,"info",n+"_info")}else{if(n==="cut"){messenger('   '+lang("theme_xhred_filemanager_cutting_successful"),1.5,"warning",n+"_warning")}}__f_____ul()},error:function(a){messenger('   '+lang("theme_xhred_filemanager_buffer_error"),10,"error",n+"_error")}})}if(n==="paste"){__f__ld__sh();$.ajax({type:"POST",url:$g__e__path+"/file-manager/paste.cgi?path="+encodeURIComponentSafe(q)+"&module="+$g__m__name,data:false,dataType:"text",success:function(a){messenger_hide("paste_info");g=$.parseHTML(a);var c=(get_cookie("file-manager-response_count")=="1"?1:2);var b=get_cookie("file-manager-response");if(b.indexOf("err")===-1){localStorage.removeItem($hostname+"-cut");if(!localStorage.getItem($hostname+"-copy")){$(".o__f_m-button-paste").addClass("disabled")}}if(b=="err"){messenger('   '+$(g[2]).html(),20,"warning",n+"_warning");__f___u("upd",$(g[1]).find("table.ui_columns").find(".ui_checked_columns"),1,n,false,$(g[0]).text())}else{if(b=="merr"){messenger('  '+lang("theme_xhred_filemanager_move_into_self"),10,"error",n+"_error");__f_____ul()}else{if(b=="ep"){bootbox.dialog({message:lang("theme_xhred_filemanager_target_conflict_message_"+c+""),title:'   '+lang("theme_xhred_filemanager_target_conflict_"+c+"")+"",buttons:{success:{label:'   '+lang("theme_xhred_filemanager_target_conflict_paste")+"  ",className:"btn-primary vertical-align-top ",callback:function(){$.ajax({type:"POST",url:$g__e__path+"/file-manager/paste.cgi?path="+encodeURIComponentSafe(q)+"&module="+$g__m__name+"&ua=2",data:false,dataType:"text",success:function(d){d=$.parseHTML(d);if($(d[2]).html().length>1){messenger('   '+$(d[2]).html(),15,"warning",n+"_warning")}else{messenger('   '+lang("theme_xhred_filemanager_pasting_and_copying_"+c+""),5,"success",n+"_success")}__f___u("upd",$(d[1]).find("table.ui_columns").find(".ui_checked_columns"),1,n,false,$(d[0]).text())},error:function(d){}})}},danger:{label:'   '+lang("theme_xhred_filemanager_target_conflict_replace")+"  ",className:"btn-danger vertical-align-top margined-left--2",callback:function(){$.ajax({type:"POST",url:$g__e__path+"/file-manager/paste.cgi?path="+encodeURIComponentSafe(q)+"&module="+$g__m__name+"&ua=1",data:false,dataType:"text",success:function(d){d=$.parseHTML(d);if($(d[2]).html().length>1){messenger('   '+$(d[2]).html(),15,"warning",n+"_warning")}else{messenger('   '+lang("theme_xhred_filemanager_pasting_and_replacing_"+c+""),5,"success",n+"_success")}__f___u("upd",$(d[1]).find("table.ui_columns").find(".ui_checked_columns"),1,n,false,$(d[0]).text())},error:function(d){}})}}},onEscape:function(){}})}else{if(b=="cc"){messenger('   '+lang("theme_xhred_filemanager_pasting_and_copying_"+c+""),5,"success",n+"_success");__f___u("upd",$(g[1]).find("table.ui_columns").find(".ui_checked_columns"),1,n,false,$(g[0]).text())}else{messenger('   '+lang("theme_xhred_filemanager_pasting_successful"),5,"success",n+"_success");__f___u("upd",$(g[1]).find("table.ui_columns").find(".ui_checked_columns"),1,n,false,$(g[0]).text())}}}}},error:function(a){}})}if(n==="extract"){__f__ld__sh();$.ajax({type:"POST",url:$g__e__path+"/file-manager/extract.cgi?&module="+$g__m__name,data:__f___gd(),dataType:"text",success:function(a){g=$.parseHTML(a);__f___u("upd",$(g[1]).find("table.ui_columns").find(".ui_checked_columns"),1,n,false,$(g[0]).text())},error:function(a){}})}if(n==="bookmark"){__f_____sl();__f_____hl_();$.ajax({type:"POST",url:$g__e__path+"/file-manager/"+e+"&module="+$g__m__name,data:false,dataType:"text",success:function(a){exiting_book_mark=f_m__bm__u();if(exiting_book_mark.length){messenger('   '+lang("theme_xhred_filemanager_unbookmark_success").replace("%value",(q?q:"/")),5,"warning","bookmarkAddRemove")}else{messenger('   '+lang("theme_xhred_filemanager_bookmark_success").replace("%value",(q?q:"/")),5,"info","bookmarkAddRemove")}},error:function(a){}})}if(n==="delete"){__f__ld__sh();$.ajax({type:"POST",url:$g__e__path+"/file-manager/delete.cgi?module="+$g__m__name,data:__f___gd(),dataType:"text",success:function(a){messenger_hide("delete_info");__f____success(a,1,1,1,false,"fa-exclamation-triangle","theme_xhred_filemanager_delete_warning",30,"warning","fa-trash-o","theme_xhred_filemanager_successful_deletion",2,"info",n)},error:function(a){}})}if(n==="rename"){__f__ld__sh();var h=$('#list_form > input[type="hidden"][name="path"]').val();modal_dismiss();$.ajax({type:"POST",url:$g__e__path+"/file-manager/rename.cgi?module="+$g__m__name,data:$("#renameForm").serialize(),dataType:"text",success:function(a){g=$.parseHTML(a);if(!$(g[1]).find("table.ui_columns").length){messenger('   '+a,10,"error",n+"_error");__f_____ul();return}__f___u("upd",$(g[1]).find("table.ui_columns").find(".ui_checked_columns"),1,n)},error:function(a){}})}if(n==="create_folder"){__f__ld__sh();var h=encodeURIComponentSafe($('#list_form > input[type="hidden"][name="path"]').val());modal_dismiss();$.ajax({type:"POST",url:$g__e__path+"/file-manager/create_folder.cgi?module="+$g__m__name,data:$("#createFolderForm").serialize(),dataType:"text",success:function(a){g=$.parseHTML(a);if(!$(g[1]).find("table.ui_columns").length){messenger('   '+a,10,"error",n+"_error");__f_____ul();return}__f___u("upd",$(g[1]).find("table.ui_columns").find(".ui_checked_columns"),1,n,false,$(g[0]).text())},error:function(a){}})}if(n==="create_file"){__f__ld__sh();var h=$('#list_form > input[type="hidden"][name="path"]').val();modal_dismiss();$.ajax({type:"POST",url:$g__e__path+"/file-manager/create_file.cgi?module="+$g__m__name,data:$("#createFileForm").serialize(),dataType:"text",success:function(a){g=$.parseHTML(a);if(!$(g[1]).find("table.ui_columns").length){messenger('   '+a,10,"error",n+"_error");__f_____ul();return}__f___u("upd",$(g[1]).find("table.ui_columns").find(".ui_checked_columns"),1,n,false,$(g[0]).text())},error:function(a){}})}if(n==="url_download"){__f__ld__sh();var h=$('#list_form > input[type="hidden"][name="path"]').val();modal_dismiss();$.ajax({type:"POST",url:$_____link_full+"/"+__f___mn()+"/http_download.cgi",data:$("#downFromUrlForm").serialize(),dataType:"text",success:function(a){messenger_hide("url_download_info");if(!$(a).find(".panel-body").text().match(/100 %/)&&!$(a).find(".panel-body").text().match(/100%/)&&!$(a).find(".panel-body h3").length){messenger('   '+$(a).find(".panel-body").html(),10,"error",n+"_error");__f_____ul();return}else{if($(a).find(".panel-body h3").length){messenger('   '+$(a).find(".panel-body h3").html(),10,"error",n+"_error");return}else{messenger('   '+$(a).find(".panel-body").html(),5,"success",n+"_success");__f____r("get","index.cgi?path="+(h?encodeURIComponentSafe(h):""),false,0)}}},error:function(a){}})}if(n==="search"){__f__ld__sh();var h=$('#list_form > input[type="hidden"][name="path"]').val(),o=$("#searchForm").find('input[name="query"]').val(),m=$.trim($("#searchForm").find('input[name="grepstring"]').val()),k=$.trim($("#searchForm").find('input[name="grepreplace"]').val()),p=(m&&!k?" fa-1_50x fa-file-find":m&&k?" fa-1_50x fa-find-replace":" fa-lg fa-search");modal_dismiss();if(m&&!k){messenger('   '+lang("theme_xhred_filemanager_searching_matching").replace("%value",o).replace("%text",m)+" "+lang("theme_xhred_global_please_wait"),10000,"info",n+"_preMe")}else{if(m&&k){messenger('   '+lang("theme_xhred_filemanager_searching_replacing").replace("%value",o).replace("%text",m).replace("%replace",k)+" "+lang("theme_xhred_global_please_wait"),10000,"warning",n+"_preMe")}else{messenger('   '+lang("theme_xhred_filemanager_searching").replace("%value",o)+" "+lang("theme_xhred_global_please_wait"),10000,"info",n+"_preMe")}}$.ajax({type:"POST",url:$g__e__path+"/file-manager/search.cgi?module="+$g__m__name,data:$("#searchForm").serialize(),dataType:"text",success:function(b){xx=$.parseHTML(b);__f___u("upd",$(xx[1]).find("table.ui_columns").find(".ui_checked_columns"),0,"search",false,$(xx[0]).text());var c=$('body[class*="'+$g__o__f_m+'"]');if(c.find(".breadcrumb .fa-hdd-o").length){c.find(".breadcrumb .fa-hdd-o").removeClass("fa-hdd-o").addClass("fa-search").addClass("text-light").parent("a").removeAttr("href").replaceTagName("span")}else{c.find(".breadcrumb li:first-child a").html('')}c.find(".breadcrumb li:not(:first-child) a").replaceWith(function(){return $("",{html:$(this).html()})});c.find(".breadcrumb li").addClass("text-light");$(".__o__f_m-search-results").remove();$(".ui_checked_columns.directory_go_up").addClass("hidden");$_br=$(".breadcrumb > li:last-child");$_br.html($_br.html()+''+($(".breadcrumb > li:last-child a i").hasClass("fa-search")?"   / ":"")+'  :  `'+o+""+(m&&!k?' ['+m+"]":(m&&k)?' ['+m+' -> '+k+"]":"")+"`");var a=5000;if(__list_table_total_rows>1){if(m&&k){messenger('   '+lang("theme_xhred_filemanager_search_replaced_multi").replace("%value",__list_table_total_rows),10,"success",n+"_success");a=9000}else{messenger('   '+lang("theme_xhred_filemanager_search_founds").replace("%value",__list_table_total_rows),6,"success",n+"_success")}}else{if(__list_table_total_rows==1){if(m&&k){messenger('   '+lang("theme_xhred_filemanager_search_replaced"),6,"success",n+"_success")}else{messenger('   '+lang("theme_xhred_filemanager_search_found"),6,"success",n+"_success")}}else{messenger('   '+lang("theme_xhred_filemanager_search_no_matches"),6,"error",n+"_error")}}setTimeout(function(){messenger_hide("search_preMe")},a)},error:function(a){}})}if(n==="chmod"){__f__ld__sh();$("#list_form").append('');$("#list_form").append('');$.ajax({type:"POST",url:$g__e__path+"/file-manager/chmod.cgi?module="+$g__m__name,data:__f___gd(),dataType:"text",success:function(a){setTimeout(function(){messenger_hide("chmod_info")},2000);__f____success(a,1,1,1,"_o__f_m-tmp-chmod-inputs","fa-exclamation-triangle","theme_xhred_filemanager_successful_permissions_with_errors",15,"warning","fa-cogs","theme_xhred_filemanager_successful_permissions",3,"success",n)},error:function(a){}})}if(n==="chown"){__f__ld__sh();$("#list_form").append('');$("#list_form").append('');$("#list_form").append('');$.ajax({type:"POST",url:$g__e__path+"/file-manager/chown.cgi?module="+$g__m__name,data:__f___gd(),dataType:"text",success:function(a){setTimeout(function(){messenger_hide("chown_info")},2000);__f____success(a,1,1,1,"_o__f_m-tmp-chown-inputs","fa-exclamation-triangle","theme_xhred_filemanager_successful_ownership_with_errors",15,"warning","fa-users","theme_xhred_filemanager_successful_ownership",3,"success",n)},error:function(a){}})}if(n==="chattr"){__f__ld__sh();$("#list_form").append('');$("#list_form").append('');$.ajax({type:"POST",url:$g__e__path+"/file-manager/chattr.cgi?module="+$g__m__name,data:__f___gd(),dataType:"text",success:function(a){setTimeout(function(){messenger_hide("chattr_info")},2000);__f____success(a,1,1,1,"_o__f_m-tmp-chattr-inputs","fa-exclamation-triangle","theme_xhred_filemanager_successful_attributes_with_errors",15,"warning","fa-tags","theme_xhred_filemanager_successful_attributes",3,"success",n)},error:function(a){}})}if(n==="chcon"){__f__ld__sh();$("#list_form").append('');$("#list_form").append('');$.ajax({type:"POST",url:$g__e__path+"/file-manager/chcon.cgi?module="+$g__m__name,data:__f___gd(),dataType:"text",success:function(a){setTimeout(function(){messenger_hide("chcon_info")},2000);__f____success(a,1,1,1,"_o__f_m-tmp-chcon-inputs","fa-exclamation-triangle","theme_xhred_filemanager_successful_secontext_with_errors",15,"warning","fa-tags","theme_xhred_filemanager_successful_secontext",3,"success",n)},error:function(a){}})}if(n==="compress"){__f__ld__sh();$("#list_form").append('');$("#list_form").append('');__f__ld__bg();$.ajax({type:"POST",url:$g__e__path+"/file-manager/compress.cgi?module="+$g__m__name,data:__f___gd(),dataType:"text",success:function(a){setTimeout(function(){if(t__wi_p.t___p__xhr_r===0){messenger_hide("compress_info")}},2000);__f____success(a,1,0,1,"_o__f_m-tmp-compress-inputs","fa-exclamation-circle","theme_xhred_filemanager_successful_compression_with_errors",15,"warning","fa-file-archive-o","theme_xhred_filemanager_successful_compression",8,"success",n,[n,q,e[0]+$('select option[value="'+e[1]+'"]').text()])},error:function(a){}})}}function __f___cs(){$("#list_form table tbody tr").removeClass("m-active m-not-active")}function __f___ds_a(){var a=document.getElementsByClassName("ui_checked_columns");for(i=0;i input[type="hidden"][name="path"]').val().replace(/\/$/g,"")+"/"+d.find("td:nth-child(3) a").text(),a=d.find("td.column-filesize").find("label"),b=_f__table().dataTable().$("tr.hl-aw",{filter:"applied"});__f_____sl();a.html('');$.ajax({type:"POST",url:$_____link_full+"/index.cgi/?xhr-get_size=1&xhr-get_size_path="+c,data:false,dataType:"text",success:function(e){var k=e.split("|"),h=_f__table().DataTable();h.cell(d.find("td.column-filesize")).data(k[0]).draw();var f;if(isNaN(parseInt(k[1]))){f=0}else{f=parseInt(k[1])}$(".total_size_data").data("total",(parseInt($(".total_size_data").data("total"))+f));if(!b.find("td.column-filesize").find("label").find(".cspinner").length){$.ajax({type:"POST",url:$_____link_full+"/index.cgi/?xhr-get_nice_size=1&xhr-get_nice_size_sum="+parseInt($(".total_size_data").data("total")),data:false,dataType:"text",success:function(m){$(".total_size_data").text(m);$(".total_size_data").parent("span").removeClass("hidden")},error:function(m){}});setTimeout(function(){__f_____hl()},600)}},error:function(e){}})})}function __f__c__m(){var a=$(".tab-pane.active form table");$(".tab-pane table").unbind("contextmenu");a.contextMenu({menuSelector:"#__f__c__m",menuSelectorTriggered:function(d,b){if($(".tab-pane.active table tbody tr input").length&&d.parents("tr").find("input:checked").length===0){__f___ds_a();d.parents("tr").find("td:first-child input").trigger("click");var c=jQuery.Event("keydown");c.which=40;$("body").trigger(c);d.parents("tr").find("td:first-child").trigger("contextmenu")}if(d.parents("tr").find("i.fa-folder-open-o").length){$(".context-o__f_m-dependent-goto").removeClass("hidden")}else{$(".context-o__f_m-dependent-goto").addClass("hidden")}if(d.parents("tr").find('a[href*="index.cgi?path="]').length){$(".context-o__f_m-dependent-open-new-tab").removeClass("hidden")}else{$(".context-o__f_m-dependent-open-new-tab").addClass("hidden")}if(!d.parents("tr").find("i.fa-pencil-square-o").length){$(".context-o__f_m-dependent-edit").addClass("hidden")}else{$(".context-o__f_m-dependent-edit").removeClass("hidden")}if(!d.parents("tr").find('a[href*="download.cgi"]').length){$(".context-o__f_m-dependent-download").addClass("hidden")}else{$(".context-o__f_m-dependent-download").removeClass("hidden")}if(!d.parents("tr").find("i.fa.fa-extract-archive").length){$(".context-o__f_m-dependent-extract").addClass("hidden")}else{$(".context-o__f_m-dependent-extract").removeClass("hidden")}if($(".o__f_m-button-compress").hasClass("disabled")){$("a[data-context-newarchive]").addClass("disabled").parent("li").addClass("disabled")}else{$("a[data-context-newarchive]").removeClass("disabled").parent("li").removeClass("disabled")}if($(".o__f_m-button-copy").hasClass("disabled")){$("a[data-context-copy], a[data-context-clipboard]").addClass("disabled").parent("li").addClass("disabled")}else{$("a[data-context-copy], a[data-context-clipboard]").removeClass("disabled").parent("li").removeClass("disabled")}if($(".o__f_m-button-cut").hasClass("disabled")){$("a[data-context-cut]").addClass("disabled").parent("li").addClass("disabled")}else{$("a[data-context-cut]").removeClass("disabled").parent("li").removeClass("disabled")}if($(".o__f_m-button-paste").hasClass("disabled")){$("a[data-context-paste]").addClass("disabled").parent("li").addClass("disabled")}else{$("a[data-context-paste]").removeClass("disabled").parent("li").removeClass("disabled")}if($(".o__f_m-button-delete").hasClass("disabled")){$("a[data-context-delete]").addClass("disabled").parent("li").addClass("disabled");$("a[data-context-rename]").addClass("disabled").parent("li").addClass("disabled")}else{$("a[data-context-delete]").removeClass("disabled").parent("li").removeClass("disabled");$("a[data-context-rename]").removeClass("disabled").parent("li").removeClass("disabled")}f_m__bm__cm();if($(".o__f_m-button-chmod").hasClass("disabled")&&$(".o__f_m-button-chown").hasClass("disabled")){$(".context-properties").addClass("disabled")}else{$(".context-properties").removeClass("disabled")}_f__table().dataTable().$("tr.hl-aw",{filter:"applied"}).length?$("a[data-context-calculate-selected-size]").parent("li").removeClass("hidden"):$("a[data-context-calculate-selected-size]").parent("li").addClass("hidden");if($(".o__f_m-button-chmod").hasClass("disabled")){$("a[data-context-chmod]").addClass("disabled").parent("li").addClass("disabled")}else{$("a[data-context-chmod]").removeClass("disabled").parent("li").removeClass("disabled")}if($(".o__f_m-button-chown").hasClass("disabled")){$("a[data-context-chown]").addClass("disabled").parent("li").addClass("disabled")}else{$("a[data-context-chown]").removeClass("disabled").parent("li").removeClass("disabled")}if($(".o__f_m-button-chattr").hasClass("disabled")){$("a[data-context-chattr]").addClass("disabled").parent("li").addClass("disabled")}else{$("a[data-context-chattr]").removeClass("disabled").parent("li").removeClass("disabled")}if($(".o__f_m-button-chcon").hasClass("disabled")){$("a[data-context-chcon]").addClass("disabled").parent("li").addClass("disabled")}else{$("a[data-context-chcon]").removeClass("disabled").parent("li").removeClass("disabled")}},menuSelected:function(c,e){if(e.data("context-goto")=="1"){c.parents("tr").find('a.o__f_m-follow-file[href^="index.cgi?"]').trigger("click")}if(e.data("context-open-new-tab")=="1"){__f___nt(URI.parseQuery(URI(decodeURIComponent(c.parents("tr").find('a[href*="index.cgi?path="]').attr("href"))).query())["path"].replace("//","/"),1)}if(e.data("context-select-all")=="1"){$('button[onclick="selectAll()"]').trigger("click")}if(e.data("context-deselect-all")=="1"){__f___ds_a();__r____changed()}if(e.data("context-invert-selection")=="1"){$('button[onclick="invertSelection()"]').trigger("click")}if(e.data("context-refresh")=="1"){$("button > .fa-refresh").parent("button").trigger("click")}if(e.data("context-newfile")=="1"){$('a[onclick="createFileDialog()"]').trigger("click")}if(e.data("context-newfolder")=="1"){$('a[onclick="createFolderDialog()"]').trigger("click")}if(e.data("context-newarchive")=="1"){$('a[onclick="compressDialog()"]').trigger("click")}if(e.data("context-upload")=="1"){$('a[onclick="viewReadyForUpload()"]').trigger("click")}if(e.data("context-download")=="1"){$('a[onclick="downFromUrlDialog()"]').trigger("click")}if(e.data("context-clipboard")=="1"){var b=URI(c.parents("tr").find("img").parent("a").attr("href")),f=(b.filename()?("/"+b.filename()):"");$("body").append('');var d=new Clipboard(".tmp-clipboard-obj");$(".tmp-clipboard-obj").trigger("click");$(".tmp-clipboard-obj").remove();d.destroy()}if(e.data("context-copy")=="1"){$(".o__f_m-button-copy a").trigger("click")}if(e.data("context-cut")=="1"){$(".o__f_m-button-cut a").trigger("click")}if(e.data("context-paste")=="1"){$(".o__f_m-button-paste a").trigger("click")}if(e.data("context-delete")=="1"){$(".o__f_m-button-delete").trigger("click")}if($(e).is(".file-manager-remove-bookmark")){$('.btn-group .at-o__f_m-favorites-dropdown a[href="'+$(e).parent("a").attr("href")+'"]').find(".file-manager-remove-bookmark").trigger("click");$(e).parent("a").remove();return}if(e.data("context-bookmarks")=="1"){$('a[href^="bookmark.cgi"]').trigger("click")}if(e.data("context-search")=="1"){$('a[onclick="searchDialog()"]').trigger("click")}if(e.data("context-edit")=="1"){c.parents("tr").addClass("m-active");c.parents("tr").find('a[href^="edit_file.cgi?"]').trigger("click")}if(e.data("context-rename")=="1"){c.parents("tr").find('a[onclick^="renameDialog("]').trigger("click")}if(e.data("context-download-file")=="1"){$(c.parents("tr").find('a[href^="download.cgi?"]'))[0].click()}if(e.data("context-extract")=="1"){c.parents("tr").find('a[href^="extract.cgi?"]').trigger("click")}if(e.data("context-calculate-selected-size")=="1"){__f__get_fs()}if(e.data("context-chmod")=="1"){$('a[onclick="chmodDialog()"]').trigger("click")}if(e.data("context-chown")=="1"){$('a[onclick="chownDialog()"]').trigger("click")}if(e.data("context-chattr")=="1"){$('a[onclick="chattrDialog()"]').trigger("click")}if(e.data("context-chcon")=="1"){$('a[onclick="chconDialog()"]').trigger("click")}}})}function __f___u(B,y,C,z,E,q){if(typeof E=="object"){var n=E[1],r=E[2],v=E[3],t=E[4],E=E[0]}else{var n=true}if($__source_file=="config.cgi"){return}var x=null,k=null,m=null,o=null,A=$("#path").val();typeof q=="undefined"?q=false:false;((typeof E=="undefined"||(typeof E!="undefined"&&E===false))?(x=false):(x=true));(!x?(k=".tab-pane.active form table"):(k='.tab-pane[id="tab-'+E+'"] form table'));(!x?(m=".tab-pane.active"):(m='.tab-pane[id="tab-'+E+'"]'));var o=$(m).attr("id").replace(/^\D+/g,""),o=(o?o:1);var p=$("body").find(k).attr("id"),e=p?parseInt(p.replace(/^\D+/g,"")):"none";(!x&&e!=="none")&&$("#DataTables_Table_"+e).dataTable().fnDestroy();if(B==="upd"){var u=y.find(".fa-font").first().parents("td").index();$(k).addClass("___f_m__q__");$("body").find(k+" tbody").empty();$("body").find(k+" tbody").append(y);!n&&$(m).data("totalValue",v).data("breadcrumb",$(".breadcrumb").clone());(q&&!r)&&__f__upd_____tl(q);__mcr();__f_____ul()}else{var u=$(k).find(".fa-font").first().parents("td").index()}if(typeof localStorage["DataTables_DataTables_Table_"+e+"_/"+__f___mn()+"/index.cgi"]!="undefined"){_filemanager_data=JSON.parse(localStorage["DataTables_DataTables_Table_"+e+"_/"+__f___mn()+"/index.cgi"])}else{_filemanager_data=false}var s=($.inArray($("#headln2r > div.btn-group > a[data-config-pagination]").data("config-pagination"),[5,10,15,20,25,30,35,40,50,100,250,500,1000])>-1?$("#headln2r > div.btn-group > a[data-config-pagination]").data("config-pagination"):25),D=(($.inArray(parseInt(localStorage.getItem($hostname+"-_________per_page")),[5,10,15,20,25,30,35,40,50,100,250,500,1000])>-1)?parseInt(localStorage.getItem($hostname+"-_________per_page")):false),w=((_filemanager_data.length&&!D)?(D?D:_filemanager_data.length):s);localStorage.removeItem($hostname+"-_________per_page");if(u!=3&&u!=4){u=false}__f__c__m(1);$(k).unbind("click");$(k).on("click",'a .fa.fa-pencil-square-o, a[href^="edit_file.cgi"]',function(a){a.preventDefault();a.stopPropagation();var a=jQuery.Event("keydown");a.which=115;$("body").trigger(a)});window["_f__table"+o]=$(k).dataTable({order:[],aaSorting:[],bDestroy:true,pageLength:25,preDrawCallback:function(){if(config_portable_module_filemanager_hide_actions==true){var c=$(k),a=$(".tab-pane.active form table"),f=a.find(".fa-font"),d=a.find(".fa-i-cursor"),b=f.length?f.parents("td").index():d.parents("td").index();if(b>1){$(k+" thead th").eq(b).addClass("hidden");c.find(".fa-font").length?c.find(".fa-font").parents("td").addClass("hidden"):c.find(".fa-i-cursor").parents("td").addClass("hidden")}}},fnDrawCallback:function(b){$(".tab-pane .paginate_button.previous > a").html('').css("border-top-left-radius","0").css("border-bottom-left-radius","0");$(".tab-pane .paginate_button.next > a").html('').css("border-top-right-radius","0").css("border-bottom-right-radius","0");$(k).find(".fa-font").removeClass("fa-font").addClass("fa-i-cursor").css("margin-right","5px").css("margin-left","5px");$(k).find(".fa-external-link").removeClass("fa-external-link").addClass("fa-extract-archive").css("margin-right","5px").css("margin-left","5px");$(k).find(".fa-edit").addClass("fa-pencil-square-o").css("margin-right","7px").css("margin-left","7px");$(k).find(".fa-arrow-right").removeClass("fa-arrow-right").addClass("fa-folder-open-o").parent("a").addClass("o__f_m-follow-file");__list_table_total_rows=b.fnRecordsTotal();if(b.fnRecordsTotal()<=b._iDisplayLength){$(m+" .dataTables_paginate").hide()}else{$(m+" .dataTables_paginate").show()}$.each($(k+" tbody tr:not('.row-filesize-done') td"),function(){if(/((\d+(\s+)|\d+\.\d+(\s+)))(TB|GB|MB|KB|Byte|Bytes|ТБ|ГБ|МБ|КБ|Байт)|(Unlimited|Ubegrenset|Nielimitowane|Ilimitado|无限制|Не ограничено|No Limit|Same as admin)/i.test($(this).text())){if($(this).index()>1){list_form_table_file_size=$(this).index()}}}).promise().done(function(){if(typeof list_form_table_file_size!="undefined"){$.each($(k+" tbody tr:not('.row-filesize-done') td"),function(){if($(this).parent("tr").find('img[src$=".png"]').length){$(this).parent("tr").find("td").eq(list_form_table_file_size).addClass("column-filesize")}if($(this).parent("tr").find('img[src$="inode-directory.png"]').length||$(this).parent("tr").find('img[src$="inode-symlink.png"]').length||$(this).parent("tr").find('img[src$="inode-mount-point.png"]').length){$(this).parent("tr").find("td").eq(list_form_table_file_size).addClass("column-filesize").find("label").text("")}}).promise().done(function(){$(k+" thead th").eq(list_form_table_file_size).css("min-width","51px")})}});var a=$(k+" tbody tr td:nth-child(2)");a.unbind("mouseover");a.on("mouseover","img",function(F){var G=$(this).parents("td"),h=G.find('img[src*="inode-symlink"]'),d=G.next("td").find("a"),f=$(m+' form > input[type="hidden"][name="path"]').val().replace(/\/$/g,"")+"/"+d.text();if(h.length){if(h.attr("symlink-title")!=1){!h.parent().find(".cspinner").length&&h.before('');$.ajax({type:"POST",url:$_____link_full+"/index.cgi/?xhr-get_symlink=1&xhr-get_symlink_path="+f,data:false,dataType:"text",success:function(H){h.attr("data-content",''+H+"").attr("symlink-title","1").data("trigger","manual").data("html",true).data("placement","auto right").data("container","body").data("animation",false);h.is(":hover")&&h.popover("show");h.on("mouseenter",function(){if(h.is(":hover")){$(this).popover("show")}}).on("mouseleave",function(){var I=this;setTimeout(function(){if(!$(".popover:hover").length&&!h.is(":hover")){$(I).popover("hide")}},200)});h.parent().find(".cspinner").remove()},error:function(H){}})}}});$(k+" #select-unselect").parents("th").css("opacity",0).addClass("pointer-events-none");__init__dt_ck__e();if(A){!$(".active table tbody tr.directory_go_up").length&&$(".active table tbody").prepend('  ..')}else{if(r&&r!="/"){!$(k+" tbody tr.directory_go_up").length&&$(k+" tbody").prepend('  ..')}}var c=$(".active td.dataTables_empty");if(c.length){$("tr.directory_go_up").addClass("hidden")}else{$("tr.directory_go_up").removeClass("hidden")}setTimeout(function(){__dpt()},0)},initComplete:function(b){n&&__f___up__d("index.cgi?path="+encodeURIComponentSafe(r?r:A),E,false);!n&&__f___upd___tb(r,E);!n&&__f___up__tb_store();if(x!=false&&n){$('a[href="#tab-'+E+'"').attr("newly-created","1").trigger("click")}if(t){setTimeout(function(){$('a[href="#tab-1"] i.fa-close-box').trigger("click")},100)}$(k+" tbody").on("mouseout","tr",function(c){__f___cs()}).on("mouseover","tr",function(c){$(this).addClass("m-active")});if(C===0||$(k+" tbody tr").length===1&&$(k+" tbody tr td.dataTables_empty").length){l__res_fi()}$(k+' select[name^="DataTables_Table"][name$="_length"]').val(w).change();var a},bInfo:true,destroy:true,oLanguage:{sEmptyTable:lang("theme_xhred_datatable_semptydirectory"),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")},conditionalPaging:true,columnDefs:[{orderable:false,targets:[0,1,(u?u:0)]}],bStateSave:true,bPaginate:w,aLengthMenu:[[5,10,15,20,25,30,35,40,50,100,250,500,1000],[5,10,15,20,25,30,35,40,50,100,250,500,1000]]});$('div button[onclick="removeDialog()"]').addClass("disabled o__f_m-button-delete").removeAttr("onclick");$('a[onclick="chmodDialog()"]').removeAttr("onclick").parent("li").addClass("disabled o__f_m-button-chmod");$('a[onclick="chownDialog()"]').removeAttr("onclick").parent("li").addClass("disabled o__f_m-button-chown");$('a[onclick="chattrDialog()"]').removeAttr("onclick").parent("li").addClass("disabled o__f_m-button-chattr");$('a[onclick="chconDialog()"]').removeAttr("onclick").parent("li").addClass("disabled o__f_m-button-chcon");$('a[onclick="compressDialog()"]').removeAttr("onclick").parent("li").addClass("disabled o__f_m-button-compress");$('a[onclick="copySelected()"]').removeAttr("onclick").parent("li").addClass("disabled o__f_m-button-copy");$("li.o__f_m-button-copy").addClass("disabled");$('a[onclick="cutSelected()"]').removeAttr("onclick").parent("li").addClass("disabled o__f_m-button-cut");$("li.o__f_m-button-cut").addClass("disabled");if(!localStorage.getItem($hostname+"-copy")&&!localStorage.getItem($hostname+"-cut")){$('a[onclick*="paste.cgi"]').removeAttr("onclick").parent("li").addClass("disabled o__f_m-button-paste")}else{$('a[onclick*="paste.cgi"]').removeAttr("onclick").parent("li").addClass("o__f_m-button-paste")}if(z==="extract"){messenger('   '+lang("theme_xhred_filemanager_successful_extraction"),5,"info",z+"_info")}if(z==="chmod"){messenger('   '+lang("theme_xhred_filemanager_successful_permissions"),5,"info",z+"_info")}if(z==="chown"){messenger('   '+lang("theme_xhred_filemanager_successful_ownership"),5,"info",z+"_info")}if(z==="compress"){messenger('   '+lang("theme_xhred_filemanager_successful_compression"),5,"info",z+"_info")}if(z==="rename"){messenger('   '+lang("theme_xhred_filemanager_successful_rename").replace("%from",$('#renameForm input[name="file"]').val()).replace("%to",$('#renameForm input[name="name"]').val()),5,"info",z+"_info")}if(z==="create_folder"){messenger('   '+lang("theme_xhred_filemanager_successful_directory_creation").replace("%value",$('#createFolderForm input[name="name"]').val()),5,"info",z+"_info")}if(z==="create_file"){messenger('   '+lang("theme_xhred_filemanager_successful_file_creation").replace("%value",$('#createFileForm input[name="name"]').val()),5,"info",z+"_info")}}function f_m__bm__cm(){var b=decodeURIComponent($('#list_form > input[type="hidden"][name="path"]').val()),b=(typeof b!="undefined"?(!b.length?"/":b):false);var a=$(".btn-group > .at-o__f_m-favorites-dropdown").find('li a[href*="index.cgi?path=/"]').filter(function(){return $.trim($(this).text())===b});if(a.length){$(".data-context-bookmarks a").text(lang("theme_xhred_filemanager_unbookmark"));$("#__f__c__m").find(".fa-star-o").addClass("fa-star").removeClass("fa-star-o")}else{$(".data-context-bookmarks a").text(lang("theme_xhred_filemanager_bookmark"));$("#__f__c__m").find(".fa-star").removeClass("fa-star").addClass("fa-star-o")}setTimeout(function(){if(!$(".file-manager-remove-bookmark").length){$.each($('.dropdown-menu.at-o__f_m-favorites-dropdown > li:not(.data-context-bookmarks) > a:not([href^="bookmark.cgi"])'),function(e,f){$(this).prepend('')})}var c=$(".btn-group .dropdown-menu.at-o__f_m-favorites-dropdown > li"),d=c.find('a[href]:not([href^="bookmark.cgi"], [href="#"])');c.find(".no_effect").parent("li").remove();if(!d.length){$(".bm_e__me").remove();c.parent("ul").append('
  • '+lang("theme_xhred_filemanager__no_bookmarks")+"
  • ")}else{$(".bm_e__me").remove()}$(".dropdown-menu.at-o__f_m-favorites-dropdown li.divider").nextAll("li").remove();$(".btn-group .at-o__f_m-favorites-dropdown li:not(:first-child):not(:empty)").clone().insertAfter("li.data-context-bookmarks + .divider")},0)}function f_m__bm__c(){var a=decodeURIComponent($('#list_form > input[type="hidden"][name="path"]').val()),a=(typeof a!="undefined"?(!a.length?"/":a):false);$.each($(".btn-group > .at-o__f_m-favorites-dropdown").find('li a[href*="index.cgi?path=/"]'),function(){if($(this).text()==a){$(this).parents(".at-o__f_m-favorites-dropdown").find('a[href^="bookmark.cgi?path="]').html(''+lang("theme_xhred_filemanager_unbookmark"));return false}else{$(this).parents(".at-o__f_m-favorites-dropdown").find('a[href^="bookmark.cgi?path="]').html(''+lang("theme_xhred_filemanager_bookmark"))}}).promise().done(function(){setTimeout(function(){f_m__bm__cm()},100)})}function f_m__bm__u(){var b=decodeURIComponent($('#list_form > input[type="hidden"][name="path"]').val()),b=(typeof b!="undefined"?(!b.length?"/":b):"");var a=$(".btn-group > .at-o__f_m-favorites-dropdown").find('li a[href*="index.cgi?path=/"]').filter(function(){return $.trim($(this).text())===b});if(a.length){a.parents(".at-o__f_m-favorites-dropdown").find('a[href^="bookmark.cgi?path="]').html(''+lang("theme_xhred_filemanager_bookmark"));a.parent("li").remove()}else{$(".btn-group > .at-o__f_m-favorites-dropdown").find('a[href^="bookmark.cgi?path="]').html(''+lang("theme_xhred_filemanager_unbookmark"));$("body").find("ul.dropdown-menu.at-o__f_m-favorites-dropdown").append('
  • '+b+"
  • ")}f_m__bm__cm();return a}function __f___upd___cr(d,c){var b=$("body"),a="";b.find(".breadcrumb").empty();if(access_level()==0){b.find(".breadcrumb").append('
  • ')}else{b.find(".breadcrumb").append('
  • ')}$.each($(d),function(e,f){a=a+(f!=""?"/"+f:"");if(f!=""){b.find(".breadcrumb").append('
  • '+f+'
  • ')}}).promise().done(function(){if(!$.isEmptyObject(c)){b.find(".breadcrumb li a").removeAttr("href").replaceTagName("span");b.find(".breadcrumb li:last-child span").after($(c[0]));b.find(".breadcrumb li:first-child").replaceWith('
  • ');$("div.total").html(c[1])}else{if(!$(".breadcrumb li:first-child").find(".fa.fa-keyboard-o").length&&!$("a.popover-path").length){$(".breadcrumb li:first-child").prepend('
    \'>
    ');if(config_portable_module_filemanager_hide_toolbar!=true){$(".fa.fa-keyboard-o.popover-path").detach().appendTo(".breadcrumb li:last-child");$(".fa.fa-keyboard-o.popover-path").css("margin-left","2px")}$('[data-toggle="popover-path"]').popover()}}})}function __f___upd___tb(c,a){var b=c.replace(/\/$/,"").split("/").slice(-1)[0];b=b?b:"/";if(a){$('li a[href="#tab-'+a+'"] span[data-tab-path]').text(b).attr("data-original-title",(c?c:"/"));$("#file-manager-new-instance").removeClass("disabled").find("span.cspinner").parent("span").replaceWith('')}else{$("li.active a span[data-tab-path]").text(b).attr("data-original-title",(c?c:"/"))}}function __f___up__tb_store(){var a=[];$(".nav.nav-tabs li a span[data-original-title]").each(function(c,b){var d=$(b).attr("data-original-title").replace(/\/$/,"");a.push(d)}).promise().done(function(){var c={};c[$g__user__]=a;var b=JSON.parse(localStorage.getItem($hostname+"-settings_thirdparty_filemanager_remembered_tabs"));if(!$.isEmptyObject(b)){delete b[$g__user__]}var d=$.extend({},c,b);localStorage.setItem($hostname+"-settings_thirdparty_filemanager_remembered_tabs",JSON.stringify(d))})}function __f___ld__tb_stored_chk(){var a=JSON.parse(localStorage.getItem($hostname+"-settings_thirdparty_filemanager_remembered_tabs"));return(!$.isEmptyObject(a)?a[$g__user__]:false)}function __f___ld__tb_stored(){var a=__f___ld__tb_stored_chk();if($.isArray(a)){$.each($(a),function(c,b){__f___nt(b,false,c)})}}function __f___up__tb_vis(){$(".nav.nav-tabs li").length===1?$(".nav.nav-tabs li:first-child").addClass("hidden"):$(".nav.nav-tabs li:first-child").removeClass("hidden")}function __f___up__d(n,m,k){var e=URI.parseQuery(URI(decodeURIComponent(n)).query())["path"].replace("//","/"),b=e.split("/"),d=$("body");$('[data-toggle="popover-path"]').popover("hide");$(".popover-path-button").find("i").removeClass("invisible").parent().find(".cspinner").addClass("hidden");__f___upd___cr(b,k);__f___upd___tb(e,m);if(e){$('#headln2l > div.btn-group > a[href*="'+$g__o__f_m+'"][href*="index.cgi"]').removeClass("hidden")}else{$('#headln2l > div.btn-group > a[href*="'+$g__o__f_m+'"][href*="index.cgi"]').addClass("hidden")}t___wi.history.pushState(null,null,$_____link_full+"/"+__f___mn()+"/index.cgi?path="+encodeURIComponentSafe(e));$.each($('.modal .modal-body form input[name="path"]'),function(){$(this).val(e)});$('ul li a[href^="bookmark.cgi?path="]').attr("href","bookmark.cgi?path="+e);f_m__bm__c();f__dt();setTimeout(function(){__dpt();__r____changed(1);__f___up__tb_vis();__f___up__tb_store()},0)}tab___to______create=1;function __f___nt(d,e,b){var a=d,b=((typeof b!="undefined"&&b===0)?true:false);$this=$("#file-manager-new-instance");$this.blur();$(".nav.nav-tabs li").addClass("disabled");tab___to______create=tab___to______create+1;$(".tabs-top > .nav.nav-tabs").append('
  •  
  • ');$(".tabs-top > .tab-content").append('
    ');var c=$(".active table thead").clone();c.removeClass("hidden");c.prependTo("#list_form_AuthenticThemeTmp"+tab___to______create+" table");__f____r("get","index.cgi?path="+encodeURIComponentSafe(a),false,0,[tab___to______create,e,b]);setTimeout(function(){},0);tab___is______new=true}function __f____r(h,o,k,e,n){if(typeof n=="object"){var f=n[2],m=n[1],n=n[0]}else{var m=true}if(o&&!$.isArray(o)){o=encodeURIParam(o,"path")}var a=encodeURIComponentSafe(URI.parseQuery(URI(o).query())["path"].replace("//","/"));typeof n=="undefined"?n=false:false;if(h==="get"){if($("body").find("#list_form table tbody").hasClass("o__f_m-updating")&&m){return}__f_____lo(true,true);(!$("div.popover.popover-path-data.in:visible").length&&!n)&&$('.active a[href="'+o+'"] img').before('');$.ajax({type:"POST",url:$g__e__path+"/file-manager/list.cgi?path="+a+"&module="+$g__m__name,data:false,dataType:"html",success:function(b){messenger_hide("refreshDir_info");j=$.parseHTML(b);if(!$(j[1]).find("table").length){messenger('   '+b,15,"error","getPath_error");__f_____ul();$(".active table .cspinner").remove();if(n){$('a[href="#tab-'+n+'"]').parent("li").remove();$('.tab-content .tab-pane[id="tab-'+n+'"]').remove()}return}else{$('[data-toggle="popover-path"]').popover("hide")}!n&&$('#list_form > input[type="hidden"][name="path"]').val(URI.parseQuery(URI(decodeURIComponent(o)).query())["path"].replace("//","/"));m&&$("div.total").append(__f___tl_v());var c=$(j[0]).append(__f___tl_v()).html();m&&$(".total").html(c);if(n){$('.tab-pane[id="'+n+'"]').data("totalValue",c)}else{$(".tab-pane.active form table").data("totalValue",c)}__f___u("upd",$(j[1]).find("table").find(".ui_checked_columns"),e,false,[n,m,decodeURIComponent(a),c,f],$(h[0]).text());$("#__f__c__m").css("display","none")},error:function(b){}})}}function __f___tl_v(){return'. '+lang("theme_xhred_filemanager_selected_entries").replace("%value","0")+' '}function ___f__tw(){if($("body").attr("class")&&$("body").attr("class").indexOf($g__o__f_m)>-1){if($__source_file=="config.cgi"){$('input[name="per_page"], input[name="disable_pagination"], input[name="menu_style"], textarea[name="bookmarks"]').parents("td.col_value").parent("tr").addClass("hidden");$("#columns_size").parent(".awobject").remove();$('form[action="save_config.cgi"]').append('');$(".table-subtable .sub_table_container.table-hardcoded").find("tbody").append(' '+lang("theme_xhred_filemanager_hide_toolbar")+' '+lang("theme_xhred_filemanager_hovered_toolbar")+' '+lang("theme_xhred_filemanager_hide_actions")+' '+lang("theme_xhred_filemanager_settings_tabs_remember_state")+' '+lang("theme_xhred_filemanager_context_calculate_size")+' '+lang("theme_xhred_filemanager_settings_notification_type")+' ");function c(d){typeof d=="undefined"?d=$('input[name="config_portable_module_filemanager_hide_toolbar"]:checked'):false;var e=["config_portable_module_filemanager_hovered_toolbar"];if(d.val()=="true"){$.each(e,function(f,h){$('input[name="'+h+'"], select[name="'+h+'"]').prop("disabled",true);$('input[name="'+h+'"], select[name="'+h+'"]').parent(".aradio").addClass("disabled")})}else{$.each(e,function(f,h){$('input[name="'+h+'"], select[name="'+h+'"]').prop("disabled",false);$('input[name="'+h+'"], select[name="'+h+'"]').parent(".aradio").removeClass("disabled")})}}c();$('input[name="config_portable_module_filemanager_hide_toolbar"]').on("change",function(){c($(this))});$('input[name="config_portable_module_filemanager_hide_toolbar"], input[name="config_portable_module_filemanager_hovered_toolbar"], input[name="config_portable_module_filemanager_hide_actions"], input[name="config_portable_module_filemanager_notification_type"], input[name="config_portable_module_filemanager_remember_tabs"], input[name="config_portable_module_filemanager_calculate_size"]').on("change",function(){var e=$(this).attr("name"),d=$(this).val();localStorage.setItem($hostname+"-"+e,d);window[e]=d;t__wi_p.manageConfig("save")})}else{$(".panel-body").append('
    ');$("#list_form").detach().appendTo("#tab-1");if(typeof jQuery.ui=="object"){$(".tabs-top > ul.nav").sortable({revert:true,delay:100,update:function(){}})}if(config_portable_module_filemanager_remember_tabs&&__f___ld__tb_stored_chk()){__f___ld__tb_stored()}$("#headln2r .btn-group").prepend('')}$("body").on("mouseleave",".popover:not(.file-manager-help)",function(d){d.preventDefault();d.stopPropagation();$(this).popover("hide")});$("div.total").append(__f___tl_v());$(".tab-pane.active").data("totalValue",$("div.total").html());$("body").append('");$("body").on("click","#__f__c__m li i.fa",function(d){$(this).parents("a").trigger("click")});$("body").on("hidden.bs.modal",function(){$(".modal-backdrop").remove()});$("body").on("submit",'form[action="save_config.cgi"]',function(){localStorage.setItem($hostname+"-_________per_page",parseInt($('input[name="per_page"]').val()))});$("body").on("click",function(d){$(".tooltip").each(function(){if(!$(this).is(d.target)&&$(this).has(d.target).length===0&&$(".tooltip").has(d.target).length===0){$(this).tooltip("hide")}})});$("body").on("click",".breadcrumb .fa-caret-right",function(f){f.preventDefault();f.stopPropagation();var d=$(".breadcrumb span[data-tree]"),m=$(".breadcrumb .fa-caret-down"),k=$(this),e=k.attr("data-path"),h=(e?e:"/"),n=k.parent("a").attr("href");$dirCurrent=$.trim(k.parent("a").text());d.remove();m.addClass("fa-caret-right").removeClass("fa-caret-down");if(k.parent("a").next("span[data-tree]").length){return}k.addClass("invisible").after('');$(this).removeClass("fa-caret-right").addClass("fa-caret-down");k.parent("a").after('