').html(d);$("body").append(f);var b=$("body").find("div[data-encoding_manual-"+c+"]"),e=b.width();a.css("width",e+13);b.remove()}typeof __f___cas_jp_rev=="undefined"?__f___cas_jp_rev=0:0;function __f___cas_jp(f){var h="-9999px",o=$(".jsPanel").filter(function(){return $(this).css("left")!==h}),m=o.length,c=$(window).width(),e=1,p=$(window).height(),b=2,n=c/m,k=p/m,a=$('div[onclick="javascript:__f___cas_jp(0)"]'),d=(__f___cas_jp_rev?$(o).toArray().reverse():o);if(f){if(m==1){a.addClass("hidden")}else{a.removeClass("hidden")}return}$.each(d,function(q,r){if($(this).css("left")===h){return}var s=parseInt($(this).attr("data-uid").replace("jsp_",""));window["jsp_"+s].resize((n-(((q+1)==m)?20:5)),(p-20)).reposition("left-top "+(10+(n*q))+" 10")});(__f___cas_jp_rev===1?__f___cas_jp_rev=0:__f___cas_jp_rev=1);setTimeout(function(){__f___cas_jp_rev=0},500)}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(k,o){if(k==="extract"){}var n=$('#list_form > input[type="hidden"][name="path"]').val();if(k!="bookmark"){__f_____lo(false,true)}if(k==="copy"||k==="cut"){__f__ld__sh();$.ajax({type:"POST",url:$g__e__path+"/file-manager/"+k+".cgi?module="+$g__m__name,data:__f___gd(),dataType:"text",success:function(a){localStorage.removeItem($hostname+"-cut");localStorage.removeItem($hostname+"-copy");localStorage.setItem($hostname+"-"+k,1);$(".o__f_m-button-paste").removeClass("disabled");if(k==="copy"){messenger('
'+lang("theme_xhred_filemanager_copying_successful"),1.5,"info",k+"_info")}else{if(k==="cut"){messenger('
'+lang("theme_xhred_filemanager_cutting_successful"),1.5,"warning",k+"_warning")}}__f_____ul()},error:function(a){messenger('
'+lang("theme_xhred_filemanager_buffer_error"),10,"error",k+"_error")}})}if(k==="paste"){__f__ld__sh();$.ajax({type:"POST",url:$g__e__path+"/file-manager/paste.cgi?path="+encodeURIComponentSafe(n)+"&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",k+"_warning");__f___u("upd",$(g[1]).find("table.ui_columns").find(".ui_checked_columns"),1,k,false,$(g[0]).text())}else{if(b=="merr"){messenger('
'+lang("theme_xhred_filemanager_move_into_self"),10,"error",k+"_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(n)+"&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",k+"_warning")}else{messenger('
'+lang("theme_xhred_filemanager_pasting_and_copying_"+c+""),5,"success",k+"_success")}__f___u("upd",$(d[1]).find("table.ui_columns").find(".ui_checked_columns"),1,k,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(n)+"&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",k+"_warning")}else{messenger('
'+lang("theme_xhred_filemanager_pasting_and_replacing_"+c+""),5,"success",k+"_success")}__f___u("upd",$(d[1]).find("table.ui_columns").find(".ui_checked_columns"),1,k,false,$(d[0]).text())},error:function(d){}})}}},onEscape:function(){}})}else{if(b=="cc"){messenger('
'+lang("theme_xhred_filemanager_pasting_and_copying_"+c+""),5,"success",k+"_success");__f___u("upd",$(g[1]).find("table.ui_columns").find(".ui_checked_columns"),1,k,false,$(g[0]).text())}else{messenger('
'+lang("theme_xhred_filemanager_pasting_successful"),5,"success",k+"_success");__f___u("upd",$(g[1]).find("table.ui_columns").find(".ui_checked_columns"),1,k,false,$(g[0]).text())}}}}},error:function(a){}})}if(k==="extract"){__f__ld__sh();$.ajax({type:"POST",url:$g__e__path+"/file-manager/extract.cgi?module="+$g__m__name+__f___um(),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,k,false,$(g[0]).text())},error:function(a){}})}if(k==="bookmark"){__f_____sl();__f_____hl_();$.ajax({type:"POST",url:$g__e__path+"/file-manager/bookmark.cgi?path="+encodeURIComponentSafe(n)+"&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",(n?escape_html(decodeURIComponentSafe(n)):"/")),5,"warning","bookmarkAddRemove")}else{messenger('
'+lang("theme_xhred_filemanager_bookmark_success").replace("%value",(n?escape_html(decodeURIComponentSafe(n)):"/")),5,"info","bookmarkAddRemove")}},error:function(a){}})}if(k==="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",k)},error:function(a){}})}if(k==="rename"){__f__ld__sh();var q=$('#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",k+"_error");__f_____ul();return}__f___u("upd",$(g[1]).find("table.ui_columns").find(".ui_checked_columns"),1,k)},error:function(a){}})}if(k==="create_folder"){__f__ld__sh();var q=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+__f___um(),data:$("#createFolderForm").serialize(),dataType:"text",success:function(a){g=$.parseHTML(a);if(!$(g[1]).find("table.ui_columns").length){messenger('
'+a,10,"error",k+"_error");__f_____ul();return}__f___u("upd",$(g[1]).find("table.ui_columns").find(".ui_checked_columns"),1,k,false,$(g[0]).text())},error:function(a){}})}if(k==="create_file"){__f__ld__sh();var q=$('#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+__f___um(),data:$("#createFileForm").serialize(),dataType:"text",success:function(a){g=$.parseHTML(a);if(!$(g[1]).find("table.ui_columns").length){messenger('
'+a,10,"error",k+"_error");__f_____ul();return}__f___u("upd",$(g[1]).find("table.ui_columns").find(".ui_checked_columns"),1,k,false,$(g[0]).text())},error:function(a){}})}if(k==="url_download"){__f__ld__sh();var q=$('#list_form > input[type="hidden"][name="path"]').val();modal_dismiss();var h=$("#downFromUrlForm input:not([name='path'])").serialize();h=h+"&path="+$("#path").val();$.ajax({type:"POST",url:$_____link_full+"/"+__f___mn()+"/http_download.cgi",data:h,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",k+"_error");__f_____ul();return}else{if($(a).find(".panel-body h3").length){messenger('
'+$(a).find(".panel-body h3").html(),10,"error",k+"_error");return}else{messenger('
'+$(a).find(".panel-body").html(),5,"success",k+"_success");__f____r("get","index.cgi?path="+(q?encodeURIComponentSafe(q):""),false,0)}}},error:function(a){}})}if(k==="search"){__f__ld__sh();var q=$('#list_form > input[type="hidden"][name="path"]').val(),m=$("#searchForm").find('input[name="query"]').val(),r=$.trim($("#searchForm").find('input[name="grepstring"]').val()),e=$.trim($("#searchForm").find('input[name="grepreplace"]').val()),p=(r&&!e?" fa-1_50x fa-file-find":r&&e?" fa-1_50x fa-find-replace":" fa-lg fa-search");modal_dismiss();if(r&&!e){messenger('
'+lang("theme_xhred_filemanager_searching_matching").replace("%value",m).replace("%text",r)+" "+lang("theme_xhred_global_please_wait"),10000,"info",k+"_preMe")}else{if(r&&e){messenger('
'+lang("theme_xhred_filemanager_searching_replacing").replace("%value",m).replace("%text",r).replace("%replace",e)+" "+lang("theme_xhred_global_please_wait"),10000,"warning",k+"_preMe")}else{messenger('
'+lang("theme_xhred_filemanager_searching").replace("%value",m)+" "+lang("theme_xhred_global_please_wait"),10000,"info",k+"_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")?" / ":"")+' : `'+m+""+(r&&!e?' ['+r+"]":(r&&e)?' ['+r+' -> '+e+"]":"")+"`");var a=5000;if(__list_table_total_rows>1){if(r&&e){messenger(''+lang("theme_xhred_filemanager_search_replaced_multi").replace("%value",__list_table_total_rows),10,"success",k+"_success");a=9000}else{messenger(''+lang("theme_xhred_filemanager_search_founds").replace("%value",__list_table_total_rows),6,"success",k+"_success")}}else{if(__list_table_total_rows==1){if(r&&e){messenger(''+lang("theme_xhred_filemanager_search_replaced"),6,"success",k+"_success")}else{messenger(''+lang("theme_xhred_filemanager_search_found"),6,"success",k+"_success")}}else{messenger(''+lang("theme_xhred_filemanager_search_no_matches"),6,"error",k+"_error")}}setTimeout(function(){messenger_hide("search_preMe")},a)},error:function(a){}})}if(k==="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",k)},error:function(a){}})}if(k==="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",k)},error:function(a){}})}if(k==="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",k)},error:function(a){}})}if(k==="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",k)},error:function(a){}})}if(k==="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+__f___um(),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",k,[k,n,o[0]+$('select option[value="'+o[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(f,k){if(k.data("context-goto")=="1"){f.parents("tr").find('a.o__f_m-follow-file[href^="index.cgi?"]').trigger("click")}if(k.data("context-open-new-tab")=="1"){var e=$("#path").val(),c=f.parents("tr").find("td a[data-filemin-link]").attr("data-filemin-link");__f___nt((encodeURIComponentSafe(decode_html(e))+"/"+encodeURIComponentSafe(decode_html(c))),1)}if(k.data("context-select-all")=="1"){$('button[onclick="selectAll()"]').trigger("click")}if(k.data("context-deselect-all")=="1"){__f___ds_a();__r____changed()}if(k.data("context-invert-selection")=="1"){$('button[onclick="invertSelection()"]').trigger("click")}if(k.data("context-refresh")=="1"){$("button > ."+$__f__rf_s+"").parent("button").trigger("click")}if(k.data("context-newfile")=="1"){$('a[onclick="createFileDialog()"]').trigger("click")}if(k.data("context-newfolder")=="1"){$('a[onclick="createFolderDialog()"]').trigger("click")}if(k.data("context-newarchive")=="1"){$('a[onclick="compressDialog()"]').trigger("click")}if(k.data("context-upload")=="1"){$('a[onclick="viewReadyForUpload()"]').trigger("click")}if(k.data("context-download")=="1"){$('a[onclick="downFromUrlDialog()"]').trigger("click")}if(k.data("context-clipboard")=="1"){var d=f.parents("tr").find("img").parent("a").parent("td").next("td").find("a"),b=($("#path").val()),m=d.attr("data-filemin-link");$("body").append('');var h=new Clipboard(".tmp-clipboard-obj");$(".tmp-clipboard-obj").trigger("click");$(".tmp-clipboard-obj").remove();h.destroy()}if(k.data("context-copy")=="1"){$(".o__f_m-button-copy a").trigger("click")}if(k.data("context-cut")=="1"){$(".o__f_m-button-cut a").trigger("click")}if(k.data("context-paste")=="1"){$(".o__f_m-button-paste a").trigger("click")}if(k.data("context-delete")=="1"){$(".o__f_m-button-delete").trigger("click")}if($(k).is(".file-manager-remove-bookmark")){$('.btn-group .at-o__f_m-favorites-dropdown a[href="'+$(k).parent("a").attr("href")+'"]').find(".file-manager-remove-bookmark").trigger("click");$(k).parent("a").remove();return}if(k.data("context-bookmarks")=="1"){$('a[href^="bookmark.cgi"]').trigger("click")}if(k.data("context-search")=="1"){$('a[onclick="searchDialog()"]').trigger("click")}if(k.data("context-edit")=="1"){f.parents("tr").addClass("m-active");f.parents("tr").find('a[href^="edit_file.cgi?"]').trigger("click")}if(k.data("context-rename")=="1"){f.parents("tr").find('a[onclick^="renameDialog("]').trigger("click")}if(k.data("context-download-file")=="1"){$(f.parents("tr").find('a[href^="download.cgi?"]'))[0].click()}if(k.data("context-extract")=="1"){f.parents("tr").find('a[href^="extract.cgi?"]').trigger("click")}if(k.data("context-calculate-selected-size")=="1"){__f__get_fs()}if(k.data("context-chmod")=="1"){$('a[onclick="chmodDialog()"]').trigger("click")}if(k.data("context-chown")=="1"){$('a[onclick="chownDialog()"]').trigger("click")}if(k.data("context-chattr")=="1"){$('a[onclick="chattrDialog()"]').trigger("click")}if(k.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",''+escape_html(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").trigger("mouseover")}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",escape_html($('#renameForm input[name="file"]').val())).replace("%to",escape_html($('#renameForm input[name="name"]').val())),5,"info",z+"_info")}if(z==="create_folder"){messenger(''+lang("theme_xhred_filemanager_successful_directory_creation").replace("%value",escape_html($('#createFolderForm input[name="name"]').val())),5,"info",z+"_info")}if(z==="create_file"){messenger(''+lang("theme_xhred_filemanager_successful_file_creation").replace("%value",escape_html($('#createFileForm input[name="name"]').val())),5,"info",z+"_info")}}$("body").on("click",".symlink-text-string",function(b){b.preventDefault();b.stopPropagation();var d=$(this);$("body").append('');var c=$(".tmp-clipboard-obj"),a=new Clipboard(".tmp-clipboard-obj");c.trigger("click").remove();a.destroy();messenger(''+lang("theme_xhred_filemanager_link_to_clipboard").replace("%value",escape_html(d.text())),7,"info","link_to_clipboard")});function f_m__bm__cm(){var b=$('#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 encodeURIComponentSafe($(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=$('#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(encodeURIComponentSafe($(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=$('#list_form > input[type="hidden"][name="path"]').val(),b=(typeof b!="undefined"?(!b.length?encodeURIComponentSafe("/"):b):"");console.log(b);var a=$(".btn-group > .at-o__f_m-favorites-dropdown").find('li a[href*="index.cgi?path="]').filter(function(){return encodeURIComponentSafe($(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(''+escape_html(decodeURIComponentSafe(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||access_level()==1){b.find(".breadcrumb").append('')}else{b.find(".breadcrumb").append('')}$.each($(d),function(e,f){a=a+(f!=""?"/"+f:"");if(f!=""){var h='';(access_level()==3&&a.indexOf($g__user__home+"/")===-1?h="":false);b.find(".breadcrumb").append(''+escape_html(f)+h+"")}}).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?escape_html(c):"/"));$("#file-manager-new-instance").removeClass("disabled").find("span.cspinner").parent("span").replaceWith('