403Webshell
Server IP : 85.158.181.41  /  Your IP : 216.73.217.12
Web Server : Apache
System : Linux cloud9-vm129 6.1.178+1-ph #ph SMP PREEMPT_DYNAMIC Wed Jul 29 09:00:54 UTC 2026 x86_64
User : moncbefd ( 1024)
PHP Version : 7.3.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/moncbefd/www.moneta.at/admin/includes/ckeditor/filemanager/scripts/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/moncbefd/www.moneta.at/admin/includes/ckeditor/filemanager/scripts/filemanager.min.js
/*
	MIT License
 @author		Jason Huck - Core Five Labs
 @author		Simon Georget <simon (at) linea21 (dot) com>
 @copyright	Authors
*/
(function(a){function L(a){var e=this.window.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest;if(!e)throw Error("XMLHttpRequest not supported");e.open("HEAD",a,!1);e.send(null);return 200==e.status?!0:!1}function p(b,e){return"dir"!=b["File Type"]||"download"!=e&&"replace"!=e?"undefined"==typeof b.Capabilities?!0:-1<a.inArray(e,b.Capabilities):!1}function t(b){var e=b.attr("class").replace(/ /g,"_");if(""==e)return"itemOptions";if(!a("#"+e).length){var c=a("#itemOptions").clone().attr("id",
e);b.hasClass("cap_select")||a(".select",c).remove();b.hasClass("cap_download")||a(".download",c).remove();b.hasClass("cap_rename")||a(".rename",c).remove();b.hasClass("cap_move")||a(".move",c).remove();a(".replace",c).remove();b.hasClass("cap_delete")||a(".delete",c).remove();a("#itemOptions").after(c)}return e}a.urlParam=function(a){return(a=RegExp("[\\?&]"+a+"=([^&#]*)").exec(window.location.href))?a[1]:0};var g=function(){var b=null;a.ajax({async:!1,url:"./scripts/filemanager.config.js",dataType:"json",
cache:!1,success:function(a){b=a}});return b}(),l=g.options.fileConnector||"connectors/"+g.options.lang+"/filemanager."+g.options.lang,k=g.options.capabilities||"select download rename move delete replace".split(" ");0!=a.urlParam("langCode")&&L("scripts/languages/"+a.urlParam("langCode")+".js")&&(g.options.culture=a.urlParam("langCode"));var f=[];a.ajax({url:"scripts/languages/"+g.options.culture+".js",async:!1,dataType:"json",success:function(a){f=a}});a.prompt.setDefaults({overlayspeed:"fast",
show:"fadeIn",opacity:0.4,persistent:!1});var D=function(){var b=20;!0===g.options.searchBox&&(b+=33);b=a(window).height()-a("#uploader").height()-b;a("#splitter, #filetree, #fileinfo, .vsplitbar").height(b);b=a("#splitter").width()-6-a("#filetree").width();a("#fileinfo").width(b)},u=function(a,e){e="undefined"===typeof e?!0:!1;if(!1==g.options.showFullPath){if("function"===typeof displayPathDecorator)return displayPathDecorator(a.replace(fileRoot,"/"));a=a.replace(fileRoot,"/");if(50<a.length&&!0===
e){var c=a.split("/");a="/"+c[1]+"/"+c[2]+"/(...)/"+c[c.length-2]+"/"}}return a},x=function(b){"grid"==b?(a("#grid").addClass("ON"),a("#list").removeClass("ON")):(a("#list").addClass("ON"),a("#grid").removeClass("ON"))},y=function(a){var e="",e="\u0160\u0161\u0110\u0111\u017d\u017e\u010c\u010d\u0106\u0107\u00c0\u00c1\u00c2\u00c3\u00c4\u00c5\u00c6\u00c7\u00c8\u00c9\u00ca\u00cb\u00cc\u00cd\u00ce\u00cf\u00d1\u00d2\u00d3\u00d4\u00d5\u00d6\u0150\u00d8\u00d9\u00da\u00db\u00dc\u00dd\u00de\u00df\u00e0\u00e1\u00e2\u00e3\u00e4\u00e5\u00e6\u00e7\u00e8\u00e9\u00ea\u00eb\u00ec\u00ed\u00ee\u00ef\u00f0\u00f1\u00f2\u00f3\u00f4\u00f5\u00f6\u0151\u00f8\u00f9\u00fa\u00fb\u00fd\u00fd\u00fe\u00ff\u0154\u0155 '/".split(""),
c="S s Dj dj Z z C c C c A A A A A A A C E E E E I I I I N O O O O O O O U U U U Y B Ss a a a a a a a c e e e e i i i i o n o o o o o o o u u u y y b y R r _ _ ".split(" ");a=String(a);for(i=0;i<e.length;i++)a=a.replace(RegExp(e[i],"g"),c[i]);e=a;g.options.chars_only_latin&&(e=e.replace(/[^_a-zA-Z0-9]/g,""));return e=e.replace(/[_]+/g,"_")},M=function(a){filename="";-1!=a.lastIndexOf(".")?(filename=y(a.substr(0,a.lastIndexOf("."))),filename+="."+a.split(".").pop()):filename=y(a);return filename},
E=function(a){a=parseFloat(a);for(var e=0,c=[f.bytes,f.kb,f.mb,f.gb];;){if(1024>a)return a=Math.round(100*a)/100,a+c[e];a/=1024;e+=1}},F=function(b){a("#fileinfo").html("<h1>"+b+"</h1>");a("#newfile").attr("disabled","disabled");a("#upload").attr("disabled","disabled");a("#newfolder").attr("disabled","disabled")},q=function(a){return 1==a.split(".").length?"":a.split(".").pop().toLowerCase()},N=function(a){return-1!=a.lastIndexOf(".")?a.substring(0,a.lastIndexOf(".")):a},O=function(b){a("#fileinfo").find("td:first-child").each(function(){var e=
a(this).attr("data-path"),e=a("#filetree").find('a[data-path="'+e+'"]').parent();"undefined"!==typeof e.css("background-image")&&(a(this).css("background-image",e.css("background-image")),window.clearInterval(b))})},z=function(b){a("#currentpath").val(b);a("#uploader h1").text(f.current_folder+u(b)).attr("title",u(b,!1)).attr("data-path",b);a("#newfolder").unbind().click(function(){var b=f.default_foldername,c=f.prompt_foldername+' : <input id="fname" name="fname" type="text" value="'+b+'" />',d=
{};d[f.create_folder]=!0;d[f.cancel]=!1;a.prompt(c,{callback:function(d,c){if(1!=d)return!1;var g=c.children("#fname").val();""!=g?(b=y(g),g=new Date,a.getJSON(l+"?mode=addfolder&path="+a("#currentpath").val()+"&name="+b+"&time="+g.getMilliseconds(),function(b){0==b.Code?(P(b.Parent,b.Name),m(b.Parent),a("#filetree").find('a[data-path="'+b.Parent+'/"]').click().click()):a.prompt(b.Error)})):a.prompt(f.no_foldername)},buttons:d})})},K=function(b){a("#fileinfo button").each(function(b){0==a(this).find("span").length&&
a(this).wrapInner("<span></span>")});if(p(b,"select")){if(a("#fileinfo").find("button#select").click(function(){A(b)}).show(),window.opener||window.tinyMCEPopup)a("#preview img").attr("title",f.select),a("#preview img").click(function(){A(b)}).css("cursor","pointer")}else a("#fileinfo").find("button#select").hide();p(b,"rename")?a("#fileinfo").find("button#rename").click(function(){var e=G(b);e.length&&a("#fileinfo > h1").text(e)}).show():a("#fileinfo").find("button#rename").hide();p(b,"move")?a("#fileinfo").find("button#move").click(function(){var e=
H(b);e.length&&a("#fileinfo > h1").text(e)}).show():a("#fileinfo").find("button#move").hide();p(b,"replace")?a("#fileinfo").find("button#replace").click(function(){I(b)}).show():a("#fileinfo").find("button#replace").hide();p(b,"delete")?a("#fileinfo").find("button#delete").click(function(){J(b)&&a("#fileinfo").html("<h1>"+f.select_from_left+"</h1>")}).show():a("#fileinfo").find("button#delete").hide();p(b,"download")?a("#fileinfo").find("button#download").click(function(){window.location=l+"?mode=download&path="+
encodeURIComponent(b.Path)}).show():a("#fileinfo").find("button#download").hide()},w=function(){a("#filetree").fileTree({root:fileRoot,datafunc:Q,multiFolder:!1,folderCallback:function(a){m(a)},expandedFolder:fullexpandedFolder,after:function(b){a("#filetree").find("li a").each(function(){a(this).contextMenu({menu:t(a(this))},function(b,c,d){c=a(c).attr("data-path");v(b,c)})});!0==g.options.searchBox&&(a("#q").liveUpdate("#filetree ul").blur(),a("#search span.q-inactive").html(f.search),a("#search a.q-reset").attr("title",
f.search_reset))}},function(a){B(a)})},A=function(b){var e=!1!==g.options.relPath?relPath+b.Path.replace(fileRoot,""):relPath+b.Path;window.opener||window.tinyMCEPopup||a.urlParam("field_name")?window.tinyMCEPopup?(b=tinyMCEPopup.getWindowArg("window"),b.document.getElementById(tinyMCEPopup.getWindowArg("input")).value=e,"undefined"!=typeof b.ImageDialog&&(b.ImageDialog.getImageData&&b.ImageDialog.getImageData(),b.ImageDialog.showPreviewImage&&b.ImageDialog.showPreviewImage(e)),tinyMCEPopup.close()):
(a.urlParam("field_name")?(parent.document.getElementById(a.urlParam("field_name")).value=e,"undefined"!==typeof parent.tinyMCE&&parent.tinyMCE.activeEditor.windowManager.close(),"undefined"!==typeof parent.$.fn.colorbox&&parent.$.fn.colorbox.close()):a.urlParam("CKEditor")?window.opener.CKEDITOR.tools.callFunction(a.urlParam("CKEditorFuncNum"),e):""!=b.Properties.Width?window.opener.SetUrl(e,b.Properties.Width,b.Properties.Height):window.opener.SetUrl(e),window.close()):a.prompt(f.fck_select_integration)},
G=function(b){var e="",c=f.new_filename+' : <input id="rname" name="rname" type="text" value="'+N(b.Filename)+'" />',d={};d[f.rename]=!0;d[f.cancel]=!1;a.prompt(c,{callback:function(d,c){if(1!=d)return!1;rname=c.children("#rname").val();if(""!=rname){var h=M(rname),k=q(b.Filename);0<k.length&&(h=h+"."+k);var s=b.Path;a.ajax({type:"GET",url:l+"?mode=rename&old="+b.Path+"&new="+h,dataType:"json",async:!1,success:function(d){if(0==d.Code){var c=d["New Path"],r=d["New Name"],n=a("#filetree").find('a[data-path="'+
s+'"]'),h=n.parent().parent().prev("a");n.attr("data-path",c).text(r);0==h.length?w():h.click().click();n=a("#preview h1").attr("title");"undefined"!=typeof n&&n==s&&a("#preview h1").text(r);"grid"==a("#fileinfo").data("view")?(a('#fileinfo img[data-path="'+s+'"]').parent().next("p").text(r),a('#fileinfo img[data-path="'+s+'"]').attr("data-path",c)):(a('#fileinfo td[data-path="'+s+'"]').text(r),a('#fileinfo td[data-path="'+s+'"]').attr("data-path",c));a("#preview h1").html(r);b.Path=c;b.Filename=
r;a("#fileinfo").find("button#rename, button#delete, button#download").unbind();K(b);g.options.showConfirmation&&a.prompt(f.successful_rename)}else a.prompt(d.Error);e=d["New Name"]}})}},buttons:d});return e},I=function(b){a("#fileR").bind("change",function(){a(this).closest("form#toolbar").submit()});a("#toolbar").attr("action",l);a("#toolbar").attr("method","post");a("#toolbar").ajaxForm({target:"#uploadresponse",beforeSubmit:function(e,c,d){e=a("#fileR",c).val();if(""==e)return!1;if(q(e)!=b["File Type"])return a.prompt(f.ERROR_REPLACING_FILE+
" ."+q(b.Filename)),!1;a("#replace").attr("disabled",!0);a("#upload span").addClass("loading").text(f.loading_data);if("undefined"!==typeof FileReader&&"auto"!=typeof g.upload.fileSizeLimit&&a("#fileR",c).get(0).files[0].size>1048576*g.upload.fileSizeLimit)return a.prompt("<p>"+f.file_too_big+"</p><p>"+f.file_size_limit+g.upload.fileSizeLimit+" "+f.mb+".</p>"),a("#upload").removeAttr("disabled").find("span").removeClass("loading").text(f.upload),!1},error:function(b,c,d){a("#upload").removeAttr("disabled").find("span").removeClass("loading").text(f.upload);
a.prompt(f.ERROR_UPLOADING_FILE)},success:function(b){b=jQuery.parseJSON(a("#uploadresponse").find("textarea").text());0==b.Code?(b=b.Path+"/"+b.Name,B(b),a("#preview").find("img").hide().fadeIn("slow"),a("ul.jqueryFileTree").find('li a[data-path="'+b+'"]').parent().hide().fadeIn("slow"),g.options.showConfirmation&&a.prompt(f.successful_replace)):a.prompt(b.Error);a("#replace").removeAttr("disabled");a("#upload span").removeClass("loading").text(f.upload)}});a("#newfilepath").val(b.Path);a("#fileR").click()},
H=function(b){var e="",c=f.move+' : <input id="rname" name="rname" type="text" value="" />',d={};d[f.move]=!0;d[f.cancel]=!1;a.prompt(c,{callback:function(d,c){if(1!=d)return!1;rname=c.children("#rname").val();if(""!=rname){var h=rname,h=l+"?mode=move&old="+encodeURIComponent(b.Path)+"&new="+encodeURIComponent(h)+"&root="+encodeURIComponent(fileRoot);a.ajax({type:"GET",url:h,dataType:"json",async:!1,success:function(b){if(0==b.Code){var d=b["New Path"],c=b["New Name"];fullexpandedFolder=d;w();m(d);
g.options.showConfirmation&&a.prompt(f.successful_moved)}else a.prompt(b.Error);e=d+c}})}},buttons:d});return e},J=function(b){var e=!1,c=f.confirmation_delete,d={};d[f.yes]=!0;d[f.no]=!1;a.prompt(c,{callback:function(d,c){if(1!=d)return!1;var h=new Date,h=l+"?mode=delete&path="+encodeURIComponent(b.Path)+"&time="+h.getMilliseconds(),k=b.Path.split("/").reverse().slice(1).reverse().join("/")+"/";a.ajax({type:"GET",url:h,dataType:"json",async:!1,success:function(b){0==b.Code?(R(b.Path),b=b.Path.substring(0,
b.Path.length-1),b=b.substr(0,b.lastIndexOf("/")+1),a("#uploader h1").text(f.current_folder+u(b)).attr("title",u(b,!1)).attr("data-path",b),e=!0,g.options.showConfirmation&&a.prompt(f.successful_delete),a("#filetree").find('a[data-path="'+k+'/"]').click().click()):(e=!1,a.prompt(b.Error))}})},buttons:d});return e},R=function(b){a("#filetree").find('a[data-path="'+b+'"]').parent().fadeOut("slow",function(){a(this).remove()});if(a("#uploader h1").attr("data-path")==b){var e=b.split("/").slice(0,length-
2).join("/")+"/";m(e)}"grid"==a("#fileinfo").data("view")?a('#contents img[data-path="'+b+'"]').parent().parent().fadeOut("slow",function(){a(this).remove()}):a("table#contents").find('td[data-path="'+b+'"]').parent().fadeOut("slow",function(){a(this).remove()});a("#preview").length&&m(b.substr(0,b.lastIndexOf("/")+1))},P=function(b,e){var c='<li class="directory collapsed"><a data-path="'+b+e+'/" href="#">'+e+'</a><ul class="jqueryFileTree" style="display: block;"></ul></li>',d=a("#filetree").find('a[data-path="'+
b+'"]');b!=fileRoot?d.next("ul").prepend(c).prev("a").click().click():(a("#filetree > ul").prepend(c),a("#filetree").find('li a[data-path="'+b+e+'/"]').attr("class","cap_rename cap_delete").click(function(){m(b+e+"/")}).each(function(){a(this).contextMenu({menu:t(a(this))},function(b,d,c){d=a(d).attr("data-path");v(b,d)})}));g.options.showConfirmation&&a.prompt(f.successful_added_folder)},C=function(b){b.lastIndexOf("/")==b.length-1?(m(b),a("#filetree").find('a[data-path="'+b+'"]').click()):B(b)},
v=function(b,e){var c=new Date;a.getJSON(l+"?mode=getinfo&path="+e+"&time="+c.getMilliseconds(),function(d){"grid"==a("#fileinfo").data("view")?a("#fileinfo").find('img[data-path="'+d.Path+'"]').parent():a("#fileinfo").find('td[data-path="'+d.Path+'"]').parent();switch(b){case "select":A(d);break;case "download":window.location=l+"?mode=download&path="+d.Path+"&time="+c.getMilliseconds();break;case "rename":G(d);break;case "replace":I(d);break;case "move":H(d);break;case "delete":J(d)}})},B=function(b){var e=
b.substr(0,b.lastIndexOf("/")+1);z(e);var c;c='<div id="preview"><img /><h1></h1><dl></dl></div><form id="toolbar">'+('<button id="parentfolder">'+f.parentfolder+"</button>");-1!=a.inArray("select",k)&&(window.opener||window.tinyMCEPopup||a.urlParam("field_name"))&&(c+='<button id="select" name="select" type="button" value="Select">'+f.select+"</button>");-1!=a.inArray("download",k)&&(c+='<button id="download" name="download" type="button" value="Download">'+f.download+"</button>");-1!=a.inArray("rename",
k)&&!0!=g.options.browseOnly&&(c+='<button id="rename" name="rename" type="button" value="Rename">'+f.rename+"</button>");-1!=a.inArray("move",k)&&!0!=g.options.browseOnly&&(c+='<button id="move" name="move" type="button" value="Move">'+f.move+"</button>");-1!=a.inArray("delete",k)&&!0!=g.options.browseOnly&&(c+='<button id="delete" name="delete" type="button" value="Delete">'+f.del+"</button>");-1!=a.inArray("replace",k)&&!0!=g.options.browseOnly&&(c+='<button id="replace" name="replace" type="button" value="Replace">'+
f.replace+"</button>",c+='<div class="hidden-file-input"><input id="fileR" name="fileR" type="file" /></div>',c+='<input id="mode" name="mode" type="hidden" value="replace" /> ',c+='<input id="newfilepath" name="newfilepath" type="hidden" />');c+="</form>";a("#fileinfo").html(c);a("#parentfolder").click(function(){m(e)});c=new Date;a.getJSON(l+"?mode=getinfo&path="+encodeURIComponent(b)+"&time="+c.getMilliseconds(),function(d){if(0==d.Code){a("#fileinfo").find("h1").text(d.Filename).attr("title",
b);a("#fileinfo").find("img").attr("src",d.Preview);var c;c=-1!=a.inArray(q(d.Filename),g.videos.videosExt)?!0:!1;c&&!0==g.videos.showVideoPlayer&&(c="<video width="+g.videos.videosPlayerWidth+" height="+g.videos.videosPlayerHeight+' src="'+d.Path+'" controls="controls">',c+='<img src="'+d.Preview+'" />',c+="</video>",a("#fileinfo img").remove(),a("#fileinfo #preview h1").before(c));c=-1!=a.inArray(q(d.Filename),g.audios.audiosExt)?!0:!1;c&&!0==g.audios.showAudioPlayer&&(c='<audio src="'+d.Path+'" controls="controls">',
c+='<img src="'+d.Preview+'" />',c+="</audio>",a("#fileinfo img").remove(),a("#fileinfo #preview h1").before(c));c="";d.Properties.Width&&""!=d.Properties.Width&&(c+="<dt>"+f.dimensions+"</dt><dd>"+d.Properties.Width+"x"+d.Properties.Height+"</dd>");d.Properties["Date Created"]&&""!=d.Properties["Date Created"]&&(c+="<dt>"+f.created+"</dt><dd>"+d.Properties["Date Created"]+"</dd>");d.Properties["Date Modified"]&&""!=d.Properties["Date Modified"]&&(c+="<dt>"+f.modified+"</dt><dd>"+d.Properties["Date Modified"]+
"</dd>");if(d.Properties.Size||0==parseInt(d.Properties.Size))c+="<dt>"+f.size+"</dt><dd>"+E(d.Properties.Size)+"</dd>";a("#fileinfo").find("dl").html(c);K(d)}else a.prompt(d.Error)})},m=function(b){z(b);a("#fileinfo").html('<img id="activity" src="images/wait30trans.gif" width="30" height="30" />');var e=new Date;b=l+"?path="+encodeURIComponent(b)+"&mode=getfolder&showThumbs="+g.options.showThumbs+"&time="+e.getMilliseconds();a.urlParam("type")&&(b+="&type="+a.urlParam("type"));a.getJSON(b,function(b){var d=
"";if("-1"==b.Code)F(b.Error);else{if(b)if("grid"==a("#fileinfo").data("view")){d+='<ul id="contents" class="grid">';for(key in b){var e=b[key].Properties,n="";for(cap in k)p(b[key],k[cap])&&(n+=" cap_"+k[cap]);var h=64,l=e.Width;1<l&&l<h&&(h=l);g.options.showTitleAttr?title=' title="'+b[key].Path+'"':title="";d+='<li class="'+n+'"'+title+'"><div class="clip"><img src="'+b[key].Preview+'" width="'+h+'" alt="'+b[key].Path+'" data-path="'+b[key].Path+'" /></div><p>'+b[key].Filename+"</p>";e.Width&&
""!=e.Width&&(d+='<span class="meta dimensions">'+e.Width+"x"+e.Height+"</span>");e.Size&&""!=e.Size&&(d+='<span class="meta size">'+e.Size+"</span>");e["Date Created"]&&""!=e["Date Created"]&&(d+='<span class="meta created">'+e["Date Created"]+"</span>");e["Date Modified"]&&""!=e["Date Modified"]&&(d+='<span class="meta modified">'+e["Date Modified"]+"</span>");d+="</li>"}d+="</ul>"}else{d=d+'<table id="contents" class="list">'+('<thead><tr><th class="headerSortDown"><span>'+f.name+"</span></th><th><span>"+
f.dimensions+"</span></th><th><span>"+f.size+"</span></th><th><span>"+f.modified+"</span></th></tr></thead>");d+="<tbody>";for(key in b){e=b[key].Properties;n="";g.options.showTitleAttr?title=' title="'+b[key].Path+'"':title="";for(cap in k)p(b[key],k[cap])&&(n+=" cap_"+k[cap]);d+='<tr class="'+n+'">';d+='<td data-path="'+b[key].Path+'"'+title+'">'+b[key].Filename+"</td>";d=e.Width&&""!=e.Width?d+("<td>"+e.Width+"x"+e.Height+"</td>"):d+"<td></td>";d=e.Size&&""!=e.Size?d+('<td><abbr title="'+e.Size+
'">'+E(e.Size)+"</abbr></td>"):d+"<td></td>";d=e["Date Modified"]&&""!=e["Date Modified"]?d+("<td>"+e["Date Modified"]+"</td>"):d+"<td></td>";d+="</tr>"}d+="</tbody>";d+="</table>"}else d+="<h1>"+f.could_not_retrieve_folder+"</h1>";a("#fileinfo").html(d);if("grid"==a("#fileinfo").data("view"))a("#fileinfo").find("#contents li").click(function(){var b=a(this).find("img").attr("data-path");C(b)}).each(function(){a(this).contextMenu({menu:t(a(this))},function(b,d,c){d=a(d).find("img").attr("data-path");
v(b,d)})});else{a("#fileinfo tbody tr").click(function(){var b=a("td:first-child",this).attr("data-path");C(b)}).each(function(){a(this).contextMenu({menu:t(a(this))},function(b,d,c){d=a("td:first-child",d).attr("data-path");v(b,d)})});a("#fileinfo").find("table").tablesorter({textExtraction:function(b){return a(b).find("abbr").size()?a(b).find("abbr").attr("title"):b.innerHTML}});var m=setInterval(function(){O(m)},300)}}})},Q=function(b,e){var c=new Date,c=l+"?path="+encodeURIComponent(b)+"&mode=getfolder&showThumbs="+
g.options.showThumbs+"&time="+c.getMilliseconds();a.urlParam("type")&&(c+="&type="+a.urlParam("type"));a.getJSON(c,function(a){var b="";if("-1"==a.Code)F(a.Error);else{if(a){b+='<ul class="jqueryFileTree" style="display: none;">';for(key in a){var c="";for(cap in k)p(a[key],k[cap])&&(c+=" cap_"+k[cap]);"dir"==a[key]["File Type"]?b+='<li class="directory collapsed"><a href="#" class="'+c+'" data-path="'+a[key].Path+'">'+a[key].Filename+"</a></li>":g.options.listFiles&&(b+='<li class="file ext_'+a[key]["File Type"].toLowerCase()+
'"><a href="#" class="'+c+'" data-path="'+a[key].Path+'">'+a[key].Filename+"</a></li>")}b+="</ul>"}else b+="<h1>"+f.could_not_retrieve_folder+"</h1>";e(b)}})};a(function(){if(g.extras.extra_js)for(var b=0;b<g.extras.extra_js.length;b++)a.ajax({url:g.extras.extra_js[b],dataType:"script",async:g.extras.extra_js_async});g.options.fileRoot?(fileRoot=g.options.serverRoot?"/"+g.options.fileRoot:g.options.fileRoot,fileRoot=fileRoot.replace(/\/\//g,"/")):fileRoot="/"+document.location.pathname.substring(1,
document.location.pathname.lastIndexOf("/")+1)+"userfiles/";relPath=!1===g.options.relPath?window.location.protocol+"//"+window.location.host:g.options.relPath;0!=a.urlParam("exclusiveFolder")&&(fileRoot+=a.urlParam("exclusiveFolder"),"/"!=fileRoot.charAt(fileRoot.length-1)&&(fileRoot+="/"),fileRoot=fileRoot.replace(/\/\//g,"/"));0!=a.urlParam("expandedFolder")?(expandedFolder=a.urlParam("expandedFolder"),fullexpandedFolder=fileRoot+expandedFolder):(expandedFolder="",fullexpandedFolder=null);!0==
g.options.autoload&&(a("#upload").append(f.upload),a("#newfolder").append(f.new_folder),a("#grid").attr("title",f.grid_view),a("#list").attr("title",f.list_view),a("#fileinfo h1").append(f.select_from_left),a('#itemOptions a[href$="#select"]').append(f.select),a('#itemOptions a[href$="#download"]').append(f.download),a('#itemOptions a[href$="#rename"]').append(f.rename),a('#itemOptions a[href$="#move"]').append(f.move),a('#itemOptions a[href$="#replace"]').append(f.replace),a('#itemOptions a[href$="#delete"]').append(f.del));
a("#browse").append("+");a("#browse").attr("title",f.browse);a("#newfile").change(function(){a("#filepath").val(a(this).val().replace(/.+[\\\/]/,""))});!0===g.options.searchBox?a.getScript("./scripts/filemanager.liveSearch.min.js"):a("#search").remove();a("button").wrapInner("<span></span>");a("#fileinfo").data("view",g.options.defaultViewMode);x(g.options.defaultViewMode);a("#home").click(function(){var b=a("#fileinfo").data("view");a("#fileinfo").data("view",b);a("#filetree>ul>li.expanded>a").trigger("click");
m(fileRoot)});a("#grid").click(function(){x("grid");a("#fileinfo").data("view","grid");m(a("#currentpath").val())});a("#list").click(function(){x("list");a("#fileinfo").data("view","list");m(a("#currentpath").val())});z(fileRoot);a("#uploader").attr("action",l);a("#uploader").ajaxForm({target:"#uploadresponse",beforeSubmit:function(b,c,d){if(""==a("#newfile",c).val())return!1;b=a("#newfile",c).val();b="DISALLOW_ALL"==g.security.uploadPolicy&&-1!=a.inArray(q(b),g.security.uploadRestrictions)?!0:"ALLOW_ALL"==
g.security.uploadPolicy&&-1==a.inArray(q(b),g.security.uploadRestrictions)?!0:!1;if(!b)return c="<p>"+f.INVALID_FILE_TYPE+"</p>","DISALLOW_ALL"==g.security.uploadPolicy&&(c+="<p>"+f.ALLOWED_FILE_TYPE+g.security.uploadRestrictions.join(", ")+".</p>"),"ALLOW_ALL"==g.security.uploadPolicy&&(c+="<p>"+f.DISALLOWED_FILE_TYPE+g.security.uploadRestrictions.join(", ")+".</p>"),a("#filepath").val(""),a.prompt(c),!1;a("#upload").attr("disabled",!0);a("#upload span").addClass("loading").text(f.loading_data);
if("images"==a.urlParam("type").toString().toLowerCase()){c=a("#newfile",c).val().toLowerCase().split(".");for(key in g.images.imagesExt)if(g.images.imagesExt[key]==c[c.length-1])return!0;a.prompt(f.UPLOAD_IMAGES_ONLY);a("#upload").removeAttr("disabled").find("span").removeClass("loading").text(f.upload);return!1}if("undefined"!==typeof FileReader&&"auto"!=typeof g.upload.fileSizeLimit&&a("#newfile",c).get(0).files[0].size>1048576*g.upload.fileSizeLimit)return a.prompt("<p>"+f.file_too_big+"</p><p>"+
f.file_size_limit+g.upload.fileSizeLimit+" "+f.mb+".</p>"),a("#upload").removeAttr("disabled").find("span").removeClass("loading").text(f.upload),!1},error:function(b,c,d){a("#upload").removeAttr("disabled").find("span").removeClass("loading").text(f.upload);a.prompt(f.ERROR_UPLOADING_FILE)},success:function(b){b=jQuery.parseJSON(a("#uploadresponse").find("textarea").text());if(0==b.Code){var c=b.Path,d=b.Name,k=q(d),l=a("#filetree").find('a[data-path="'+c+'"]'),h=l.parent(),d='<li class="file ext_'+
k+'"><a data-path="'+c+d+'" href="#" class="">'+d+"</a></li>";h.find("ul").size()?(h.find("ul").prepend(d),l.click().click()):(h=a("#filetree").find("ul.jqueryFileTree"),h.prepend(d),w());m(c);g.options.showConfirmation&&a.prompt(f.successful_added_file);a("#filepath, #newfile").val("");a.browser.msie&&a("#newfile").replaceWith(a("#newfile").clone(!0));a("#filetree").find('a[data-path="'+b.Path+'/"]').click().click()}else a.prompt(b.Error);a("#upload").removeAttr("disabled");a("#upload span").removeClass("loading").text(f.upload);
a("#filepath").val("")}});w();window.opener||window.tinyMCEPopup||a.urlParam("field_name")||a('#itemOptions a[href$="#select"]').remove();!0==g.options.browseOnly&&(a("#file-input-container").remove(),a("#upload").remove(),a("#newfolder").remove(),a("#toolbar").remove("#rename"),a(".contextMenu .rename").remove(),a(".contextMenu .move").remove(),a(".contextMenu .replace").remove(),a(".contextMenu .delete").remove());D();a(window).resize(D);a("#splitter").splitter({sizeLeft:200});C(fileRoot+expandedFolder)});
document.documentElement.setAttribute("data-useragent",navigator.userAgent)})(jQuery);

Youez - 2016 - github.com/yon3zu
LinuXploit