diff --git a/extensions/file-manager/file-manager.min.js b/extensions/file-manager/file-manager.min.js index 814f67413..5363f71cf 100644 --- a/extensions/file-manager/file-manager.min.js +++ b/extensions/file-manager/file-manager.min.js @@ -3,4 +3,4 @@ * Copyright Ilia Rostovtsev * Licensed under MIT (https://github.com/authentic-theme/authentic-theme/blob/master/LICENSE) */ -function __f___globals(){$____loader_block__=1,$____loader_block__manual=0,$g__v__home_base=Math.random(),$v__fm__container_fluid=".container-fluid",$v__fm__container_fluid_form=".container-fluid #list_form",$v__fm__container_fluid_modal_in=".container-fluid .modal.in",$v__fm__global_error=0,$v__fm__global_last_row=0,$v__fm__global_last_row_active=0,$v__fm__tree_node_prog=0,$v__fm__tree_node_sp=1,$v__fm__tr_hover_active=1,fm_stored_listing.data={},fm_previous_path_used="",fm_stored_sorting={},getflists=[],getflists_loaded=[],fm_deletion_type=config_portable_module_filemanager_move_to_trash,fm_deletion_to_trash=fm_deletion_type,fm_deletion_empty_trash=0,fm_deletion_empty_trash_previous=0,fm_overwrite_files=!config_portable_module_filemanager_files_safe_mode,fm_follow_symlinks=config_portable_module_filemanager_follow_symlinks,fm_overwrite_files_mode_reset=function(){fm_overwrite_files=!config_portable_module_filemanager_files_safe_mode},fm_bookmark_searched_str=null;if(typeof fm_user_data==="undefined"){fm_user_data=[]}fm_users_data_dynamic=null,fm_goto_previous=0,fm_refreshing_current=0,$v__fm__tree=0;initial_fm_load=1;$($v__fm__container_fluid).addClass("fmx");$v__fm__container_fluid+=".fmx";tab___to______create=1}const fm_stored_listing={previous:{set:function(){this.value=parseInt($($v__fm__container_fluid+" .dataTables_paginate:visible .active a").text())||1},value:1},data:{},var:function(){var e=v___server_username;return{tab:function(){return"tab"+get_active_tab_id()}(),cpath:function(){return fm_get_current_path()}(),ppath:function(){return fm_previous_path_used}(),user:e}},test:function(){if(this.data[this.var().user]&&this.data[this.var().user][this.var().tab]&&this.data[this.var().user][this.var().tab][this.var().cpath]){var e=this.data[this.var().user][this.var().tab][this.var().cpath];return e?e:0}},delete:function(){try{if(this.var().ppath&&this.data[this.var().user]&&this.data[this.var().user][this.var().tab]){delete this.data[this.var().user][this.var().tab]}}catch(e){}},store:function(e){try{var a=e||this.var().ppath,t=this.var().user,_=this.var().tab;if(a){if(!this.data[t]){this.data[t]={[_]:{[a]:this.previous.value}}}else{if(this.data[t][_]){this.data[t][_][a]=this.previous.value}else{this.data[t][_]={[a]:this.previous.value}}}}}catch(e){}}};function _f__table(){var e=$(".container-fluid .tab-pane.active").attr("id");if(e&&e.length){var a=parseInt(e.replace(/^\D+/g,""));return window["_f__table"+a]}else{return false}}function fm_store_last_visited_dir(e){e=e||"%2F";e=fm_process_path(e,"decode");e=fm_process_path(e,"encode");localStorage.setItem(v___server_hostname+"-"+v___server_username+"-"+"fm-last-visited-dir",e)}function fm_root_dir_spinner_remove(){$($v__fm__container_fluid_form).find(".cspinner-folder-btl").remove()}function fm_root_dir_spinner_add(){fm_root_dir_spinner_remove();$($v__fm__container_fluid+" .active i.fa-folder-btl").after('')}function fm_target_spinner_remove(){$($v__fm__container_fluid_form).find(".cspinner-target").remove()}function fm_target_spinner_add(e){fm_target_spinner_remove();e&&e.first().find("img").before('')}function __f__refresh__dir_and_tree(){var e=fm_get_current_path();fm_refreshing_current=1;__f____r("get","index.cgi?path="+(e?e+extra_query():""),false,0);fm_root_dir_spinner_add()}function deselectAllRows(){var e=_f__table(),a;if(e){rows=e.dataTable().$("tr.hl-aw",{filter:"applied"});for(i=0;i1"):theme_language("filemanager_selected_entries").replace("%value",""+e+""))}function __r____changed(){if($("body").attr("class")&&$("body").attr("class").indexOf(v___module_file_manager)>-1){$(".total_size_data").parent("span").addClass("hidden");var e=__f__cnt___selected();if(e){__f___ub()}else{__f___lb()}total_selected_count_update(e);if(__f__cnt___selected(1)!=__f__cnt___total(1)){select_all_entries("remove")}}}function file_manager_table_rows_control(){var e=this;this.p_a=undefined;var a="ui_checked_columns",t="click.ranged",_="input.iawobject",n="td:first-child",i=$($v__fm__container_fluid);i.off(t);i.on(t,".active ."+a+":visible:not(.directory_go_up) "+n+" "+_,function(t){var i=$(this).parents("tr."+a+"");document.activeElement.blur();t.stopPropagation();setTimeout(function(){e.p_a=i},50);if(!$(t.target).is(_)||!vars.events.keypressed.shift){return}if(vars.events.keypressed.shift&&e.p_a&&!e.p_a.is(i)&&t.originalEvent&&t.originalEvent.isTrusted===true){var r=e.p_a.index(),o=i.index(),s=o>r?i.prevUntil(e.p_a):i.nextUntil(e.p_a),l=""+n+" "+_+"";var f=e.p_a.find(l).is(":checked");s.find(l).each(function(a,t){$(t).add(e.p_a.find(l)).prop("checked",f);$(t).trigger("change")})}})}function check_pagination_option(){if($.inArray(parseInt(config_portable_module_filemanager_records_per_page),[5,10,15,20,25,30,35,40,45,50,55,60,70,80,90,100,250,500])===-1){config_portable_module_filemanager_records_per_page=30}}function get_current_list_stats(){var e=a=$($v__fm__container_fluid+" .panel-body .total:visible").contents().filter(function(){return this.nodeType==3})[0].data,a=e.match(/[0-9]+(,[0-9]+)*/g),t=a.length>2?1:0,_=t?a[2]:parseInt(a[0])+parseInt(a[1]),n=t?a[3]:$($v__fm__container_fluid+" .dataTables_paginate:visible a").length-2;return[_,n]}function select_all_entries(e){var a='data-select-all-entries="affirmative"',t="["+a+"]",_='data-yes="1"',n='data-no="1"',i='data-alert-text="1"',r='data-clear="1"';if(e){if(e==="remove"){$(t).remove();total_selected_count_update(__f__cnt___selected(),1)}else if(e==="test"){return $(t).find("["+r+"]").length}else if(e==="test_unconf"){return $(t).find("["+_+"]").length}return}var o=get_current_list_stats(),s=o[0],l=o[1];if(l===-2||l==1){return}var f=theme_language("filemanager_mass_select").replace("%1",""+s+"").replace("%2",""+l+""),c=theme_language("filemanager_mass_selected").replace("%1",""+s+""),d="",m="
"+f+"  "+'
'+""+""+"
",u=$($v__fm__container_fluid+" .data-content-container");if($(t).length){return}u.prepend(m);$(t).find("["+_+"]").one("click",function(e){$(this).parent().html(d).parent().find("["+i+"]").html(c);$($v__fm__container_fluid+" .total_selected").attr("data-all",1).find("span").text(s);selectAllRows()});$(t).find("["+n+"]").one("click",function(e){select_all_entries("remove")});$(t).one("click","["+r+"]",function(e){select_all_entries("remove");deselectAllRows(),total_selected_count_update(0,0,1),__f___lb()})}function f__ck_init_err(e){var a=!$($v__fm__container_fluid_form).length&&$('a.page_footer_submit[href*="index.cgi?path="]').length||core.error.get(),t=$(".container-fluid-loading").find(".cspinner-icon").length;if(e){return a}if(a){$v__fm__global_error=1;$(".data-content-container").addClass("hidden");t&&page.handle.content.preloader.show();__f_____undel()}}function get_link(e,a){var t=String(),_=fm_get_current_path();extra_params=extra_query(e);__f____r("get","index.cgi?path="+_+""+extra_params,false,0)}function fm_check_chroot(){var e=fm_user_data&&fm_user_data.home?fm_user_data.home:session.server.data("user-home");if(e&&e.includes("/./")){return true}else{return false}}function __f___b_dr(e){var a=fm_get_current_path();if(a==="%2F"){return}var t="";if($($v__fm__container_fluid+" .breadcrumb li:first-child i").hasClass("fa-search")){t="index.cgi?path="+a}else{t=$($v__fm__container_fluid+" .breadcrumb > li:eq(-2) > a").attr("href")}if(!t){t="index.cgi?path=%2F"}fm_goto_previous=1;if(a){var _=a.split("%2F").pop();if(_){fm_goto_previous="name="+_+""}}__f____r("get",t,"",0,false,e.originalEvent!==undefined);fm_root_dir_spinner_add()}function __f___o_dr(e,a,t,_,n){if(t||n){fm_target_spinner_add(e);__f____r("get",t,false,0,false,_)}}function f__insert_dir_up(){var e=fm_get_current_path();e&&e!="/"&&e!="%2F"&&!$($v__fm__container_fluid+" .active table tbody tr.directory_go_up").length&&$($v__fm__container_fluid+" .active table tbody").prepend('  ..')}function __f___um(){var e=fm_get_current_home_username();if(!e&&!config_portable_module_filemanager_switch_users){if(fm_user_data&&fm_user_data.user){e=fm_user_data.user}}if(!!e){return"&username="+e+""}else{return""}}function f__act_tab_name(e){$($v__fm__container_fluid+" [data-tab-path]").filter(function(a,t){if(e.endsWith($(t).text())||$(t).text()===e||$(t).text()==="/"&&e===""){$(t).parent("a").trigger("click");return}})}function f__chk_loading(){if(v___module!=v___module_file_manager){return}if(f__ck_init_err(1)){f__ck_init_err();return}var e=$("[data-tab-path]");if($(".container-fluid.fmx .dataTable").length){setTimeout(function(){__f__c__m();file_manager_table_rows_control()},2);setTimeout(function(){var e="file-manager";$.getScript(""+v___server_extensions_path+"/"+e+"/"+e+"-reinit."+v___source_type+".js?"+theme.version(true)+"").fail(function(e){if(e.statusText!=="canceled"&&e.statusText!=="abort"){connection_error(e,1)}})},401)}else{setTimeout(f__chk_loading,10)}}function __f___gd(){var e=$(_f__table().fnGetNodes()).find("input").add($($v__fm__container_fluid+" .active form > input:not([name='path'])")).serialize();e=e+"&path="+fm_get_current_path();return e}function __f___gdArr(){return $(_f__table().fnGetNodes()).find("input").add($($v__fm__container_fluid+" .active form > input:not([name='path'])")).serializeArray()}function _f__gr(e){if(e){return $(_f__table().fnGetNodes()).find("input:checked")}else{return $(_f__table().fnGetNodes()).find("input")}}function __f__ld__bg(){theme_modal_dismiss();__f_____ul()}function __f__upd_____tl(e){var a=$($v__fm__container_fluid+" div.total").children().clone();$($v__fm__container_fluid+" div.total").empty().html(e+". ").append(a)}function __f__ck_lock(){return $("body.file-manager").find($v__fm__container_fluid_form+" table tbody").hasClass("o__f_m-updating")}function __f___ub(){if(!fm_path_inside_trash()){$($v__fm__container_fluid+" div button.o__f_m-button-delete").removeClass("disabled").attr("onclick","removeDialog()")}$($v__fm__container_fluid+" .o__f_m-button-chmod").removeClass("disabled").find("a").attr("onclick","chmodDialog()");$($v__fm__container_fluid+" .o__f_m-button-chown").removeClass("disabled").find("a").attr("onclick","chownDialog()");$($v__fm__container_fluid+" .o__f_m-button-chattr").removeClass("disabled").find("a").attr("onclick","chattrDialog()");$($v__fm__container_fluid+" .o__f_m-button-chcon").removeClass("disabled").find("a").attr("onclick","chconDialog()");$($v__fm__container_fluid+" .o__f_m-button-acls").removeClass("disabled").find("a").attr("onclick","aclsDialog()");$($v__fm__container_fluid+" .o__f_m-button-compress").removeClass("disabled").find("a").attr("onclick","compressDialog()");$($v__fm__container_fluid+" .o__f_m-button-copy").removeClass("disabled");$($v__fm__container_fluid+" .o__f_m-button-cut").removeClass("disabled");__f__cond_l()}function __f___lb(){$($v__fm__container_fluid+" div button.o__f_m-button-delete").addClass("disabled").removeAttr("onclick");$($v__fm__container_fluid+" .o__f_m-button-chmod").addClass("disabled").find("a").removeAttr("onclick");$($v__fm__container_fluid+" .o__f_m-button-chown").addClass("disabled").find("a").removeAttr("onclick");$($v__fm__container_fluid+" .o__f_m-button-chattr").addClass("disabled").find("a").removeAttr("onclick");$($v__fm__container_fluid+" .o__f_m-button-chcon").addClass("disabled").find("a").removeAttr("onclick");$($v__fm__container_fluid+" .o__f_m-button-acls").addClass("disabled").find("a").removeAttr("onclick");$($v__fm__container_fluid+" .o__f_m-button-compress").addClass("disabled").find("a").removeAttr("onclick");$($v__fm__container_fluid+" .o__f_m-button-copy").addClass("disabled").find("a").removeAttr("onclick");$($v__fm__container_fluid+" .o__f_m-button-cut").addClass("disabled").find("a").removeAttr("onclick");__f__cond_l()}function __f__cond_l(){var e=$($v__fm__container_fluid+" .o__f_m-button-symlink"),a=$("#__f__c__m a[data-context-newsymlink]").parent("li");if(__f__cnt___selected()>=1){e.removeClass("disabled");a.removeClass("disabled")}else{e.addClass("disabled");a.addClass("disabled")}}function __f_____undel(){var e="body",a=$(e);var t='.breadcrumb:visible [data-toggle="popover-path"]';a.undelegate(t,"inserted.bs.popover shown.bs.popover hide.bs.popover");var t=$v__fm__container_fluid+' [data-toggle="popover-path"]';a.undelegate(t,"hide.bs.popover");var t=$v__fm__container_fluid+' a[data-toggle="tab"]';a.undelegate(t,"hide.bs.tab show.bs.tab shown.bs.tab");var t="click.fm dblclick.fm click.ranged click.fmcmenu contextmenu.fm submit.fm change.fm changed.fm input.fm mouseleave.fm mouseenter.fm mouseup.fm mouseout.fm mouseover.fm mousemove.fm input.fm keyup.fm keydown.fm keypress.fm sortupdate.fm resize.fm";a.off(t);$(e+" *").undelegate(t).unbind(t).off(t)}function __f__dw__dir(e){var a=fm_get_current_path(),t=fm_get_current_home_username(),_=t?t:v___server_username,n=config_portable_module_filemanager_force_tar==false?1:0,i=id=parseInt(Math.random()*1e3),r="preparing_download_"+i+"",o=new Date,s=o.getFullYear()+"."+(o.getMonth()+1)+"."+o.getDate()+"_"+o.getHours()+"."+o.getMinutes()+"."+o.getSeconds(),l="download-"+s+"-"+_+"-("+v___server_hostname+")",f="...";plugins.messenger.post(''+theme_language("filemanager_preparing_download").replace("%number",e).replace("%dots",""+f+'         '),0,"info",r,0,["bottom","right"]);$("[data-cancel-preparing-download-"+i+"]").one("click",function(){window[r].abort();plugins.messenger.toast.hide(r);plugins.messenger.post({type:"error",icon:"times-circle",id:r,message:theme_language("filemanager_canceled_download"),position:"bottomRight",cancel:false});$.ajax({type:"GET",url:v___server_extensions_path+"/file-manager/download.cgi?cancel=1&filename="+l+"&path="+a+"&do_zip="+n+"&module="+v___module_file_manager+extra_query()})});window[r]=$.ajax({xhr:function(){var e=new window.XMLHttpRequest;return e},type:"POST",url:v___server_extensions_path+"/file-manager/download.cgi?filename="+l+"&do_zip="+n+"&module="+v___module_file_manager+extra_query(),data:__f___gd(),dataType:"text",success:function(t){if(!session.status(t)){return}window.location.replace(v___server_extensions_path+"/file-manager/download.cgi?download=1&filename="+l+"&path="+a+"&do_zip="+n+"&module="+v___module_file_manager+extra_query());plugins.messenger.toast.hide(r);plugins.messenger.post({type:"success",icon:"download-cloud",id:r,message:theme_language("filemanager_prepared_download").replace("%number",e).replace("%dots",f),position:"bottomRight",cancel:false,timeout:2e3})},error:function(e){}})}function context_menu_toggle_delete_trash(e){var a=$("#__f__c__m");if(a.is(":visible")){var t="context-delete-trash",_=theme_language("filemanager_context_delete"),n=theme_language("filemanager_context_move_to_trash"),i=a.find("[data-"+t+"]"),r=e?!config_portable_module_filemanager_move_to_trash:config_portable_module_filemanager_move_to_trash;$context_menu_selector_delete_text_target=i.find("span"),$context_menu_selector_delete_icon_target=i.find(".fa"),context_menu_selector_delete_icon_delete="fa-trash-o",context_menu_selector_delete_icon_trash="fa-trash";i.data(t,~~!r);i.attr("data-"+t+"",~~!r);$context_menu_selector_delete_icon_target.addClass(r?context_menu_selector_delete_icon_delete:context_menu_selector_delete_icon_trash).removeClass(!r?context_menu_selector_delete_icon_delete:context_menu_selector_delete_icon_trash);$context_menu_selector_delete_text_target.text(r?_:n)}}function __f_____lo(e,a){if(a===true){$("body.file-manager").find("#list_form table tbody").addClass((e?" o__f_m-updating":"")+"");$("body.file-manager").find("ul.pagination").addClass("pointer-events-none");$($v__fm__container_fluid+" .nav.nav-tabs li").addClass("disabled");$("#file-manager-new-instance").addClass("disabled_no_styling cursor-na")}}function __f_____ul(e){if(initial_fm_load){return}$("body.file-manager").find("#list_form table tbody").css("opacity","1").removeClass("o__f_m-updating");$("body.file-manager").find("ul.pagination").css("opacity","1").removeClass("pointer-events-none");$($v__fm__container_fluid+" .nav.nav-tabs li").removeClass("disabled");!e&&$($v__fm__container_fluid+" .btn-group.pull-right > .btn-group > button").removeClass("disabled");$("#file-manager-new-instance").removeClass("disabled_no_styling cursor-na")}function __init__dt_ck__e(){if($($v__fm__container_fluid+" .active td.dataTables_empty").length){$($v__fm__container_fluid+" .active td.dataTables_empty").css({padding:"4px","border-top-color":"#eaeaea"});$($v__fm__container_fluid+" .dataTables_paginate").addClass("hidden");$($v__fm__container_fluid+" .active td.dataTables_empty").attr("colspan",parseInt($(".active thead tr th:visible").length));setTimeout(function(){if($($v__fm__container_fluid+" .__o__f_m-search-results").length){$($v__fm__container_fluid+" td.dataTables_empty").html(theme_language("datatable_no_search_results"))}},0)}else{$($v__fm__container_fluid+" .active table, .active td.dataTables_empty").removeAttr("style");$($v__fm__container_fluid+" .dataTables_paginate").removeClass("hidden")}}function __f____success(e,a,t,_,n,i,r,o,s,l,f,c,d,m,u,p){var g=e[0].error&&e[0].error.length,h=e[0].error_fatal&&e[0].error_fatal.length,v=typeof u=="undefined"?false:u,b=fm_get_current_path(),w=1,x=1,y=1;setTimeout(function(){theme_message_dismiss(""+m+"_info");theme_message_dismiss(""+m+"_warning")},564);function k(e){var e=e.replace(/\\n/g," ").replace(/\\/g,""),a=JSON.parse(e);if(typeof a==="object"&&a){if(Object.keys(a).length>1){var t='
';$.each(a,function(e,a){t+="• "+Convert.htmlEscape(e)+" - "+Convert.htmlEscape(a)+"
";t=Convert.htmlUnEscapeSafe(t)});t+="
";return[1,error_replace_tags(t)]}else{return[0,error_replace_tags(Convert.htmlUnEscapeSafe(Convert.htmlEscape(Convert.json_to_string(a))))]}}}if(v&&v[0]=="compress"){var C=fm_process_path(v[1]),T=fm_process_path(v[2],"escape/decode");if(b!=C){w=0;x=0;y=0;if(!C){C="/"}setTimeout(function(){if(g){plugins.messenger.post(''+(theme_language("filemanager_successful_compression_bg_with_errors").replace("%file",T).replace("%path",fm_process_path(C,"escape/decode"))+k(e[0].error)[1]),o,s,m+"_"+s,1,["bottom","right"])}else{plugins.messenger.post(''+theme_language("filemanager_successful_compression_bg").replace("%file",T).replace("%path",fm_process_path(C,"escape/decode")),c,"info",m+"_"+d,1,["bottom","right"])}},564)}}if(g&&w){var D=k(e[0].error),S=D[0],j=D[1],F=(S?theme_language(r+(h?"_fatal":"")):"")+j;setTimeout(function(){plugins.messenger.post(''+F,o,h||!s?"error":s,m+"_"+s,1,["bottom","right"])},564)}else if(x){var P=theme_language(f);if(m==="delete"){var E="";if(fm_deletion_to_trash&&fm_deletion_to_trash.home||fm_deletion_empty_trash_previous){var I=fm_deletion_to_trash.home||fm_deletion_empty_trash_previous;if(I===true){E=".Trash"}else if(I&&I.includes(session.server.data("user-home"))){E="~/.Trash"}else{E=Convert.htmlEscape(I)+"/.Trash"}c=2}if(e[0].etrashed){P=theme_language("filemanager_successful_emptying_trash")}P=P.replace("$1",E)}setTimeout(function(){plugins.messenger.post(''+P,c,d,m+"_"+d,1,["bottom","right"])},564)}n&&$("."+n).remove();if(!h){a&&__f_____ul();t&&theme_modal_dismiss();_&&y&&setTimeout(function(){__f___u("upd",e[0],1,m,false,p),tree_update_node()},123)}}function __f____a(e,a){block_events();var t=fm_get_current_path();if(e!="bookmark"){__f_____lo(false,true)}if(e==="copy"||e==="cut"){$.ajax({type:"POST",url:v___server_extensions_path+"/file-manager/"+e+".cgi"+"?module="+v___module+extra_query(),data:__f___gd(),dataType:"text",success:function(a){if(!session.status(a)){return}localStorage.removeItem(v___server_hostname+"-"+"cut");localStorage.removeItem(v___server_hostname+"-"+"copy");localStorage.setItem(v___server_hostname+"-"+e,1);$($v__fm__container_fluid+" .o__f_m-button-paste").removeClass("disabled");setTimeout(function(){if(e==="copy"){plugins.messenger.post(''+theme_language("filemanager_copying_successful"),1.5,"info",e+"_info",1,["bottom","right"])}else if(e==="cut"){plugins.messenger.post(''+theme_language("filemanager_cutting_successful"),1.5,"warning",e+"_warning",1,["bottom","right"])}},246);__f_____ul()},error:function(a){plugins.messenger.post(''+theme_language("filemanager_buffer_error"),10,"error",e+"_error",1,["bottom","right"])}})}if(e==="paste"){var _={count:"file-manager-response_count",type:"file-manager-response"};var n=function(e){for(var a in e){document.cookie=""+_[a]+"=; expires=Thu, 01-Jan-1970 00:00:01 GMT; path=/;"}};var i=__f___um();if(i){i=i.replace("username=","fownergroup=")}$.ajax({type:"POST",url:v___server_extensions_path+"/file-manager/paste.cgi?path="+fm_process_path(t)+"&module="+v___module_file_manager+i+extra_query(),data:false,dataType:"json",success:function(a){setTimeout(function(){theme_message_dismiss(""+e+"_info");theme_message_dismiss(""+e+"_warning")},566);var r=get_cookie(_.count)=="1"?1:2;var o=get_cookie(_.type);n(_);if(!o||o&&o.length&&o.indexOf("err")===-1){localStorage.removeItem(v___server_hostname+"-"+"cut");if(!localStorage.getItem(v___server_hostname+"-"+"copy")){$($v__fm__container_fluid+" .o__f_m-button-paste").addClass("disabled")}}if(o=="err"){alert_json_errors(a[0].error,e,"filemanager_paste_warning",true,true);setTimeout(function(){__f___u("upd",a[0],1,e,false);tree_update_node()},567)}else if(o=="merr"){plugins.messenger.post(''+theme_language("filemanager_move_into_self"),15,"error",e+"_error",1,["bottom","right"]);__f_____ul()}else if(o=="ep"){bootbox.dialog({message:theme_language("filemanager_target_conflict_message_"+r+""),title:'   '+theme_language("filemanager_target_conflict_"+r+"")+"",buttons:{success:{label:'   '+theme_language("filemanager_target_conflict_paste")+"  ",className:"btn-primary vertical-align-top ",callback:function(){$.ajax({type:"POST",url:v___server_extensions_path+"/file-manager/paste.cgi?path="+fm_process_path(t)+"&module="+v___module_file_manager+"&ua=2"+i+extra_query(),data:false,dataType:"json",success:function(a){if(a[0].error.length>1){plugins.messenger.post(''+error_replace_tags(a[0].error),10,"warning",e+"_warning",1,["bottom","right"])}else{plugins.messenger.post(''+theme_language("filemanager_pasting_and_copying_"+r+""),2,"success",e+"_success",1,["bottom","right"])}setTimeout(function(){__f___u("upd",a[0],1,e,false);tree_update_node();n(_)},567)},error:function(e){session.status(e.responseText);n(_)}})}},danger:{label:'   '+theme_language("filemanager_target_conflict_replace")+"  ",className:"btn-danger vertical-align-top margined-left--2",callback:function(){$.ajax({type:"POST",url:v___server_extensions_path+"/file-manager/paste.cgi?path="+fm_process_path(t)+"&module="+v___module_file_manager+"&ua=1"+i+extra_query(),data:false,dataType:"json",success:function(a){if(a[0].error.length>1){plugins.messenger.post(''+error_replace_tags(a[0].error),10,"warning",e+"_warning",1,["bottom","right"])}else{plugins.messenger.post(''+theme_language("filemanager_pasting_and_replacing_"+r+""),2,"success",e+"_success",1,["bottom","right"])}setTimeout(function(){__f___u("upd",a[0],1,e,false);tree_update_node();n(_)},567)},error:function(e){session.status(e.responseText);n(_)}})}}},onEscape:function(){__f_____ul()}})}else if(o=="cc"){plugins.messenger.post(''+theme_language("filemanager_pasting_and_copying_"+r+""),2,"success",e+"_success",1,["bottom","right"]);setTimeout(function(){__f___u("upd",a[0],1,e,false);tree_update_node()},567)}else{plugins.messenger.post(''+theme_language("filemanager_pasting_successful"),2,"success",e+"_success",1,["bottom","right"]);setTimeout(function(){__f___u("upd",a[0],1,e,false);tree_update_node()},567)}},error:function(e){session.status(e.responseText);n(_)}})}if(e==="extract"){var r=String(),o=String();if(a&&a[0]){r="&password="+a[0]+""}if(a&&a[1]){o="&delete="+(a[1]?1:0)+""}var s=fm_get_current_path();theme_message_dismiss(e+"_warning");tree_update_node();$.ajax({type:"POST",url:v___server_extensions_path+"/file-manager/extract.cgi?module="+v___module+o+__f___um()+extra_query(),data:__f___gd()+r,dataType:"json",success:function(a){setTimeout(function(){theme_message_dismiss(""+e+"_info");theme_message_dismiss(""+e+"_warning")},566);if(a[0].error&&a[0].error.length){alert_json_errors(a[0].error,e,"filemanager_errors_extraction")}setTimeout(function(){if(fm_get_current_path()===s){__f___u("upd",a[0],1,e,false);tree_update_node()}},567)},error:function(e){session.status(e.responseText)}})}if(e==="bookmark"){var l;if($.isArray(a)){l=a[0]}else{l=t}if(l&&l.endsWith("/")){l=l.slice(0,-1)}else if(l&&l.endsWith("%2F")){l=l.slice(0,-3)}$.ajax({type:"POST",url:v___server_extensions_path+"/file-manager/bookmark.cgi?module="+v___module_file_manager,data:{path:l},dataType:"text",success:function(a){setTimeout(function(){theme_message_dismiss(""+e+"_info");theme_message_dismiss(""+e+"_warning")},566);if(!session.status(a)){return}exiting_book_mark=f_m__bm__u();if(exiting_book_mark.length){plugins.messenger.post(''+theme_language("filemanager_unbookmark_success").replace("%value",l?fm_process_path(l,"escape/decode"):"/"),5,"warning","bookmarkAddRemove",1,["bottom","right"])}else{plugins.messenger.post(''+theme_language("filemanager_bookmark_success").replace("%value",l?fm_process_path(l,"escape/decode"):"/"),5,"info","bookmarkAddRemove",1,["bottom","right"])}fm_bookmark_searched_str=null},error:function(e){}})}if(e==="delete"){fm_deletion_empty_trash_previous=fm_deletion_empty_trash===1;var f=__f___gd(),c=function(a){var t=a[fm_get_current_home_username()],_=t?"&"+Convert.json_to_query(t):"&"+Convert.json_to_query(fm_user_data);extra_details=fm_deletion_to_trash?_:"";if(fm_deletion_to_trash){if(t){fm_deletion_to_trash=t}else{fm_deletion_to_trash=fm_user_data}}if(fm_deletion_to_trash&&fm_deletion_to_trash.home&&fm_deletion_to_trash.home.includes("/./")){fm_deletion_to_trash.home="/"+fm_deletion_to_trash.home.split("/./")[1]}$.ajax({type:"POST",url:v___server_extensions_path+"/file-manager/delete.cgi?module="+v___module+extra_query()+"&etrash="+(fm_deletion_empty_trash_previous?1:0)+"&trash="+(fm_deletion_to_trash?1:0)+extra_details,data:f,dataType:"json",success:function(a){__f____success(a,1,1,1,false,"fa-exclamation-triangle","filemanager_"+(fm_deletion_to_trash?"remove":"delete")+"_warning",30,"error",fm_deletion_empty_trash_previous?"fa2 fa2-trash-empty-o":fm_deletion_to_trash?"fa-trash-o":"fa-trash","filemanager_successful_"+(fm_deletion_empty_trash_previous?"emptying_trash":fm_deletion_to_trash?"removal":"deletion")+"",2,"success",e,false,f)},error:function(e){session.status(e.responseText)}})},d=async()=>{var e=await fm_get_current_home_user_details();c(e)};d()}if(e==="rename"){var m=fm_get_current_path(),u=$($v__fm__container_fluid+" #renameForm").serialize();theme_modal_dismiss();$.ajax({type:"POST",url:v___server_extensions_path+"/file-manager/rename.cgi?module="+v___module+extra_query(),data:u,dataType:"json",success:function(a){setTimeout(function(){theme_message_dismiss(""+e+"_warning")},566);if(a[0].error&&a[0].error.length){plugins.messenger.post(''+error_replace_tags(a[0].error),10,"error",e+"_error",1,["bottom","right"]);setTimeout(function(){theme_message_dismiss(""+e+"_info")},566);__f_____ul();return}setTimeout(function(){__f___u("upd",a[0],1,e,false,u);tree_update_node()},567)},error:function(e){session.status(e.responseText)}})}if(e==="create_folder"){var m=fm_get_current_path();var p="#createFolderForm",g=$($v__fm__container_fluid+" "+p+"").serialize();theme_modal_dismiss();$.ajax({type:"POST",url:v___server_extensions_path+"/file-manager/create_folder.cgi?module="+v___module+__f___um()+extra_query(),data:g,dataType:"json",success:function(a){setTimeout(function(){theme_message_dismiss(""+e+"_warning")},566);if(a[0].error&&a[0].error.length){plugins.messenger.post(''+error_replace_tags(a[0].error),10,"error",e+"_error",1,["bottom","right"]);setTimeout(function(){theme_message_dismiss(""+e+"_info")},566);__f_____ul();return}setTimeout(function(){__f___u("upd",a[0],1,e,false,g);tree_update_node()},567)},error:function(e){session.status(e.responseText)}})}if(e==="create_file"){var m=fm_get_current_path(),h=$($v__fm__container_fluid+" #createFileForm").serialize();theme_modal_dismiss();$.ajax({type:"POST",url:v___server_extensions_path+"/file-manager/create_file.cgi?module="+v___module+__f___um()+extra_query(),data:h,dataType:"json",success:function(a){setTimeout(function(){theme_message_dismiss(""+e+"_warning")},566);if(a[0].error&&a[0].error.length){plugins.messenger.post(''+error_replace_tags(a[0].error),10,"error",e+"_error",1,["bottom","right"]);setTimeout(function(){theme_message_dismiss(""+e+"_info")},566);__f_____ul();return}setTimeout(function(){__f___u("upd",a[0],1,e,false,h)},567)},error:function(e){session.status(e.responseText)}})}if(e==="url_download"){var m=fm_get_current_path();theme_modal_dismiss();var v=$($v__fm__container_fluid+" #downFromUrlForm input:not([name='path'])").serialize();v=v+"&path="+fm_get_current_path();$.ajax({type:"POST",url:v___server_extensions_path+"/file-manager/http_download.cgi?module="+v___module+__f___um()+extra_query(),data:v,dataType:"json",success:function(a){setTimeout(function(){theme_message_dismiss(""+e+"_info");theme_message_dismiss(""+e+"_warning")},566);if(a[0].error&&a[0].error.length){plugins.messenger.post(''+error_replace_tags(a[0].error),10,"error",e+"_error",1,["bottom","right"]);__f_____ul();return}else{plugins.messenger.post(''+a[0].success,2,"success",e+"_success",1,["bottom","right"]);setTimeout(function(){__f___u("upd",a[0],1,e,false)},567)}},error:function(e){const a=xhr_response_text_to_html(e),t=a.find("[data-fatal-error-text]");if(t.length){const e=t.html();plugins.messenger.post(''+theme_language("filemanager_download_status_err")+" "+e,15,"error","url_download_info",1,["bottom","right"])}session.status(e.responseText)}})}if(e==="search"){var m=fm_get_current_path(),o=$($v__fm__container_fluid+" #searchForm").find('input[name="query"]').val(),b=$($v__fm__container_fluid+" #searchForm").find('input[name="grepstring"]').val(),w=$($v__fm__container_fluid+" #searchForm").find('input[name="grepreplace"]').val(),x=b&&!w?" fa-1_50x fa-file-find":b&&w?" fa-1_50x fa-find-replace":" fa-lg fa-search";if(o&&o.length){o=Convert.htmlEscape(o)}if(b&&b.length){b=Convert.htmlEscape(b)}if(w&&w.length){w=Convert.htmlEscape(w)}theme_modal_dismiss();if(b&&!w){plugins.messenger.post(''+theme_language("filemanager_searching_matching").replace("%value",o).replace("%text",b)+"
"+theme_language("global_please_wait"),0,"info",e+"_preMe",1,["bottom","right"])}else if(b&&w){plugins.messenger.post(''+theme_language("filemanager_searching_replacing").replace("%value",o).replace("%text",b).replace("%replace",w)+"
"+theme_language("global_please_wait"),0,"warning",e+"_preMe",1,["bottom","right"])}else{plugins.messenger.post(''+theme_language("filemanager_searching").replace("%value",o)+"
"+theme_language("global_please_wait"),0,"info",e+"_preMe",1,["bottom","right"])}var y=$(""+$v__fm__container_fluid+" .active .dataTables_length select").val();var k=function(a){__f___ds_a();setTimeout(function(){__f___u("upd",a[0],0,"search",false)},567);theme_message_dismiss("search_preMe");var t=5e3;if(a[0].totals>1){if(b&&w){plugins.messenger.post(''+theme_language("filemanager_search_replaced_multi").replace("%value",a[0].totals),4,"success",e+"_success",1,["bottom","right"]);t=9e3}else{plugins.messenger.post(''+theme_language("filemanager_search_founds").replace("%value",a[0].totals),2,"success",e+"_success",1,["bottom","right"])}}else{if(a[0].totals==1){if(b&&w){plugins.messenger.post(''+theme_language("filemanager_search_replaced"),6,"success",e+"_success",1,["bottom","right"])}else{plugins.messenger.post(''+theme_language("filemanager_search_found"),6,"success",e+"_success",1,["bottom","right"])}}else{plugins.messenger.post(''+theme_language("filemanager_search_no_matches"),4,"error",e+"_error",1,["bottom","right"])}}setTimeout(function(){theme_message_dismiss("search_preMe")},t)};theme_message_dismiss("search_success");theme_message_dismiss("search_error");$.ajax({type:"POST",url:v___server_extensions_path+"/file-manager/search.cgi?paginate="+y+"&fsid="+Date.now()+"&module="+v___module,data:$($v__fm__container_fluid+" #searchForm").serialize(),dataType:"json",success:function(e){k(e)},error:function(e){session.status(e.responseText)}})}if(e==="chmod"){$($v__fm__container_fluid_form).append('');$($v__fm__container_fluid_form).append('');$.ajax({type:"POST",url:v___server_extensions_path+"/file-manager/chmod.cgi?module="+v___module+extra_query(),data:__f___gd(),dataType:"json",success:function(a){__f____success(a,1,1,1,"_o__f_m-tmp-chmod-inputs","fa-exclamation-triangle","filemanager_successful_permissions_with_errors",15,"warning","fa-cogs","filemanager_successful_permissions",2,"success",e)},error:function(e){session.status(e.responseText)}})}if(e==="chown"){$($v__fm__container_fluid_form).append('');$($v__fm__container_fluid_form).append('');$($v__fm__container_fluid_form).append('');$.ajax({type:"POST",url:v___server_extensions_path+"/file-manager/chown.cgi?module="+v___module+extra_query(),data:__f___gd(),dataType:"json",success:function(a){__f____success(a,1,1,1,"_o__f_m-tmp-chown-inputs","fa-exclamation-triangle","filemanager_successful_ownership_with_errors",15,"warning","fa-users","filemanager_successful_ownership",2,"success",e)},error:function(e){session.status(e.responseText)}})}if(e==="chattr"){$($v__fm__container_fluid_form).append('');$($v__fm__container_fluid_form).append('');$.ajax({type:"POST",url:v___server_extensions_path+"/file-manager/chattr.cgi?module="+v___module+extra_query(),data:__f___gd(),dataType:"json",success:function(a){__f____success(a,1,1,1,"_o__f_m-tmp-chattr-inputs","fa-exclamation-triangle","filemanager_successful_attributes_with_errors",15,"warning","fa-tags","filemanager_successful_attributes",2,"success",e)},error:function(e){session.status(e.responseText)}})}if(e==="chcon"){$($v__fm__container_fluid_form).append('');$($v__fm__container_fluid_form).append('');$.ajax({type:"POST",url:v___server_extensions_path+"/file-manager/chcon.cgi?module="+v___module+extra_query(),data:__f___gd(),dataType:"json",success:function(a){__f____success(a,1,1,1,"_o__f_m-tmp-chcon-inputs","fa-exclamation-triangle","filemanager_successful_secontext_with_errors",15,"warning","fa-tags","filemanager_successful_secontext",2,"success",e)},error:function(e){session.status(e.responseText)}})}if(e==="acls"){$.ajax({type:"POST",url:v___server_extensions_path+"/file-manager/acls.cgi?module="+v___module+extra_query()+"&"+a[0],data:__f___gd(),dataType:"json",success:function(a){__f____success(a,1,1,1,"_o__f_m-tmp-acls-inputs","fa-exclamation-triangle","filemanager_successful_acls_with_errors",15,"warning"," fa2 fa-1_15x fa-fw fa2-account-key","filemanager_successful_acls",2,"success",e)},error:function(e){session.status(e.responseText)}})}if(e==="compress"){$($v__fm__container_fluid_form).append('');$($v__fm__container_fluid_form).append('');$($v__fm__container_fluid_form).append('');$($v__fm__container_fluid_form).append('');$($v__fm__container_fluid_form).append('');$($v__fm__container_fluid_form).append('');$($v__fm__container_fluid_form).append('');$($v__fm__container_fluid_form).append('');__f__ld__bg();$.ajax({type:"POST",url:v___server_extensions_path+"/file-manager/compress.cgi?module="+v___module+__f___um()+extra_query(),data:__f___gd(),dataType:"json",success:function(_){$($v__fm__container_fluid).find('[name="arcencr_val"]').val(String()).trigger("keyup");__f____success(_,1,0,1,"_o__f_m-tmp-compress-inputs","fa-exclamation-circle","filemanager_successful_compression_with_errors",15,"warning","fa-file-archive-o","filemanager_successful_compression",2,"success",e,[e,t,a[0]+$('#compressDialog select option[value="'+a[1]+'"]').text()])},error:function(e){session.status(e.responseText)}})}}function format_search_breadcrum(e){var a=extra_query(false,1);if(e){if(a.query){return 1}else{return 0}}var t=$('body[class*="'+v___module_file_manager+'"]'),_=fm_get_current_path(),n=$($v__fm__container_fluid+" #searchForm").find('input[name="query"]').val(),i=$($v__fm__container_fluid+" #searchForm").find('input[name="grepstring"]').val(),r=$($v__fm__container_fluid+" #searchForm").find('input[name="grepreplace"]').val();if(a.query){n=a.query}i=a.grepstring;if(t.find(".breadcrumb .fa-folder-root").length){t.find(".breadcrumb .fa-folder-root").removeClass("fa-folder-root").addClass("fa-search text-light fa-sm").parent("a").removeAttr("href").replaceTagName("span")}else{t.find(".breadcrumb li:first-child a").html('')}t.find(".breadcrumb li:not(:first-child) a").replaceWith(function(){return $("",{html:$(this).html()})});t.find(".breadcrumb").addClass("searching-a");t.find(".breadcrumb li").addClass("text-light");t.find(".breadcrumb li span i.fa-caret-right").remove();$($v__fm__container_fluid+" .__o__f_m-search-results").remove();$($v__fm__container_fluid+" .ui_checked_columns.directory_go_up").addClass("hidden");tree_view_draw(_f__table());$_br=$($v__fm__container_fluid+" .breadcrumb > li:last-child");$_br.html($_br.html()+''+($(".breadcrumb > li:last-child a i").hasClass("fa-search")?"   / ":"")+'  :  `'+Convert.htmlEscape(n)+""+(i&&!r?' ['+Convert.htmlEscape(i)+"]":Convert.htmlEscape(r)?' ['+Convert.htmlEscape(i)+' -> '+Convert.htmlEscape(r)+"]":"")+'`  ')}function error_replace_tags(e){return typeof e==="string"?e.replaceAll("[tt]","").replaceAll("[/tt]",""):e}function extra_query(e,a,t){var _=String(),n=e||$($v__fm__container_fluid+" .spaginates:visible .active a").attr("href")||$($v__fm__container_fluid+" .dataTables_paginate:visible .active a").text(),i=_,r=_,o=_,s=_,l=_,f=_,c=_,d=_,m=_;if(!!n){n=Convert.uriDecodeComponent(n);i=Convert.htmlUnEscape(URI.parseQuery(URI(n).query())["page"])||n;r=Convert.htmlUnEscape(URI.parseQuery(URI(n).query())["query"]),o=URI.parseQuery(URI(n).query()).regex,s=URI.parseQuery(URI(n).query()).follow,l=URI.parseQuery(URI(n).query()).caseins,f=URI.parseQuery(URI(n).query()).grepstring,c=config_portable_module_filemanager_auto_per_page?fm_adjust_auto_rows_length(null,false,true):$(""+$v__fm__container_fluid+" .active .dataTables_length select").val(),d=URI.parseQuery(URI(n).query()).fsid,m=URI.parseQuery(URI(n).query()).exclude;if(i){i=isNaN(i)?1:i;var u=$($v__fm__container_fluid+" .tab-pane.active").data("previousPageNumber"),p=!isNaN(u)?parseInt(u):1;if(fm_goto_previous){if(p>=1){i=p}}_+="&page="+i}if(r){_+="&query="+r}if(o){_+="®ex="+o}if(s){_+="&follow="+s}if(l){_+="&caseins="+l}if(f){_+="&grepstring="+f}if(_&&c){_+="&paginate="+c}if(_&&d){_+="&fsid="+d}if(_&&m){_+="&exclude="+m}if(select_all_entries("test")&&t!=="list"){_+="&all_items=3"}}_+="&overwrite_efiles="+(fm_overwrite_files?"true":"false")+"";fm_overwrite_files_mode_reset();_+="&follow_symlinks="+(fm_follow_symlinks?"true":"false")+"";if(a){return{page:i,query:r,regex:o,follow:s,caseins:l,grepstring:f,pagnate_number:c,fsid:d,exclude:m}}return _}function set_last_tabs(e){localStorage.setItem(v___server_hostname+"-"+"settings_thirdparty_filemanager_last_tab",JSON.stringify(e))}function get_last_tabs(){return JSON.parse(localStorage.getItem(v___server_hostname+"-"+"settings_thirdparty_filemanager_last_tab"))}function no_loading_tabs(){var e=$("[data-tab-path]");return!e.find(".cspinner-icon").length}function store_last_tab(e){if(no_loading_tabs()&&!initial_fm_load){var a=v___server_username,t=get_last_tabs();if($t_uri_virtualmin){a+="_"+$('aside [name="dom"]').val()}var _={};if(!e){e=$($v__fm__container_fluid+" .nav.nav-tabs li.active")}_[a]=e.find("[data-tab-path]").attr("data-original-title");var n=$.extend({},t,_);set_last_tabs(n)}}function table_resize(e){var a=content_page_calc_width()-6-($("[data-tree-view]").is(":visible")?e?e:$("[data-tree-view]").outerWidth():0),t="data"+"-"+"table"+"-"+"wrap";if(browser.detect.safari()){a-=2}if(config_portable_module_filemanager_hide_tree_view){a+=5}$("["+t+"]").css({"max-width":a,width:a});var _=$("["+t+"]:visible");if(_&&_.length){_.removeClass();if(_.hasScrollBar(1)){_.addClass("margined-bottom-10")}}}function tree_resize(e,a){var t=$("[data-tree-view]"),_=t.next(".tree-view-filter"),n=$("form .row + .tree-view + .row");var i=parseInt(localStorage.getItem(v___server_hostname+"-"+"settings_thirdparty_filemanager_tree_width"));if(!e&&!isNaN(i)&&i>=200&&i<=parseInt(vhTOpx(70))){e=i}else if(!e){e=t.outerWidth()}t.css("width",e);n.css("margin-left",parseInt(e)-10);_.css("width",parseInt(e));if(a){setTimeout(table_resize,1)}else{table_resize(parseInt(e))}}function tree_view_set(e){var a=$("[data-tree-view]"),t=a.next().find("input"),_=t.parent();a.find(".cspinner.centered-initial").removeClass("centered-initial").find(".cspinner-icon").addClass("smaller");_.removeClass("hidden-content").append('||');a.find(".cspinner").remove();$.ui.fancytree.debugLevel=0;$.ui.fancytree.activeVisible=true;$.ui.fancytree.autoScroll=true;a.fancytree({source:e,debugLevel:0,scrollParent:a,escapeTitles:false,extensions:["filter"],quicksearch:true,filter:{autoApply:true,autoExpand:config_portable_module_filemanager_tree_expand_search,counter:true,fuzzy:false,hideExpandedCounter:true,hideExpanders:false,highlight:true,leavesOnly:false,nodata:true,mode:"hide"},autoActivate:false,activeVisible:true,autoScroll:true,keyboard:true,strings:{loading:"",loadError:"",moreData:"",noData:theme_language("datatable_szerorecords")},toggleEffect:false,click:function(e,a){if($v__fm__tree_node_prog){$v__fm__tree_node_prog=0;$v__fm__tree_node_sp=0;tree_action(e,a)}},icon:function(e,a){if(a.node&&a.node.data.link===1){return"fancytree-icon fancytree-icon-symlink"}},dblclick:function(e,a){tree_action(e,a,1);return false},activate:function(e,a){tree_action(e,a)},init:function(){setTimeout(function(){tree_gset_node()},2)}});$("body").on("click.fm",".filter_fancytree_clear",function(){$(this).parent().find("input").val("").trigger("keyup");setTimeout(function(){var e=_f__table();if(e){e.DataTable().draw(false);tree_view_adjust()}},100)});$("body").on("click.fm",".filter_fancytree_toggle",function(){a.fancytree("getRootNode").visit(function(e){e.setExpanded(false)});a.find(".mCSB_container").css("left",0);a.mCustomScrollbar("scrollTo",0,{scrollInertia:100})});t.keyup(function(e){var a=$(this);typeof $tree_view_search_timer!="undefined"&&clearTimeout($tree_view_search_timer);$tree_view_search_timer=setTimeout(function(){var t=$.ui.fancytree.getTree(),_=a.val(),n=$(e.target).parent().find(".filter_fancytree_clear");t.filterNodes.call(t,_);if(_){n.removeClass("text-lighter")}else{n.addClass("text-lighter")}},e.originalEvent!=undefined?600:0)});e.length===1&&a.fancytree("getRootNode").visit(function(e){if(e.getLevel()===1){e.setExpanded(true)}});a.mCustomScrollbar({axis:"xy",theme:"minimal-dark",keyboard:false,scrollButtons:true,autoHideScrollbar:false,scrollInertia:100,advanced:{updateOnContentResize:true}});var n="data-resizer",i=a.find("["+n+"]").detach();a.prepend(i);(function(){var e=$("[data-tree-view]"),a=e.find("[data-resizer]")[0],t=$("body"),_=$(".panel-heading, .jsPanel, .jsPanel-replacement-container, aside, .mobile-menu-toggler, #right-side-tabs, .right-side-tabs-toggler, .breadcrumb, .btn-group, .ui-fancytree, .tree-view-filter, .data-table"),n="user-select-none cursor-w-resize",i="pointer-events-none-forced";var r=function(){window.addEventListener("mousemove",o,false);window.addEventListener("mouseup",s,false)};var o=function(a){var r=a.pageX-e[0].getBoundingClientRect().left+"px";t.addClass(n);_.addClass(i);var o=200,s=parseInt(vhTOpx(70));if(parseInt(r)s){return}localStorage.setItem(v___server_hostname+"-"+"settings_thirdparty_filemanager_tree_width",r);tree_resize(r)},s=function(){t.removeClass(n);_.removeClass(i);window.removeEventListener("mousemove",o,false);window.removeEventListener("mouseup",s,false)};a&&a.addEventListener("mousedown",r,false)})()}function get_jailed_user(e){var a=fm_user_data;if(!e){return get_access_level()===0&&(session.server.data("user")!==a.user&&a.access||session.server.data("user")===a.user&&a.access=="0"&&parseInt(a.access)!==a.uid)}else{return a[e]}}function tree_action(e,a,t){var _=$("[data-tree-view]"),n=0;if(e.originalEvent&&typeof e.originalEvent.originalEvent==="object"){n=1}var i=a.node.key,r="fancytree-loading-node",o=_.next().find("input").val(),s=get_access_level()===0,l=get_access_level()===2,f=get_access_level()===3;var c=$($v__fm__container_fluid).find(".fancytree-active");i=fm_process_path(i,"decode/unescape");var d=fm_path_check_jailed(i);if(s&&fm_user_data&&fm_user_data.base&&fm_user_data.base!=="/"||(l||f)&&fm_check_chroot()){var m=new RegExp("^"+fm_user_data.base,"");d=d.replace(m,String())}n&&(__f____r("get","index.cgi?path="+d,false,0,false,n),$("."+r).remove());if(($v__fm__tree_node_sp||t)&&n){c.find(".fancytree-icon").before('')}$v__fm__tree_node_sp=1;if(!config_portable_module_filemanager_hide_tree_view&&!o){var u=config_portable_module_filemanager_tree_view_depth;u=config_portable_module_filemanager_tree_view_depth==0?0:parseInt(u);$.ajax({type:"POST",url:v___server_extensions_path+"/file-manager/tree.cgi?module="+v___module+"&d="+u,data:{cpt:i},dataType:"JSON",success:function(e){if(e&&!e.length){tree_view_adjust();return}a.node.removeChildren();a.node.addChildren(e);a.node.toggleExpanded();tree_view_adjust()},error:function(e){}})}!a.node.isExpanded()&&a.node.toggleExpanded();var p=a.node.getChildren();p&&p.map(function(e,a){e.isExpanded()&&e.toggleExpanded()})}function tree_get_depth(){var e=parseInt(config_portable_module_filemanager_tree_view_depth),a=session.server.data("user-home"),t=Test.occurrences(fm_process_path(a,"decode"),"/")||1,_=get_access_level();e=e+t;if((_===2||_===3)&&fm_check_chroot()){e--;if(_===2){e--;e--;e--}}if(_===0){e--}return e}function tree_view_get(){if(config_portable_module_filemanager_hide_tree_view==true||$v__fm__tree===1){return}else{$v__fm__tree=1}var e=tree_get_depth();$.ajax({type:"POST",url:v___server_extensions_path+"/file-manager/tree.cgi?module="+v___module+"&d="+e+"&y=1&e="+(config_portable_module_filemanager_tree_exclude_on_first_load?1:0),data:false,dataType:"JSON",success:function(e){var a="jquery.fancytree";$($v__fm__container_fluid_form).data("tree",e);load.bundle(a,1,{tree_view_set:e,tree_view_draw:_f__table()},3)},error:function(e){}})}function tree_view_draw(e){if(!e||e&&!e.length){return}var a=e.parent("div").parent(".row").prev(".tree-view").add("[data-tree-view]"),t=$(".tree-view-filter"),_=a.find(".fancytree-loading-node"),n=e.outerHeight(),i=$("[data-tree-view] .fancytree-container").height(),r=8,o=-2,s=0,l=parseInt(vhTOpx(47.52))-r;l=l>320?l:320;var f=l-39,c=l+11;_.remove();if((!i||i>n||n").find("label"),n=_f__table().dataTable().$("tr.hl-aw",{filter:"applied"});_.html('');var i="fm_get_size_"+t;if(typeof window[i]!="undefined"&&typeof window[i].abort==="function"){window[i].abort()}window[i]=$.ajax({type:"POST",url:v___location_prefix+"/xhr.cgi",data:{"xhr-get_size":1,"xhr-get_size_path":fm_process_path(t,"decode/unescape"),"xhr-get_size_cmodule":v___module_file_manager},dataType:"text",success:function(t){if(!session.status(t)){return}var _=t.split("|"),i=_f__table().DataTable(),r='"+_[1]+'">'+_[0]+"";if(_[1]){_[1]=parseInt(_[1].toString().replace(/\s/g,String()))}var o=e.find("td.col-size");o.attr("data-order",_[1]||0);if(o&&o[0]){var s=i.cell(o[0]);s.length&&s.data(r).invalidate()}var l;if(isNaN(parseInt(_[1]))){l=0}else{l=parseInt(_[1])}$($v__fm__container_fluid+" .total_size_data").data("total",parseInt($(".total_size_data").data("total"))+l);if(!n.find("td.col-size").find("label").find(".cspinner").length){$.ajax({type:"POST",url:v___location_prefix+"/xhr.cgi",data:{"xhr-get_nice_size":1,"xhr-get_nice_size_sum":parseInt($(".total_size_data").data("total"))},dataType:"text",success:function(e){if(!session.status(e)){return}$($v__fm__container_fluid+" .total_size_data").text(e);!a&&$($v__fm__container_fluid+" .total_size_data").parent("span").removeClass("hidden");_f__table()&&_f__table().DataTable().draw(false)},error:function(e){}})}},error:function(e){}})})}function __f__c__m(){var e=$($v__fm__container_fluid+" .tab-pane.active form table");$($v__fm__container_fluid+" .tab-pane table").unbind("contextmenu");e.contextMenu({menuSelector:"#__f__c__m",menuSelectorTriggered:function(e,a){var t=$(e).parents("tr"),_=t.find('td.ui_checked_checkbox input[type="checkbox"]');if(_.length&&!_.is(":checked")){__f___ds_a();_[0].checked=true;t.addClass("m-active hl-aw");__r____changed()}if($($v__fm__container_fluid+" .tab-pane.active table tbody tr input").length&&e.parents("tr").find("input:checked").length===0){__f___ds_a();var n=e.parents("tr").find("td:first-child input"),i=n.is(":checked");if(n[0]){n[0].checked=!i;n.trigger("change")}}var r="context-o__f_m-dependent",o="data-filemin-link",s="hidden";if(t.find('td[data-xfile="1"]').length&&fm_is_search_results()){$("."+r+"-goto").removeClass(s)}else{$("."+r+"-goto").addClass(s)}if(t.find('td[data-xfile="0"]').length||fm_is_search_results()){$("."+r+"-open-new-tab").removeClass(s)}else{$("."+r+"-open-new-tab").addClass(s)}if(!t.find('td[data-xfile="1"]').length){$("."+r+"-view").addClass(s)}else{$("."+r+"-view").removeClass(s)}if(!e.parents("tr").find("i.fa-pencil-square-o").length){$("."+r+"-edit").addClass(s)}else{$("."+r+"-edit").removeClass(s)}if(!e.parents("tr").find("a["+o+'$=".acgi"]').length&&!e.parents("tr").find("a["+o+'$=".htm"]').length&&!e.parents("tr").find("a["+o+'$=".html"]').length&&!e.parents("tr").find("a["+o+'$=".htmls"]').length&&!e.parents("tr").find("a["+o+'$=".htx"]').length&&!e.parents("tr").find("a["+o+'$=".shtml"]').length&&!e.parents("tr").find("a["+o+'$=".ssi"]').length){$("li."+r+"-edit").removeClass("dropdown-submenu");$("["+r+'-htmledit="1"]').addClass(s)}else{$("li."+r+"-edit").addClass("dropdown-submenu");$("["+r+'-htmledit="1"]').removeClass(s)}if(!e.parents("tr").find('a[href*="download.cgi"]').length){}else{$("."+r+"-download").removeClass(s)}var l=e.parents("tr").find("td[data-xarchive]").data("xarchive"),f=e.parents("tr").find("td[data-xfile]").data("xfile"),c=e.parents("tr").find("td[data-gpg]").data("gpg"),d=e.parents("tr").find("td[data-img]").data("img");var m=$("."+r+"-preview");if(d){m.removeClass(s)}else{m.addClass(s)}var u=$("."+r+"-encrypt");if(f){encryptDecryptModalA(c);u.removeClass(s)}else{u.addClass(s)}var p=$("."+r+"-extract");if(l){p.removeClass(s)}else{p.addClass(s)}var g=function(e){return"#__f__c__m a[data-context-"+e+"]"},h=$($v__fm__container_fluid+' #headln2l div.btn-group > a[href*="'+v___module_file_manager+'"][href*="index.cgi"]'),v=$(g("back"));if(h.is(":visible")){v.parent().removeClass("disabled")}else{v.parent().addClass("disabled")}var b=$("#__f__c__m"),w=b.find("li:not([data-go_up-target]):not([data-context-always-keep])"),x=b.find("li.hidden-force");if(e.hasClass("directory_go_up")){w.addClass("hidden-force")}else{x.removeClass("hidden-force")}if($($v__fm__container_fluid+" .o__f_m-button-compress").hasClass("disabled")){$(g("newarchive")).addClass("disabled").parent("li").addClass("disabled")}else{$(g("newarchive")).removeClass("disabled").parent("li").removeClass("disabled")}if($($v__fm__container_fluid+" .o__f_m-button-copy").hasClass("disabled")){$(""+g("copy")+", "+g("clipboard")+", "+g("clipboard-selection")+"").addClass("disabled").parent("li").addClass("disabled")}else{$(""+g("copy")+", "+g("clipboard")+", "+g("clipboard-selection")+"").removeClass("disabled").parent("li").removeClass("disabled")}if($($v__fm__container_fluid+" .o__f_m-button-cut").hasClass("disabled")){$(g("cut")).addClass("disabled").parent("li").addClass("disabled")}else{$(g("cut")).removeClass("disabled").parent("li").removeClass("disabled")}if($($v__fm__container_fluid+" .o__f_m-button-paste").hasClass("disabled")){$(g("paste")).addClass("disabled").parent("li").addClass("disabled")}else{$(g("paste")).removeClass("disabled").parent("li").removeClass("disabled")}if(check_selected_text()&&!$(g("copy")).hasClass("disabled")){$(g("clipboard-selection")).removeClass("disabled").parent("li").removeClass("disabled")}else{$(g("clipboard-selection")).addClass("disabled").parent("li").addClass("disabled")}context_menu_toggle_delete_trash("def");if($(".o__f_m-button-delete").hasClass("disabled")){$(g("delete")).addClass("disabled").parent("li").addClass("disabled");$(g("rename")).addClass("disabled").parent("li").addClass("disabled")}else{$(g("delete")).parent("li").prev(".divider").removeClass("hidden");$(g("delete")).removeClass("disabled").parent("li").removeClass("disabled hidden");$(g("rename")).removeClass("disabled").parent("li").removeClass("disabled")}if(fm_is_search_results()){fm_gset_last_row_path(t)}f_m__bm__cm();if($($v__fm__container_fluid+" .o__f_m-button-chmod").hasClass("disabled")&&$(".o__f_m-button-chown").hasClass("disabled")){$($v__fm__container_fluid+" .context-properties").addClass("disabled")}else{$($v__fm__container_fluid+" .context-properties").removeClass("disabled")}var y=t.find("td a").first().data("filemin-link"),k=y===".Trash"&&(get_user_home()===fm_get_current_path_full("decode")||Object.keys(get_other_users_home_data()).includes(fm_get_current_path_full()));if(!k){if(fm_path_inside_trash()){$(g("delete")).parent("li").addClass("hidden").prev(".divider").addClass("hidden")}}$(g("delete")).toggleClass("hidden",k);$(g("empty-trash")).toggleClass("hidden",!k);_f__table().dataTable().$("tr.hl-aw",{filter:"applied"}).length?$(g("calculate-selected-size")).parent("li").removeClass("hidden"):$("#__f__c__m a[data-context-calculate-selected-size]").parent("li").addClass("hidden");if($($v__fm__container_fluid+" .o__f_m-button-chmod").hasClass("disabled")){$(g("chmod")).addClass("disabled").parent("li").addClass("disabled")}else{$(g("chmod")).removeClass("disabled").parent("li").removeClass("disabled")}if($($v__fm__container_fluid+" .o__f_m-button-chown").hasClass("disabled")){$(g("chown")).addClass("disabled").parent("li").addClass("disabled")}else{$(g("chown")).removeClass("disabled").parent("li").removeClass("disabled")}if($($v__fm__container_fluid+" .o__f_m-button-chattr").hasClass("disabled")){$(g("chattr")).addClass("disabled").parent("li").addClass("disabled")}else{$(g("chattr")).removeClass("disabled").parent("li").removeClass("disabled")}if($($v__fm__container_fluid+" .o__f_m-button-chcon").hasClass("disabled")){$(g("chcon")).addClass("disabled").parent("li").addClass("disabled")}else{$(g("chcon")).removeClass("disabled").parent("li").removeClass("disabled")}if($($v__fm__container_fluid+" .o__f_m-button-acls").hasClass("disabled")){$(g("acls")).addClass("disabled").parent("li").addClass("disabled")}else{$(g("acls")).removeClass("disabled").parent("li").removeClass("disabled")}},menuSelected:function(e,a,t){$v__fm__global_last_row=e.parents("tr");var _=fm_get_current_path(),n=$v__fm__global_last_row.find("td a").first(),i=fm_process_escaped_link(n.attr("data-filemin-link"),1);actual_path=fm_process_path(n.attr("href"));if(a.data("context-goto")=="1"){__f___o_dr($v__fm__global_last_row,fm_get_current_path(),actual_path,false,1)}if(a.data("context-open-new-tab")=="1"){__f___nt(actual_path,1)}if(a.data("context-select-all")=="1"){$($v__fm__container_fluid+' button[onclick="selectAll()"]').trigger("click")}if(a.data("context-deselect-all")=="1"){__f___ds_a();__r____changed()}if(a.data("context-invert-selection")=="1"){$($v__fm__container_fluid+' button[onclick="invertSelection()"]').trigger("click")}if(a.data("context-refresh")=="1"){$($v__fm__container_fluid+" button > ."+$__f__rf_s+"").parent("button").trigger("click")}if(a.data("context-newsymlink")=="1"){__f___new_symlink()}if(a.data("context-newfile")=="1"){$($v__fm__container_fluid+' a[onclick="createFileDialog()"]').trigger("click")}if(a.data("context-newfolder")=="1"){$($v__fm__container_fluid+' a[onclick="createFolderDialog()"]').trigger("click")}if(a.data("context-newarchive")=="1"){$($v__fm__container_fluid+' a[onclick="compressDialog()"]').trigger("click")}if(a.data("context-upload")=="1"){$($v__fm__container_fluid+' a[onclick="viewReadyForUpload()"]').trigger("click")}if(a.data("context-download")=="1"){$($v__fm__container_fluid+' a[onclick="downFromUrlDialog()"]').trigger("click")}if(a.data("context-clipboard")=="1"){fm_copy_path_to_clipboard(e)}if(a.data("context-clipboard-selection")=="2"){theme_copy_to_clipboard(check_selected_text())}if(a.data("context-copy")=="1"){$($v__fm__container_fluid+" .o__f_m-button-copy a").trigger("click")}if(a.data("context-cut")=="1"){$($v__fm__container_fluid+" .o__f_m-button-cut a").trigger("click")}if(a.data("context-paste")=="1"){$($v__fm__container_fluid+" .o__f_m-button-paste a").trigger("click")}var r=a,o=r.is("span")?r=r.parent():r;if(r.data("context-delete")=="1"){fm_deletion_type=r.data("context-delete-trash")=="1"?true:-1;$($v__fm__container_fluid+" .o__f_m-button-delete").trigger("click");if(fm_deletion_to_trash&&!fm_deletion_type||fm_deletion_type&&!fm_deletion_to_trash){~~fm_deletion_type!==~~fm_deletion_to_trash&&localStorage.setItem(v___server_hostname+"-"+v___server_username+"-"+"context-alt",1);r.find(".extra-key-label").remove()}}if(r.data("context-empty-trash")=="1"){fm_deletion_empty_trash=1;setTimeout(function(){fm_deletion_empty_trash=0},1);$($v__fm__container_fluid+" .o__f_m-button-delete").trigger("click")}var s=e.parents("tr").find("img").parent("a").parent("td").next("td").find("a"),l=s.attr("data-filemin-link");if(a.data("context-preview-image")=="1"){image_preview(l,0)}else if(a.data("context-preview-image")=="2"){image_preview(l,1)}else if(a.data("context-preview-image")=="3"){image_preview(l,0,1)}if(a.data("context-bookmarks")=="1"){if(fm_is_search_results()){__f____a("bookmark",[fm_gset_last_row_path(e.parents("tr"))])}else{$($v__fm__container_fluid+' a[href^="bookmark.cgi"]').trigger("click")}}if(a.data("context-back")=="1"){$($v__fm__container_fluid+' #headln2l div.btn-group > a[href*="'+v___module_file_manager+'"][href*="index.cgi"]:visible').trigger("click");return}if(a.data("context-search")=="1"){$($v__fm__container_fluid+' a[onclick="searchDialog()"]').trigger("click")}if(a.data("context-view")=="1"){var f=!$v__fm__global_last_row.find('a[href*="edit_file.cgi"]').length,c=a.data("context-view-reverse")=="1",d=a.data("context-view-head")=="1",m=a.data("context-view-tail")=="1";fm_target_spinner_add($v__fm__global_last_row);edit_file(i,decodeURIComponent(fm_get_current_path()),false,1,f,c,d,m)}if(a.data("context-edit")=="1"||a.attr("context-o__f_m-dependent-htmledit")=="1"){var u=e.parents("tr"),p=u.find('a[href^="edit_file.cgi?"]');fm_target_spinner_add(u);if(a.attr("context-o__f_m-dependent-htmledit")=="1"){u.data("htmledit",1)}u.addClass("m-active");p.trigger("click")}if(a.data("context-rename")=="1"){e.parents("tr").find('a[onclick^="renameDialog("]').trigger("click")}if(a.data("context-download-file")=="1"){var g=e.parents("tr").find('td a[href*="download.cgi?"]'),h=select_all_entries("test")?get_current_list_stats()[0]:__f__cnt___selected();if(__f__cnt___selected()===1&&g.length){window.location.replace(v___server_extensions_path+"/file-manager/download.cgi?download=2&filename="+uri_parse_param2("file",g.attr("href"))+"&path="+fm_get_current_path()+extra_query())}else{__f__dw__dir(h)}}if(a.data("context-encrypt")=="1"){$("#encryptDecrypt").modal("show")}if(a.data("context-extract")=="1"){e.parents("tr").find('a[href^="extract.cgi?"]').trigger("click")}if(a.data("context-extract-encrypted")=="1"){$($v__fm__container_fluid+" #extractEncrypted.modal").modal("show")}if(a.data("context-calculate-selected-size")=="1"){__f__get_fs()}if(a.data("context-properties")=="1"||a.data("context-getinfo")=="1"){fm_get_file_info(_,i,e.parents("tr"))}if(a.data("context-chmod")=="1"){$($v__fm__container_fluid+' a[onclick="chmodDialog()"]').trigger("click")}if(a.data("context-chown")=="1"){$($v__fm__container_fluid+' a[onclick="chownDialog()"]').trigger("click")}if(a.data("context-chattr")=="1"){$($v__fm__container_fluid+' a[onclick="chattrDialog()"]').trigger("click")}if(a.data("context-chcon")=="1"){$($v__fm__container_fluid+' a[onclick="chconDialog()"]').trigger("click")}if(a.data("context-acls")=="1"){$($v__fm__container_fluid+' a[onclick="aclsDialog()"]').trigger("click")}}})}function __f___up__tb_sort(e){if(!$.isEmptyObject(fm_stored_sorting)){if(fm_stored_sorting[e]){var a=fm_stored_sorting[e],t=a.sort,_=a.holder;if(_&&t){var n=$("[data-head-"+_+"]").parent("th").index();if(n){return[n,t]}}}}if(config_portable_module_filemanager_default_sort!="0"){var i=config_portable_module_filemanager_default_sort,r=Test.strContains(i,"--")?1:0;i=i.replace("--","");if(r){return[[$("[data-head-"+i+"]").parent("th").index(),"desc"]]}else{return[[$("[data-head-"+i+"]").parent("th").index(),"asc"]]}}else{return[]}}function __f___u(e,a,t,_,n,i){var r=a.rows,o=a.pagination,s=a.pagination_limit,l=a.pagination_text,f=a.total;if(typeof n=="object"){var c=n[1],d=n[2],m=n[3],n=n[0]}else{var c=true}if(v___location_file=="config.cgi"){return}var u=0,p=null,g=null,h=null,v=null,b=fm_get_current_path(),w="data"+"-"+"table"+"-"+"wrap";fm_stored_listing.previous.set();typeof f=="undefined"?f=false:false;typeof n=="undefined"||typeof n!="undefined"&&n===false?p=false:p=true;var x=$v__fm__container_fluid+" .tab-pane.active",y=$(x);if(!y.length){x=$v__fm__container_fluid+" .tab-pane:first-child"}!p?g=x+" form table":g=$v__fm__container_fluid+' .tab-pane[id="tab-'+n+'"] form table';!p?h=x:h=$v__fm__container_fluid+' .tab-pane[id="tab-'+n+'"]';var k=$(h).attr("id"),v=k?k.replace(/^\D+/g,""):false,v=v?v:1;var C=$("body.file-manager").find(g).attr("id"),T=C?parseInt(C.replace(/^\D+/g,"")):"none",D=".hl-aw",S=$(g).find(D),j=S.next().index()>0?S.next().index():$(g).find("tr:visible").last().index();!p&&T!=="none"&&$($v__fm__container_fluid+" #"+"DataTables_Table_"+T).dataTable().fnDestroy();if(e==="upd"){var F=$(r).find(".fa-font").first().parents("td").index();$(g).addClass("___f_m__q__");$("body.file-manager").find(g+" tbody").empty().append(r);vars.h.selector.content.get()[0].scrollTop=0;table_proc_size_columns();!c&&$(h).data("totalValue",m).data("breadcrumb",$($v__fm__container_fluid+" .breadcrumb").clone());f&&!d&&__f__upd_____tl($(f).text());page_radios_evolve();$("._select-unselect_").parent(".awcheckbox").remove();__f_____ul()}else{var F=$(g).find(".fa-font").first().parents("td").index()}var P=function(e){var a=v___module_file_manager;if(v___location_prefix){a=v___location_directory_unslashed}return localStorage["DataTables_DataTables_Table_"+T+"_/"+a+e]};var E=P("/")||P("/index.cgi")||P(String()),I;if(!!E){I=JSON.parse(E)}else{I=false}check_pagination_option();var z=I&&I.length?I.length:config_portable_module_filemanager_records_per_page;if(s){z=s}if(!z){z=20}if(F!=3&&F!=4){F=false}$(g).unbind("click.fmx");$(g).on("click.fmx",'a .fa.fa-pencil-square-o, a[href^="edit_file.cgi"]',function(e){e.preventDefault();e.stopPropagation();var e=jQuery.Event("keydown");e.which=115;$("body.file-manager").trigger(e)});var A=function(e,a){var t=$(e.nTableWrapper).find(".dataTables_info"),_=a?a:t.text(),n=_.match(/[0-9]+(,[0-9]+)*/g);if(t&&t.length&&n!=null&&n[0]&&n[1]&&n[2]){var i=theme_language("datatable_sinfo").replace("_START_",Convert.nice_number(n[0])).replace("_END_",Convert.nice_number(n[1])).replace("_TOTAL_",Convert.nice_number(n[2]));if(a){return i}t.text(i)}};var q=$(h).data("previousPageNumber"),O=!isNaN(q)?parseInt(q-1):0;window["_f__table"+v]=$(g).dataTable({order:[],aaSorting:[],bDestroy:true,pageLength:z,infoCallback:function(e,a,t,_,n,i){return A(e,i)},preDrawCallback:function(){var e=$(g);if(config_portable_module_filemanager_hide_actions==true){var a=$($v__fm__container_fluid+" .tab-pane.active form table"),t=a.find(".fa-font"),_=a.find(".fa-i-cursor"),n=t.length?t.parents("td").index():_.parents("td").index();if(n>1){$(g+" thead th").eq(n).addClass("hidden");e.find(".fa-font").length?e.find(".fa-font").parents("td").addClass("hidden"):e.find(".fa-i-cursor").parents("td").addClass("hidden")}}var i=e.parent("div").parent(".row");if(i.prev(".tree-view").length===0){i.before('
');if(config_portable_module_filemanager_hide_tree_view){i.prev(".tree-view").addClass("hidden")}}if(config_portable_module_filemanager_auto_per_page){fm_adjust_auto_rows_length(this,true)}},fnDrawCallback:function(e){if(u){fm_stored_listing.previous.set();fm_stored_listing.store(fm_get_current_path())}$($v__fm__container_fluid+" .tab-pane .paginate_button.previous > a").html('').css("border-top-left-radius","0").css("border-bottom-left-radius","0");$($v__fm__container_fluid+" .tab-pane .paginate_button.next > a").html('').css("border-top-right-radius","0").css("border-bottom-right-radius","0");$(g).find(".fa-font").removeClass("fa-font").addClass("fa-i-cursor").css("margin-right","5px").css("margin-left","5px");$(g).find(".fa-external-link").removeClass("fa-external-link").addClass("fa-extract-archive").css("margin-right","5px").css("margin-left","5px");$(g).find(".fa-edit").addClass("fa-pencil-square-o").css("margin-right","7px").css("margin-left","7px");$(g).find(".fa-arrow-right").removeClass("fa-arrow-right").addClass("fa-folder-open-o").parent("a").addClass("o__f_m-follow-file");if(e.fnRecordsTotal()<=e._iDisplayLength){$(h+" .dataTables_paginate:not(.spaginates)").hide()}else{$(h+" .dataTables_paginate:not(.spaginates)").show()}$.each($(g+" 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($(g+" 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)}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).find("label").text("")}}).promise().done(function(){$(g+" thead th").eq(list_form_table_file_size).css("min-width","51px")})}});$(g+" ._select-unselect_, "+g+" #select-unselect").parents("th").css("opacity",0).addClass("pointer-events-none");$($v__fm__container_fluid+" .breadcrumb").removeClass("searching-a");__init__dt_ck__e();if(!$(".__o__f_m-search-results-data:visible").length){if(b){f__insert_dir_up()}else if(d&&d!="/"&&d!="%2F"){!$(g+" tbody tr.directory_go_up").length&&$(g+" tbody").prepend('  ..')}}var t=$($v__fm__container_fluid+" .active td.dataTables_empty");if(t.length){$($v__fm__container_fluid+" tr.directory_go_up").trigger("mouseover")}else{$($v__fm__container_fluid+" tr.directory_go_up").removeClass("hidden")}tree_view_draw($(g));if(select_all_entries("test")){selectAll();select_all_entries()}else if(select_all_entries("test_unconf")){select_all_entries("remove")}if(a.flush){deselectAllRows()}if(a.flush_reset){__f___ds_a()}table_resize()},initComplete:function(){c&&__f___up__d("index.cgi?path="+fm_process_path(d?d:b),n,false);!c&&__f___upd___tb(d,n);!c&&__f___up__tb_store();if(p!=false&&c){$($v__fm__container_fluid+' a[href="#tab-'+n+'"]').attr("newly-created","1").trigger("click")}if(!config_portable_module_filemanager_auto_per_page){$(h+' select[name^="DataTables_Table"][name$="_length"]').val(z).change()}this.fnSort(__f___up__tb_sort(v));$(g+" tbody").on("mouseout","tr",function(e){__f___cs()}).on("mouseover","tr",function(e){if($v__fm__tr_hover_active){$(this).addClass("m-active")}});if(t===0||$(g+" tbody tr").length===1&&$(g+" tbody tr td.dataTables_empty").length){page.render.content.filter.clear()}if($(g)&&!$(g).parent().is("["+w+"]")){$(g).wrap("
");tree_resize()}var e=$(h+" table").parents(".row").next(".row").find(".col-sm-7"),r=$(h+" table").parents(".row").next(".row").find(".col-sm-5").find(".dataTables_info");if(o&&o.length){e.html(o);r.text(l)}else if(!o){fm_stored_listing.store();var s=fm_stored_listing.test();if(s){if(fm_goto_previous||i||_){this.fnPageChange(s-1)}}}var f=fm_goto_previous;fm_goto_previous=0;if(a.searched){format_search_breadcrum()}if(a.flush){select_all_entries("remove")}setTimeout(function(){f_m__bm__c();u=1},300);fm_check_goback();$v__fm__tr_hover_active=0;setTimeout(function(){$v__fm__tr_hover_active=1},400);var m="m-active",x=""+m+"-o";if(_==="create_folder"||_==="create_file"||_==="rename"||_==="delete"||typeof f==="string"){var y=Convert.serialized_to_json(f||i);if(y){var k=""+m+"-n";if(_==="delete"){var C=$(g).find("tr:visible:nth-child("+j+")");setTimeout(function(){$(g).find("tr."+m+"").removeClass(m);setTimeout(function(){C.addClass(m)},1)},2)}else{var T=Convert.htmlEscape(y.name);if(T){var D=$(g).find('td.col-name > a[data-filemin-link="'+T.replaceAll("\\","\\\\")+'"]'),S=D.parent("td").parent("tr");if(S&&S.length){var F=$(g).find("tr."+m+"");F.addClass(x).removeClass(m);S.addClass(""+m+" "+(f?String():k)+"");S.one("mousemove mouseover",function(){S.removeClass(k);F.removeClass(x)});F.one("mousemove",function(){$(this).removeClass(x);S.removeClass(m)});var P=$(g+" tr"),E="mouseover.singlefm";P.one(E,function(e){if(!$(this).is(S)){$(this).addClass(x).removeClass(m)}$(this).one("mousemove",function(e){$(this).removeClass(x);S.removeClass(m)});P.unbind(E)})}if(_==="create_file"){edit_file(Convert.htmlUnEscape(T),decodeURIComponent(fm_get_current_path()))}}}}}else{var I=$(document.body),A=jQuery.Event("keydown.fm");A.which=36;I.trigger(A);A.which=38;I.trigger(A)}},bInfo:true,destroy:true,oLanguage:{sEmptyTable:theme_language("datatable_semptydirectory"),sInfo:l||theme_language("datatable_sinfo"),sInfoEmpty:theme_language("datatable_sinfoempty"),sLengthMenu:theme_language("datatable_slengthmenu"),sLoadingRecords:theme_language("datatable_sloadingrecords"),sProcessing:theme_language("datatable_sprocessing"),sSearch:" ",sZeroRecords:theme_language("datatable_szerorecords")},conditionalPaging:true,columnDefs:[{orderable:false,targets:[0,1,F?F:0]},{width:"32px",targets:0},{width:"64px",targets:1},{width:"90%",targets:2}],fixedColumns:true,bStateSave:true,bPaginate:z,aLengthMenu:[[5,10,15,20,25,30,35,40,45,50,55,60,70,80,90,100,250,500],[5,10,15,20,25,30,35,40,45,50,55,60,70,80,90,100,250,500]],dom:"<'row'<'col-sm-6'l><'col-sm-6'fB>><'row'<'col-sm-12'tr>><'row'<'col-sm-5'i><'col-sm-7'p>>",buttons:[{extend:"csvHtml5",charset:"utf-8",exportOptions:{columns:":visible",format:{body:function(e,a,t,_){e=Convert.htmlRemoveHiddenElements(e);e=Convert.htmlRemoveByClassName(e,"btn");return Convert.htmlStrip(e)}}}}]}).off("click.fmdt").on("click.fmdt","thead th.sorting",function(e){if(e.originalEvent!==undefined){var a=$(this).attr("aria-sort")==="ascending"?"asc":"desc",t=$(this).children("span").data();if(!$.isEmptyObject(t)&&Object.keys(t)){var _=Object.keys(t)[0];if(_&&_.toString().startsWith("head")){_=_.toString().toLowerCase().replace(/^head/,"");fm_stored_sorting[v]={sort:a,holder:_}}}}});setTimeout(function(){theme_title_generate()},0);setTimeout(function(){store_last_tab()},2);tree_gset_node();$($v__fm__container_fluid+' div button[onclick="removeDialog()"]').addClass("disabled o__f_m-button-delete").removeAttr("onclick");$($v__fm__container_fluid+' a[onclick="chmodDialog()"]').removeAttr("onclick").parent("li").addClass("disabled o__f_m-button-chmod");$($v__fm__container_fluid+' a[onclick="chownDialog()"]').removeAttr("onclick").parent("li").addClass("disabled o__f_m-button-chown");$($v__fm__container_fluid+' a[onclick="chattrDialog()"]').removeAttr("onclick").parent("li").addClass("disabled o__f_m-button-chattr");$($v__fm__container_fluid+' a[onclick="chconDialog()"]').removeAttr("onclick").parent("li").addClass("disabled o__f_m-button-chcon");$($v__fm__container_fluid+' a[onclick="aclsDialog()"]').removeAttr("onclick").parent("li").addClass("disabled o__f_m-button-acls");$($v__fm__container_fluid+' a[onclick="compressDialog()"]').removeAttr("onclick").parent("li").addClass("disabled o__f_m-button-compress");$($v__fm__container_fluid+' a[onclick="copySelected()"]').removeAttr("onclick").parent("li").addClass("disabled o__f_m-button-copy");$($v__fm__container_fluid+" li.o__f_m-button-copy").addClass("disabled");$($v__fm__container_fluid+' a[onclick="cutSelected()"]').removeAttr("onclick").parent("li").addClass("disabled o__f_m-button-cut");$($v__fm__container_fluid+" li.o__f_m-button-cut").addClass("disabled");if(!localStorage.getItem(v___server_hostname+"-"+"copy")&&!localStorage.getItem(v___server_hostname+"-"+"cut")){$($v__fm__container_fluid+' a[onclick*="paste.cgi"]').removeAttr("onclick").parent("li").addClass("disabled o__f_m-button-paste")}else{$($v__fm__container_fluid+' a[onclick*="paste.cgi"]').removeAttr("onclick").parent("li").addClass("o__f_m-button-paste")}var U=a&&a.error&&a.error.length;if(_==="extract"){var R=theme_language("filemanager_successful_extraction");if(!theme_message_exists(_+"_warning")){!U&&plugins.messenger.post(''+R,2,"success",_+"_info",1,["bottom","right"])}else{theme_message_dismiss(_+"_info")}}if(_==="delete"){var N="";if(fm_deletion_to_trash&&fm_deletion_to_trash.home||fm_deletion_empty_trash_previous){var K=fm_deletion_to_trash.home||fm_deletion_empty_trash_previous;if(K===true){N=".Trash"}else if(K&&K.includes(session.server.data("user-home"))){N="~/.Trash"}else{N=Convert.htmlEscape(K)+"/.Trash"}}!theme_message_exists(_+"_info")&&plugins.messenger.post(''+theme_language("filemanager_successful_"+(fm_deletion_empty_trash_previous?"emptying_trash":fm_deletion_to_trash?"removal":"deletion")+"").replace("$1",N),2,"success",_+"_info",1,["bottom","right"])}if(_==="paste"){setTimeout(function(){theme_message_dismiss(""+_+"_info")},564)}if(_==="rename"){!theme_message_exists(_+"_success")&&plugins.messenger.post(''+theme_language("filemanager_successful_rename").replace("%from",Convert.htmlEscape($('#renameForm input[name="file"]').val())).replace("%to",Convert.htmlEscape($('#renameForm input[name="name"]').val())),2,"success",_+"_info",1,["bottom","right"])}if(_==="create_folder"){!theme_message_exists(_+"_success")&&plugins.messenger.post(''+theme_language("filemanager_successful_directory_creation").replace("%value",Convert.htmlEscape($('#createFolderForm input[name="name"]').val())),2,"success",_+"_info",1,["bottom","right"])}if(_==="create_file"){!theme_message_exists(_+"_success")&&plugins.messenger.post(''+theme_language("filemanager_successful_file_creation").replace("%value",Convert.htmlEscape($('#createFileForm input[name="name"]').val())),2,"success",_+"_info",1,["bottom","right"])}if(_==="encrypt"||_==="decrypt"){var R=theme_language("filemanager_crypt_"+_+"ed"),L="fa-key-plus";if(_==="decrypt"){L="fa2 fa2-key-minus"}if(!theme_message_exists(_+"_warning")){!U&&plugins.messenger.post(''+R,2,"success",_+"_info",1,["bottom","right"])}else{theme_message_dismiss(_+"_info")}}if(_&&_.toString().startsWith("purge_trash_")){theme_message_dismiss(""+_+"_info");plugins.messenger.post(''+theme_language("filemanager_"+_+"_end").replace("$1",""+(get_access_level()===0?session.server.data("user-home"):"~")+"/.Trash"),2,"success",_+"_success",1,["bottom","right"])}}function fm_bookmark_searched(){if(fm_is_search_results()&&fm_bookmark_searched_str!==null){return fm_bookmark_searched_str}return 0}function f_m__bm__cm(){var e=fm_bookmark_searched()||fm_get_current_path();e=typeof e!="undefined"?!e.length?"/":e:false;var a=$($v__fm__container_fluid+" .btn-group > .at-o__f_m-favorites-dropdown").find('li a[href*="index.cgi?path="]').filter(function(){return fm_process_path($(this).text())===fm_process_path(e)});if(a.length){$("#__f__c__m").find(".fa-star-o").addClass("fa-star").removeClass("fa-star-o")}else{$("#__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,a){$(this).prepend('')})}var e=$(".btn-group .dropdown-menu.at-o__f_m-favorites-dropdown > li"),a=e.find('a[href]:not([href^="bookmark.cgi"], [href="#"])');e.find(".no_effect").parent("li").remove();if(!a.length){$(".bm_e__me").remove();e.parent("ul").append('
  • '+theme_language("filemanager__no_bookmarks")+"
  • ")}else{$(".bm_e__me").remove()}},0)}function f_m__bm__c(){var e=fm_bookmark_searched()||fm_get_current_path();e=typeof e!="undefined"?!e.length?"/":e:false;$.each($(".btn-group > .at-o__f_m-favorites-dropdown").find('li a[href*="index.cgi?path="]'),function(){if(uri_parse_param2("path",$(this).attr("href"))==e){$(this).parents(".at-o__f_m-favorites-dropdown").find('a[href^="bookmark.cgi?path="]').html(''+theme_language("filemanager_unbookmark"));return false}else{$(this).parents(".at-o__f_m-favorites-dropdown").find('a[href^="bookmark.cgi?path="]').html(''+theme_language("filemanager_bookmark"))}}).promise().done(function(){setTimeout(function(){f_m__bm__cm()},100)})}function f_m__bm__u(e){var a=fm_bookmark_searched()||fm_get_current_path();if(e){a=e}a=typeof a!="undefined"?!a.length?"%2F":a:"";var t=$(".file-manager .btn-group > .at-o__f_m-favorites-dropdown").find('li a[href*="index.cgi?path="]').filter(function(){return fm_process_path(uri_parse_param2("path",$(this).attr("href")))===fm_process_path(a)});var _=!e||e&&fm_get_current_path()===e;if(t.length){_&&t.parents(".at-o__f_m-favorites-dropdown").find('a[href^="bookmark.cgi?path="]').html(''+theme_language("filemanager_bookmark"));t.parent("li").remove()}else{!e&&$($v__fm__container_fluid+" .btn-group > .at-o__f_m-favorites-dropdown").find('a[href^="bookmark.cgi?path="]').html(''+theme_language("filemanager_unbookmark")),$("body.file-manager").find("ul.dropdown-menu.at-o__f_m-favorites-dropdown").append('
  • '+fm_process_path(a,"escape/decode")+"
  • ")}f_m__bm__cm();return t}function __f___upd___cr(e,a){var t=$("body.file-manager"),_="";t.find(".breadcrumb").empty();if((get_access_level()==0||get_access_level()==1)&&!get_jailed_user()){t.find(".breadcrumb").append('
  • ')}else{t.find(".breadcrumb").append('
  • ')}$.each($(e),function(e,a){_=_+(a!=""?"/"+a:"");if(a!=""){var n=_.replace(a,""),i=fm_process_path(_);if(get_access_level()===3){n=get_user_home()+n}var r='';t.find(".breadcrumb").append('
  • '+Convert.htmlEscape(a)+r+"
  • ")}}).promise().done(function(){if(!$.isEmptyObject(a)){t.find(".breadcrumb li a").removeAttr("href").replaceTagName("span");t.find(".breadcrumb li:last-child span").after($(a[0]));t.find(".breadcrumb li:first-child").replaceWith('
  • ');$($v__fm__container_fluid+" div.total").html(a[1])}else{if(!$($v__fm__container_fluid+" .breadcrumb li:first-child").find(".fa.fa-keyboard-o").length&&!$($v__fm__container_fluid+" a.popover-path").length){$($v__fm__container_fluid+" .breadcrumb li:first-child").prepend('
    \'>
    ');if(config_portable_module_filemanager_hide_toolbar!=true){$($v__fm__container_fluid+" .fa.fa-keyboard-o.popover-path").detach().appendTo(".breadcrumb li:last-child");$($v__fm__container_fluid+" .fa.fa-keyboard-o.popover-path").css("margin-left","2px")}$($v__fm__container_fluid+' [data-toggle="popover-path"]').popover({sanitize:false})}}})}function get_active_tab_id(){return parseInt($(".data-content-container .nav.nav-tabs li.active a").attr("href").replace("#tab-",""))}function __f___upd___tb(e,a){if(e&&e.startsWith("%2F")){e=decodeURIComponent(e)}var t=e.replace(/\/$/,"").split("/").slice(-1)[0];t=t?t:"/";if(a){$($v__fm__container_fluid+' li a[href="#tab-'+a+'"] span[data-tab-path]').text(t).attr("data-original-title",e?Convert.htmlEscape(e):"/");$("#file-manager-new-instance").removeClass("disabled").find("span.cspinner").parent("span").replaceWith('')}else{$($v__fm__container_fluid+" li.active a span[data-tab-path]").text(t).attr("data-original-title",e?Convert.htmlEscape(e):"/")}}function __f___up__tb_store(){if(page.handle.content.preloader.show(-1)){return}var e=[],a=v___server_username;if($t_uri_virtualmin){a+="_"+$('aside [name="dom"]').val()}$($v__fm__container_fluid+" .nav.nav-tabs li a span[data-original-title]").each(function(a,t){var _=$(t).attr("data-original-title").replace(/\/$/,"");var n=fm_process_path(_,"unescape"),i=n?n:"%2F";e.push(i)}).promise().done(function(){var t={};t[a]=e;var _=JSON.parse(localStorage.getItem(v___server_hostname+"-"+"settings_thirdparty_filemanager_remembered_tabs"));if(!$.isEmptyObject(_)){delete _[a]}var n=$.extend({},t,_);localStorage.setItem(v___server_hostname+"-"+"settings_thirdparty_filemanager_remembered_tabs",JSON.stringify(n))})}function __f___ld__tb_stored_chk(){var e=JSON.parse(localStorage.getItem(v___server_hostname+"-"+"settings_thirdparty_filemanager_remembered_tabs")),a=v___server_username;if($t_uri_virtualmin){a+="_"+$('aside [name="dom"]').val()}return!$.isEmptyObject(e)?e[a]:false}function __f___ld__tb_stored(){var e=__f___ld__tb_stored_chk(),a=fm_extract_path(v___location.href),t=null,_=[],n=0;if($.isArray(e)){$.each($(e),function(e,i){if(t===null&&a===i){t=e}if(a===i||!i||_.includes(i)){return}_.push(i);setTimeout(function(){__f___nt(i,false,false,true);if(!n){n++;__f___up__tb_vis();setTimeout(function(){if(t>0){var e=".nav.nav-tabs li:nth-child",a=$($v__fm__container_fluid+" "+e+"(1)"),_=$($v__fm__container_fluid+" "+e+"("+(t+1)+")");if(_.length){a=a.detach();_.after(a)}t=false}},e*2+11)}},e*2+10)})}}function __f___up__tb_vis(){$($v__fm__container_fluid+" .nav.nav-tabs li").length===1?$($v__fm__container_fluid+" .nav.nav-tabs li:first-child").addClass("hidden"):$($v__fm__container_fluid+" .nav.nav-tabs li:first-child").removeClass("hidden")}function __f___up__d(e,a,t){var _=fm_process_path(e,"decode/unescape"),n=_.split("/"),i=$("body.file-manager");$($v__fm__container_fluid+' [data-toggle="popover-path"]').popover("hide");$($v__fm__container_fluid+" .popover-path-button").find("i").removeClass("invisible").parent().find(".cspinner").addClass("hidden");__f___upd___cr(n,t);__f___upd___tb(_,a);if(_){$($v__fm__container_fluid+' #headln2l div.btn-group > a[href*="'+v___module_file_manager+'"][href*="index.cgi"]').removeClass("hidden")}else{$($v__fm__container_fluid+' #headln2l div.btn-group > a[href*="'+v___module_file_manager+'"][href*="index.cgi"]').addClass("hidden")}$.each($($v__fm__container_fluid+' .modal .modal-body form input[name="path"]'),function(){$(this).val(fm_process_path(_))});$($v__fm__container_fluid+' ul li a[href^="bookmark.cgi?path="]').attr("href","bookmark.cgi?path="+Convert.htmlEscape(_));f_m__bm__c();plugins.favorites.detect();setTimeout(function(){theme_title_generate();__r____changed();__f___up__tb_vis();__f___up__tb_store()},0)}function __f___new_symlink(){$.ajax({type:"POST",url:v___server_extensions_path+"/file-manager/create_symlink.cgi?module="+v___module+__f___um()+extra_query(),data:__f___gd(),dataType:"json",success:function(e){if(e[0].error&&e[0].error.length){plugins.messenger.post(''+error_replace_tags(e[0].error),10,"warning","symlink_error",1,["bottom","right"])}__f___u("upd",e[0],1,fm_get_current_path(),false)},error:function(e){session.status(e.responseText)}})}function __f___nt(e,a,t,_){var n=e;$this=$("#file-manager-new-instance");$this.blur();$($v__fm__container_fluid+" .nav.nav-tabs li").addClass("disabled");tab___to______create=tab___to______create+1;var i=String(),r=String(),o=String(),s=String();if(t){i="active",r=" in",o=""+i+" "+r+"",$tabs_container=$($v__fm__container_fluid+" .tabs-top"),$tabs=$tabs_container.find(".nav.nav-tabs"),$tabs_content=$tabs_container.find(".tab-content"),ariaExpandedStr="aria-expanded",s=""+ariaExpandedStr+'="true"';$tabs.find("li").removeClass(i).find("a").removeAttr(ariaExpandedStr);$tabs_content.find(".tab-pane").removeClass(o)}var l=$($v__fm__container_fluid+" .tabs-top > .nav.nav-tabs > .ui-sortable-handle.active"),f='
  •  
  • ';if(_){l=$($v__fm__container_fluid+" .tabs-top > .nav.nav-tabs");l.append(f)}else{l.after(f)}$($v__fm__container_fluid+" .tabs-top > .tab-content").append('
    ');var c=$($v__fm__container_fluid+" .active table thead").clone();c.removeClass("hidden");c.prependTo("#list_form_AuthenticThemeTmp"+tab___to______create+" table");__f____r("get","index.cgi?path="+e,false,0,[tab___to______create,a]);tab___is______new=true}function fm_adjust_auto_rows_length(e,a,t){var _=function(e){if(e&&typeof e==="function"){return e}if(e&&typeof e==="object"&&typeof e.dataTable==="function"){return e.dataTable()}var a=_f__table();if(a&&typeof a==="object"&&typeof a.dataTable==="function"){return a.dataTable()}return false};e=_(e);if(!e){return}var n=window.innerHeight,i=$v__fm__container_fluid+" .data-content-container .active",r=$(i+" table > tbody > tr:first-child").get(0);if(!r){return}var o=r.getBoundingClientRect().top,s=$(i+" .dataTables_wrapper .row:last-child").outerHeight(),l=Math.floor((n-o-s-23*2)/23);if(!l||l<5){l=5}if(t){return l}e._fnLengthChange(l);!a&&e.fnDraw()}function fm_gset_last_row_path(e){var a=e.find("td a[data-filemin-link]").first(),t=a.find('img[src*="inode-directory.png"]').length,_=fm_process_escaped_link(a.attr("data-filemin-link"),1),n="/"+(t?_:_.substring(0,_.lastIndexOf("/"))),i=fm_get_current_path()+fm_process_path(n);fm_bookmark_searched_str=i;return i}function fm_copy_path_to_clipboard(e){if(!e||e&&!e.length){return}var a=e.parents("tr").length?true:false,t=a?e.parents("tr"):e,_=t.find("img").parent("a").parent("td").next("td").find("a"),n=fm_get_current_path(),i=fm_process_escaped_link(_.attr("data-filemin-link"),1);theme_copy_to_clipboard((fm_process_path(n,"decode/unescape")+"/"+i).replace(/\/\//g,"/"))}function fm_check_goback(){var e=$("#headln2l .btn-group").find('a[href*="'+v___module_file_manager+'/index.cgi"]');if(fm_get_current_path()==="%2F"){e.addClass("hidden")}else{e.removeClass("hidden")}}function fm_is_search_results(){return $($v__fm__container_fluid+" .__o__f_m-search-results-data:visible").length}function fm_safe_path(e){if(e&&e.startsWith("%2525252F")){e=decodeURIComponent(decodeURIComponent(decodeURIComponent(e)))}if(e&&e.startsWith("%25252F")){e=decodeURIComponent(decodeURIComponent(e))}if(e&&e.startsWith("%252F")){e=decodeURIComponent(e)}if(e&&e.startsWith("%2F%2F")){e=e.replace(/(%2F)+/g,"%2F")}return e}function fm_path_inside_trash(){if(config_portable_module_filemanager_move_to_trash){var e=Object.keys(get_other_users_home_data());if(e&&e[0]){var a=fm_process_path(e[0],"decode")+"/.Trash",t=fm_get_current_path_full("decode");if(t&&a&&t.includes(a)){return 1}}}}function fm_path_check_jailed(e){var a=String();if(e&&!e.startsWith("%2F")){a="decode"}if(e){var t=get_jailed_user(),_=get_jailed_user("home");if(fm_user_data&&fm_user_data.allowed_paths&&fm_user_data.allowed_paths.length===1&&(get_access_level()===2||get_access_level()===3||get_access_level()===4)||t){var n=new RegExp("^"+fm_process_path(t?_:get_user_home(),a),"");e=e.replace(n,"")}}return e}function fm_process_escaped_link(e,a){var t=Convert.htmlUnEscape(e);if(a){return t}else{return Convert.encodeURIComponentConsistent(t)}}function fm_process_path(e,a){e=fm_extract_path(e);if(a){if(a.includes("decode")){e=decodeURIComponent(e)}if(a.includes("unescape")){var t=0;if(e&&e.startsWith("%2F")){e=decodeURIComponent(e);t=1}e=Convert.htmlUnEscape(e);if(t){e=Convert.encodeURIComponentConsistent(e)}}else if(a.includes("escape")){e=Convert.htmlEscape(e)}}return e}function fm_get_current_path(e){var a=$($v__fm__container_fluid_form+' > input[type="hidden"][name="path"]').val();a=fm_process_path(a,e);return a}function fm_get_current_path_full(e){var a=fm_get_current_path("decode");if(get_access_level()===2||get_access_level()===3||get_access_level()===4){a=get_user_home()+a}if(a){a=a.replace(/[\/]+$/,"")}return fm_process_path(a,e)}function fm_set_current_path(e){if(e){fm_previous_path_used=fm_get_current_path();if(e&&!e.startsWith("%2F")&&!e.startsWith("%252F")){e=Convert.encodeURIComponentConsistent(e)}e=fm_safe_path(e);$($v__fm__container_fluid+' input[type="hidden"][name="path"]').val(e)}}function fm_extract_path(e){var a;if(e&&(e.includes("?path=")||e.includes("&path="))){a=uri_parse_param2("path",e);if(!a){a="%2F"}}else{a=e}if(a&&!a.startsWith("%2F")&&!a.startsWith("%252F")){a=Convert.encodeURIComponentConsistent(a)}a=fm_safe_path(a);return a}function fm_files_mode_ask(e){if(!config_portable_module_filemanager_files_mode_ask){e.call();return}var a='[data-bb-handler="success"]',t='[data-bb-handler="danger"]',_="fm_files_mode_ask",n=function(a,t){if(a.find('input[name="'+_+'"]').val()=="true"){config_portable_module_filemanager_files_mode_ask=false;if(t!=config_portable_module_filemanager_files_safe_mode){config_portable_module_filemanager_files_safe_mode=t?true:false;core.updateModuleData("/mconfig.cgi?module=filemin§ion=line0&nprev=Previous","/mconfig_save.cgi",{config_portable_module_filemanager_files_safe_mode:config_portable_module_filemanager_files_safe_mode})}theme.config.save()}fm_overwrite_files=!t;e.call()},i=snippets.inject_extra_option("checkbox:html",false,_,theme_language("filemanager_files_mode_ask_remember"),{extraClass:{main:"thick"},getHtml:true,checked:false}),r=bootbox.dialog({message:theme_language("filemanager_files_mode_ask_desc"),title:'   '+theme_language("filemanager_files_mode_ask_title")+"",className:"overwrite-mode-ask-modal fade5",buttons:{success:{label:'   '+theme_language("filemanager_files_mode_ask_title_no")+"  ",className:"btn-primary vertical-align-top ",callback:function(){n($(this),true)}},danger:{label:'   '+theme_language("filemanager_files_mode_ask_title_yes")+"  ",className:"btn-danger vertical-align-top margined-left--2",callback:function(){n($(this),false)}}},onEscape:function(){}});r.init(function(){$(this).find(a).before(i+" ")}).on("shown.bs.modal",function(){var e=$(this);setTimeout(function(){e.find(config_portable_module_filemanager_files_safe_mode?a:t).focus()},0)})}function fm_trash_clear(e){var a="purge_trash_"+e+"";plugins.messenger.post(''+theme_language("filemanager_purge_trash_"+e+"_start").replace("$1",""+(get_access_level()===0?session.server.data("user-home"):"~")+"/.Trash")+"
    "+theme_language("global_please_wait"),0,"info",a+"_info",1,["bottom","right"]);$.ajax({type:"POST",url:v___server_extensions_path+"/file-manager/purge_trash.cgi?module="+v___module+extra_query()+"&trash_all="+(e==="all"?1:0),data:__f___gd(),dataType:"json",success:function(e){setTimeout(function(){__f___u("upd",e[0],1,a,false);tree_update_node()},567)},error:function(e){session.status(e.responseText)}})}function fm_path_manual_popover(){var e=$($v__fm__container_fluid+" .breadcrumb");if(e.hasClass("searching-a")){return}var a=$($v__fm__container_fluid+" #headln2r");if(Test.scrolledIntoView(a)){$('[data-toggle="popover-path"]').popover("show")}else{a.scrollIntoView({duration:200,direction:"vertical",complete:function(){$($v__fm__container_fluid+' [data-toggle="popover-path"]').popover("show")}})}}function __f____r(e,a,t,_,n,i){if(f__ck_init_err(1)){f__ck_init_err();return}typeof i=="undefined"?i=false:false;if(typeof n=="object"){var r=n[1],n=n[0]}else{var r=true}var o=fm_extract_path(a);fm_store_last_visited_dir(o);typeof n=="undefined"?n=false:false;if(e==="get"){if(typeof getflist!="undefined"&&i){getflist.abort();__f_____ul(true)}if(__f__ck_lock()&&r){return}__f_____lo(true,true);var s=extra_query(a,false,"list"),l=$($v__fm__container_fluid+" .tab-pane.active"),f=l.find(".paginate_button.active").text();getflist=$.ajax({xhr:function(){var e=new window.XMLHttpRequest;return e},type:"POST",url:v___server_extensions_path+"/file-manager/list.cgi?module="+v___module_file_manager+s,data:{path:o},dataType:"json",complete:function(){setTimeout(function(){fm_refreshing_current=0},120);if(!i&&initial_fm_load){getflists_loaded.push(getflist);if(getflists_loaded.length===getflists.length){initial_fm_load=0;__f_____ul(true)}}},success:function(e){if(e[0]&&e[0].udata&&(e[0].udata.user||e[0].udata.home)){fm_user_data=e[0].udata}var t="refreshDir_info";if(theme_message_exists(t)){select_all_entries("remove");theme_message_dismiss(t)}!initial_fm_load&&theme_message_dismiss("getPath_error");setTimeout(function(){!fm_refreshing_current&&l.data("previousPageNumber",f)},100);if(e[0].error&&e[0].error.length||e[0].error_fatal&&e[0].error_fatal.length){var i=e[0].error||e[0].error_fatal;plugins.messenger.post(''+error_replace_tags(Convert.htmlEscape(i.replace(" :",":").replace(" ,",","))),15,"error","getPath_error",1,["bottom","right"]);__f_____ul();$($v__fm__container_fluid+" .active table .cspinner").remove();if(n){$($v__fm__container_fluid+' a[href="#tab-'+n+'"]').parent("li").remove();$($v__fm__container_fluid+' .tab-content .tab-pane[id="tab-'+n+'"]').remove()}localStorage.removeItem(v___server_hostname+"-"+v___server_username+"-"+"fm-last-visited-dir");return}else{$($v__fm__container_fluid+' [data-toggle="popover-path"]').popover("hide")}var s=fm_get_current_path(),c=fm_extract_path(a);if(s!==c){select_all_entries("remove")}if(!n){fm_set_current_path(c)}var d=$(e[0].total).append(__f___tl_v()).html();r&&$($v__fm__container_fluid+" .total").html(d);if(n){$($v__fm__container_fluid+' .tab-pane[id="tab-'+n+'"]').data("totalValue",d)}else{$($v__fm__container_fluid+" .tab-pane.active").data("totalValue",d)}__f___u("upd",e[0],_,false,[n,r,o,d]);$("._select-unselect_").parent(".awcheckbox").remove();$("#__f__c__m").css("display","none");setTimeout(function(){__f___us_a();if(typeof sortable=="function"){sortable($($v__fm__container_fluid+" .tabs-top > ul.nav"))}},10)},error:function(e){var a=$(e.responseText),t=a.find("#headln2r").length;if(t){var _=a.filter("h3").text();if(_&&_.length){__f_____ul();plugins.messenger.post(''+(theme_language("global_error")+":  "+_.replace(" :"," ").replace(" ,",",")),15,"error","getPath_error",1,["bottom","right"])}}else{session.status(e.responseText)}}});if(!i&&initial_fm_load){getflists.push(getflist)}}}function get_other_users_home_data(){var e={};if(get_access_level()!=0||config_portable_module_filemanager_switch_users!==true){return e}if(typeof fm_users_data_dynamic==="object"){$.each(Convert.arrFlip(fm_users_data_dynamic),function(a,t){var _=fm_process_path(a.split(":")[2]);_=fm_process_path(_,"decode");if(_&&_.includes("/./")){_="/"+_.split("/./")[1]}_=fm_process_path(_,"encode");e[_]=t})}return e}function __f___us_a(){if(get_access_level()!=0||config_portable_module_filemanager_switch_users!==true){return}var e=fm_get_current_path();if(e&&e.indexOf($g__v__home_base)>-1&&e!=$g__v__home_base){$.ajax({type:"POST",url:v___server_extensions_path+"/file-manager/fetcher.cgi",data:{module:v___module,list_users:1},dataType:"JSON",success:function(a){$.each(Convert.arrFlip(a),function(t,_){var n=fm_process_path(t.split(":")[2]);var i=n;if(i&&i.includes("%2F.%2F")){var r=i.split("%2F.%2F");if(r&&r[0]&&r[1]){i="%2F"+r[1]}}e=fm_process_path(e,"decode");e=fm_process_path(e,"encode");i=fm_process_path(i,"decode");i=fm_process_path(i,"encode");if(e==i||e.startsWith(i+"%2F")){localStorage.setItem(v___server_hostname+"-"+"settings_thirdparty_filemanager_usermode",_)}fm_users_data_dynamic=a;__f___us_tl()})},error:function(e){session.status(e.responseText)}})}else{__f___us_m_def();__f___us_tl()}}function fm_get_file_info(e,a,t){var _=e+"/"+a;if(get_access_level()===2||get_access_level()===3||get_access_level()===4){_=get_user_home()+_}_=decodeURIComponent(_.replace(/\/\//g,"/"));var n=v___location_prefix+"/xhr.cgi",i={type:"file",action:"stat",file:_,module:v___module_file_manager};fm_target_spinner_add(t);$.ajax({type:"POST",url:n,data:i,dataType:"JSON",success:function(e){fm_target_spinner_remove();var a=function(){return $(document.body).find(".fm_fileinfo_data")},t=e.size[0],_=e.size[1],r=e.content;r=Convert.htmlEscape(r);r=r.replace(/(?:\r\n|\r|\n)/g,"
    ").replace(/\/\//g,"/");r=r.replace(/((\b)(?!\d+)IO Block|(?!\d+)\w+\b): /g,"$1: ");r=r.replace(/\s/g," ");var o="fm_fileinfo_data";window[o]=[];var s="data-a-checksum",l=""+s+"="",f=""",c=new RegExp(""+l+"(.*?)"+f,"g"),d=r.match(c),m=_>=1024e3&&_ div";if(n&&n.length){var r=e.call(this,t),o=new RegExp(r),s=n.find(i);s.html(s.html().replace(o,_))}},p=function(e,a){if(!a){u(g,e,h(e))}let t=i;t.checksum=e;window[o][e]=$.ajax({type:"POST",url:n,data:t,dataType:"JSON",success:function(a){u(h,e,a.checksum)},error:function(e){session.status(e.responseText)}})},g=function(e){return"'},h=function(e){return"'};if(d){r=r.replace(c,m?h("$1"):g("$1"))}var v=$(document.body);v.append('");a().on("shown.bs.modal",function(){if(!m){var e="click.checksumevt";a().off(e);a().on(e,"button["+s+"]",function(e){e.preventDefault();p($(this).attr(s),0)})}else{$.each(a().find("span["+s+"]"),function(){p($(this).attr(s),1)})}}).on("hidden.bs.modal",function(){a().remove();var e=window[o]||{};Object.entries(e).forEach(function(e){const[a,t]=e;if(t&&typeof t.abort==="function"){t.abort.call()}})}).modal("show")},error:function(e){session.status(e.responseText)}})}function fm_get_current_home_username(){return localStorage.getItem(v___server_hostname+"-"+"settings_thirdparty_filemanager_usermode")}async function fm_get_current_home_user_details(){var e=fm_get_current_path(),a={};if(e&&e.indexOf($g__v__home_base)>-1&&e!=$g__v__home_base){var t=fm_get_current_home_username();a=$.ajax({type:"POST",url:v___server_extensions_path+"/file-manager/fetcher.cgi",data:{module:v___module,list_users:1,list_user:t||" "},dataType:"JSON"});return await a}else{return a}}function __f___us_m_def(){localStorage.setItem(v___server_hostname+"-"+"settings_thirdparty_filemanager_usermode","")}function __f___us_tl(){var e=fm_get_current_home_username(),a=theme_language("filemanager_user_switch")+"

    "+theme_language("filemanager_user_switch_current_user")+": "+(e?e:v___server_username)+"",t="#file-manager-switch-user";$(t).attr("data-original-title",a);if(!!e){$(t).addClass("btn-warning")}else{$(t).removeClass("btn-warning")}}function __f___tl_v(){var e=theme_language("filemanager_selected_entries").replace("%value","0"),a=$('.total_selected[data-all="1"]');if(a.length){return". "+a[0].outerHTML}return'. '+e+' '}function update_per_page(e){$('[name="per_page"]').val(e)}function update_records_for_server_pagination(e){$('[name="config_portable_module_filemanager_records_for_server_pagination"]').val(parseInt(e)).trigger("input")}function block_events(){vars.events.blocked=true;setTimeout(function(){vars.events.blocked=false},vars.event.stopped_typing_delay*5)}function action_messages_dismiss_all(e){theme_message_dismiss(""+e+"_success");theme_message_dismiss(""+e+"_error");theme_message_dismiss(""+e+"_info");theme_message_dismiss(""+e+"_warning")}function alert_json_errors(e,a,t,_,n){var i=JSON.parse(e),r=t.endsWith("_")?t+a:t,o=theme_language(r)+":
      ",s=n?0:10;if(typeof i==="object"&&i){if(Object.keys(i).length>1||_){var l=0,f=String(),c=10,d=theme_language("filemanager_batch_error");for(var m in i){l++;if(l<=c){o+="
    • "+m+" - "+i[m]+"
    • "}else{f='
      '+d.replace("%1",''+(l-c)+"")+"
      "}}o+="
    "+f+"";plugins.messenger.post(''+o,15,"error",a+"_error",1,["bottom","right"])}else{plugins.messenger.post(''+Convert.json_to_string(i),15,"error",a+"_error",1,["bottom","right"])}}}function encryptDecryptModalA(e){var a=$("#encryptDecrypt"),t=a.find("[data-title-text]"),_=a.find("[data-title-icon]"),n=a.find("[data-encrypt]"),i=a.find("[data-decrypt]"),r=a.find("[data-label-text]"),o=a.find(".use_master_admin_keys_cnt"),s=a.find("[data-button-text]"),l=n.find('select[name="key"]'),f=a.find("[data-button-reverse]"),c=$("#__f__c__m li.context-o__f_m-dependent-encrypt:not(.divider)"),d=c.find("a"),m=c.find("i"),u="fa-key-plus",p="fa2 fa2-key-minus",g="hidden",h="disabled",v="btn-warning",b=theme_language("global_encrypt"),w=theme_language("global_decrypt"),x=theme_language("filemanager_encrypt_option_delete_afterwards"),y=theme_language("filemanager_decrypt_option_delete_afterwards");if(e){m.add(_).removeClass(u).addClass(p);t.add(s).text(w);d.html(c.find("i")[0].outerHTML+"  "+w);f.text(b);n.addClass(g);i.removeClass(g);s.addClass(v).removeClass(h);r.text(y);get_access_level()===0&&fm_get_current_home_username()&&o.removeClass("hidden")}else{m.add(_).addClass(u).removeClass(p);t.add(s).text(b);d.html(c.find("i")[0].outerHTML+"  "+b);f.text(w);n.removeClass(g);i.addClass(g);s.removeClass(v);r.text(x);o.addClass("hidden");if(l.val()){s.removeClass(h)}else{s.addClass(h)}}}function fm_install_deps(e,a,t){var _=a[0],n=a[1],i=a[2],r=a[3];plugins.messenger.post(''+r+"
    "+theme_language("global_please_wait")+'   ',0,"info","galleryError",1,["bottom","right"]);$.ajax({type:"POST",url:e,data:false,dataType:"html",success:function(e){if(!session.status(e)){return}if(!e||e&&e.includes(_)){plugins.messenger.post(''+i+"",15,"error","galleryError",1,["bottom","right"])}else{plugins.messenger.post(''+n+"",2,"success","galleryError",1,["bottom","right"])}}})}function image_download(e,a){link="download.cgi?file="+fm_process_path(a)+"&path="+fm_process_path(e)+"";window.location.replace(v___location_prefix+"/"+v___module_file_manager+"/"+link)}function image_preview(e,a,t){if(typeof PhotoSwipe!=="function"){load.bundle("photoswipe",1,{image_preview:arguments},2);return}var _=String();if(t){_+="&files_selected=1"}if(a){_+="&files_all=1"}if(e){_+="&file_requested="+e+""}if(a||t){var n=t?" fa-1_25x fa2 fa2-image-selected":" fa-1_15x fa2 fa2-images";plugins.messenger.post(''+(theme_language("filemanager_preview_images_building")+"
    "+theme_language("global_please_wait"))+'   ',0,"info","galleryError",1,["bottom","right"])}$.ajax({type:"POST",url:v___server_extensions_path+"/file-manager/list-images.cgi?module="+v___module+_+extra_query()+"&width="+parseInt(window.innerWidth*.75)+"&height="+parseInt(window.innerHeight*.75)+"",data:__f___gd(),dataType:"JSON",success:function(e){e=e[0];if(e.error){plugins.messenger.post(''+e.error,30,"warning","galleryError",1,["bottom","right"])}else if(e.warning){plugins.messenger.post(''+e.warning,10,"warning","galleryError",1,["bottom","right"])}else if(e.items){var a='";document.querySelector("body").insertAdjacentHTML("beforeend",a);pswpElem=document.querySelector(".pswp"),items=e.items,index_requested=e.index_requested,gallery=new PhotoSwipe(pswpElem,PhotoSwipeUI_Default,items,{history:false,shareEl:false,fullscreenEl:false,escKey:true,downloadEl:true,closeElClasses:["ui"],index:index_requested});gallery.listen("destroy",function(){pswpElem.remove()});theme_message_dismiss("galleryError");gallery.init()}},error:function(e){session.status(e.responseText)}})}function ___f__tw(){__f___globals();__f_____undel();document.activeElement.blur();var e=config_portable_module_filemanager_hide_tree_view?' class="hidden"':"",a=config_portable_module_filemanager_hide_tree_view?" hidden":"",t=document.body;if($(t).attr("class")&&$(t).attr("class").indexOf(v___module_file_manager)>-1){$__f__rf_s="fa-refresh";var _="jquery.jspanel";load.bundle(_,1);setTimeout(function(){$($v__fm__container_fluid+" #upload-form").removeAttr("onsubmit");$($v__fm__container_fluid+" #upload-form").append("

    "+theme_language("upload_initial_info")+"

    ");$($v__fm__container_fluid+' #upload-form input[name="upfiles"]').removeClass("heighter-28");$($v__fm__container_fluid+" #readyForUploadDialog .modal-footer").prepend('");$($v__fm__container_fluid+' #readyForUploadDialog button[onclick="uploadFiles()"]').html(' '+theme_language("global_upload")+"");$($v__fm__container_fluid+' #readyForUploadDialog button[onclick="uploadFiles()"]').after('"+'");$($v__fm__container_fluid+" #readyForUploadDialog #readyForUploadList").remove();$($v__fm__container_fluid+" #readyForUploadDialog [data-upload-reset]").after($(""+$v__fm__container_fluid+" #upload-form ~ .awcheckbox").detach().addClass("thick"));$($v__fm__container_fluid+' #readyForUploadDialog [data-id="overwrite_existing"]').parent().hide();var e=$($v__fm__container_fluid+" .o__f_m-button-delete");if(config_portable_module_filemanager_move_to_trash){e.addClass("btn-warning").removeClass("btn-danger").attr("title",theme_language("filemanager_context_move_to_trash")).find(".fa").addClass("fa-trash")}if(config_portable_module_filemanager_move_to_trash){e.wrapAll('
    ');e.after('"+'")}e.attr("data-container",".breadcrumb + .btn-group.pull-right").attr("data-placement","auto bottom").attr("data-skip","true").tooltip({sanitize:false,trigger:"hover",delay:{show:0,hide:vars.plugins.tooltip.delay.hide}});e.next(".dropdown").find(".dropdown-toggle").attr("data-container",".breadcrumb + .btn-group.pull-right").attr("data-placement","auto bottom").attr("data-skip","true").attr("title",theme_language("filemanager_context_empty_trash")).tooltip({sanitize:false,trigger:"hover",delay:{show:0,hide:vars.plugins.tooltip.delay.hide}})},3);$($v__fm__container_fluid+" .panel-body").append('
    ');if(config_portable_module_filemanager_auto_per_page){$($v__fm__container_fluid+" .panel-body").attr("data-auto-per-page",1)}$($v__fm__container_fluid_form).detach().appendTo("#tab-1");if(typeof sortable=="function"){var n=$($v__fm__container_fluid+" .tabs-top > ul.nav");sortable(n).on("sortupdate.fm",function(){__f___up__tb_store()})}if(config_portable_module_filemanager_remember_tabs&&__f___ld__tb_stored_chk()){setTimeout(function(){__f___ld__tb_stored()},10)}$.ajax({type:"POST",url:v___server_extensions_path+"/file-manager/fetcher.cgi",data:{module:v___module,home_base:1},dataType:"JSON",success:function(e){$g__v__home_base=jQuery.isEmptyObject(e)?v___server_userhome:fm_process_path(e.home_base)},error:function(e){session.status(e.responseText)}});var r=setInterval(function(){if(typeof fm_user_data!=="undefined"&&fm_user_data.user){if(get_access_level()==0&&!get_jailed_user()&&config_portable_module_filemanager_switch_users===false){$('#headln2r .btn-group a[href*="config.cgi"]').before('');__f___us_tl();$(t).attr("data-user-switch",1)}clearInterval(r)}},100);var o=$("#headln2r .btn-group");var s="path-to-shell",l=core.moduleAvailable("xterm"),f=plugins.shell.available(),c=l?"fa2 fa2-terminal":"fa fa-terminal";if(l||f){o.prepend("');$($v__fm__container_fluid+" ."+s).on("click.fm",function(e){e.preventDefault();if(v___module===v___module_file_manager){var a=fm_get_current_path();if(get_access_level()===3){a=fm_process_path(get_user_home())+a}if(session.server.data("terminal")==1){var t=fm_process_path(a,"decode/unescape");t=t.replace(/[-[\]{}()*+?.,\\^$|#\s'"]/g,"\\$&");plugins.terminal.open("cd "+t+"")}else if(session.server.data("shell")==1){plugins.shell.set(a);plugins.shell.open()}}})}o.prepend('');o.prepend('');var d=theme_language("global_module_preferences")+" "+theme_shortcuts_generate("conf");o.find("i.fa.fa-cog").parent("a").attr("data-placement","auto right").attr("data-original-title",d);$("body").on("input.fm",".dataTables_length select",function(e){fm_stored_listing.delete()});$(t).on("click.fm",".tab-pane.active .ui_checked_columns > .ui_checked_checkbox:nth-child(1) + td > a",function(e){e.preventDefault();e.stopPropagation();if(e.offsetX<=-2&&e.offsetX>=-11&&!$(e.target).is("img")){$(this).trigger("contextmenu")}});var m;$(t).on("contextmenu.fm",function(){m=true});function u(){m=false}$(t).on("click.fm",u).on("mouseleave.fm",".popover:not(.file-manager-help):not(.jsPanel-file-info):not(.popover-path-data)",function(e){var a=$(this);e.preventDefault();e.stopPropagation();if(m){$(t).one("click.fm",function(){a.popover("hide")})}else{a.popover("hide")}});$($v__fm__container_fluid+" div.total").append(__f___tl_v());$($v__fm__container_fluid+" .tab-pane.active").data("totalValue",$("div.total").html());$("body.file-manager #content").append('");$(t).on("click.fm","#__f__c__m li i.fa",function(e){$(this).parents("a").trigger("click")}).on("hidden.bs.modal",$v__fm__container_fluid,function(){$(".modal-backdrop").remove()}).on("click.fm",function(e){$(".tooltip").each(function(){if(!$(this).is(e.target)&&$(this).has(e.target).length===0&&$(".tooltip").has(e.target).length===0){$(this).tooltip("hide")}})}).on("click.fm",$v__fm__container_fluid+" .breadcrumb .fa-caret-right",function(e){e.preventDefault();e.stopPropagation();var a=$($v__fm__container_fluid+" .breadcrumb span[data-tree]"),t=$($v__fm__container_fluid+" .breadcrumb .fa-caret-down"),_=$(this),n=_.attr("data-path"),i=n?n:"%2F",r=_.parent("a").attr("href");$dirCurrent=_.parent("a").text();a.remove();t.addClass("fa-caret-right").removeClass("fa-caret-down");if(_.parent("a").next("span[data-tree]").length){return}_.addClass("invisible").after('');$(this).removeClass("fa-caret-right").addClass("fa-caret-down");_.parent("a").after('"):theme_language("filemanager_selected_entries").replace("%value",""+e+""))}function __r____changed(){if($("body").attr("class")&&$("body").attr("class").indexOf(v___module_file_manager)>-1){$(".total_size_data").parent("span").addClass("hidden");var e=__f__cnt___selected();if(e){__f___ub()}else{__f___lb()}total_selected_count_update(e);if(__f__cnt___selected(1)!=__f__cnt___total(1)){select_all_entries("remove")}}}function file_manager_table_rows_control(){var e=this;this.p_a=undefined;var a="ui_checked_columns",t="click.ranged",_="input.iawobject",n="td:first-child",i=$($v__fm__container_fluid);i.off(t);i.on(t,".active ."+a+":visible:not(.directory_go_up) "+n+" "+_,function(t){var i=$(this).parents("tr."+a+"");document.activeElement.blur();t.stopPropagation();setTimeout(function(){e.p_a=i},50);if(!$(t.target).is(_)||!vars.events.keypressed.shift){return}if(vars.events.keypressed.shift&&e.p_a&&!e.p_a.is(i)&&t.originalEvent&&t.originalEvent.isTrusted===true){var r=e.p_a.index(),o=i.index(),s=o>r?i.prevUntil(e.p_a):i.nextUntil(e.p_a),l=""+n+" "+_+"";var f=e.p_a.find(l).is(":checked");s.find(l).each(function(a,t){$(t).add(e.p_a.find(l)).prop("checked",f);$(t).trigger("change")})}})}function check_pagination_option(){if($.inArray(parseInt(config_portable_module_filemanager_records_per_page),[5,10,15,20,25,30,35,40,45,50,55,60,70,80,90,100,250,500])===-1){config_portable_module_filemanager_records_per_page=30}}function get_current_list_stats(){var e=a=$($v__fm__container_fluid+" .panel-body .total:visible").contents().filter(function(){return this.nodeType==3})[0].data,a=e.match(/[0-9]+(,[0-9]+)*/g),t=a.length>2?1:0,_=t?a[2]:parseInt(a[0])+parseInt(a[1]),n=t?a[3]:$($v__fm__container_fluid+" .dataTables_paginate:visible a").length-2;return[_,n]}function select_all_entries(e){var a='data-select-all-entries="affirmative"',t="["+a+"]",_='data-yes="1"',n='data-no="1"',i='data-alert-text="1"',r='data-clear="1"';if(e){if(e==="remove"){$(t).remove();total_selected_count_update(__f__cnt___selected(),1)}else if(e==="test"){return $(t).find("["+r+"]").length}else if(e==="test_unconf"){return $(t).find("["+_+"]").length}return}var o=get_current_list_stats(),s=o[0],l=o[1];if(l===-2||l==1){return}var f=theme_language("filemanager_mass_select").replace("%1",""+s+"").replace("%2",""+l+""),c=theme_language("filemanager_mass_selected").replace("%1",""+s+""),d="",m="
    "+f+"  "+'
    '+""+""+"
    ",u=$($v__fm__container_fluid+" .data-content-container");if($(t).length){return}u.prepend(m);$(t).find("["+_+"]").one("click",function(e){$(this).parent().html(d).parent().find("["+i+"]").html(c);$($v__fm__container_fluid+" .total_selected").attr("data-all",1).find("span").text(s);selectAllRows()});$(t).find("["+n+"]").one("click",function(e){select_all_entries("remove")});$(t).one("click","["+r+"]",function(e){select_all_entries("remove");deselectAllRows(),total_selected_count_update(0,0,1),__f___lb()})}function f__ck_init_err(e){var a=!$($v__fm__container_fluid_form).length&&$('a.page_footer_submit[href*="index.cgi?path="]').length||core.error.get(),t=$(".container-fluid-loading").find(".cspinner-icon").length;if(e){return a}if(a){$v__fm__global_error=1;$(".data-content-container").addClass("hidden");t&&page.handle.content.preloader.show();__f_____undel()}}function get_link(e,a){var t=String(),_=fm_get_current_path();extra_params=extra_query(e);__f____r("get","index.cgi?path="+_+""+extra_params,false,0)}function fm_check_chroot(){var e=fm_user_data&&fm_user_data.home?fm_user_data.home:session.server.data("user-home");if(e&&e.includes("/./")){return true}else{return false}}function __f___b_dr(e){var a=fm_get_current_path();if(a==="%2F"){return}var t="";if($($v__fm__container_fluid+" .breadcrumb li:first-child i").hasClass("fa-search")){t="index.cgi?path="+a}else{t=$($v__fm__container_fluid+" .breadcrumb > li:eq(-2) > a").attr("href")}if(!t){t="index.cgi?path=%2F"}fm_goto_previous=1;if(a){var _=a.split("%2F").pop();if(_){fm_goto_previous="name="+_+""}}__f____r("get",t,"",0,false,e.originalEvent!==undefined);fm_root_dir_spinner_add()}function __f___o_dr(e,a,t,_,n){if(t||n){fm_target_spinner_add(e);__f____r("get",t,false,0,false,_)}}function f__insert_dir_up(){var e=fm_get_current_path();e&&e!="/"&&e!="%2F"&&!$($v__fm__container_fluid+" .active table tbody tr.directory_go_up").length&&$($v__fm__container_fluid+" .active table tbody").prepend('  ..')}function __f___um(){var e=fm_get_current_home_username();if(!e&&!config_portable_module_filemanager_switch_users){if(fm_user_data&&fm_user_data.user){e=fm_user_data.user}}if(!!e){return"&username="+e+""}else{return""}}function f__act_tab_name(e){$($v__fm__container_fluid+" [data-tab-path]").filter(function(a,t){if(e.endsWith($(t).text())||$(t).text()===e||$(t).text()==="/"&&e===""){$(t).parent("a").trigger("click");return}})}function f__chk_loading(){if(v___module!=v___module_file_manager){return}if(f__ck_init_err(1)){f__ck_init_err();return}var e=$("[data-tab-path]");if($(".container-fluid.fmx .dataTable").length){setTimeout(function(){__f__c__m();file_manager_table_rows_control()},2);setTimeout(function(){var e="file-manager";$.getScript(""+v___server_extensions_path+"/"+e+"/"+e+"-reinit."+v___source_type+".js?"+theme.version(true)+"").fail(function(e){if(e.statusText!=="canceled"&&e.statusText!=="abort"){connection_error(e,1)}})},401)}else{setTimeout(f__chk_loading,10)}}function __f___gd(){var e=$(_f__table().fnGetNodes()).find("input").add($($v__fm__container_fluid+" .active form > input:not([name='path'])")).serialize();e=e+"&path="+fm_get_current_path();return e}function __f___gdArr(){return $(_f__table().fnGetNodes()).find("input").add($($v__fm__container_fluid+" .active form > input:not([name='path'])")).serializeArray()}function _f__gr(e){if(e){return $(_f__table().fnGetNodes()).find("input:checked")}else{return $(_f__table().fnGetNodes()).find("input")}}function __f__ld__bg(){theme_modal_dismiss();__f_____ul()}function __f__upd_____tl(e){var a=$($v__fm__container_fluid+" div.total").children().clone();$($v__fm__container_fluid+" div.total").empty().html(e+". ").append(a)}function __f__ck_lock(){return $("body.file-manager").find($v__fm__container_fluid_form+" table tbody").hasClass("o__f_m-updating")}function __f___ub(){if(!fm_path_inside_trash()){$($v__fm__container_fluid+" div button.o__f_m-button-delete").removeClass("disabled").attr("onclick","removeDialog()")}$($v__fm__container_fluid+" .o__f_m-button-chmod").removeClass("disabled").find("a").attr("onclick","chmodDialog()");$($v__fm__container_fluid+" .o__f_m-button-chown").removeClass("disabled").find("a").attr("onclick","chownDialog()");$($v__fm__container_fluid+" .o__f_m-button-chattr").removeClass("disabled").find("a").attr("onclick","chattrDialog()");$($v__fm__container_fluid+" .o__f_m-button-chcon").removeClass("disabled").find("a").attr("onclick","chconDialog()");$($v__fm__container_fluid+" .o__f_m-button-acls").removeClass("disabled").find("a").attr("onclick","aclsDialog()");$($v__fm__container_fluid+" .o__f_m-button-compress").removeClass("disabled").find("a").attr("onclick","compressDialog()");$($v__fm__container_fluid+" .o__f_m-button-copy").removeClass("disabled");$($v__fm__container_fluid+" .o__f_m-button-cut").removeClass("disabled");__f__cond_l()}function __f___lb(){$($v__fm__container_fluid+" div button.o__f_m-button-delete").addClass("disabled").removeAttr("onclick");$($v__fm__container_fluid+" .o__f_m-button-chmod").addClass("disabled").find("a").removeAttr("onclick");$($v__fm__container_fluid+" .o__f_m-button-chown").addClass("disabled").find("a").removeAttr("onclick");$($v__fm__container_fluid+" .o__f_m-button-chattr").addClass("disabled").find("a").removeAttr("onclick");$($v__fm__container_fluid+" .o__f_m-button-chcon").addClass("disabled").find("a").removeAttr("onclick");$($v__fm__container_fluid+" .o__f_m-button-acls").addClass("disabled").find("a").removeAttr("onclick");$($v__fm__container_fluid+" .o__f_m-button-compress").addClass("disabled").find("a").removeAttr("onclick");$($v__fm__container_fluid+" .o__f_m-button-copy").addClass("disabled").find("a").removeAttr("onclick");$($v__fm__container_fluid+" .o__f_m-button-cut").addClass("disabled").find("a").removeAttr("onclick");__f__cond_l()}function __f__cond_l(){var e=$($v__fm__container_fluid+" .o__f_m-button-symlink"),a=$("#__f__c__m a[data-context-newsymlink]").parent("li");if(__f__cnt___selected()>=1){e.removeClass("disabled");a.removeClass("disabled")}else{e.addClass("disabled");a.addClass("disabled")}}function __f_____undel(){var e="body",a=$(e);var t='.breadcrumb:visible [data-toggle="popover-path"]';a.undelegate(t,"inserted.bs.popover shown.bs.popover hide.bs.popover");var t=$v__fm__container_fluid+' [data-toggle="popover-path"]';a.undelegate(t,"hide.bs.popover");var t=$v__fm__container_fluid+' a[data-toggle="tab"]';a.undelegate(t,"hide.bs.tab show.bs.tab shown.bs.tab");var t="click.fm dblclick.fm click.ranged click.fmcmenu contextmenu.fm submit.fm change.fm changed.fm input.fm mouseleave.fm mouseenter.fm mouseup.fm mouseout.fm mouseover.fm mousemove.fm input.fm keyup.fm keydown.fm keypress.fm sortupdate.fm resize.fm";a.off(t);$(e+" *").undelegate(t).unbind(t).off(t)}function __f__dw__dir(e){var a=fm_get_current_path(),t=fm_get_current_home_username(),_=t?t:v___server_username,n=config_portable_module_filemanager_force_tar==false?1:0,i=id=parseInt(Math.random()*1e3),r="preparing_download_"+i+"",o=new Date,s=o.getFullYear()+"."+(o.getMonth()+1)+"."+o.getDate()+"_"+o.getHours()+"."+o.getMinutes()+"."+o.getSeconds(),l="download-"+s+"-"+_+"-("+v___server_hostname+")",f="...";plugins.messenger.post(''+theme_language("filemanager_preparing_download").replace("%number",e).replace("%dots",""+f+'         '),0,"info",r,0,["bottom","right"]);$("[data-cancel-preparing-download-"+i+"]").one("click",function(){window[r].abort();plugins.messenger.toast.hide(r);plugins.messenger.post({type:"error",icon:"times-circle",id:r,message:theme_language("filemanager_canceled_download"),position:"bottomRight",cancel:false});$.ajax({type:"GET",url:v___server_extensions_path+"/file-manager/download.cgi?cancel=1&filename="+l+"&path="+a+"&do_zip="+n+"&module="+v___module_file_manager+extra_query()})});window[r]=$.ajax({xhr:function(){var e=new window.XMLHttpRequest;return e},type:"POST",url:v___server_extensions_path+"/file-manager/download.cgi?filename="+l+"&do_zip="+n+"&module="+v___module_file_manager+extra_query(),data:__f___gd(),dataType:"text",success:function(t){if(!session.status(t)){return}window.location.replace(v___server_extensions_path+"/file-manager/download.cgi?download=1&filename="+l+"&path="+a+"&do_zip="+n+"&module="+v___module_file_manager+extra_query());plugins.messenger.toast.hide(r);plugins.messenger.post({type:"success",icon:"download-cloud",id:r,message:theme_language("filemanager_prepared_download").replace("%number",e).replace("%dots",f),position:"bottomRight",cancel:false,timeout:2e3})},error:function(e){}})}function context_menu_toggle_delete_trash(e){var a=$("#__f__c__m");if(a.is(":visible")){var t="context-delete-trash",_=theme_language("filemanager_context_delete"),n=theme_language("filemanager_context_move_to_trash"),i=a.find("[data-"+t+"]"),r=e?!config_portable_module_filemanager_move_to_trash:config_portable_module_filemanager_move_to_trash;$context_menu_selector_delete_text_target=i.find("span"),$context_menu_selector_delete_icon_target=i.find(".fa"),context_menu_selector_delete_icon_delete="fa-trash-o",context_menu_selector_delete_icon_trash="fa-trash";i.data(t,~~!r);i.attr("data-"+t+"",~~!r);$context_menu_selector_delete_icon_target.addClass(r?context_menu_selector_delete_icon_delete:context_menu_selector_delete_icon_trash).removeClass(!r?context_menu_selector_delete_icon_delete:context_menu_selector_delete_icon_trash);$context_menu_selector_delete_text_target.text(r?_:n)}}function __f_____lo(e,a){if(a===true){$("body.file-manager").find("#list_form table tbody").addClass((e?" o__f_m-updating":"")+"");$("body.file-manager").find("ul.pagination").addClass("pointer-events-none");$($v__fm__container_fluid+" .nav.nav-tabs li").addClass("disabled");$("#file-manager-new-instance").addClass("disabled_no_styling cursor-na")}}function __f_____ul(e){if(initial_fm_load){return}$("body.file-manager").find("#list_form table tbody").css("opacity","1").removeClass("o__f_m-updating");$("body.file-manager").find("ul.pagination").css("opacity","1").removeClass("pointer-events-none");$($v__fm__container_fluid+" .nav.nav-tabs li").removeClass("disabled");!e&&$($v__fm__container_fluid+" .btn-group.pull-right > .btn-group > button").removeClass("disabled");$("#file-manager-new-instance").removeClass("disabled_no_styling cursor-na")}function __init__dt_ck__e(){if($($v__fm__container_fluid+" .active td.dataTables_empty").length){$($v__fm__container_fluid+" .active td.dataTables_empty").css({padding:"4px","border-top-color":"#eaeaea"});$($v__fm__container_fluid+" .dataTables_paginate").addClass("hidden");$($v__fm__container_fluid+" .active td.dataTables_empty").attr("colspan",parseInt($(".active thead tr th:visible").length));setTimeout(function(){if($($v__fm__container_fluid+" .__o__f_m-search-results").length){$($v__fm__container_fluid+" td.dataTables_empty").html(theme_language("datatable_no_search_results"))}},0)}else{$($v__fm__container_fluid+" .active table, .active td.dataTables_empty").removeAttr("style");$($v__fm__container_fluid+" .dataTables_paginate").removeClass("hidden")}}function __f____success(e,a,t,_,n,i,r,o,s,l,f,c,d,m,u,p){var g=e[0].error&&e[0].error.length,h=e[0].error_fatal&&e[0].error_fatal.length,v=typeof u=="undefined"?false:u,b=fm_get_current_path(),w=1,x=1,y=1;setTimeout(function(){theme_message_dismiss(""+m+"_info");theme_message_dismiss(""+m+"_warning")},564);function k(e){var e=e.replace(/\\n/g," ").replace(/\\/g,""),a=JSON.parse(e);if(typeof a==="object"&&a){if(Object.keys(a).length>1){var t='
    ';$.each(a,function(e,a){t+="• "+Convert.htmlEscape(e)+" - "+Convert.htmlEscape(a)+"
    ";t=Convert.htmlUnEscapeSafe(t)});t+="
    ";return[1,error_replace_tags(t)]}else{return[0,error_replace_tags(Convert.htmlUnEscapeSafe(Convert.htmlEscape(Convert.json_to_string(a))))]}}}if(v&&v[0]=="compress"){var C=fm_process_path(v[1]),T=fm_process_path(v[2],"escape/decode");if(b!=C){w=0;x=0;y=0;if(!C){C="/"}setTimeout(function(){if(g){plugins.messenger.post(''+(theme_language("filemanager_successful_compression_bg_with_errors").replace("%file",T).replace("%path",fm_process_path(C,"escape/decode"))+k(e[0].error)[1]),o,s,m+"_"+s,1,["bottom","right"])}else{plugins.messenger.post(''+theme_language("filemanager_successful_compression_bg").replace("%file",T).replace("%path",fm_process_path(C,"escape/decode")),c,"info",m+"_"+d,1,["bottom","right"])}},564)}}if(g&&w){var D=k(e[0].error),S=D[0],j=D[1],F=(S?theme_language(r+(h?"_fatal":"")):"")+j;setTimeout(function(){plugins.messenger.post(''+F,o,h||!s?"error":s,m+"_"+s,1,["bottom","right"])},564)}else if(x){var P=theme_language(f);if(m==="delete"){var E="";if(fm_deletion_to_trash&&fm_deletion_to_trash.home||fm_deletion_empty_trash_previous){var I=fm_deletion_to_trash.home||fm_deletion_empty_trash_previous;if(I===true){E=".Trash"}else if(I&&I.includes(session.server.data("user-home"))){E="~/.Trash"}else{E=Convert.htmlEscape(I)+"/.Trash"}c=2}if(e[0].etrashed){P=theme_language("filemanager_successful_emptying_trash")}P=P.replace("$1",E)}setTimeout(function(){plugins.messenger.post(''+P,c,d,m+"_"+d,1,["bottom","right"])},564)}n&&$("."+n).remove();if(!h){a&&__f_____ul();t&&theme_modal_dismiss();_&&y&&setTimeout(function(){__f___u("upd",e[0],1,m,false,p),tree_update_node()},123)}}function __f____a(e,a){block_events();var t=fm_get_current_path();if(e!="bookmark"){__f_____lo(false,true)}if(e==="copy"||e==="cut"){$.ajax({type:"POST",url:v___server_extensions_path+"/file-manager/"+e+".cgi"+"?module="+v___module+extra_query(),data:__f___gd(),dataType:"text",success:function(a){if(!session.status(a)){return}localStorage.removeItem(v___server_hostname+"-"+"cut");localStorage.removeItem(v___server_hostname+"-"+"copy");localStorage.setItem(v___server_hostname+"-"+e,1);$($v__fm__container_fluid+" .o__f_m-button-paste").removeClass("disabled");setTimeout(function(){if(e==="copy"){plugins.messenger.post(''+theme_language("filemanager_copying_successful"),1.5,"info",e+"_info",1,["bottom","right"])}else if(e==="cut"){plugins.messenger.post(''+theme_language("filemanager_cutting_successful"),1.5,"warning",e+"_warning",1,["bottom","right"])}},246);__f_____ul()},error:function(a){plugins.messenger.post(''+theme_language("filemanager_buffer_error"),10,"error",e+"_error",1,["bottom","right"])}})}if(e==="paste"){var _={count:"file-manager-response_count",type:"file-manager-response"};var n=function(e){for(var a in e){document.cookie=""+_[a]+"=; expires=Thu, 01-Jan-1970 00:00:01 GMT; path=/;"}};var i=__f___um();if(i){i=i.replace("username=","fownergroup=")}$.ajax({type:"POST",url:v___server_extensions_path+"/file-manager/paste.cgi?path="+fm_process_path(t)+"&module="+v___module_file_manager+i+extra_query(),data:false,dataType:"json",success:function(a){setTimeout(function(){theme_message_dismiss(""+e+"_info");theme_message_dismiss(""+e+"_warning")},566);var r=get_cookie(_.count)=="1"?1:2;var o=get_cookie(_.type);n(_);if(!o||o&&o.length&&o.indexOf("err")===-1){localStorage.removeItem(v___server_hostname+"-"+"cut");if(!localStorage.getItem(v___server_hostname+"-"+"copy")){$($v__fm__container_fluid+" .o__f_m-button-paste").addClass("disabled")}}if(o=="err"){alert_json_errors(a[0].error,e,"filemanager_paste_warning",true,true);setTimeout(function(){__f___u("upd",a[0],1,e,false);tree_update_node()},567)}else if(o=="merr"){plugins.messenger.post(''+theme_language("filemanager_move_into_self"),15,"error",e+"_error",1,["bottom","right"]);__f_____ul()}else if(o=="ep"){bootbox.dialog({message:theme_language("filemanager_target_conflict_message_"+r+""),title:'   '+theme_language("filemanager_target_conflict_"+r+"")+"",buttons:{success:{label:'   '+theme_language("filemanager_target_conflict_paste")+"  ",className:"btn-primary vertical-align-top ",callback:function(){$.ajax({type:"POST",url:v___server_extensions_path+"/file-manager/paste.cgi?path="+fm_process_path(t)+"&module="+v___module_file_manager+"&ua=2"+i+extra_query(),data:false,dataType:"json",success:function(a){if(a[0].error.length>1){plugins.messenger.post(''+error_replace_tags(a[0].error),10,"warning",e+"_warning",1,["bottom","right"])}else{plugins.messenger.post(''+theme_language("filemanager_pasting_and_copying_"+r+""),2,"success",e+"_success",1,["bottom","right"])}setTimeout(function(){__f___u("upd",a[0],1,e,false);tree_update_node();n(_)},567)},error:function(e){session.status(e.responseText);n(_)}})}},danger:{label:'   '+theme_language("filemanager_target_conflict_replace")+"  ",className:"btn-danger vertical-align-top margined-left--2",callback:function(){$.ajax({type:"POST",url:v___server_extensions_path+"/file-manager/paste.cgi?path="+fm_process_path(t)+"&module="+v___module_file_manager+"&ua=1"+i+extra_query(),data:false,dataType:"json",success:function(a){if(a[0].error.length>1){plugins.messenger.post(''+error_replace_tags(a[0].error),10,"warning",e+"_warning",1,["bottom","right"])}else{plugins.messenger.post(''+theme_language("filemanager_pasting_and_replacing_"+r+""),2,"success",e+"_success",1,["bottom","right"])}setTimeout(function(){__f___u("upd",a[0],1,e,false);tree_update_node();n(_)},567)},error:function(e){session.status(e.responseText);n(_)}})}}},onEscape:function(){__f_____ul()}})}else if(o=="cc"){plugins.messenger.post(''+theme_language("filemanager_pasting_and_copying_"+r+""),2,"success",e+"_success",1,["bottom","right"]);setTimeout(function(){__f___u("upd",a[0],1,e,false);tree_update_node()},567)}else{plugins.messenger.post(''+theme_language("filemanager_pasting_successful"),2,"success",e+"_success",1,["bottom","right"]);setTimeout(function(){__f___u("upd",a[0],1,e,false);tree_update_node()},567)}},error:function(e){session.status(e.responseText);n(_)}})}if(e==="extract"){var r=String(),o=String();if(a&&a[0]){r="&password="+a[0]+""}if(a&&a[1]){o="&delete="+(a[1]?1:0)+""}var s=fm_get_current_path();theme_message_dismiss(e+"_warning");tree_update_node();$.ajax({type:"POST",url:v___server_extensions_path+"/file-manager/extract.cgi?module="+v___module+o+__f___um()+extra_query(),data:__f___gd()+r,dataType:"json",success:function(a){setTimeout(function(){theme_message_dismiss(""+e+"_info");theme_message_dismiss(""+e+"_warning")},566);if(a[0].error&&a[0].error.length){alert_json_errors(a[0].error,e,"filemanager_errors_extraction")}setTimeout(function(){if(fm_get_current_path()===s){__f___u("upd",a[0],1,e,false);tree_update_node()}},567)},error:function(e){session.status(e.responseText)}})}if(e==="bookmark"){var l;if($.isArray(a)){l=a[0]}else{l=t}if(l&&l.endsWith("/")){l=l.slice(0,-1)}else if(l&&l.endsWith("%2F")){l=l.slice(0,-3)}$.ajax({type:"POST",url:v___server_extensions_path+"/file-manager/bookmark.cgi?module="+v___module_file_manager,data:{path:l},dataType:"text",success:function(a){setTimeout(function(){theme_message_dismiss(""+e+"_info");theme_message_dismiss(""+e+"_warning")},566);if(!session.status(a)){return}exiting_book_mark=f_m__bm__u();if(exiting_book_mark.length){plugins.messenger.post(''+theme_language("filemanager_unbookmark_success").replace("%value",l?fm_process_path(l,"escape/decode"):"/"),5,"warning","bookmarkAddRemove",1,["bottom","right"])}else{plugins.messenger.post(''+theme_language("filemanager_bookmark_success").replace("%value",l?fm_process_path(l,"escape/decode"):"/"),5,"info","bookmarkAddRemove",1,["bottom","right"])}fm_bookmark_searched_str=null},error:function(e){}})}if(e==="delete"){fm_deletion_empty_trash_previous=fm_deletion_empty_trash===1;var f=__f___gd(),c=function(a){var t=a[fm_get_current_home_username()],_=t?"&"+Convert.json_to_query(t):"&"+Convert.json_to_query(fm_user_data);extra_details=fm_deletion_to_trash?_:"";if(fm_deletion_to_trash){if(t){fm_deletion_to_trash=t}else{fm_deletion_to_trash=fm_user_data}}if(fm_deletion_to_trash&&fm_deletion_to_trash.home&&fm_deletion_to_trash.home.includes("/./")){fm_deletion_to_trash.home="/"+fm_deletion_to_trash.home.split("/./")[1]}$.ajax({type:"POST",url:v___server_extensions_path+"/file-manager/delete.cgi?module="+v___module+extra_query()+"&etrash="+(fm_deletion_empty_trash_previous?1:0)+"&trash="+(fm_deletion_to_trash?1:0)+extra_details,data:f,dataType:"json",success:function(a){__f____success(a,1,1,1,false,"fa-exclamation-triangle","filemanager_"+(fm_deletion_to_trash?"remove":"delete")+"_warning",30,"error",fm_deletion_empty_trash_previous?"fa2 fa2-trash-empty-o":fm_deletion_to_trash?"fa-trash-o":"fa-trash","filemanager_successful_"+(fm_deletion_empty_trash_previous?"emptying_trash":fm_deletion_to_trash?"removal":"deletion")+"",2,"success",e,false,f)},error:function(e){session.status(e.responseText)}})},d=async()=>{var e=await fm_get_current_home_user_details();c(e)};d()}if(e==="rename"){var m=fm_get_current_path(),u=$($v__fm__container_fluid+" #renameForm").serialize();theme_modal_dismiss();$.ajax({type:"POST",url:v___server_extensions_path+"/file-manager/rename.cgi?module="+v___module+extra_query(),data:u,dataType:"json",success:function(a){setTimeout(function(){theme_message_dismiss(""+e+"_warning")},566);if(a[0].error&&a[0].error.length){plugins.messenger.post(''+error_replace_tags(a[0].error),10,"error",e+"_error",1,["bottom","right"]);setTimeout(function(){theme_message_dismiss(""+e+"_info")},566);__f_____ul();return}setTimeout(function(){__f___u("upd",a[0],1,e,false,u);tree_update_node()},567)},error:function(e){session.status(e.responseText)}})}if(e==="create_folder"){var m=fm_get_current_path();var p="#createFolderForm",g=$($v__fm__container_fluid+" "+p+"").serialize();theme_modal_dismiss();$.ajax({type:"POST",url:v___server_extensions_path+"/file-manager/create_folder.cgi?module="+v___module+__f___um()+extra_query(),data:g,dataType:"json",success:function(a){setTimeout(function(){theme_message_dismiss(""+e+"_warning")},566);if(a[0].error&&a[0].error.length){plugins.messenger.post(''+error_replace_tags(a[0].error),10,"error",e+"_error",1,["bottom","right"]);setTimeout(function(){theme_message_dismiss(""+e+"_info")},566);__f_____ul();return}setTimeout(function(){__f___u("upd",a[0],1,e,false,g);tree_update_node()},567)},error:function(e){session.status(e.responseText)}})}if(e==="create_file"){var m=fm_get_current_path(),h=$($v__fm__container_fluid+" #createFileForm").serialize();theme_modal_dismiss();$.ajax({type:"POST",url:v___server_extensions_path+"/file-manager/create_file.cgi?module="+v___module+__f___um()+extra_query(),data:h,dataType:"json",success:function(a){setTimeout(function(){theme_message_dismiss(""+e+"_warning")},566);if(a[0].error&&a[0].error.length){plugins.messenger.post(''+error_replace_tags(a[0].error),10,"error",e+"_error",1,["bottom","right"]);setTimeout(function(){theme_message_dismiss(""+e+"_info")},566);__f_____ul();return}setTimeout(function(){__f___u("upd",a[0],1,e,false,h)},567)},error:function(e){session.status(e.responseText)}})}if(e==="url_download"){var m=fm_get_current_path();theme_modal_dismiss();var v=$($v__fm__container_fluid+" #downFromUrlForm input:not([name='path'])").serialize();v=v+"&path="+fm_get_current_path();$.ajax({type:"POST",url:v___server_extensions_path+"/file-manager/http_download.cgi?module="+v___module+__f___um()+extra_query(),data:v,dataType:"json",success:function(a){setTimeout(function(){theme_message_dismiss(""+e+"_info");theme_message_dismiss(""+e+"_warning")},566);if(a[0].error&&a[0].error.length){plugins.messenger.post(''+error_replace_tags(a[0].error),10,"error",e+"_error",1,["bottom","right"]);__f_____ul();return}else{plugins.messenger.post(''+a[0].success,2,"success",e+"_success",1,["bottom","right"]);setTimeout(function(){__f___u("upd",a[0],1,e,false)},567)}},error:function(e){const a=xhr_response_text_to_html(e),t=a.find("[data-fatal-error-text]");if(t.length){const e=t.html();plugins.messenger.post(''+theme_language("filemanager_download_status_err")+" "+e,15,"error","url_download_info",1,["bottom","right"])}session.status(e.responseText)}})}if(e==="search"){var m=fm_get_current_path(),o=$($v__fm__container_fluid+" #searchForm").find('input[name="query"]').val(),b=$($v__fm__container_fluid+" #searchForm").find('input[name="grepstring"]').val(),w=$($v__fm__container_fluid+" #searchForm").find('input[name="grepreplace"]').val(),x=b&&!w?" fa-1_50x fa-file-find":b&&w?" fa-1_50x fa-find-replace":" fa-lg fa-search";if(o&&o.length){o=Convert.htmlEscape(o)}if(b&&b.length){b=Convert.htmlEscape(b)}if(w&&w.length){w=Convert.htmlEscape(w)}theme_modal_dismiss();if(b&&!w){plugins.messenger.post(''+theme_language("filemanager_searching_matching").replace("%value",o).replace("%text",b)+"
    "+theme_language("global_please_wait"),0,"info",e+"_preMe",1,["bottom","right"])}else if(b&&w){plugins.messenger.post(''+theme_language("filemanager_searching_replacing").replace("%value",o).replace("%text",b).replace("%replace",w)+"
    "+theme_language("global_please_wait"),0,"warning",e+"_preMe",1,["bottom","right"])}else{plugins.messenger.post(''+theme_language("filemanager_searching").replace("%value",o)+"
    "+theme_language("global_please_wait"),0,"info",e+"_preMe",1,["bottom","right"])}var y=$(""+$v__fm__container_fluid+" .active .dataTables_length select").val();var k=function(a){__f___ds_a();setTimeout(function(){__f___u("upd",a[0],0,"search",false)},567);theme_message_dismiss("search_preMe");var t=5e3;if(a[0].totals>1){if(b&&w){plugins.messenger.post(''+theme_language("filemanager_search_replaced_multi").replace("%value",a[0].totals),4,"success",e+"_success",1,["bottom","right"]);t=9e3}else{plugins.messenger.post(''+theme_language("filemanager_search_founds").replace("%value",a[0].totals),2,"success",e+"_success",1,["bottom","right"])}}else{if(a[0].totals==1){if(b&&w){plugins.messenger.post(''+theme_language("filemanager_search_replaced"),6,"success",e+"_success",1,["bottom","right"])}else{plugins.messenger.post(''+theme_language("filemanager_search_found"),6,"success",e+"_success",1,["bottom","right"])}}else{plugins.messenger.post(''+theme_language("filemanager_search_no_matches"),4,"error",e+"_error",1,["bottom","right"])}}setTimeout(function(){theme_message_dismiss("search_preMe")},t)};theme_message_dismiss("search_success");theme_message_dismiss("search_error");$.ajax({type:"POST",url:v___server_extensions_path+"/file-manager/search.cgi?paginate="+y+"&fsid="+Date.now()+"&module="+v___module,data:$($v__fm__container_fluid+" #searchForm").serialize(),dataType:"json",success:function(e){k(e)},error:function(e){session.status(e.responseText)}})}if(e==="chmod"){$($v__fm__container_fluid_form).append('');$($v__fm__container_fluid_form).append('');$.ajax({type:"POST",url:v___server_extensions_path+"/file-manager/chmod.cgi?module="+v___module+extra_query(),data:__f___gd(),dataType:"json",success:function(a){__f____success(a,1,1,1,"_o__f_m-tmp-chmod-inputs","fa-exclamation-triangle","filemanager_successful_permissions_with_errors",15,"warning","fa-cogs","filemanager_successful_permissions",2,"success",e)},error:function(e){session.status(e.responseText)}})}if(e==="chown"){$($v__fm__container_fluid_form).append('');$($v__fm__container_fluid_form).append('');$($v__fm__container_fluid_form).append('');$.ajax({type:"POST",url:v___server_extensions_path+"/file-manager/chown.cgi?module="+v___module+extra_query(),data:__f___gd(),dataType:"json",success:function(a){__f____success(a,1,1,1,"_o__f_m-tmp-chown-inputs","fa-exclamation-triangle","filemanager_successful_ownership_with_errors",15,"warning","fa-users","filemanager_successful_ownership",2,"success",e)},error:function(e){session.status(e.responseText)}})}if(e==="chattr"){$($v__fm__container_fluid_form).append('');$($v__fm__container_fluid_form).append('');$.ajax({type:"POST",url:v___server_extensions_path+"/file-manager/chattr.cgi?module="+v___module+extra_query(),data:__f___gd(),dataType:"json",success:function(a){__f____success(a,1,1,1,"_o__f_m-tmp-chattr-inputs","fa-exclamation-triangle","filemanager_successful_attributes_with_errors",15,"warning","fa-tags","filemanager_successful_attributes",2,"success",e)},error:function(e){session.status(e.responseText)}})}if(e==="chcon"){$($v__fm__container_fluid_form).append('');$($v__fm__container_fluid_form).append('');$.ajax({type:"POST",url:v___server_extensions_path+"/file-manager/chcon.cgi?module="+v___module+extra_query(),data:__f___gd(),dataType:"json",success:function(a){__f____success(a,1,1,1,"_o__f_m-tmp-chcon-inputs","fa-exclamation-triangle","filemanager_successful_secontext_with_errors",15,"warning","fa-tags","filemanager_successful_secontext",2,"success",e)},error:function(e){session.status(e.responseText)}})}if(e==="acls"){$.ajax({type:"POST",url:v___server_extensions_path+"/file-manager/acls.cgi?module="+v___module+extra_query()+"&"+a[0],data:__f___gd(),dataType:"json",success:function(a){__f____success(a,1,1,1,"_o__f_m-tmp-acls-inputs","fa-exclamation-triangle","filemanager_successful_acls_with_errors",15,"warning"," fa2 fa-1_15x fa-fw fa2-account-key","filemanager_successful_acls",2,"success",e)},error:function(e){session.status(e.responseText)}})}if(e==="compress"){$($v__fm__container_fluid_form).append('');$($v__fm__container_fluid_form).append('');$($v__fm__container_fluid_form).append('');$($v__fm__container_fluid_form).append('');$($v__fm__container_fluid_form).append('');$($v__fm__container_fluid_form).append('');$($v__fm__container_fluid_form).append('');$($v__fm__container_fluid_form).append('');__f__ld__bg();$.ajax({type:"POST",url:v___server_extensions_path+"/file-manager/compress.cgi?module="+v___module+__f___um()+extra_query(),data:__f___gd(),dataType:"json",success:function(_){$($v__fm__container_fluid).find('[name="arcencr_val"]').val(String()).trigger("keyup");__f____success(_,1,0,1,"_o__f_m-tmp-compress-inputs","fa-exclamation-circle","filemanager_successful_compression_with_errors",15,"warning","fa-file-archive-o","filemanager_successful_compression",2,"success",e,[e,t,a[0]+$('#compressDialog select option[value="'+a[1]+'"]').text()])},error:function(e){session.status(e.responseText)}})}}function format_search_breadcrum(e){var a=extra_query(false,1);if(e){if(a.query){return 1}else{return 0}}var t=$('body[class*="'+v___module_file_manager+'"]'),_=fm_get_current_path(),n=$($v__fm__container_fluid+" #searchForm").find('input[name="query"]').val(),i=$($v__fm__container_fluid+" #searchForm").find('input[name="grepstring"]').val(),r=$($v__fm__container_fluid+" #searchForm").find('input[name="grepreplace"]').val();if(a.query){n=a.query}i=a.grepstring;if(t.find(".breadcrumb .fa-folder-root").length){t.find(".breadcrumb .fa-folder-root").removeClass("fa-folder-root").addClass("fa-search text-light fa-sm").parent("a").removeAttr("href").replaceTagName("span")}else{t.find(".breadcrumb li:first-child a").html('')}t.find(".breadcrumb li:not(:first-child) a").replaceWith(function(){return $("",{html:$(this).html()})});t.find(".breadcrumb").addClass("searching-a");t.find(".breadcrumb li").addClass("text-light");t.find(".breadcrumb li span i.fa-caret-right").remove();$($v__fm__container_fluid+" .__o__f_m-search-results").remove();$($v__fm__container_fluid+" .ui_checked_columns.directory_go_up").addClass("hidden");tree_view_draw(_f__table());$_br=$($v__fm__container_fluid+" .breadcrumb > li:last-child");$_br.html($_br.html()+''+($(".breadcrumb > li:last-child a i").hasClass("fa-search")?"   / ":"")+'  :  `'+Convert.htmlEscape(n)+""+(i&&!r?' ['+Convert.htmlEscape(i)+"]":Convert.htmlEscape(r)?' ['+Convert.htmlEscape(i)+' -> '+Convert.htmlEscape(r)+"]":"")+'`  ')}function error_replace_tags(e){return typeof e==="string"?e.replaceAll("[tt]","").replaceAll("[/tt]",""):e}function extra_query(e,a,t){var _=String(),n=e||$($v__fm__container_fluid+" .spaginates:visible .active a").attr("href")||$($v__fm__container_fluid+" .dataTables_paginate:visible .active a").text(),i=_,r=_,o=_,s=_,l=_,f=_,c=_,d=_,m=_;if(!!n){n=Convert.uriDecodeComponent(n);i=Convert.htmlUnEscape(URI.parseQuery(URI(n).query())["page"])||n;r=Convert.htmlUnEscape(URI.parseQuery(URI(n).query())["query"]),o=URI.parseQuery(URI(n).query()).regex,s=URI.parseQuery(URI(n).query()).follow,l=URI.parseQuery(URI(n).query()).caseins,f=URI.parseQuery(URI(n).query()).grepstring,c=config_portable_module_filemanager_auto_per_page?fm_adjust_auto_rows_length(null,false,true):$(""+$v__fm__container_fluid+" .active .dataTables_length select").val(),d=URI.parseQuery(URI(n).query()).fsid,m=URI.parseQuery(URI(n).query()).exclude;if(i){i=isNaN(i)?1:i;var u=$($v__fm__container_fluid+" .tab-pane.active").data("previousPageNumber"),p=!isNaN(u)?parseInt(u):1;if(fm_goto_previous){if(p>=1){i=p}}_+="&page="+i}if(r){_+="&query="+r}if(o){_+="®ex="+o}if(s){_+="&follow="+s}if(l){_+="&caseins="+l}if(f){_+="&grepstring="+f}if(_&&c){_+="&paginate="+c}if(_&&d){_+="&fsid="+d}if(_&&m){_+="&exclude="+m}if(select_all_entries("test")&&t!=="list"){_+="&all_items=3"}}_+="&overwrite_efiles="+(fm_overwrite_files?"true":"false")+"";fm_overwrite_files_mode_reset();_+="&follow_symlinks="+(fm_follow_symlinks?"true":"false")+"";if(a){return{page:i,query:r,regex:o,follow:s,caseins:l,grepstring:f,pagnate_number:c,fsid:d,exclude:m}}return _}function set_last_tabs(e){localStorage.setItem(v___server_hostname+"-"+"settings_thirdparty_filemanager_last_tab",JSON.stringify(e))}function get_last_tabs(){return JSON.parse(localStorage.getItem(v___server_hostname+"-"+"settings_thirdparty_filemanager_last_tab"))}function no_loading_tabs(){var e=$("[data-tab-path]");return!e.find(".cspinner-icon").length}function store_last_tab(e){if(no_loading_tabs()&&!initial_fm_load){var a=v___server_username,t=get_last_tabs();if($t_uri_virtualmin){a+="_"+$('aside [name="dom"]').val()}var _={};if(!e){e=$($v__fm__container_fluid+" .nav.nav-tabs li.active")}_[a]=e.find("[data-tab-path]").attr("data-original-title");var n=$.extend({},t,_);set_last_tabs(n)}}function table_resize(e){var a=content_page_calc_width()-6-($("[data-tree-view]").is(":visible")?e?e:$("[data-tree-view]").outerWidth():0),t="data"+"-"+"table"+"-"+"wrap";if(browser.detect.safari()){a-=2}if(config_portable_module_filemanager_hide_tree_view){a+=5}$("["+t+"]").css({"max-width":a,width:a});var _=$("["+t+"]:visible");if(_&&_.length){_.removeClass();if(_.hasScrollBar(1)){_.addClass("margined-bottom-10")}}}function tree_resize(e,a){var t=$("[data-tree-view]"),_=t.next(".tree-view-filter"),n=$("form .row + .tree-view + .row");var i=parseInt(localStorage.getItem(v___server_hostname+"-"+"settings_thirdparty_filemanager_tree_width"));if(!e&&!isNaN(i)&&i>=200&&i<=parseInt(vhTOpx(70))){e=i}else if(!e){e=t.outerWidth()}t.css("width",e);n.css("margin-left",parseInt(e)-10);_.css("width",parseInt(e));if(a){setTimeout(table_resize,1)}else{table_resize(parseInt(e))}}function tree_view_set(e){var a=$("[data-tree-view]"),t=a.next().find("input"),_=t.parent();a.find(".cspinner.centered-initial").removeClass("centered-initial").find(".cspinner-icon").addClass("smaller");_.removeClass("hidden-content").append('||');a.find(".cspinner").remove();$.ui.fancytree.debugLevel=0;$.ui.fancytree.activeVisible=true;$.ui.fancytree.autoScroll=true;a.fancytree({source:e,debugLevel:0,scrollParent:a,escapeTitles:false,extensions:["filter"],quicksearch:true,filter:{autoApply:true,autoExpand:config_portable_module_filemanager_tree_expand_search,counter:true,fuzzy:false,hideExpandedCounter:true,hideExpanders:false,highlight:true,leavesOnly:false,nodata:true,mode:"hide"},autoActivate:false,activeVisible:true,autoScroll:true,keyboard:true,strings:{loading:"",loadError:"",moreData:"",noData:theme_language("datatable_szerorecords")},toggleEffect:false,click:function(e,a){if($v__fm__tree_node_prog){$v__fm__tree_node_prog=0;$v__fm__tree_node_sp=0;tree_action(e,a)}},icon:function(e,a){if(a.node&&a.node.data.link===1){return"fancytree-icon fancytree-icon-symlink"}},dblclick:function(e,a){tree_action(e,a,1);return false},activate:function(e,a){tree_action(e,a)},init:function(){setTimeout(function(){tree_gset_node()},2)}});$("body").on("click.fm",".filter_fancytree_clear",function(){$(this).parent().find("input").val("").trigger("keyup");setTimeout(function(){var e=_f__table();if(e){e.DataTable().draw(false);tree_view_adjust()}},100)});$("body").on("click.fm",".filter_fancytree_toggle",function(){a.fancytree("getRootNode").visit(function(e){e.setExpanded(false)});a.find(".mCSB_container").css("left",0);a.mCustomScrollbar("scrollTo",0,{scrollInertia:100})});t.keyup(function(e){var a=$(this);typeof $tree_view_search_timer!="undefined"&&clearTimeout($tree_view_search_timer);$tree_view_search_timer=setTimeout(function(){var t=$.ui.fancytree.getTree(),_=a.val(),n=$(e.target).parent().find(".filter_fancytree_clear");t.filterNodes.call(t,_);if(_){n.removeClass("text-lighter")}else{n.addClass("text-lighter")}},e.originalEvent!=undefined?600:0)});e.length===1&&a.fancytree("getRootNode").visit(function(e){if(e.getLevel()===1){e.setExpanded(true)}});a.mCustomScrollbar({axis:"xy",theme:"minimal-dark",keyboard:false,scrollButtons:true,autoHideScrollbar:false,scrollInertia:100,advanced:{updateOnContentResize:true}});var n="data-resizer",i=a.find("["+n+"]").detach();a.prepend(i);(function(){var e=$("[data-tree-view]"),a=e.find("[data-resizer]")[0],t=$("body"),_=$(".panel-heading, .jsPanel, .jsPanel-replacement-container, aside, .mobile-menu-toggler, #right-side-tabs, .right-side-tabs-toggler, .breadcrumb, .btn-group, .ui-fancytree, .tree-view-filter, .data-table"),n="user-select-none cursor-w-resize",i="pointer-events-none-forced";var r=function(){window.addEventListener("mousemove",o,false);window.addEventListener("mouseup",s,false)};var o=function(a){var r=a.pageX-e[0].getBoundingClientRect().left+"px";t.addClass(n);_.addClass(i);var o=200,s=parseInt(vhTOpx(70));if(parseInt(r)s){return}localStorage.setItem(v___server_hostname+"-"+"settings_thirdparty_filemanager_tree_width",r);tree_resize(r)},s=function(){t.removeClass(n);_.removeClass(i);window.removeEventListener("mousemove",o,false);window.removeEventListener("mouseup",s,false)};a&&a.addEventListener("mousedown",r,false)})()}function get_jailed_user(e){var a=fm_user_data;if(!e){return get_access_level()===0&&(session.server.data("user")!==a.user&&a.access||session.server.data("user")===a.user&&a.access=="0"&&parseInt(a.access)!==a.uid)}else{return a[e]}}function tree_action(e,a,t){var _=$("[data-tree-view]"),n=0;if(e.originalEvent&&typeof e.originalEvent.originalEvent==="object"){n=1}var i=a.node.key,r="fancytree-loading-node",o=_.next().find("input").val(),s=get_access_level()===0,l=get_access_level()===2,f=get_access_level()===3;var c=$($v__fm__container_fluid).find(".fancytree-active");i=fm_process_path(i,"decode/unescape");var d=fm_path_check_jailed(i);if(s&&fm_user_data&&fm_user_data.base&&fm_user_data.base!=="/"||(l||f)&&fm_check_chroot()){var m=new RegExp("^"+fm_user_data.base,"");d=d.replace(m,String())}n&&(__f____r("get","index.cgi?path="+d,false,0,false,n),$("."+r).remove());if(($v__fm__tree_node_sp||t)&&n){c.find(".fancytree-icon").before('')}$v__fm__tree_node_sp=1;if(!config_portable_module_filemanager_hide_tree_view&&!o){var u=config_portable_module_filemanager_tree_view_depth;u=config_portable_module_filemanager_tree_view_depth==0?0:parseInt(u);$.ajax({type:"POST",url:v___server_extensions_path+"/file-manager/tree.cgi?module="+v___module+"&d="+u,data:{cpt:i},dataType:"JSON",success:function(e){if(e&&!e.length){tree_view_adjust();return}a.node.removeChildren();a.node.addChildren(e);a.node.toggleExpanded();tree_view_adjust()},error:function(e){}})}!a.node.isExpanded()&&a.node.toggleExpanded();var p=a.node.getChildren();p&&p.map(function(e,a){e.isExpanded()&&e.toggleExpanded()})}function tree_get_depth(){var e=parseInt(config_portable_module_filemanager_tree_view_depth),a=session.server.data("user-home"),t=Test.occurrences(fm_process_path(a,"decode"),"/")||1,_=get_access_level();e=e+t;if((_===2||_===3)&&fm_check_chroot()){e--;if(_===2){e--;e--;e--}}if(_===0){e--}return e}function tree_view_get(){if(config_portable_module_filemanager_hide_tree_view==true||$v__fm__tree===1){return}else{$v__fm__tree=1}var e=tree_get_depth();$.ajax({type:"POST",url:v___server_extensions_path+"/file-manager/tree.cgi?module="+v___module+"&d="+e+"&y=1&e="+(config_portable_module_filemanager_tree_exclude_on_first_load?1:0),data:false,dataType:"JSON",success:function(e){var a="jquery.fancytree";$($v__fm__container_fluid_form).data("tree",e);load.bundle(a,1,{tree_view_set:e,tree_view_draw:_f__table()},3)},error:function(e){}})}function tree_view_draw(e){if(!e||e&&!e.length){return}var a=e.parent("div").parent(".row").prev(".tree-view").add("[data-tree-view]"),t=$(".tree-view-filter"),_=a.find(".fancytree-loading-node"),n=e.outerHeight(),i=$("[data-tree-view] .fancytree-container").height(),r=8,o=-2,s=0,l=parseInt(vhTOpx(47.52))-r;l=l>320?l:320;var f=l-39,c=l+11;_.remove();if((!i||i>n||n").find("label"),n=_f__table().dataTable().$("tr.hl-aw",{filter:"applied"});_.html('');var i="fm_get_size_"+t;if(typeof window[i]!="undefined"&&typeof window[i].abort==="function"){window[i].abort()}window[i]=$.ajax({type:"POST",url:v___location_prefix+"/xhr.cgi",data:{"xhr-get_size":1,"xhr-get_size_path":fm_process_path(t,"decode/unescape"),"xhr-get_size_cmodule":v___module_file_manager},dataType:"text",success:function(t){if(!session.status(t)){return}var _=t.split("|"),i=_f__table().DataTable(),r='"+_[1]+'">'+_[0]+"";if(_[1]){_[1]=parseInt(_[1].toString().replace(/\s/g,String()))}var o=e.find("td.col-size");o.attr("data-order",_[1]||0);if(o&&o[0]){var s=i.cell(o[0]);s.length&&s.data(r).invalidate()}var l;if(isNaN(parseInt(_[1]))){l=0}else{l=parseInt(_[1])}$($v__fm__container_fluid+" .total_size_data").data("total",parseInt($(".total_size_data").data("total"))+l);if(!n.find("td.col-size").find("label").find(".cspinner").length){$.ajax({type:"POST",url:v___location_prefix+"/xhr.cgi",data:{"xhr-get_nice_size":1,"xhr-get_nice_size_sum":parseInt($(".total_size_data").data("total"))},dataType:"text",success:function(e){if(!session.status(e)){return}$($v__fm__container_fluid+" .total_size_data").text(e);!a&&$($v__fm__container_fluid+" .total_size_data").parent("span").removeClass("hidden");_f__table()&&_f__table().DataTable().draw(false)},error:function(e){}})}},error:function(e){}})})}function __f__c__m(){var e=$($v__fm__container_fluid+" .tab-pane.active form table");$($v__fm__container_fluid+" .tab-pane table").unbind("contextmenu");e.contextMenu({menuSelector:"#__f__c__m",menuSelectorTriggered:function(e,a){var t=$(e).parents("tr"),_=t.find('td.ui_checked_checkbox input[type="checkbox"]');if(_.length&&!_.is(":checked")){__f___ds_a();_[0].checked=true;t.addClass("m-active hl-aw");__r____changed()}if($($v__fm__container_fluid+" .tab-pane.active table tbody tr input").length&&e.parents("tr").find("input:checked").length===0){__f___ds_a();var n=e.parents("tr").find("td:first-child input"),i=n.is(":checked");if(n[0]){n[0].checked=!i;n.trigger("change")}}var r="context-o__f_m-dependent",o="data-filemin-link",s="hidden";if(t.find('td[data-xfile="1"]').length&&fm_is_search_results()){$("."+r+"-goto").removeClass(s)}else{$("."+r+"-goto").addClass(s)}if(t.find('td[data-xfile="0"]').length||fm_is_search_results()){$("."+r+"-open-new-tab").removeClass(s)}else{$("."+r+"-open-new-tab").addClass(s)}if(!t.find('td[data-xfile="1"]').length){$("."+r+"-view").addClass(s)}else{$("."+r+"-view").removeClass(s)}if(!e.parents("tr").find("i.fa-pencil-square-o").length){$("."+r+"-edit").addClass(s)}else{$("."+r+"-edit").removeClass(s)}if(!e.parents("tr").find("a["+o+'$=".acgi"]').length&&!e.parents("tr").find("a["+o+'$=".htm"]').length&&!e.parents("tr").find("a["+o+'$=".html"]').length&&!e.parents("tr").find("a["+o+'$=".htmls"]').length&&!e.parents("tr").find("a["+o+'$=".htx"]').length&&!e.parents("tr").find("a["+o+'$=".shtml"]').length&&!e.parents("tr").find("a["+o+'$=".ssi"]').length){$("li."+r+"-edit").removeClass("dropdown-submenu");$("["+r+'-htmledit="1"]').addClass(s)}else{$("li."+r+"-edit").addClass("dropdown-submenu");$("["+r+'-htmledit="1"]').removeClass(s)}if(!e.parents("tr").find('a[href*="download.cgi"]').length){}else{$("."+r+"-download").removeClass(s)}var l=e.parents("tr").find("td[data-xarchive]").data("xarchive"),f=e.parents("tr").find("td[data-xfile]").data("xfile"),c=e.parents("tr").find("td[data-gpg]").data("gpg"),d=e.parents("tr").find("td[data-img]").data("img");var m=$("."+r+"-preview");if(d){m.removeClass(s)}else{m.addClass(s)}var u=$("."+r+"-encrypt");if(f){encryptDecryptModalA(c);u.removeClass(s)}else{u.addClass(s)}var p=$("."+r+"-extract");if(l){p.removeClass(s)}else{p.addClass(s)}var g=function(e){return"#__f__c__m a[data-context-"+e+"]"},h=$($v__fm__container_fluid+' #headln2l div.btn-group > a[href*="'+v___module_file_manager+'"][href*="index.cgi"]'),v=$(g("back"));if(h.is(":visible")){v.parent().removeClass("disabled")}else{v.parent().addClass("disabled")}var b=$("#__f__c__m"),w=b.find("li:not([data-go_up-target]):not([data-context-always-keep])"),x=b.find("li.hidden-force");if(e.hasClass("directory_go_up")){w.addClass("hidden-force")}else{x.removeClass("hidden-force")}if($($v__fm__container_fluid+" .o__f_m-button-compress").hasClass("disabled")){$(g("newarchive")).addClass("disabled").parent("li").addClass("disabled")}else{$(g("newarchive")).removeClass("disabled").parent("li").removeClass("disabled")}if($($v__fm__container_fluid+" .o__f_m-button-copy").hasClass("disabled")){$(""+g("copy")+", "+g("clipboard")+", "+g("clipboard-selection")+"").addClass("disabled").parent("li").addClass("disabled")}else{$(""+g("copy")+", "+g("clipboard")+", "+g("clipboard-selection")+"").removeClass("disabled").parent("li").removeClass("disabled")}if($($v__fm__container_fluid+" .o__f_m-button-cut").hasClass("disabled")){$(g("cut")).addClass("disabled").parent("li").addClass("disabled")}else{$(g("cut")).removeClass("disabled").parent("li").removeClass("disabled")}if($($v__fm__container_fluid+" .o__f_m-button-paste").hasClass("disabled")){$(g("paste")).addClass("disabled").parent("li").addClass("disabled")}else{$(g("paste")).removeClass("disabled").parent("li").removeClass("disabled")}if(check_selected_text()&&!$(g("copy")).hasClass("disabled")){$(g("clipboard-selection")).removeClass("disabled").parent("li").removeClass("disabled")}else{$(g("clipboard-selection")).addClass("disabled").parent("li").addClass("disabled")}context_menu_toggle_delete_trash("def");if($(".o__f_m-button-delete").hasClass("disabled")){$(g("delete")).addClass("disabled").parent("li").addClass("disabled");$(g("rename")).addClass("disabled").parent("li").addClass("disabled")}else{$(g("delete")).parent("li").prev(".divider").removeClass("hidden");$(g("delete")).removeClass("disabled").parent("li").removeClass("disabled hidden");$(g("rename")).removeClass("disabled").parent("li").removeClass("disabled")}if(fm_is_search_results()){fm_gset_last_row_path(t)}f_m__bm__cm();if($($v__fm__container_fluid+" .o__f_m-button-chmod").hasClass("disabled")&&$(".o__f_m-button-chown").hasClass("disabled")){$($v__fm__container_fluid+" .context-properties").addClass("disabled")}else{$($v__fm__container_fluid+" .context-properties").removeClass("disabled")}var y=t.find("td a").first().data("filemin-link"),k=y===".Trash"&&(get_user_home()===fm_get_current_path_full("decode")||Object.keys(get_other_users_home_data()).includes(fm_get_current_path_full()));if(!k){if(fm_path_inside_trash()){$(g("delete")).parent("li").addClass("hidden").prev(".divider").addClass("hidden")}}$(g("delete")).toggleClass("hidden",k);$(g("empty-trash")).toggleClass("hidden",!k);_f__table().dataTable().$("tr.hl-aw",{filter:"applied"}).length?$(g("calculate-selected-size")).parent("li").removeClass("hidden"):$("#__f__c__m a[data-context-calculate-selected-size]").parent("li").addClass("hidden");if($($v__fm__container_fluid+" .o__f_m-button-chmod").hasClass("disabled")){$(g("chmod")).addClass("disabled").parent("li").addClass("disabled")}else{$(g("chmod")).removeClass("disabled").parent("li").removeClass("disabled")}if($($v__fm__container_fluid+" .o__f_m-button-chown").hasClass("disabled")){$(g("chown")).addClass("disabled").parent("li").addClass("disabled")}else{$(g("chown")).removeClass("disabled").parent("li").removeClass("disabled")}if($($v__fm__container_fluid+" .o__f_m-button-chattr").hasClass("disabled")){$(g("chattr")).addClass("disabled").parent("li").addClass("disabled")}else{$(g("chattr")).removeClass("disabled").parent("li").removeClass("disabled")}if($($v__fm__container_fluid+" .o__f_m-button-chcon").hasClass("disabled")){$(g("chcon")).addClass("disabled").parent("li").addClass("disabled")}else{$(g("chcon")).removeClass("disabled").parent("li").removeClass("disabled")}if($($v__fm__container_fluid+" .o__f_m-button-acls").hasClass("disabled")){$(g("acls")).addClass("disabled").parent("li").addClass("disabled")}else{$(g("acls")).removeClass("disabled").parent("li").removeClass("disabled")}},menuSelected:function(e,a,t){$v__fm__global_last_row=e.parents("tr");var _=fm_get_current_path(),n=$v__fm__global_last_row.find("td a").first(),i=fm_process_escaped_link(n.attr("data-filemin-link"),1);actual_path=fm_process_path(n.attr("href"));if(a.data("context-goto")=="1"){__f___o_dr($v__fm__global_last_row,fm_get_current_path(),actual_path,false,1)}if(a.data("context-open-new-tab")=="1"){__f___nt(actual_path,1)}if(a.data("context-select-all")=="1"){$($v__fm__container_fluid+' button[onclick="selectAll()"]').trigger("click")}if(a.data("context-deselect-all")=="1"){__f___ds_a();__r____changed()}if(a.data("context-invert-selection")=="1"){$($v__fm__container_fluid+' button[onclick="invertSelection()"]').trigger("click")}if(a.data("context-refresh")=="1"){$($v__fm__container_fluid+" button > ."+$__f__rf_s+"").parent("button").trigger("click")}if(a.data("context-newsymlink")=="1"){__f___new_symlink()}if(a.data("context-newfile")=="1"){$($v__fm__container_fluid+' a[onclick="createFileDialog()"]').trigger("click")}if(a.data("context-newfolder")=="1"){$($v__fm__container_fluid+' a[onclick="createFolderDialog()"]').trigger("click")}if(a.data("context-newarchive")=="1"){$($v__fm__container_fluid+' a[onclick="compressDialog()"]').trigger("click")}if(a.data("context-upload")=="1"){$($v__fm__container_fluid+' a[onclick="viewReadyForUpload()"]').trigger("click")}if(a.data("context-download")=="1"){$($v__fm__container_fluid+' a[onclick="downFromUrlDialog()"]').trigger("click")}if(a.data("context-clipboard")=="1"){fm_copy_path_to_clipboard(e)}if(a.data("context-clipboard-selection")=="2"){theme_copy_to_clipboard(check_selected_text())}if(a.data("context-copy")=="1"){$($v__fm__container_fluid+" .o__f_m-button-copy a").trigger("click")}if(a.data("context-cut")=="1"){$($v__fm__container_fluid+" .o__f_m-button-cut a").trigger("click")}if(a.data("context-paste")=="1"){$($v__fm__container_fluid+" .o__f_m-button-paste a").trigger("click")}var r=a,o=r.is("span")?r=r.parent():r;if(r.data("context-delete")=="1"){fm_deletion_type=r.data("context-delete-trash")=="1"?true:-1;$($v__fm__container_fluid+" .o__f_m-button-delete").trigger("click");if(fm_deletion_to_trash&&!fm_deletion_type||fm_deletion_type&&!fm_deletion_to_trash){~~fm_deletion_type!==~~fm_deletion_to_trash&&localStorage.setItem(v___server_hostname+"-"+v___server_username+"-"+"context-alt",1);r.find(".extra-key-label").remove()}}if(r.data("context-empty-trash")=="1"){fm_deletion_empty_trash=1;setTimeout(function(){fm_deletion_empty_trash=0},1);$($v__fm__container_fluid+" .o__f_m-button-delete").trigger("click")}var s=e.parents("tr").find("img").parent("a").parent("td").next("td").find("a"),l=s.attr("data-filemin-link");if(a.data("context-preview-image")=="1"){image_preview(l,0)}else if(a.data("context-preview-image")=="2"){image_preview(l,1)}else if(a.data("context-preview-image")=="3"){image_preview(l,0,1)}if(a.data("context-bookmarks")=="1"){if(fm_is_search_results()){__f____a("bookmark",[fm_gset_last_row_path(e.parents("tr"))])}else{$($v__fm__container_fluid+' a[href^="bookmark.cgi"]').trigger("click")}}if(a.data("context-back")=="1"){$($v__fm__container_fluid+' #headln2l div.btn-group > a[href*="'+v___module_file_manager+'"][href*="index.cgi"]:visible').trigger("click");return}if(a.data("context-search")=="1"){$($v__fm__container_fluid+' a[onclick="searchDialog()"]').trigger("click")}if(a.data("context-view")=="1"){var f=!$v__fm__global_last_row.find('a[href*="edit_file.cgi"]').length,c=a.data("context-view-reverse")=="1",d=a.data("context-view-head")=="1",m=a.data("context-view-tail")=="1";fm_target_spinner_add($v__fm__global_last_row);edit_file(i,decodeURIComponent(fm_get_current_path()),false,1,f,c,d,m)}if(a.data("context-edit")=="1"||a.attr("context-o__f_m-dependent-htmledit")=="1"){var u=e.parents("tr"),p=u.find('a[href^="edit_file.cgi?"]');fm_target_spinner_add(u);if(a.attr("context-o__f_m-dependent-htmledit")=="1"){u.data("htmledit",1)}u.addClass("m-active");p.trigger("click")}if(a.data("context-rename")=="1"){e.parents("tr").find('a[onclick^="renameDialog("]').trigger("click")}if(a.data("context-download-file")=="1"){var g=e.parents("tr").find('td a[href*="download.cgi?"]'),h=select_all_entries("test")?get_current_list_stats()[0]:__f__cnt___selected();if(__f__cnt___selected()===1&&g.length){window.location.replace(v___server_extensions_path+"/file-manager/download.cgi?download=2&filename="+uri_parse_param2("file",g.attr("href"))+"&path="+fm_get_current_path()+extra_query())}else{__f__dw__dir(h)}}if(a.data("context-encrypt")=="1"){$("#encryptDecrypt").modal("show")}if(a.data("context-extract")=="1"){e.parents("tr").find('a[href^="extract.cgi?"]').trigger("click")}if(a.data("context-extract-encrypted")=="1"){$($v__fm__container_fluid+" #extractEncrypted.modal").modal("show")}if(a.data("context-calculate-selected-size")=="1"){__f__get_fs()}if(a.data("context-properties")=="1"||a.data("context-getinfo")=="1"){fm_get_file_info(_,i,e.parents("tr"))}if(a.data("context-chmod")=="1"){$($v__fm__container_fluid+' a[onclick="chmodDialog()"]').trigger("click")}if(a.data("context-chown")=="1"){$($v__fm__container_fluid+' a[onclick="chownDialog()"]').trigger("click")}if(a.data("context-chattr")=="1"){$($v__fm__container_fluid+' a[onclick="chattrDialog()"]').trigger("click")}if(a.data("context-chcon")=="1"){$($v__fm__container_fluid+' a[onclick="chconDialog()"]').trigger("click")}if(a.data("context-acls")=="1"){$($v__fm__container_fluid+' a[onclick="aclsDialog()"]').trigger("click")}}})}function __f___up__tb_sort(e){if(!$.isEmptyObject(fm_stored_sorting)){if(fm_stored_sorting[e]){var a=fm_stored_sorting[e],t=a.sort,_=a.holder;if(_&&t){var n=$("[data-head-"+_+"]").parent("th").index();if(n){return[n,t]}}}}if(config_portable_module_filemanager_default_sort!="0"){var i=config_portable_module_filemanager_default_sort,r=Test.strContains(i,"--")?1:0;i=i.replace("--","");if(r){return[[$("[data-head-"+i+"]").parent("th").index(),"desc"]]}else{return[[$("[data-head-"+i+"]").parent("th").index(),"asc"]]}}else{return[]}}function __f___u(e,a,t,_,n,i){var r=a.rows,o=a.pagination,s=a.pagination_limit,l=a.pagination_text,f=a.total;if(typeof n=="object"){var c=n[1],d=n[2],m=n[3],n=n[0]}else{var c=true}if(v___location_file=="config.cgi"){return}var u=0,p=null,g=null,h=null,v=null,b=fm_get_current_path(),w="data"+"-"+"table"+"-"+"wrap";fm_stored_listing.previous.set();typeof f=="undefined"?f=false:false;typeof n=="undefined"||typeof n!="undefined"&&n===false?p=false:p=true;var x=$v__fm__container_fluid+" .tab-pane.active",y=$(x);if(!y.length){x=$v__fm__container_fluid+" .tab-pane:first-child"}!p?g=x+" form table":g=$v__fm__container_fluid+' .tab-pane[id="tab-'+n+'"] form table';!p?h=x:h=$v__fm__container_fluid+' .tab-pane[id="tab-'+n+'"]';var k=$(h).attr("id"),v=k?k.replace(/^\D+/g,""):false,v=v?v:1;var C=$("body.file-manager").find(g).attr("id"),T=C?parseInt(C.replace(/^\D+/g,"")):"none",D=".hl-aw",S=$(g).find(D),j=S.next().index()>0?S.next().index():$(g).find("tr:visible").last().index();!p&&T!=="none"&&$($v__fm__container_fluid+" #"+"DataTables_Table_"+T).dataTable().fnDestroy();if(e==="upd"){var F=$(r).find(".fa-font").first().parents("td").index();$(g).addClass("___f_m__q__");$("body.file-manager").find(g+" tbody").empty().append(r);vars.h.selector.content.get()[0].scrollTop=0;table_proc_size_columns();!c&&$(h).data("totalValue",m).data("breadcrumb",$($v__fm__container_fluid+" .breadcrumb").clone());f&&!d&&__f__upd_____tl($(f).text());page_radios_evolve();$("._select-unselect_").parent(".awcheckbox").remove();__f_____ul()}else{var F=$(g).find(".fa-font").first().parents("td").index()}var P=function(e){var a=v___module_file_manager;if(v___location_prefix){a=v___location_directory_unslashed}return localStorage["DataTables_DataTables_Table_"+T+"_/"+a+e]};var E=P("/")||P("/index.cgi")||P(String()),I;if(!!E){I=JSON.parse(E)}else{I=false}check_pagination_option();var z=I&&I.length?I.length:config_portable_module_filemanager_records_per_page;if(s){z=s}if(!z){z=20}if(F!=3&&F!=4){F=false}$(g).unbind("click.fmx");$(g).on("click.fmx",'a .fa.fa-pencil-square-o, a[href^="edit_file.cgi"]',function(e){e.preventDefault();e.stopPropagation();var e=jQuery.Event("keydown");e.which=115;$("body.file-manager").trigger(e)});var A=function(e,a){var t=$(e.nTableWrapper).find(".dataTables_info"),_=a?a:t.text(),n=_.match(/[0-9]+(,[0-9]+)*/g);if(t&&t.length&&n!=null&&n[0]&&n[1]&&n[2]){var i=theme_language("datatable_sinfo").replace("_START_",Convert.nice_number(n[0])).replace("_END_",Convert.nice_number(n[1])).replace("_TOTAL_",Convert.nice_number(n[2]));if(a){return i}t.text(i)}};var q=$(h).data("previousPageNumber"),O=!isNaN(q)?parseInt(q-1):0;window["_f__table"+v]=$(g).dataTable({order:[],aaSorting:[],bDestroy:true,pageLength:z,infoCallback:function(e,a,t,_,n,i){return A(e,i)},preDrawCallback:function(){var e=$(g);if(config_portable_module_filemanager_hide_actions==true){var a=$($v__fm__container_fluid+" .tab-pane.active form table"),t=a.find(".fa-font"),_=a.find(".fa-i-cursor"),n=t.length?t.parents("td").index():_.parents("td").index();if(n>1){$(g+" thead th").eq(n).addClass("hidden");e.find(".fa-font").length?e.find(".fa-font").parents("td").addClass("hidden"):e.find(".fa-i-cursor").parents("td").addClass("hidden")}}var i=e.parent("div").parent(".row");if(i.prev(".tree-view").length===0){i.before('
    ');if(config_portable_module_filemanager_hide_tree_view){i.prev(".tree-view").addClass("hidden")}}if(config_portable_module_filemanager_auto_per_page){fm_adjust_auto_rows_length(this,true)}},fnDrawCallback:function(e){if(u){fm_stored_listing.previous.set();fm_stored_listing.store(fm_get_current_path())}$($v__fm__container_fluid+" .tab-pane .paginate_button.previous > a").html('').css("border-top-left-radius","0").css("border-bottom-left-radius","0");$($v__fm__container_fluid+" .tab-pane .paginate_button.next > a").html('').css("border-top-right-radius","0").css("border-bottom-right-radius","0");$(g).find(".fa-font").removeClass("fa-font").addClass("fa-i-cursor").css("margin-right","5px").css("margin-left","5px");$(g).find(".fa-external-link").removeClass("fa-external-link").addClass("fa-extract-archive").css("margin-right","5px").css("margin-left","5px");$(g).find(".fa-edit").addClass("fa-pencil-square-o").css("margin-right","7px").css("margin-left","7px");$(g).find(".fa-arrow-right").removeClass("fa-arrow-right").addClass("fa-folder-open-o").parent("a").addClass("o__f_m-follow-file");if(e.fnRecordsTotal()<=e._iDisplayLength){$(h+" .dataTables_paginate:not(.spaginates)").hide()}else{$(h+" .dataTables_paginate:not(.spaginates)").show()}$.each($(g+" 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($(g+" 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)}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).find("label").text("")}}).promise().done(function(){$(g+" thead th").eq(list_form_table_file_size).css("min-width","51px")})}});$(g+" ._select-unselect_, "+g+" #select-unselect").parents("th").css("opacity",0).addClass("pointer-events-none");$($v__fm__container_fluid+" .breadcrumb").removeClass("searching-a");__init__dt_ck__e();if(!$(".__o__f_m-search-results-data:visible").length){if(b){f__insert_dir_up()}else if(d&&d!="/"&&d!="%2F"){!$(g+" tbody tr.directory_go_up").length&&$(g+" tbody").prepend('  ..')}}var t=$($v__fm__container_fluid+" .active td.dataTables_empty");if(t.length){$($v__fm__container_fluid+" tr.directory_go_up").trigger("mouseover")}else{$($v__fm__container_fluid+" tr.directory_go_up").removeClass("hidden")}tree_view_draw($(g));if(select_all_entries("test")){selectAll();select_all_entries()}else if(select_all_entries("test_unconf")){select_all_entries("remove")}if(a.flush){deselectAllRows()}if(a.flush_reset){__f___ds_a()}table_resize()},initComplete:function(){c&&__f___up__d("index.cgi?path="+fm_process_path(d?d:b),n,false);!c&&__f___upd___tb(d,n);!c&&__f___up__tb_store();if(p!=false&&c){$($v__fm__container_fluid+' a[href="#tab-'+n+'"]').attr("newly-created","1").trigger("click")}if(!config_portable_module_filemanager_auto_per_page){$(h+' select[name^="DataTables_Table"][name$="_length"]').val(z).change()}this.fnSort(__f___up__tb_sort(v));$(g+" tbody").on("mouseout","tr",function(e){__f___cs()}).on("mouseover","tr",function(e){if($v__fm__tr_hover_active){$(this).addClass("m-active")}});if(t===0||$(g+" tbody tr").length===1&&$(g+" tbody tr td.dataTables_empty").length){page.render.content.filter.clear()}if($(g)&&!$(g).parent().is("["+w+"]")){$(g).wrap("
    ");tree_resize()}var e=$(h+" table").parents(".row").next(".row").find(".col-sm-7"),r=$(h+" table").parents(".row").next(".row").find(".col-sm-5").find(".dataTables_info");if(o&&o.length){e.html(o);r.text(l)}else if(!o){fm_stored_listing.store();var s=fm_stored_listing.test();if(s){if(fm_goto_previous||i||_){this.fnPageChange(s-1)}}}var f=fm_goto_previous;fm_goto_previous=0;if(a.searched){format_search_breadcrum()}if(a.flush){select_all_entries("remove")}setTimeout(function(){f_m__bm__c();u=1},300);fm_check_goback();$v__fm__tr_hover_active=0;setTimeout(function(){$v__fm__tr_hover_active=1},400);var m="m-active",x=""+m+"-o";if(_==="create_folder"||_==="create_file"||_==="rename"||_==="delete"||typeof f==="string"){var y=Convert.serialized_to_json(f||i);if(y){var k=""+m+"-n";if(_==="delete"){var C=$(g).find("tr:visible:nth-child("+j+")");setTimeout(function(){$(g).find("tr."+m+"").removeClass(m);setTimeout(function(){C.addClass(m)},1)},2)}else{var T=Convert.htmlEscape(y.name);if(T){var D=$(g).find('td.col-name > a[data-filemin-link="'+T.replaceAll("\\","\\\\")+'"]'),S=D.parent("td").parent("tr");if(S&&S.length){var F=$(g).find("tr."+m+"");F.addClass(x).removeClass(m);S.addClass(""+m+" "+(f?String():k)+"");S.one("mousemove mouseover",function(){S.removeClass(k);F.removeClass(x)});F.one("mousemove",function(){$(this).removeClass(x);S.removeClass(m)});var P=$(g+" tr"),E="mouseover.singlefm";P.one(E,function(e){if(!$(this).is(S)){$(this).addClass(x).removeClass(m)}$(this).one("mousemove",function(e){$(this).removeClass(x);S.removeClass(m)});P.unbind(E)})}if(_==="create_file"){edit_file(Convert.htmlUnEscape(T),decodeURIComponent(fm_get_current_path()))}}}}}else{var I=$(document.body),A=jQuery.Event("keydown.fm");A.which=36;I.trigger(A);A.which=38;I.trigger(A)}},bInfo:true,destroy:true,oLanguage:{sEmptyTable:theme_language("datatable_semptydirectory"),sInfo:l||theme_language("datatable_sinfo"),sInfoEmpty:theme_language("datatable_sinfoempty"),sLengthMenu:theme_language("datatable_slengthmenu"),sLoadingRecords:theme_language("datatable_sloadingrecords"),sProcessing:theme_language("datatable_sprocessing"),sSearch:" ",sZeroRecords:theme_language("datatable_szerorecords")},conditionalPaging:true,columnDefs:[{orderable:false,targets:[0,1,F?F:0]},{width:"32px",targets:0},{width:"64px",targets:1},{width:"90%",targets:2}],fixedColumns:true,bStateSave:true,bPaginate:z,aLengthMenu:[[5,10,15,20,25,30,35,40,45,50,55,60,70,80,90,100,250,500],[5,10,15,20,25,30,35,40,45,50,55,60,70,80,90,100,250,500]],dom:"<'row'<'col-sm-6'l><'col-sm-6'fB>><'row'<'col-sm-12'tr>><'row'<'col-sm-5'i><'col-sm-7'p>>",buttons:[{extend:"csvHtml5",charset:"utf-8",exportOptions:{columns:":visible",format:{body:function(e,a,t,_){e=Convert.htmlRemoveHiddenElements(e);e=Convert.htmlRemoveByClassName(e,"btn");return Convert.htmlStrip(e)}}}}]}).off("click.fmdt").on("click.fmdt","thead th.sorting",function(e){if(e.originalEvent!==undefined){var a=$(this).attr("aria-sort")==="ascending"?"asc":"desc",t=$(this).children("span").data();if(!$.isEmptyObject(t)&&Object.keys(t)){var _=Object.keys(t)[0];if(_&&_.toString().startsWith("head")){_=_.toString().toLowerCase().replace(/^head/,"");fm_stored_sorting[v]={sort:a,holder:_}}}}});setTimeout(function(){theme_title_generate()},0);setTimeout(function(){store_last_tab()},2);tree_gset_node();$($v__fm__container_fluid+' div button[onclick="removeDialog()"]').addClass("disabled o__f_m-button-delete").removeAttr("onclick");$($v__fm__container_fluid+' a[onclick="chmodDialog()"]').removeAttr("onclick").parent("li").addClass("disabled o__f_m-button-chmod");$($v__fm__container_fluid+' a[onclick="chownDialog()"]').removeAttr("onclick").parent("li").addClass("disabled o__f_m-button-chown");$($v__fm__container_fluid+' a[onclick="chattrDialog()"]').removeAttr("onclick").parent("li").addClass("disabled o__f_m-button-chattr");$($v__fm__container_fluid+' a[onclick="chconDialog()"]').removeAttr("onclick").parent("li").addClass("disabled o__f_m-button-chcon");$($v__fm__container_fluid+' a[onclick="aclsDialog()"]').removeAttr("onclick").parent("li").addClass("disabled o__f_m-button-acls");$($v__fm__container_fluid+' a[onclick="compressDialog()"]').removeAttr("onclick").parent("li").addClass("disabled o__f_m-button-compress");$($v__fm__container_fluid+' a[onclick="copySelected()"]').removeAttr("onclick").parent("li").addClass("disabled o__f_m-button-copy");$($v__fm__container_fluid+" li.o__f_m-button-copy").addClass("disabled");$($v__fm__container_fluid+' a[onclick="cutSelected()"]').removeAttr("onclick").parent("li").addClass("disabled o__f_m-button-cut");$($v__fm__container_fluid+" li.o__f_m-button-cut").addClass("disabled");if(!localStorage.getItem(v___server_hostname+"-"+"copy")&&!localStorage.getItem(v___server_hostname+"-"+"cut")){$($v__fm__container_fluid+' a[onclick*="paste.cgi"]').removeAttr("onclick").parent("li").addClass("disabled o__f_m-button-paste")}else{$($v__fm__container_fluid+' a[onclick*="paste.cgi"]').removeAttr("onclick").parent("li").addClass("o__f_m-button-paste")}var U=a&&a.error&&a.error.length;if(_==="extract"){var R=theme_language("filemanager_successful_extraction");if(!theme_message_exists(_+"_warning")){!U&&plugins.messenger.post(''+R,2,"success",_+"_info",1,["bottom","right"])}else{theme_message_dismiss(_+"_info")}}if(_==="delete"){var N="";if(fm_deletion_to_trash&&fm_deletion_to_trash.home||fm_deletion_empty_trash_previous){var K=fm_deletion_to_trash.home||fm_deletion_empty_trash_previous;if(K===true){N=".Trash"}else if(K&&K.includes(session.server.data("user-home"))){N="~/.Trash"}else{N=Convert.htmlEscape(K)+"/.Trash"}}!theme_message_exists(_+"_info")&&plugins.messenger.post(''+theme_language("filemanager_successful_"+(fm_deletion_empty_trash_previous?"emptying_trash":fm_deletion_to_trash?"removal":"deletion")+"").replace("$1",N),2,"success",_+"_info",1,["bottom","right"])}if(_==="paste"){setTimeout(function(){theme_message_dismiss(""+_+"_info")},564)}if(_==="rename"){!theme_message_exists(_+"_success")&&plugins.messenger.post(''+theme_language("filemanager_successful_rename").replace("%from",Convert.htmlEscape($('#renameForm input[name="file"]').val())).replace("%to",Convert.htmlEscape($('#renameForm input[name="name"]').val())),2,"success",_+"_info",1,["bottom","right"])}if(_==="create_folder"){!theme_message_exists(_+"_success")&&plugins.messenger.post(''+theme_language("filemanager_successful_directory_creation").replace("%value",Convert.htmlEscape($('#createFolderForm input[name="name"]').val())),2,"success",_+"_info",1,["bottom","right"])}if(_==="create_file"){!theme_message_exists(_+"_success")&&plugins.messenger.post(''+theme_language("filemanager_successful_file_creation").replace("%value",Convert.htmlEscape($('#createFileForm input[name="name"]').val())),2,"success",_+"_info",1,["bottom","right"])}if(_==="encrypt"||_==="decrypt"){var R=theme_language("filemanager_crypt_"+_+"ed"),L="fa-key-plus";if(_==="decrypt"){L="fa2 fa2-key-minus"}if(!theme_message_exists(_+"_warning")){!U&&plugins.messenger.post(''+R,2,"success",_+"_info",1,["bottom","right"])}else{theme_message_dismiss(_+"_info")}}if(_&&_.toString().startsWith("purge_trash_")){theme_message_dismiss(""+_+"_info");plugins.messenger.post(''+theme_language("filemanager_"+_+"_end").replace("$1",""+(get_access_level()===0?session.server.data("user-home"):"~")+"/.Trash"),2,"success",_+"_success",1,["bottom","right"])}}function fm_bookmark_searched(){if(fm_is_search_results()&&fm_bookmark_searched_str!==null){return fm_bookmark_searched_str}return 0}function f_m__bm__cm(){var e=fm_bookmark_searched()||fm_get_current_path();e=typeof e!="undefined"?!e.length?"/":e:false;var a=$($v__fm__container_fluid+" .btn-group > .at-o__f_m-favorites-dropdown").find('li a[href*="index.cgi?path="]').filter(function(){return fm_process_path($(this).text())===fm_process_path(e)});if(a.length){$("#__f__c__m").find(".fa-star-o").addClass("fa-star").removeClass("fa-star-o")}else{$("#__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,a){$(this).prepend('')})}var e=$(".btn-group .dropdown-menu.at-o__f_m-favorites-dropdown > li"),a=e.find('a[href]:not([href^="bookmark.cgi"], [href="#"])');e.find(".no_effect").parent("li").remove();if(!a.length){$(".bm_e__me").remove();e.parent("ul").append('
  • '+theme_language("filemanager__no_bookmarks")+"
  • ")}else{$(".bm_e__me").remove()}},0)}function f_m__bm__c(){var e=fm_bookmark_searched()||fm_get_current_path();e=typeof e!="undefined"?!e.length?"/":e:false;$.each($(".btn-group > .at-o__f_m-favorites-dropdown").find('li a[href*="index.cgi?path="]'),function(){if(uri_parse_param2("path",$(this).attr("href"))==e){$(this).parents(".at-o__f_m-favorites-dropdown").find('a[href^="bookmark.cgi?path="]').html(''+theme_language("filemanager_unbookmark"));return false}else{$(this).parents(".at-o__f_m-favorites-dropdown").find('a[href^="bookmark.cgi?path="]').html(''+theme_language("filemanager_bookmark"))}}).promise().done(function(){setTimeout(function(){f_m__bm__cm()},100)})}function f_m__bm__u(e){var a=fm_bookmark_searched()||fm_get_current_path();if(e){a=e}a=typeof a!="undefined"?!a.length?"%2F":a:"";var t=$(".file-manager .btn-group > .at-o__f_m-favorites-dropdown").find('li a[href*="index.cgi?path="]').filter(function(){return fm_process_path(uri_parse_param2("path",$(this).attr("href")))===fm_process_path(a)});var _=!e||e&&fm_get_current_path()===e;if(t.length){_&&t.parents(".at-o__f_m-favorites-dropdown").find('a[href^="bookmark.cgi?path="]').html(''+theme_language("filemanager_bookmark"));t.parent("li").remove()}else{!e&&$($v__fm__container_fluid+" .btn-group > .at-o__f_m-favorites-dropdown").find('a[href^="bookmark.cgi?path="]').html(''+theme_language("filemanager_unbookmark")),$("body.file-manager").find("ul.dropdown-menu.at-o__f_m-favorites-dropdown").append('
  • '+fm_process_path(a,"escape/decode")+"
  • ")}f_m__bm__cm();return t}function __f___upd___cr(e,a){var t=$("body.file-manager"),_="";t.find(".breadcrumb").empty();if((get_access_level()==0||get_access_level()==1)&&!get_jailed_user()){t.find(".breadcrumb").append('
  • ')}else{t.find(".breadcrumb").append('
  • ')}$.each($(e),function(e,a){_=_+(a!=""?"/"+a:"");if(a!=""){var n=_.replace(a,""),i=fm_process_path(_);if(get_access_level()===3){n=get_user_home()+n}var r='';t.find(".breadcrumb").append('
  • '+Convert.htmlEscape(a)+r+"
  • ")}}).promise().done(function(){if(!$.isEmptyObject(a)){t.find(".breadcrumb li a").removeAttr("href").replaceTagName("span");t.find(".breadcrumb li:last-child span").after($(a[0]));t.find(".breadcrumb li:first-child").replaceWith('
  • ');$($v__fm__container_fluid+" div.total").html(a[1])}else{if(!$($v__fm__container_fluid+" .breadcrumb li:first-child").find(".fa.fa-keyboard-o").length&&!$($v__fm__container_fluid+" a.popover-path").length){$($v__fm__container_fluid+" .breadcrumb li:first-child").prepend('
    \'>
    ');if(config_portable_module_filemanager_hide_toolbar!=true){$($v__fm__container_fluid+" .fa.fa-keyboard-o.popover-path").detach().appendTo(".breadcrumb li:last-child");$($v__fm__container_fluid+" .fa.fa-keyboard-o.popover-path").css("margin-left","2px")}$($v__fm__container_fluid+' [data-toggle="popover-path"]').popover({sanitize:false})}}})}function get_active_tab_id(){return parseInt($(".data-content-container .nav.nav-tabs li.active a").attr("href").replace("#tab-",""))}function __f___upd___tb(e,a){if(e&&e.startsWith("%2F")){e=decodeURIComponent(e)}var t=e.replace(/\/$/,"").split("/").slice(-1)[0];t=t?t:"/";if(a){$($v__fm__container_fluid+' li a[href="#tab-'+a+'"] span[data-tab-path]').text(t).attr("data-original-title",e?Convert.htmlEscape(e):"/");$("#file-manager-new-instance").removeClass("disabled").find("span.cspinner").parent("span").replaceWith('')}else{$($v__fm__container_fluid+" li.active a span[data-tab-path]").text(t).attr("data-original-title",e?Convert.htmlEscape(e):"/")}}function __f___up__tb_store(){if(page.handle.content.preloader.show(-1)){return}var e=[],a=v___server_username;if($t_uri_virtualmin){a+="_"+$('aside [name="dom"]').val()}$($v__fm__container_fluid+" .nav.nav-tabs li a span[data-original-title]").each(function(a,t){var _=$(t).attr("data-original-title").replace(/\/$/,"");var n=fm_process_path(_,"unescape"),i=n?n:"%2F";e.push(i)}).promise().done(function(){var t={};t[a]=e;var _=JSON.parse(localStorage.getItem(v___server_hostname+"-"+"settings_thirdparty_filemanager_remembered_tabs"));if(!$.isEmptyObject(_)){delete _[a]}var n=$.extend({},t,_);localStorage.setItem(v___server_hostname+"-"+"settings_thirdparty_filemanager_remembered_tabs",JSON.stringify(n))})}function __f___ld__tb_stored_chk(){var e=JSON.parse(localStorage.getItem(v___server_hostname+"-"+"settings_thirdparty_filemanager_remembered_tabs")),a=v___server_username;if($t_uri_virtualmin){a+="_"+$('aside [name="dom"]').val()}return!$.isEmptyObject(e)?e[a]:false}function __f___ld__tb_stored(){var e=__f___ld__tb_stored_chk(),a=fm_extract_path(v___location.href),t=null,_=[],n=0;if($.isArray(e)){$.each($(e),function(e,i){if(t===null&&a===i){t=e}if(a===i||!i||_.includes(i)){return}_.push(i);setTimeout(function(){__f___nt(i,false,false,true);if(!n){n++;__f___up__tb_vis();setTimeout(function(){if(t>0){var e=".nav.nav-tabs li:nth-child",a=$($v__fm__container_fluid+" "+e+"(1)"),_=$($v__fm__container_fluid+" "+e+"("+(t+1)+")");if(_.length){a=a.detach();_.after(a)}t=false}},e*2+11)}},e*2+10)})}}function __f___up__tb_vis(){$($v__fm__container_fluid+" .nav.nav-tabs li").length===1?$($v__fm__container_fluid+" .nav.nav-tabs li:first-child").addClass("hidden"):$($v__fm__container_fluid+" .nav.nav-tabs li:first-child").removeClass("hidden")}function __f___up__d(e,a,t){var _=fm_process_path(e,"decode/unescape"),n=_.split("/"),i=$("body.file-manager");$($v__fm__container_fluid+' [data-toggle="popover-path"]').popover("hide");$($v__fm__container_fluid+" .popover-path-button").find("i").removeClass("invisible").parent().find(".cspinner").addClass("hidden");__f___upd___cr(n,t);__f___upd___tb(_,a);if(_){$($v__fm__container_fluid+' #headln2l div.btn-group > a[href*="'+v___module_file_manager+'"][href*="index.cgi"]').removeClass("hidden")}else{$($v__fm__container_fluid+' #headln2l div.btn-group > a[href*="'+v___module_file_manager+'"][href*="index.cgi"]').addClass("hidden")}$.each($($v__fm__container_fluid+' .modal .modal-body form input[name="path"]'),function(){$(this).val(fm_process_path(_))});$($v__fm__container_fluid+' ul li a[href^="bookmark.cgi?path="]').attr("href","bookmark.cgi?path="+Convert.htmlEscape(_));f_m__bm__c();plugins.favorites.detect();setTimeout(function(){theme_title_generate();__r____changed();__f___up__tb_vis();__f___up__tb_store()},0)}function __f___new_symlink(){$.ajax({type:"POST",url:v___server_extensions_path+"/file-manager/create_symlink.cgi?module="+v___module+__f___um()+extra_query(),data:__f___gd(),dataType:"json",success:function(e){if(e[0].error&&e[0].error.length){plugins.messenger.post(''+error_replace_tags(e[0].error),10,"warning","symlink_error",1,["bottom","right"])}__f___u("upd",e[0],1,fm_get_current_path(),false)},error:function(e){session.status(e.responseText)}})}function __f___nt(e,a,t,_){var n=e;$this=$("#file-manager-new-instance");$this.blur();$($v__fm__container_fluid+" .nav.nav-tabs li").addClass("disabled");tab___to______create=tab___to______create+1;var i=String(),r=String(),o=String(),s=String();if(t){i="active",r=" in",o=""+i+" "+r+"",$tabs_container=$($v__fm__container_fluid+" .tabs-top"),$tabs=$tabs_container.find(".nav.nav-tabs"),$tabs_content=$tabs_container.find(".tab-content"),ariaExpandedStr="aria-expanded",s=""+ariaExpandedStr+'="true"';$tabs.find("li").removeClass(i).find("a").removeAttr(ariaExpandedStr);$tabs_content.find(".tab-pane").removeClass(o)}var l=$($v__fm__container_fluid+" .tabs-top > .nav.nav-tabs > .ui-sortable-handle.active"),f='
  •  
  • ';if(_){l=$($v__fm__container_fluid+" .tabs-top > .nav.nav-tabs");l.append(f)}else{l.after(f)}$($v__fm__container_fluid+" .tabs-top > .tab-content").append('
    ');var c=$($v__fm__container_fluid+" .active table thead").clone();c.removeClass("hidden");c.prependTo("#list_form_AuthenticThemeTmp"+tab___to______create+" table");__f____r("get","index.cgi?path="+e,false,0,[tab___to______create,a]);tab___is______new=true}function fm_adjust_auto_rows_length(e,a,t){var _=function(e){if(e&&typeof e==="function"){return e}if(e&&typeof e==="object"&&typeof e.dataTable==="function"){return e.dataTable()}var a=_f__table();if(a&&typeof a==="object"&&typeof a.dataTable==="function"){return a.dataTable()}return false};e=_(e);if(!e){return}var n=window.innerHeight,i=$v__fm__container_fluid+" .data-content-container .active",r=$(i+" table > tbody > tr:first-child").get(0);if(!r){return}var o=r.getBoundingClientRect().top,s=$(i+" .dataTables_wrapper .row:last-child").outerHeight(),l=Math.floor((n-o-s-23*2)/23);if(!l||l<5){l=5}if(t){return l}e._fnLengthChange(l);!a&&e.fnDraw()}function fm_gset_last_row_path(e){var a=e.find("td a[data-filemin-link]").first(),t=a.find('img[src*="inode-directory.png"]').length,_=fm_process_escaped_link(a.attr("data-filemin-link"),1),n="/"+(t?_:_.substring(0,_.lastIndexOf("/"))),i=fm_get_current_path()+fm_process_path(n);fm_bookmark_searched_str=i;return i}function fm_copy_path_to_clipboard(e){if(!e||e&&!e.length){return}var a=e.parents("tr").length?true:false,t=a?e.parents("tr"):e,_=t.find("img").parent("a").parent("td").next("td").find("a"),n=fm_get_current_path(),i=fm_process_escaped_link(_.attr("data-filemin-link"),1);theme_copy_to_clipboard((fm_process_path(n,"decode/unescape")+"/"+i).replace(/\/\//g,"/"))}function fm_check_goback(){var e=$("#headln2l .btn-group").find('a[href*="'+v___module_file_manager+'/index.cgi"]');if(fm_get_current_path()==="%2F"){e.addClass("hidden")}else{e.removeClass("hidden")}}function fm_is_search_results(){return $($v__fm__container_fluid+" .__o__f_m-search-results-data:visible").length}function fm_safe_path(e){if(e&&e.startsWith("%2525252F")){e=decodeURIComponent(decodeURIComponent(decodeURIComponent(e)))}if(e&&e.startsWith("%25252F")){e=decodeURIComponent(decodeURIComponent(e))}if(e&&e.startsWith("%252F")){e=decodeURIComponent(e)}if(e&&e.startsWith("%2F%2F")){e=e.replace(/(%2F)+/g,"%2F")}return e}function fm_path_inside_trash(){if(config_portable_module_filemanager_move_to_trash){var e=Object.keys(get_other_users_home_data());if(e&&e[0]){var a=fm_process_path(e[0],"decode")+"/.Trash",t=fm_get_current_path_full("decode");if(t&&a&&t.includes(a)){return 1}}}}function fm_path_check_jailed(e){var a=String();if(e&&!e.startsWith("%2F")){a="decode"}if(e){var t=get_jailed_user(),_=get_jailed_user("home");if(fm_user_data&&fm_user_data.allowed_paths&&fm_user_data.allowed_paths.length===1&&(get_access_level()===2||get_access_level()===3||get_access_level()===4)||t){var n=new RegExp("^"+fm_process_path(t?_:get_user_home(),a),"");e=e.replace(n,"")}}return e}function fm_process_escaped_link(e,a){var t=Convert.htmlUnEscape(e);if(a){return t}else{return Convert.encodeURIComponentConsistent(t)}}function fm_process_path(e,a){e=fm_extract_path(e);if(a){if(a.includes("decode")){e=decodeURIComponent(e)}if(a.includes("unescape")){var t=0;if(e&&e.startsWith("%2F")){e=decodeURIComponent(e);t=1}e=Convert.htmlUnEscape(e);if(t){e=Convert.encodeURIComponentConsistent(e)}}else if(a.includes("escape")){e=Convert.htmlEscape(e)}}return e}function fm_get_current_path(e){var a=$($v__fm__container_fluid_form+' > input[type="hidden"][name="path"]').val();a=fm_process_path(a,e);return a}function fm_get_current_path_full(e){var a=fm_get_current_path("decode");if(get_access_level()===2||get_access_level()===3||get_access_level()===4){a=get_user_home()+a}if(a){a=a.replace(/[\/]+$/,"")}return fm_process_path(a,e)}function fm_set_current_path(e){if(e){fm_previous_path_used=fm_get_current_path();if(e&&!e.startsWith("%2F")&&!e.startsWith("%252F")){e=Convert.encodeURIComponentConsistent(e)}e=fm_safe_path(e);$($v__fm__container_fluid+' input[type="hidden"][name="path"]').val(e)}}function fm_extract_path(e){var a;if(e&&(e.includes("?path=")||e.includes("&path="))){a=uri_parse_param2("path",e);if(!a){a="%2F"}}else{a=e}if(a&&!a.startsWith("%2F")&&!a.startsWith("%252F")){a=Convert.encodeURIComponentConsistent(a)}a=fm_safe_path(a);return a}function fm_files_mode_ask(e){if(!config_portable_module_filemanager_files_mode_ask){e.call();return}var a='[data-bb-handler="success"]',t='[data-bb-handler="danger"]',_="fm_files_mode_ask",n=function(a,t){if(a.find('input[name="'+_+'"]').val()=="true"){config_portable_module_filemanager_files_mode_ask=false;if(t!=config_portable_module_filemanager_files_safe_mode){config_portable_module_filemanager_files_safe_mode=t?true:false;core.updateModuleData("/mconfig.cgi?module=filemin§ion=line0&nprev=Previous","/mconfig_save.cgi",{config_portable_module_filemanager_files_safe_mode:config_portable_module_filemanager_files_safe_mode})}theme.config.save()}fm_overwrite_files=!t;e.call()},i=snippets.inject_extra_option("checkbox:html",false,_,theme_language("filemanager_files_mode_ask_remember"),{extraClass:{main:"thick"},getHtml:true,checked:false}),r=bootbox.dialog({message:theme_language("filemanager_files_mode_ask_desc"),title:'   '+theme_language("filemanager_files_mode_ask_title")+"",className:"overwrite-mode-ask-modal fade5",buttons:{success:{label:'   '+theme_language("filemanager_files_mode_ask_title_no")+"  ",className:"btn-primary vertical-align-top ",callback:function(){n($(this),true)}},danger:{label:'   '+theme_language("filemanager_files_mode_ask_title_yes")+"  ",className:"btn-danger vertical-align-top margined-left--2",callback:function(){n($(this),false)}}},onEscape:function(){}});r.init(function(){$(this).find(a).before(i+" ")}).on("shown.bs.modal",function(){var e=$(this);setTimeout(function(){e.find(config_portable_module_filemanager_files_safe_mode?a:t).focus()},0)})}function fm_trash_clear(e){var a="purge_trash_"+e+"";plugins.messenger.post(''+theme_language("filemanager_purge_trash_"+e+"_start").replace("$1",""+(get_access_level()===0?session.server.data("user-home"):"~")+"/.Trash")+"
    "+theme_language("global_please_wait"),0,"info",a+"_info",1,["bottom","right"]);$.ajax({type:"POST",url:v___server_extensions_path+"/file-manager/purge_trash.cgi?module="+v___module+extra_query()+"&trash_all="+(e==="all"?1:0),data:__f___gd(),dataType:"json",success:function(e){setTimeout(function(){__f___u("upd",e[0],1,a,false);tree_update_node()},567)},error:function(e){session.status(e.responseText)}})}function fm_path_manual_popover(){var e=$($v__fm__container_fluid+" .breadcrumb");if(e.hasClass("searching-a")){return}var a=$($v__fm__container_fluid+" #headln2r");if(Test.scrolledIntoView(a)){$('[data-toggle="popover-path"]').popover("show")}else{a.scrollIntoView({duration:200,direction:"vertical",complete:function(){$($v__fm__container_fluid+' [data-toggle="popover-path"]').popover("show")}})}}function __f____r(e,a,t,_,n,i){if(f__ck_init_err(1)){f__ck_init_err();return}typeof i=="undefined"?i=false:false;if(typeof n=="object"){var r=n[1],n=n[0]}else{var r=true}var o=fm_extract_path(a);fm_store_last_visited_dir(o);typeof n=="undefined"?n=false:false;if(e==="get"){if(typeof getflist!="undefined"&&i){getflist.abort();__f_____ul(true)}if(__f__ck_lock()&&r){return}__f_____lo(true,true);var s=extra_query(a,false,"list"),l=$($v__fm__container_fluid+" .tab-pane.active"),f=l.find(".paginate_button.active").text();getflist=$.ajax({xhr:function(){var e=new window.XMLHttpRequest;return e},type:"POST",url:v___server_extensions_path+"/file-manager/list.cgi?module="+v___module_file_manager+s,data:{path:o},dataType:"json",complete:function(){setTimeout(function(){fm_refreshing_current=0},120);if(!i&&initial_fm_load){getflists_loaded.push(getflist);if(getflists_loaded.length===getflists.length){initial_fm_load=0;__f_____ul(true)}}},success:function(e){if(e[0]&&e[0].udata&&(e[0].udata.user||e[0].udata.home)){fm_user_data=e[0].udata}var t="refreshDir_info";if(theme_message_exists(t)){select_all_entries("remove");theme_message_dismiss(t)}!initial_fm_load&&theme_message_dismiss("getPath_error");setTimeout(function(){!fm_refreshing_current&&l.data("previousPageNumber",f)},100);if(e[0].error&&e[0].error.length||e[0].error_fatal&&e[0].error_fatal.length){var i=e[0].error||e[0].error_fatal;plugins.messenger.post(''+error_replace_tags(Convert.htmlEscape(i.replace(" :",":").replace(" ,",","))),15,"error","getPath_error",1,["bottom","right"]);__f_____ul();$($v__fm__container_fluid+" .active table .cspinner").remove();if(n){$($v__fm__container_fluid+' a[href="#tab-'+n+'"]').parent("li").remove();$($v__fm__container_fluid+' .tab-content .tab-pane[id="tab-'+n+'"]').remove()}localStorage.removeItem(v___server_hostname+"-"+v___server_username+"-"+"fm-last-visited-dir");return}else{$($v__fm__container_fluid+' [data-toggle="popover-path"]').popover("hide")}var s=fm_get_current_path(),c=fm_extract_path(a);if(s!==c){select_all_entries("remove")}if(!n){fm_set_current_path(c)}var d=$(e[0].total).append(__f___tl_v()).html();r&&$($v__fm__container_fluid+" .total").html(d);if(n){$($v__fm__container_fluid+' .tab-pane[id="tab-'+n+'"]').data("totalValue",d)}else{$($v__fm__container_fluid+" .tab-pane.active").data("totalValue",d)}__f___u("upd",e[0],_,false,[n,r,o,d]);$("._select-unselect_").parent(".awcheckbox").remove();$("#__f__c__m").css("display","none");setTimeout(function(){__f___us_a();if(typeof sortable=="function"){sortable($($v__fm__container_fluid+" .tabs-top > ul.nav"))}},10)},error:function(e){var a=$(e.responseText),t=a.find("#headln2r").length;if(t){var _=a.filter("h3").text();if(_&&_.length){__f_____ul();plugins.messenger.post(''+(theme_language("global_error")+":  "+_.replace(" :"," ").replace(" ,",",")),15,"error","getPath_error",1,["bottom","right"])}}else{session.status(e.responseText)}}});if(!i&&initial_fm_load){getflists.push(getflist)}}}function get_other_users_home_data(){var e={};if(get_access_level()!=0||config_portable_module_filemanager_switch_users!==true){return e}if(typeof fm_users_data_dynamic==="object"){$.each(Convert.arrFlip(fm_users_data_dynamic),function(a,t){var _=fm_process_path(a.split(":")[2]);_=fm_process_path(_,"decode");if(_&&_.includes("/./")){_="/"+_.split("/./")[1]}_=fm_process_path(_,"encode");e[_]=t})}return e}function __f___us_a(){if(get_access_level()!=0||config_portable_module_filemanager_switch_users!==true){return}var e=fm_get_current_path();if(e&&e.indexOf($g__v__home_base)>-1&&e!=$g__v__home_base){$.ajax({type:"POST",url:v___server_extensions_path+"/file-manager/fetcher.cgi",data:{module:v___module,list_users:1},dataType:"JSON",success:function(a){$.each(Convert.arrFlip(a),function(t,_){var n=fm_process_path(t.split(":")[2]);var i=n;if(i&&i.includes("%2F.%2F")){var r=i.split("%2F.%2F");if(r&&r[0]&&r[1]){i="%2F"+r[1]}}e=fm_process_path(e,"decode");e=fm_process_path(e,"encode");i=fm_process_path(i,"decode");i=fm_process_path(i,"encode");if(e==i||e.startsWith(i+"%2F")){localStorage.setItem(v___server_hostname+"-"+"settings_thirdparty_filemanager_usermode",_)}fm_users_data_dynamic=a;__f___us_tl()})},error:function(e){session.status(e.responseText)}})}else{__f___us_m_def();__f___us_tl()}}function fm_get_file_info(e,a,t){var _=e+"/"+a;if(get_access_level()===2||get_access_level()===3||get_access_level()===4){_=get_user_home()+_}_=decodeURIComponent(_.replace(/\/\//g,"/"));var n=v___location_prefix+"/xhr.cgi",i={type:"file",action:"stat",file:_,module:v___module_file_manager};fm_target_spinner_add(t);$.ajax({type:"POST",url:n,data:i,dataType:"JSON",success:function(e){fm_target_spinner_remove();var a=function(){return $(document.body).find(".fm_fileinfo_data")},t=e.size[0],_=e.size[1],r=e.content;r=Convert.htmlEscape(r);r=r.replace(/(?:\r\n|\r|\n)/g,"
    ").replace(/\/\//g,"/");r=r.replace(/((\b)(?!\d+)IO Block|(?!\d+)\w+\b): /g,"$1: ");r=r.replace(/\s/g," ");var o="fm_fileinfo_data";window[o]=[];var s="data-a-checksum",l=""+s+"="",f=""",c=new RegExp(""+l+"(.*?)"+f,"g"),d=r.match(c),m=_>=1024e3&&_ div";if(n&&n.length){var r=e.call(this,t),o=new RegExp(r),s=n.find(i);s.html(s.html().replace(o,_))}},p=function(e,a){if(!a){u(g,e,h(e))}let t=i;t.checksum=e;window[o][e]=$.ajax({type:"POST",url:n,data:t,dataType:"JSON",success:function(a){u(h,e,a.checksum)},error:function(e){session.status(e.responseText)}})},g=function(e){return"'},h=function(e){return"'};if(d){r=r.replace(c,m?h("$1"):g("$1"))}var v=$(document.body);v.append('");a().on("shown.bs.modal",function(){if(!m){var e="click.checksumevt";a().off(e);a().on(e,"button["+s+"]",function(e){e.preventDefault();p($(this).attr(s),0)})}else{$.each(a().find("span["+s+"]"),function(){p($(this).attr(s),1)})}}).on("hidden.bs.modal",function(){a().remove();var e=window[o]||{};Object.entries(e).forEach(function(e){const[a,t]=e;if(t&&typeof t.abort==="function"){t.abort.call()}})}).modal("show")},error:function(e){session.status(e.responseText)}})}function fm_get_current_home_username(){return localStorage.getItem(v___server_hostname+"-"+"settings_thirdparty_filemanager_usermode")}async function fm_get_current_home_user_details(){var e=fm_get_current_path(),a={};if(e&&e.indexOf($g__v__home_base)>-1&&e!=$g__v__home_base){var t=fm_get_current_home_username();a=$.ajax({type:"POST",url:v___server_extensions_path+"/file-manager/fetcher.cgi",data:{module:v___module,list_users:1,list_user:t||" "},dataType:"JSON"});return await a}else{return a}}function __f___us_m_def(){localStorage.setItem(v___server_hostname+"-"+"settings_thirdparty_filemanager_usermode","")}function __f___us_tl(){var e=fm_get_current_home_username(),a=theme_language("filemanager_user_switch")+"

    "+theme_language("filemanager_user_switch_current_user")+": "+(e?e:v___server_username)+"",t="#file-manager-switch-user";$(t).attr("data-original-title",a);if(!!e){$(t).addClass("btn-warning")}else{$(t).removeClass("btn-warning")}}function __f___tl_v(){var e=theme_language("filemanager_selected_entries").replace("%value","0"),a=$('.total_selected[data-all="1"]');if(a.length){return". "+a[0].outerHTML}return'. '+e+' '}function update_per_page(e){$('[name="per_page"]').val(e)}function update_records_for_server_pagination(e){$('[name="config_portable_module_filemanager_records_for_server_pagination"]').val(parseInt(e)).trigger("input")}function block_events(){vars.events.blocked=true;setTimeout(function(){vars.events.blocked=false},vars.event.stopped_typing_delay*5)}function action_messages_dismiss_all(e){theme_message_dismiss(""+e+"_success");theme_message_dismiss(""+e+"_error");theme_message_dismiss(""+e+"_info");theme_message_dismiss(""+e+"_warning")}function alert_json_errors(e,a,t,_,n){var i=JSON.parse(e),r=t.endsWith("_")?t+a:t,o=theme_language(r)+":
      ",s=n?0:10;if(typeof i==="object"&&i){if(Object.keys(i).length>1||_){var l=0,f=String(),c=10,d=theme_language("filemanager_batch_error");for(var m in i){l++;if(l<=c){o+="
    • "+m+" - "+i[m]+"
    • "}else{f='
      '+d.replace("%1",''+(l-c)+"")+"
      "}}o+="
    "+f+"";plugins.messenger.post(''+o,15,"error",a+"_error",1,["bottom","right"])}else{plugins.messenger.post(''+Convert.json_to_string(i),15,"error",a+"_error",1,["bottom","right"])}}}function encryptDecryptModalA(e){var a=$("#encryptDecrypt"),t=a.find("[data-title-text]"),_=a.find("[data-title-icon]"),n=a.find("[data-encrypt]"),i=a.find("[data-decrypt]"),r=a.find("[data-label-text]"),o=a.find(".use_master_admin_keys_cnt"),s=a.find("[data-button-text]"),l=n.find('select[name="key"]'),f=a.find("[data-button-reverse]"),c=$("#__f__c__m li.context-o__f_m-dependent-encrypt:not(.divider)"),d=c.find("a"),m=c.find("i"),u="fa-key-plus",p="fa2 fa2-key-minus",g="hidden",h="disabled",v="btn-warning",b=theme_language("global_encrypt"),w=theme_language("global_decrypt"),x=theme_language("filemanager_encrypt_option_delete_afterwards"),y=theme_language("filemanager_decrypt_option_delete_afterwards");if(e){m.add(_).removeClass(u).addClass(p);t.add(s).text(w);d.html(c.find("i")[0].outerHTML+"  "+w);f.text(b);n.addClass(g);i.removeClass(g);s.addClass(v).removeClass(h);r.text(y);get_access_level()===0&&fm_get_current_home_username()&&o.removeClass("hidden")}else{m.add(_).addClass(u).removeClass(p);t.add(s).text(b);d.html(c.find("i")[0].outerHTML+"  "+b);f.text(w);n.removeClass(g);i.addClass(g);s.removeClass(v);r.text(x);o.addClass("hidden");if(l.val()){s.removeClass(h)}else{s.addClass(h)}}}function fm_install_deps(e,a,t){var _=a[0],n=a[1],i=a[2],r=a[3];plugins.messenger.post(''+r+"
    "+theme_language("global_please_wait")+'   ',0,"info","galleryError",1,["bottom","right"]);$.ajax({type:"POST",url:e,data:false,dataType:"html",success:function(e){if(!session.status(e)){return}if(!e||e&&e.includes(_)){plugins.messenger.post(''+i+"",15,"error","galleryError",1,["bottom","right"])}else{plugins.messenger.post(''+n+"",2,"success","galleryError",1,["bottom","right"])}}})}function image_download(e,a){link="download.cgi?file="+fm_process_path(a)+"&path="+fm_process_path(e)+"";window.location.replace(v___location_prefix+"/"+v___module_file_manager+"/"+link)}function image_preview(e,a,t){if(typeof PhotoSwipe!=="function"){load.bundle("photoswipe",1,{image_preview:arguments},2);return}var _=String();if(t){_+="&files_selected=1"}if(a){_+="&files_all=1"}if(e){_+="&file_requested="+e+""}if(a||t){var n=t?" fa-1_25x fa2 fa2-image-selected":" fa-1_15x fa2 fa2-images";plugins.messenger.post(''+(theme_language("filemanager_preview_images_building")+"
    "+theme_language("global_please_wait"))+'   ',0,"info","galleryError",1,["bottom","right"])}$.ajax({type:"POST",url:v___server_extensions_path+"/file-manager/list-images.cgi?module="+v___module+_+extra_query()+"&width="+parseInt(window.innerWidth*.75)+"&height="+parseInt(window.innerHeight*.75)+"",data:__f___gd(),dataType:"JSON",success:function(e){e=e[0];if(e.error){plugins.messenger.post(''+e.error,30,"warning","galleryError",1,["bottom","right"])}else if(e.warning){plugins.messenger.post(''+e.warning,10,"warning","galleryError",1,["bottom","right"])}else if(e.items){var a='";document.querySelector("body").insertAdjacentHTML("beforeend",a);pswpElem=document.querySelector(".pswp"),items=e.items,index_requested=e.index_requested,gallery=new PhotoSwipe(pswpElem,PhotoSwipeUI_Default,items,{history:false,shareEl:false,fullscreenEl:false,escKey:true,downloadEl:true,closeElClasses:["ui"],index:index_requested});gallery.listen("destroy",function(){pswpElem.remove()});theme_message_dismiss("galleryError");gallery.init()}},error:function(e){session.status(e.responseText)}})}function ___f__tw(){__f___globals();__f_____undel();document.activeElement.blur();var e=config_portable_module_filemanager_hide_tree_view?' class="hidden"':"",a=config_portable_module_filemanager_hide_tree_view?" hidden":"",t=document.body;if($(t).attr("class")&&$(t).attr("class").indexOf(v___module_file_manager)>-1){$__f__rf_s="fa-refresh";var _="jquery.jspanel";load.bundle(_,1);setTimeout(function(){$($v__fm__container_fluid+" #upload-form").removeAttr("onsubmit");$($v__fm__container_fluid+" #upload-form").append("

    "+theme_language("upload_initial_info")+"

    ");$($v__fm__container_fluid+' #upload-form input[name="upfiles"]').removeClass("heighter-28");$($v__fm__container_fluid+" #readyForUploadDialog .modal-footer").prepend('");$($v__fm__container_fluid+' #readyForUploadDialog button[onclick="uploadFiles()"]').html(' '+theme_language("global_upload")+"");$($v__fm__container_fluid+' #readyForUploadDialog button[onclick="uploadFiles()"]').after('"+'");$($v__fm__container_fluid+" #upload-form").on("dragover dragenter",function(){$(this).addClass("pulse")}).on("dragleave dragend drop",function(){$(this).removeClass("pulse")});$($v__fm__container_fluid+" #readyForUploadDialog #readyForUploadList").remove();$($v__fm__container_fluid+" #readyForUploadDialog [data-upload-reset]").after($(""+$v__fm__container_fluid+" #upload-form ~ .awcheckbox").detach().addClass("thick"));$($v__fm__container_fluid+' #readyForUploadDialog [data-id="overwrite_existing"]').parent().hide();var e=$($v__fm__container_fluid+" .o__f_m-button-delete");if(config_portable_module_filemanager_move_to_trash){e.addClass("btn-warning").removeClass("btn-danger").attr("title",theme_language("filemanager_context_move_to_trash")).find(".fa").addClass("fa-trash")}if(config_portable_module_filemanager_move_to_trash){e.wrapAll('
    ');e.after('"+'")}e.attr("data-container",".breadcrumb + .btn-group.pull-right").attr("data-placement","auto bottom").attr("data-skip","true").tooltip({sanitize:false,trigger:"hover",delay:{show:0,hide:vars.plugins.tooltip.delay.hide}});e.next(".dropdown").find(".dropdown-toggle").attr("data-container",".breadcrumb + .btn-group.pull-right").attr("data-placement","auto bottom").attr("data-skip","true").attr("title",theme_language("filemanager_context_empty_trash")).tooltip({sanitize:false,trigger:"hover",delay:{show:0,hide:vars.plugins.tooltip.delay.hide}})},3);$($v__fm__container_fluid+" .panel-body").append('
    ');if(config_portable_module_filemanager_auto_per_page){$($v__fm__container_fluid+" .panel-body").attr("data-auto-per-page",1)}$($v__fm__container_fluid_form).detach().appendTo("#tab-1");if(typeof sortable=="function"){var n=$($v__fm__container_fluid+" .tabs-top > ul.nav");sortable(n).on("sortupdate.fm",function(){__f___up__tb_store()})}if(config_portable_module_filemanager_remember_tabs&&__f___ld__tb_stored_chk()){setTimeout(function(){__f___ld__tb_stored()},10)}$.ajax({type:"POST",url:v___server_extensions_path+"/file-manager/fetcher.cgi",data:{module:v___module,home_base:1},dataType:"JSON",success:function(e){$g__v__home_base=jQuery.isEmptyObject(e)?v___server_userhome:fm_process_path(e.home_base)},error:function(e){session.status(e.responseText)}});var r=setInterval(function(){if(typeof fm_user_data!=="undefined"&&fm_user_data.user){if(get_access_level()==0&&!get_jailed_user()&&config_portable_module_filemanager_switch_users===false){$('#headln2r .btn-group a[href*="config.cgi"]').before('');__f___us_tl();$(t).attr("data-user-switch",1)}clearInterval(r)}},100);var o=$("#headln2r .btn-group");var s="path-to-shell",l=core.moduleAvailable("xterm"),f=plugins.shell.available(),c=l?"fa2 fa2-terminal":"fa fa-terminal";if(l||f){o.prepend("');$($v__fm__container_fluid+" ."+s).on("click.fm",function(e){e.preventDefault();if(v___module===v___module_file_manager){var a=fm_get_current_path();if(get_access_level()===3){a=fm_process_path(get_user_home())+a}if(session.server.data("terminal")==1){var t=fm_process_path(a,"decode/unescape");t=t.replace(/[-[\]{}()*+?.,\\^$|#\s'"]/g,"\\$&");plugins.terminal.open("cd "+t+"")}else if(session.server.data("shell")==1){plugins.shell.set(a);plugins.shell.open()}}})}o.prepend('');o.prepend('');var d=theme_language("global_module_preferences")+" "+theme_shortcuts_generate("conf");o.find("i.fa.fa-cog").parent("a").attr("data-placement","auto right").attr("data-original-title",d);$("body").on("input.fm",".dataTables_length select",function(e){fm_stored_listing.delete()});$(t).on("click.fm",".tab-pane.active .ui_checked_columns > .ui_checked_checkbox:nth-child(1) + td > a",function(e){e.preventDefault();e.stopPropagation();if(e.offsetX<=-2&&e.offsetX>=-11&&!$(e.target).is("img")){$(this).trigger("contextmenu")}});var m;$(t).on("contextmenu.fm",function(){m=true});function u(){m=false}$(t).on("click.fm",u).on("mouseleave.fm",".popover:not(.file-manager-help):not(.jsPanel-file-info):not(.popover-path-data)",function(e){var a=$(this);e.preventDefault();e.stopPropagation();if(m){$(t).one("click.fm",function(){a.popover("hide")})}else{a.popover("hide")}});$($v__fm__container_fluid+" div.total").append(__f___tl_v());$($v__fm__container_fluid+" .tab-pane.active").data("totalValue",$("div.total").html());$("body.file-manager #content").append('");$(t).on("click.fm","#__f__c__m li i.fa",function(e){$(this).parents("a").trigger("click")}).on("hidden.bs.modal",$v__fm__container_fluid,function(){$(".modal-backdrop").remove()}).on("click.fm",function(e){$(".tooltip").each(function(){if(!$(this).is(e.target)&&$(this).has(e.target).length===0&&$(".tooltip").has(e.target).length===0){$(this).tooltip("hide")}})}).on("click.fm",$v__fm__container_fluid+" .breadcrumb .fa-caret-right",function(e){e.preventDefault();e.stopPropagation();var a=$($v__fm__container_fluid+" .breadcrumb span[data-tree]"),t=$($v__fm__container_fluid+" .breadcrumb .fa-caret-down"),_=$(this),n=_.attr("data-path"),i=n?n:"%2F",r=_.parent("a").attr("href");$dirCurrent=_.parent("a").text();a.remove();t.addClass("fa-caret-right").removeClass("fa-caret-down");if(_.parent("a").next("span[data-tree]").length){return}_.addClass("invisible").after('');$(this).removeClass("fa-caret-right").addClass("fa-caret-down");_.parent("a").after('