"+l+"
");var c=$("#pathRenameTextarea");"list_split"==G.user_config.list_type&&c.css({width:c.parents(".filename").width()-32,height:c.parents(".filename").height()+1});var d=a.length;"folder"!=s&&-1!=a.indexOf(".")&&(d=a.length-s.length-1),s||0!=a.indexOf(".")?c.textSelect(0,d):c.textSelect(0,a.length);var p=function(n){if("oexe"==s&&(n+=".oexe"),n!=a)e=o+a,n=o+n,t.rname(e,n,function(e){e===!1?$(i).removeClass("file_icon_edit").find(".title").html(htmlEncode(a)):m(e)});else{var r=a;".oexe"==r.substr(-5)&&(r=r.substr(0,r.length-5)),$(i).removeClass("file_icon_edit").find(".title").html(htmlEncode(r))}};c.focus().autoTextarea(),c.keydown(function(e){13==e.keyCode&&(e.preventDefault(),stopPP(e),p(c.attr("value"))),27==e.keyCode&&("oexe"==s&&(a=a.replace(".oexe","")),$(i).removeClass("file_icon_edit").find(".title").html(a))}).unbind("blur").blur(function(){p(c.val())})}},m=function(e){ui.fileLight.clear(),ui.f5Callback(function(){r(e),"explorer"==Config.pageApp&&ui.tree.checkIfChange(G.this_path)})},_=function(e){var t={},i=[];e.sort(function(e,t){return e.path==t.path?0:e.path>t.path?1:-1});for(var a=function(e){for(var i=e;""!=e;){if(t[e]!==void 0)return 1==t[e]?!0:i==e?(t[e]=1,!1):!0;e=core.pathFather(e)}return!1},n=0;e.length>n;n++)if("folder"==e[n].type){var o=rtrim(e[n].path,"/")+"/";t[o]||a(o)||(t[o]=0)}for(var n=0;e.length>n;n++){var o=e[n].path;"folder"==e[n].type&&(o=rtrim(o,"/")+"/"),a(o)||i.push(e[n])}return i},v=function(e){if(e){var t=[];return 0==ui.fileLight.fileListSelect().length?t:(ui.fileLight.fileListSelect().each(function(){var e=ui.fileLight.path($(this)),i="folder"==ui.fileLight.type($(this))?"folder":"file";t.push({path:e,type:i})}),_(t))}if(1!=ui.fileLight.fileListSelect().length)return{path:"",type:""};var i=ui.fileLight.fileListSelect(),a=ui.fileLight.path(i),n=ui.fileLight.type(i);return{path:a,type:n}},g=function(e,t){for(var i in G.json_data)if("filelist"==i||"folderlist"==i)for(var a=0;G.json_data[i].length>a;a++)if(G.json_data[i][a][e]==t)return G.json_data[i][a]};return{makeParam:v,history:s,getJsondataCell:g,checkSystemPath:n,appEdit:function(e){if(e)t.appEdit(0,0,"user_add");else{var i=ui.fileLight.fileListSelect().attr("data-app"),a=jsonDecode(base64Decode(i));a.path=ui.fileLight.path(ui.fileLight.fileListSelect()),t.appEdit(a)}},appList:function(){t.appList(v().path)},appInstall:function(){t.appInstall(v().path)},openEditor:function(){i.openEditor(v().path)},openWindow:function(){var e=v();return"folder"==e.type&&-1!=core.path2url(e.path).search("explorer/fileProxy")?(Tips.tips(LNG.path_can_not_action,!1),void 0):(i.openWindow(e.path),void 0)},open:function(e){if("editor"==Config.pageApp)return i.open(e),void 0;if(void 0!=e)return i.open(e),void 0;if(0!=ui.fileLight.fileListSelect().length){var t=v(),a=ui.fileLight.fileListSelect();if(inArray(core.filetype.image,t.type))return ui.picasa.initData(),ui.picasa.play($(a).find(".picasaImage")),void 0;if(0!=$(a).find(".file_not_exists").length)return Tips.tips(LNG.share_error_path,!1),void 0;if("oexe"==t.type){var n=a.attr("data-app");t.path=jsonDecode(base64Decode(n))}("list_split"!=G.user_config.list_type||"folder"!=t.type)&&i.open(t.path,t.type)}},play:function(){if(!(1>ui.fileLight.fileListSelect().length)){var e=[];ui.fileLight.fileListSelect().each(function(){var t=ui.fileLight.type($(this));if(inArray(core.filetype.music,t)||inArray(core.filetype.movie,t)){var i=ui.fileLight.path($(this)),a=core.path2url(i,!1);e.push({url:a,name:core.pathThis(i),ext:t})}}),i.play(e)}},pathOperate:t,share:function(){t.share(v())},setBackground:function(){var e=core.path2url(v().path);ShareData.frameTop("",function(t){t.ui.setWall(e)}),ui.setWall(e),t.setBackground(e)},createLink:function(e){var i=v(),a=ui.fileLight.fileListSelect().last();i.name=trim(a.find(".filename").text()),t.createLink(i.path,i.name,i.type,e,m)},createProject:function(){t.createProject(v().path,m)},download:function(){var e=v(!0);1==e.length&&"file"==e[0].type?i.download(v().path):t.zipDownload(e)},shareEdit:function(){var e=g("path",v().path);try{var i=G.json_data.share_list[e.sid];t.shareBox(i)}catch(a){}},shareOpenWindow:function(){var e=g("path",v().path),t=e.type;"folder"==e.type&&(t=1==e.code_read?"code_read":"folder");var i="./index.php?share/"+t+"&user="+G.json_data.info.id+"&sid="+e.sid;window.open(i)},shareOpenPath:function(){var e=v(),t=g("path",e.path);if(!t||!G.json_data.share_list)return i.open(e.path,e.type),void 0;var a=G.json_data.share_list[t.sid],n=core.pathFather(a.path),o=core.pathThis(a.path);"folder"==a.type?ui.path.list(a.path,""):ui.path.list(n,"",function(){r(o)})},explorer:function(){core.explorer(v().path)},explorerNew:function(){window.open("index.php?/explorer&path="+v().path)},openProject:function(){core.explorerCode(v().path)},search:function(){core.search("",v().path)},fav:function(){var e=v(),i=ui.fileLight.fileListSelect().last();e.name=trim(i.find(".filename").text()),t.fav(e)},recycleClear:function(){t.remove([{type:"recycle_clear",path:""}],function(){ui.f5()})},remove:function(e,i){if(n()){var a=v(!0);G.json_data.info&&G.json_data.info.path_type==G.KOD_USER_SHARE&&G.json_data.info.id==G.user_id&&-1==trim(G.this_path,"/").indexOf("/")&&$.each(a,function(e){var t=g("path",a[e].path);void 0!=t&&(a[e].type="share",a[e].path=t.sid)}),t.remove(a,m,e,i)}},favRemove:function(){var e=$(".file.select .filename");e.each(function(i){var a=trim($(this).text());i!=e.length-1?t.favRemove(a,"",!0):t.favRemove(a,function(e){Tips.tips(e),ui.tree.refreshFav()},!0)})},copy:function(){n()&&t.copy(v(!0))},cute:function(){n()&&t.cute(v(!0),ui.f5)},zip:function(e){t.zip(v(!0),m,e)},unZip:function(e){n()&&t.unZip(v().path,ui.f5,e)},cuteDrag:function(e){t.cuteDrag(v(!0),e,m)},copyDrag:function(e,i){t.copyDrag(v(!0),e,m,i)},copyTo:function(){core.api.pathSelect({type:"folder",title:LNG.copy_to},function(e){t.copyDrag(v(!0),e,m,!1)})},cuteTo:function(){core.api.pathSelect({type:"folder",title:LNG.cute_to},function(e){t.cuteDrag(v(!0),e,m)})},info:function(){t.info(v(!0))},past:function(){var e=G.this_path;"list_split"==G.user_config.list_type&&($containBox=$(".split_box.split_select"),1==$containBox.length&&(e=ui.fileLight.path($containBox))),t.past(e,m)},newFile:function(e){void 0==e&&(e="txt"),u("file",p("newfile",e),e)},newFolder:function(){u("folder",p(LNG.newfolder),"")},showFile:function(){var e="./index.php?share/file&sid="+G.sid+"&user="+G.user+"&path="+v().path;window.open(e)},rname:h,list:o,setSearchByStr:c,setSelectByChar:l,setSelectByFilename:r,clipboard:t.clipboard}}),define("app/src/explorer/tpl/file_create.html",[],"
\n {{if list_type=='list'}}
{{/if}}\n
\n
\n {{if type=='folder'}}\n {{\"folder\" | core.icon}}
\n {{else}}\n {{ext | core.icon}}
\n {{/if}}\n \n {{if list_type=='icon'}}\n \n {{else}}\n \n {{/if}}\n
\n \n
\n
\n
\n"),define("app/src/explorer/fileLight",[],function(){var e=$(),t=$(),i=function(){var e;e="list_split"!=G.user_config.list_type?$(".bodymain .fileContiner .file"):$(".bodymain .fileContiner .split_select .file"),t=e,u("clear"),n()},a=function(){var t=$(Config.SelectClass);e=t,t.length>1&&c(t),u("menufile"),o(),h()},n=function(){if(G.json_data&&G.json_data.filelist){var e=G.json_data.filelist.length+G.json_data.folderlist.length;$(".file_select_info .item_num").html(e+LNG.folder_info_item)}},o=function(){var t="",i=0,a=e;0!=a.length&&(t=a.length+LNG.folder_info_item_select,a.each(function(){i+=parseInt($(this).attr("data-size"))}),0!=i&&(t=t+" ("+core.fileSize(i)+")")),$(".file_select_info .item_select").html(t)},s=function(t){var i=e;if(void 0==t&&i&&i.length>=1&&(t=$(i[i.length-1])),void 0!=t&&!t.inScreen()){var a=$(".bodymain");"list_split"==G.user_config.list_type&&(a=t.parent());var n=t.offset().top-a.offset().top-a.height()/2+a.scrollTop();a.stop(!0).animate({scrollTop:n},100)}},r=function(e){return core.pathThis(m(e))},l=function(e){return e.find(".ico").attr("filetype")},c=function(e){if(G.json_data.info)switch(G.json_data.info.path_type){case G.KOD_USER_RECYCLE:return;case G.KOD_USER_FAV:return e.removeClass("menuFavPath").addClass("menuFavPathMore"),void 0;case G.KOD_USER_SHARE:if(-1==trim(G.this_path,"/").search("/"))return e.removeClass("menuSharePath").addClass("menuSharePathMore"),void 0;case G.KOD_GROUP_ROOT_SELF:case G.KOD_GROUP_ROOT_ALL:return e.removeClass("menuGroupRoot").addClass("menuGroupRootMore"),void 0;default:}e.removeClass("menufile menufolder").addClass("menuMore"),u()},d=function(e){var t={fileBox:"menufile",folderBox:"menufolder",menuRecyclePath:"menuRecyclePath",menuSharePathMore:"menuSharePath",menuFavPathMore:"menuFavPath",menuGroupRootMore:"menuGroupRoot",menuDefault:"menuDefault"};e.removeClass("menuMore");for(var i in t)e.hasClass(i)&&e.addClass(t[i]);u()},p=function(){var t=[];if(0!=e.length)return e.each(function(){t.push(m($(this)))}),t},f=function(){if(0!=e.length){var t=e;t.removeClass(Config.SelectClassName),t.each(function(){d($(this))}),e=$(),u(),o(),h()}},u=function(){0==e.length?($(".drop-menu-action li").addClass("disabled"),$(".drop-menu-action #past").removeClass("disabled"),$(".drop-menu-action #info").removeClass("disabled")):$(".drop-menu-action li").removeClass("disabled")},h=function(){var t=".close_item,.refresh,.newfile,.past,.info",i=".open_ie",a=".explorer,.createProject,.openProject",n=".close_item,.newfile,.refresh,.past,.down,.copy,.cute,.remove,.more_action,.clone,.info,.zip,.zip_zip,.zip_tar,.zip_tgz",o=".newfile,.cute,.past,.rname,.zip,.remove,.clone,.createLinkHome,.createLink,.createProject",s=$(".menuToolPath"),r="disabled";s.find(".context-menu-item").addClass(r),0==e.length?s.find(t).removeClass(r):1==e.length?(s.find(".context-menu-item").removeClass(r),"folder"==l(e)?s.find(i).addClass(r):s.find(a).addClass(r)):e.length>1&&s.find(n).removeClass(r),G.json_data&&G.json_data.info&&G.json_data.info.can_upload===!1&&s.find(o).filter(":not(."+r+")").addClass(r)},m=function(e,t){return void 0==t&&(t="data-path"),void 0!=e.attr("data-path-children")&&(t="data-path-children"),pathHashDecode(e.attr(t))};return{init:i,name:r,path:m,type:l,fileListSelect:function(t){return t&&(e=t),e},fileListAll:function(e){return e&&(t=e),t},select:a,setInView:s,setMenu:c,menuResetMore:h,resumeMenu:d,getAllName:p,clear:f,menuAction:u}}),define("app/src/explorer/fileSelect",[],function(){var e=!1,t=!1,i=!1,a=function(){$(Config.FileBoxClass).die("touchstart").live("touchstart",function(){$(this).hasClass("select")?ui.path.open():(ui.fileLight.clear(),$(this).removeClass("select"),$(this).addClass("select"),ui.fileLight.select())});var a=function(e){!e.hasClass(Config.TypeFolderClass)&&!e.hasClass("menuRecycleButton")||e.hasClass(Config.SelectClassName)||($(".selectDragTemp").removeClass("selectDragTemp"),e.addClass("selectDragTemp"))},l=function(){};$(Config.FileBoxClass).die("mouseenter").live("mouseenter",function(){t&&a($(this)),e||t||$(this).addClass(Config.HoverClassName),l($(this)),$(this).unbind("mousedown").bind("mousedown",function(e){if($(e.target).is("input")||$(e.target).is("textarea"))return!0;if($(this).focus(),rightMenu.hidden(),$(e.target).parents(".children_more").length>0)return ui.fileContent.pathChildrenTree($(this)),stopPP(e),!1;if(!(e.ctrlKey||e.metaKey||e.shiftKey||$(this).hasClass(Config.SelectClassName)))return ui.fileLight.clear(),$(this).addClass(Config.SelectClassName),ui.fileLight.select(),!0;if(3!=e.which||$(this).hasClass(Config.SelectClassName)||(ui.fileLight.clear(),$(this).addClass(Config.SelectClassName),ui.fileLight.select()),(e.ctrlKey||e.metaKey)&&($(this).hasClass(Config.SelectClassName)?i=!0:(ui.fileLight.setMenu($(this)),$(this).addClass(Config.SelectClassName)),ui.fileLight.select()),e.shiftKey){var t=h.fileListAll($(this)),a=h.fileListSelect($(this)),n=t.index($(this));if(0==a.length)k(0,n,t);else{var o=t.index(a.first()),s=t.index(a.last());o>n?k(n,s,t):n>s?k(o,n,t):k(o,n,t)}}return!0}).unbind("mouseup").bind("mouseup",function(){return $(".selectDragTemp").removeClass("selectDragTemp"),!0})}).die("mouseleave").live("mouseleave",function(){$(this).removeClass(Config.HoverClassName),t&&$(this).removeClass("selectDragTemp")}).die("click").live("click",function(e){return stopPP(e),t?!1:(0==$(this).find(".textarea").length&&0==$(".file-draging-box").length&&(e.ctrlKey||e.metaKey||e.shiftKey?(e.ctrlKey||e.metaKey)&&i&&(i=!1,ui.fileLight.resumeMenu($(this)),$(this).removeClass(Config.SelectClassName),ui.fileLight.select()):(ui.fileLight.clear(),$(this).addClass(Config.SelectClassName),ui.fileLight.select(),r($(this)))),void 0)}).die("dblclick").live("dblclick",function(e){if(!($(e.target).is("textarea")||$(e.target).is("input")||$(e.target).hasClass("children_more")||$(e.target).hasClass("children_more_cert")))if(e.altKey)ui.path.info();else{if(1!=ui.fileLight.fileListSelect().length)return;if("list_split"==G.user_config.list_type&&s($(this))){var t=ui.fileLight.path($(this));return G.this_path="",$(".fileList_list_split .split_box").remove(),ui.path.list(t),void 0}ui.path.open()}}),n(),o(),$(Config.FileBoxTittleClass).die("dblclick").live("dblclick",function(e){if(!$(this).hasClass("db_click_rename"))return!0;var t=$(this).parents(".file");return t.hasClass("systemBox"),ui.path.rname(),stopPP(e),!1})},n=function(){var e;$("#folderList a").die("mouseenter").live("mouseenter",function(){if(t){($(this).hasClass("menuTreeFolder")||$(this).hasClass("menuTreeFolderFav"))&&$(this).addClass("curDropTreeNode"),clearTimeout(e),e=!1;var i=ui.tree.zTree(),a=i.getNodeByTId($(this).parent().attr("id"));!a.open&&a.isParent&&(e=setTimeout(function(){i.expandNode(a,!0)},600))}}).die("mouseup").live("mouseup",function(){if(t){$(this).removeClass("curDropTreeNode"),clearTimeout(e),e=!1;var i=ui.tree.zTree(),a=i.getNodeByTId($(this).parent().attr("id"));setTimeout(function(){a.isParent=!0,i.reAsyncChildNodes(a,"refresh")},100)}}).die("mouseleave").live("mouseleave",function(){t&&($(this).removeClass("curDropTreeNode"),clearTimeout(e),e=!1)})},o=function(){$(".header-middle .yarnlet a").die("mouseenter").live("mouseenter",function(){t&&$(this).addClass("curDropToPath")}).die("mouseup").live("mouseup",function(){t&&$(this).removeClass("curDropToPath")}).die("mouseleave").live("mouseleave",function(){t&&$(this).removeClass("curDropToPath")})},s=function(e){return"icon"==G.user_config.list_type?e.hasClass("folderBox")||e.hasClass("menuRecycleButton")?!0:!1:"list"==G.user_config.list_type?e.hasClass("folderBox")||e.hasClass("menuRecycleButton")||0!=e.find(".children_more_cert").length?!0:!1:"list_split"==G.user_config.list_type?e.hasClass("folderBox")||e.hasClass("menuRecycleButton")||0!=e.find(".children_more_cert").length?!0:!1:void 0},r=function(e){if("list_split"==G.user_config.list_type&&s(e)&&1==ui.fileLight.fileListSelect().length){var t=ui.fileLight.path(e);ui.path.history.add(t),ui.fileContent.pathChildrenSplit(t,function(){c(t)})}},l=function(){var e=".fileList_list_split .split_box",t="split_hover";$(e).live("mouseenter",function(){$(e).removeClass(t),$(this).addClass(t)}).die("mouseleave").live("mouseleave",function(){$(this).removeClass(t)}).die("click").live("click",function(){c(ui.fileLight.path($(this)))}).die("mousedown").live("mousedown",function(e){var t=$(e.target).parents(".file");(0==t.length||0==t.find(".children_open").length)&&c(ui.fileLight.path($(this)))})},c=function(e){var t=$(".fileList_list_split .split_box"),i=$('.fileList_list_split .split_box[data-path="'+pathHashEncode(e)+'"]'),a=$('.fileList_list_split .split_box .file[data-path="'+pathHashEncode(e)+'"]'),n="split_select";0==i.length&&(i=t.last()),t.removeClass(n),i.addClass(n),0==ui.fileLight.fileListSelect().length&&a.addClass("select"),ui.fileLight.select();var o=i.data("jsonData");o&&e&&(ui.fileContent.pathTypeChange(o),G.this_path=e,G.json_data=o,ui.headerAddress.addressSet()),ui.fileLight.init()},d=function(e){return e.hasClass("menuSharePath")||e.hasClass("systemBox")?!1:!0},p=function(){var i,a,n,o=150,s=!1,r=!1,l=0,c=!1,p=-15,f=10,u=0,h=0,m="selectDragDraging";$(Config.FileBoxClass).die("mousedown").live("mousedown",function(t){if(!t.shiftKey){if(ui.isEdit())return!0;if(1!=t.which||e)return!0;i=$(this),d(i)&&(g(t),$.browser.mozilla||this.setCapture&&this.setCapture(),$(document).mousemove(function(e){b(e)}),$(document).keydown(function(e){b(e)}),$(document).keyup(function(e){b(e)}),$(document).one("mouseup",function(e){x(e),this.releaseCapture&&this.releaseCapture()}))}});var _,v,g=function(e){rightMenu.hidden(),t=!0,l=$.now(),u=e.pageY,h=e.pageX,a=$(document).height(),n=$(document).width(),r=$(e.target).parents(".file")},b=function(e){if(!t)return!0;if(window.getSelection?window.getSelection().removeAllRanges():document.selection.empty(),$.now()-l>o&&!c&&(w(),s=$(".draggable-dragging"),s.attr("data-beforeInfo",s.find("span").html())),c){var i=e.clientX>=n-50?n-50:e.clientX,r=e.clientY>=a-50?a-50:e.clientY;return i=0>=i?0:i,r=0>=r?0:r,i-=p,r-=f,s.css({left:i,top:r}),y(e),j(i-h+p,r-u+f),!0}},y=function(e){clearTimeout(_),_=!1,_=setTimeout(function(){try{k(e)}catch(t){}},10)},k=function(e){var t=e.ctrlKey||e.metaKey,i=function(e,t){G.sid!==void 0&&(e="none"),void 0!=t&&0!==t.search(G.KOD_GROUP_PATH)&&0!==t.search(G.KOD_USER_RECYCLE)&&core.isSystemPath(t)&&(e="clear");var i=htmlEncode(core.pathThis(t)),a=" "+s.attr("data-beforeInfo").replace(/<[^<>]+>/g,""),n={copy_to:'
'+LNG.copy_to+' "'+i+'"',move_to:'
'+LNG.cute_to+' "'+i+'"',remove:'
'+LNG.remove+a+" ",share:'
'+LNG.share+a+" ",none:'
'+LNG.no_permission_write+" ",clear:s.attr("data-beforeInfo")};t==G.this_path&&(n.copy_to='
'+LNG.clone+" "),s.find("span").html(n[e]),s.attr("data-actionType",e),s.attr("data-actionPath",t)};if(0!=$(".selectDragTemp").length||0!=$(".curDropTreeNode").length||0!=$(".curDropToPath").length){var a=ui.fileLight.path($(".selectDragTemp"));if(0!=$(".curDropTreeNode").length){var n=ui.tree.zTree(),o=n.getNodeByTId($(".curDropTreeNode").parent().attr("id"));a=o.path}0!=$(".curDropToPath").length&&(a=$(".curDropToPath").attr("data-path")),$(".selectDragTemp").hasClass("menuRecycleButton")?i("remove"):t?i("copy_to",a):i("move_to",a)}else if(0!=$(".recycle_hover").length)i("remove");else if(0!=$(".share_hover").length&&1>=ui.fileLight.fileListSelect().length)i("share");else if(t){var a=G.this_path;"list_split"==G.user_config.list_type&&0!=$(".split_hover").length&&(a=ui.fileLight.path($(".split_hover"))),i("copy_to",a)}else"list_split"!=G.user_config.list_type||0==$(".split_hover").length||$(".split_hover").hasClass("split_select")?i("clear"):i("move_to",ui.fileLight.path($(".split_hover")))},x=function(){if(!t)return!1;if(t=!1,c=!1,$("body").removeClass(m),s){s.addClass("animated-300").addClass("flipOutXLine").fadeOut(200,function(){s.remove(),s=!1});var e=function(e,t){switch(e){case"copy_to":ui.path.copyDrag(t,!0);break;case"move_to":ui.path.cuteDrag(t);break;case"remove":ui.path.remove(!0);break;case"share":ui.path.share();break;default:}},i=s.attr("data-actionType");-1!=$.inArray(i,["copy_to","move_to","remove","share"])?E(!1):E(!0),e(i,s.attr("data-actionPath"))}},w=function(){$("body").addClass(m);var e=ui.fileLight.fileListSelect().length;$('
").appendTo("body"),c=!0,setTimeout(S,20)},N=0,L=5,C=35,z=20,T=60,S=function(){clearTimeout($(".file-draging-box").data("removeDelay")),$(".file-draging .file").stop(),$(".file-draging-box").remove();var e={icon:"fileList_icon",list:"fileList_list",list_split:"fileList_list_split"},t=e[G.user_config.list_type];$("
").appendTo("body"),v=$(Config.SelectClass).filter("[data-path!='']");var i=v.clone();(v.length>=T||$.browser.msie)&&(i=r.clone()),i.appendTo(".file-draging"),i.each(function(e){var t=$(".bodymain .fileContiner .file[data-path='"+$(this).attr("data-path")+"']"),a=t.offset();$(this).css({left:a.left,top:a.top,width:t.width()}),$(this).data({"data-left":a.left,"data-top":a.top,"data-animateTime":200+e*L,"data-sizeAdd":N*e}),$(this).attr("data-path")==r.attr("data-path")&&$(this).addClass("handle_target"),1==i.length&&($(this).data({"data-animateTime":0}),z=0)}),v.addClass("item-file-draging");var a=setTimeout(function(){$(".file-draging-box").data("animate","finished");var e=$(".draggable-dragging");i.each(function(){var t=$(this),i=$(this).data("data-sizeAdd"),a=$(this).data("data-animateTime");$(this).data("status","ready"),$(this).animate({opacity:1},{duration:a,easing:"swing",progress:function(a,n){var o=t.offset(),s=e.offset(),r=(s.left+i-o.left)*n,l=(s.top+i+C-o.top)*n;t.css({left:o.left+r,top:o.top+l})},complete:function(){t.data("status","finished")}})})},z);$(".file-draging-box").data("dragDelay",a),$(".file-draging-box").data("animate","ready")},j=function(e,t){return"finished"!=$(".file-draging-box").data("animate")?($(".file-draging .file").each(function(){$(this).css({left:$(this).data("data-left")+e,top:$(this).data("data-top")+t})}),void 0):($(".file-draging .file").each(function(){if("finished"==$(this).data("status")){var e=$(this).data("data-sizeAdd"),t=$(".draggable-dragging").offset();$(this).css({left:t.left+e,top:t.top+e+C})}}),void 0)},E=function(e){var t=$(".file-draging .file").length;clearTimeout($(".file-draging-box").data("dragDelay")),$(".file-draging .file").each(function(t){var i=t*L,a=$(".bodymain .fileContiner .file[data-path='"+$(this).attr("data-path")+"']");e?$(this).stop().animate({left:$(this).data("data-left"),top:$(this).data("data-top")},250+i,function(){v.removeClass("item-file-draging")}).animate({opacity:0},150,function(){$(this).remove()}):(a.stop().animate({opacity:1},100),$(this).stop().animate({opacity:0},200+i,function(){$(this).remove()}))});var i=setTimeout(function(){$(".file-draging-box").remove()},400+L*t);$(".file-draging-box").data("removeDelay",i)}},f=function(){var i=null,a=null,n=null,o=0,s=0,r=0,l=0,c="",d="bodymain";"desktop"==Config.pageApp&&(d="fileContiner");var p=$("."+d);p.die("mousedown").live("mousedown",function(e){if(!($(e.target).hasClass(d)&&20>$(document).width()-e.pageX)){if(r=$(".fileContiner").outerHeight(),l=p.outerHeight(),ui.isEdit())return!0;if(1!=e.which||t)return!0;f(e),this.setCapture&&this.setCapture(),$(document).unbind("mousemove").mousemove(function(e){u(e)}),$(document).one("mouseup",function(e){clearTimeout(c),c=!1,m(e),this.releaseCapture&&this.releaseCapture()
})}});var f=function(t){s=p.offset().left-p.scrollLeft(),o=p.offset().top-p.scrollTop(),"list_split"==G.user_config.list_type&&(o+=$(t.target).parents(".split_box").scrollTop()),$(t.target).parent().hasClass(Config.FileBoxClassName)||$(t.target).parent().parent().hasClass(Config.FileBoxClassName)||$(t.target).hasClass("fix")||(rightMenu.hidden(),t.ctrlKey||t.metaKey||t.shiftKey||ui.fileLight.clear(),$(t.target).hasClass("ico")||(i=t.pageX-s,a=t.pageY-o,c=setTimeout(function(){e=!0,0==$("#selContainer").length&&$('
').appendTo(Config.FileBoxSelector),n=$("#selContainer")},100)))},u=function(t){if(!e)return!0;var o=t.pageX-p.offset().left+p.scrollLeft(),s=t.pageY-p.offset().top+p.scrollTop(),c=Math.abs(o-i),d=Math.abs(s-a);s>a&&d>r-a&&r>l&&(d=r-a),n.css({left:Math.min(o,i)+2,top:Math.min(s,a)+2,width:c,height:d}),1e3>ui.fileLight.fileListAll().length&&h()},h=function(){for(var e=n.offset().left-p.offset().left+p.scrollLeft(),t=n.offset().top-p.offset().top+p.scrollTop(),i=e+n.width(),a=t+n.height(),o=ui.fileLight.fileListAll(),s=0;o.length>s;s++){var r=o[s],l=$(o[s]),c=l.parent().scrollTop(),d=r.offsetLeft,f=r.offsetTop-c,u=d+l.width(),h=f+l.height();if("list_split"==G.user_config.list_type&&(d+=l.parents(".split_box")[0].offsetLeft,u=d+l.width()),i-e+u-d>Math.abs(e+i-(d+u))&&a-t+h-f>Math.abs(t+a-(f+h))){if(!l.hasClass("selectDragTemp")){if(l.hasClass("selectToggleClass"))continue;if(l.hasClass(Config.SelectClassName)){l.removeClass(Config.SelectClassName).addClass("selectToggleClass"),ui.fileLight.resumeMenu(l);continue}l.addClass("selectDragTemp")}}else l.removeClass("selectDragTemp"),l.hasClass("selectToggleClass")&&l.addClass(Config.SelectClassName).removeClass("selectToggleClass")}},m=function(){return e?(h(),n.remove(),$(".selectDragTemp").addClass(Config.SelectClassName).removeClass("selectDragTemp"),$(".selectToggleClass").removeClass("selectToggleClass"),ui.fileLight.select(),e=!1,i=null,a=null,void 0):!1}},u=function(e,t){var i=$(".fileList_list_split .split_box.split_select");if(e)i=e.parents(".split_box");else if(0!=ui.fileLight.fileListSelect().length){var a=ui.fileLight.fileListSelect().last();i=a.parents(".split_box")}return i.find(t)},h={fileListAll:function(e){return"list_split"!=G.user_config.list_type?ui.fileLight.fileListAll():u(e,".file")},fileListSelect:function(e){return"list_split"!=G.user_config.list_type?ui.fileLight.fileListSelect():u(e,".file.select")}},m=function(e){var t=h.fileListAll(),i=h.fileListSelect(),a=t.length-1,n=0,o=ui.getColfileNumberDesktop(),s=t.index(i.first()),r=t.index(i.last());switch(e){case"pageup":case"up":n=0>=s||0==s%o?s:s-1;break;case"left":n=0>=s-o?0:s-o;break;case"pagedown":case"down":n=r>=a||0==(r+1)%o?r:r+1;break;case"right":n=r+o>=a?a:r+o;break;default:}return t.eq(n)},_=function(e){if("desktop"==Config.pageApp)return m(e);var t=h.fileListAll(),i=h.fileListSelect(),a=t.length-1,n=0,o=ui.getRowfileNumber(),s=ui.getPagefileNumber(),r=t.index(i.first()),l=t.index(i.last());switch(e){case"up":n=0>=r-o?0:r-o,n=v(n,!1);break;case"left":n=0>=r?0:r-1;break;case"down":n=l+o>=a?a:l+o,n=v(n,!0);break;case"right":n=l>=a?l:l+1;break;case"pageup":n=0>=r-s?0:r-s,n=v(n,!1);break;case"pagedown":n=l+s>=a?a:l+s,n=v(n,!0);break;default:}return t.eq(n)},v=function(e,t){for(var i=h.fileListAll(),a=i.eq(e),n=i.length;0!=a.parents(".hidden").length;){if(t?e++:e--,0>=e||e>=n)return e;a=i.eq(e)}return e},g=function(e){var t,i=h.fileListAll(),a=h.fileListSelect(),n="",o=!1;switch(e.indexOf("shift+")>=0&&(o=!0,e=e.replace("shift+","")),e){case"home":n=a.last(),t=i.first();break;case"end":n=a.first(),t=i.last();break;case"left":n=a.last(),t=_(e);break;case"up":n=a.last(),t=_(e);break;case"right":n=a.first(),t=_(e);break;case"down":n=a.first(),t=_(e);break;case"pageup":n=a.last(),t=_(e);break;case"pagedown":n=a.first(),t=_(e);break;case"all":t=i;break;default:}if(!y(e)){if(o&&""!=n){var s=i.index(n),r=i.index(t);if(s>r){var l=s;s=r,r=l}return k(s,r,i),void 0}b(t)}},b=function(e){0!=e.length&&(ui.fileLight.clear(),e.addClass(Config.SelectClassName),ui.fileLight.select(),ui.fileLight.setInView(),"list_split"==G.user_config.list_type&&1==e.length&&r($(ui.fileLight.fileListSelect()[0])))},y=function(e){var t=$(ui.fileLight.fileListSelect()[0]);if("icon"==G.user_config.list_type)return!1;switch(e){case"left":if("list"==G.user_config.list_type)if(1==t.find(".children_more_cert.cert_open").length)t.find(".children_more_cert").removeClass("cert_open"),t.next().addClass("hidden");else{var i=t.parent(".children_list").prev(".file");b(i)}else if("list_split"==G.user_config.list_type){var i=t.parents(".split_box").prev().find(".select_split_parent");b(i)}break;case"right":if("list"==G.user_config.list_type)1==t.find(".children_more_cert").length&&(ui.fileContent.pathChildrenTree(t),t.find(".children_more_cert").addClass("cert_open"),t.next().removeClass("hidden"));else if("list_split"==G.user_config.list_type){var i=t.parents(".split_box").next().find(".file:eq(0)");b(i)}break;default:return!1}return!0},k=function(e,t,i){if("desktop"==Config.pageApp)return x(e,t,i);ui.fileLight.clear();for(var a=e;t>=a;a++)$(i[a]).addClass(Config.SelectClassName);ui.fileLight.select()},x=function(e,t,i){var a=ui.getColfileNumberDesktop(),n=Math.ceil(h.fileListAll().length/a),e={row:e%a,col:parseInt(e/a)},t={row:t%a,col:parseInt(t/a)};if(t.row
=r;r++){var l=0,c=n;r==e.row&&(l=e.col),r==t.row&&(c=t.col);for(var d=l;c>=d;d++)s(r,d)}ui.fileLight.select()};return{init:function(){a(),l(),p(),f()},isDraging:function(){return t},selectSplit:c,selectPos:g}}),define("app/src/explorer/fileListResize",[],function(){var e={filename:250,filetype:80,filesize:80,filetime:150,explorer_left_tree_width:199,editor_left_tree_width:199},t={filename:150,filetype:60,filesize:60,filetime:120,explorer_left_tree_width:2,editor_left_tree_width:2},i=e,a=function(){if(LocalData.get("resize_config"))i=jsonDecode(LocalData.get("resize_config"));else{G.user_config.resize_config!==void 0&&(i=jsonDecode(htmlDecode(G.user_config.resize_config)));var a=jsonEncode(i);LocalData.set("resize_config",a)}$.each(e,function(a){(!i[a]||i[a]=i&&(i=t[e]),n+=i,a+=".fileList_list .file ."+e+",#main_title ."+e+"{width:"+i+"px;}")}),a+=".fileList_list .file{width:"+(n+50)+"px;}",$.setStyle(a,"header_resize_width")}},s=function(a,o,s){if(!$(".frame-left").is(":hidden")){var r=Config.pageApp+"_left_tree_width",l=$.extend(!0,{},i);l[r]+=a,l[r]<=t[r]&&(l[r]=t[r]);var c=l[r],d=$(".frame-left"),p=$(".frame-resize"),f=$(".frame-right"),u=e[r];if(c>u-8&&u+8>c&&(c=u+1),s){var h=400;d.animate({width:c},h),p.animate({left:c-5},h),f.animate({left:c},h)}else d.css("width",c),p.css("left",c-5),f.css("left",c);ui.setStyle!==void 0&&ui.setStyle(),o&&(i=l,n())}},r=function(){return void 0!=$.getUrlParam("type")?!0:!1},l=function(e,a,s){var r=$.extend(!0,{},i);r[e]+=a,o(r),s&&(i=r,$.each(i,function(e,a){t[e]>=a&&(i[e]=t[e])}),n())},c=function(){$("#main_title").hasClass("bind_init")||(o(i),$("#main_title").addClass("bind_init"),$.each(e,function(e){$("#main_title ."+e+"_resize").drag({start:function(){},move:function(t){l(e,t,!1)},end:function(t){l(e,t,!0)}})}))},d=function(){var e=$(".frame-resize");e.drag({start:function(){e.addClass("active"),$(".resizeMask").css("display","block")},move:function(e){s(e,!1,!1)},end:function(t){s(t,!0,!1),e.removeClass("active"),$(".resizeMask").css("display","none")}})},p=function(){var e=G.user_config.file_icon_size;e||(e="75"),h(e,!1),f(e)},f=function(e){$(".set-file-icon-size .file-icon-size").removeClass("selected");for(var t=[["40","box-size-smallx"],["60","box-size-small"],["80","box-size-default"],["150","box-size-big"],["220","box-size-bigx"]],i=10,a="",n=0;t.length>n;n++){var o=parseInt(t[n][0]);if(e>=o-i&&o+i>=e){a=t[n][1];break}}""!=a&&$("."+a).addClass("selected")},u=function(e){G.user_config.file_icon_size=e,f(e),$.get("index.php?setting/set&k=file_icon_size&v="+e)},h=function(e,t){var i=e,a=105,n=30,o=250;"desktop"==Config.pageApp&&(n=50,o=120),i=n>=i?n:i,i=i>=o?o:i;var s=(e-n)*a/(o-n),r=20,l=10,c=parseInt(i),d=c+2*r-l+5,p=c-l,f=c-l,h=.4*c,m=c+3*r-l,_=".fileList_icon div.file{height:"+d+"px;width:"+c+"px;}";"desktop"==Config.pageApp&&(d-=5,_="div.fileList_icon div.file{height:"+d+"px;width:"+c+"px;}"),$.browser.mozilla&&(f-=4);var v="div.fileList_icon div.file{max-height:"+m+"px;}"+_+" .fileList_icon .meta_info{height:"+h+"px;width:"+h+"px; margin-right:"+.16*h+"px;margin-top:-"+1.1*h+"px;} .fileList_icon div.file .filename{width:"+c+"px;} .fileList_icon div.file .filename #pathRenameTextarea, .fileList_icon div.file .filename .newfile{width:"+c+"px;} .fileList_icon div.file .ico{padding-left:"+l/2+"px;height:"+f+"px;width:"+p+"px} .fileList_icon div.file .ico.picasaImage{width:"+p+"px;padding-left:"+l/2+"px;overflow:hidden;}";$.setStyle(v,"file_icon_resize"),$(".slider_handle").css("top",s),t&&u(e)},m=function(){var e,t=$(".slider_handle");$(".set_icon_size_slider").bind("click",function(e){return stopPP(e),!1});var i=function(t){var i=0,a=105,n=30,o=250,s=e+t;s=i>s?i:s,s=s>a?a:s;var r=parseInt(s/a*(o-n)+n);return h(r,!1),r};t.drag({start:function(){t.addClass("active"),e=parseInt(t.css("top"))},move:function(e,t){i(t)},end:function(e,a){t.removeClass("active"),u(i(a),!0)}});var a=$(".slider_bg");$(".slider_bg").unbind("click").bind("click",function(t){var n=t.clientY-a.offset().top;e=0,i(n)})},_=function(){var e=function(e,t){var i=e.parent(),a=$(".split_box").index(i),n=parseInt(i.data("before_width"))+t;if(!(150>n)){$($(".split_line").get(a)).css("width",n),i.css("width",n),$(".split_box:gt("+a+")").each(function(){$(this).hasClass("is_drag_split")||$(this).css("left",parseInt($(this).data("before_left"))+t+"px")});var o=[];$(".split_box").each(function(){o.push({left:$(this).css("left"),width:$(this).width()})}),LocalData.set("split_box_size",jsonEncode(o))}};$(".bodymain .fileList_list_split .split_drag").drag({start:function(e,t){var i=t.parent();i.addClass("is_drag_split").data("before_width",i.width()),$(".split_box,.split_line").each(function(){$(this).data("before_left",$(this).css("left"))})},move:function(t,i,a,n){e(n,t)},end:function(e,t,i,a){a.parent().removeClass("is_drag_split")}},!0),$(".file.select_split_parent").removeClass("select_split_parent"),$(".split_box").each(function(){$('.file[data-path="'+$(this).attr("data-path")+'"]').addClass("select_split_parent")}),v()},v=function(){var e=jsonDecode(LocalData.get("split_box_size")),t=0;e||(e=[]);var i=function(i,a){var n=e[a];n||(n={width:250,left:t}),t+=n.width+1,i.css({width:n.width+"px",left:n.left})};t=0,$(".split_box").each(function(e){i($(this),e)}),t=0,$(".split_line").each(function(e){i($(this),e)}),$(".bodymain").scrollLeft(1e5)};return{init:function(){a(),r()&&(i=e),o(i),d(),s(0,!1,!0),m()},initFileSize:p,bindSplitResize:_,bindHeaderResize:c,setFileIconSize:h}}),define("app/src/explorer/headerAddress",[],function(){var e=function(){$("#yarnball li a").die("click").live("click",function(e){var t=$(this).attr("data-path");n(t),stopPP(e)}),$("#yarnball").die("click").live("click",function(){return $("#yarnball").css("display","none"),$("#yarnball_input").css("display","block"),$("#yarnball_input input").focus(),!0});var e=$("#yarnball_input input");e.die("blur").live("blur",function(){n(e.val())}).keyEnter(function(){n(e.val())}),$(".header-right input").keyEnter(function(){core.search($(".header-right input").val(),G.this_path)}),$(".header-right input").bind("keyup focus",function(){ui.path.setSearchByStr($(this).val())}),$(".header-content a,.header-content button").click(function(){var e=$(this).attr("id");switch(e){case"history_back":ui.path.history.back();break;case"history_next":ui.path.history.next();break;case"refresh":ui.f5(!0,!0),ui.tree.init();break;case"home":ui.path.list(G.myhome);break;case"fav":ui.path.pathOperate.fav({path:G.this_path,type:"folder",name:$("ul.yarnball li:last .title_name").html()});break;case"goto_father":o();break;case"setting":core.setting();break;case"search":core.search($(".header-right input").val(),G.this_path);break;default:}return!0})},t=function(e){var t=G.this_path;a(G.this_path),$("#yarnball_input").css("display","none"),$("#yarnball").css("display","block");var n=function(e){var t=' {$3} \n',i='{$3} \n';e=e.replace(/\/+/g,"/");var a=e.split("/");""==a[a.length-1]&&a.pop();var n=a[0]+"/",o=t.replace(/@1@/g,n),s=a[0],r="";if(G.json_data.info&&G.json_data.info.path_type&&""!=a[0]){var l=core.getPathIcon(G.json_data.info,G.json_data.info.name);r=''+core.iconSmall(l.icon)+" ",s=l.name}o=o.replace("{$2}",a.length),o=o.replace("{$3}",r+''+htmlEncode(s)+" ");for(var c=o,d=1,p=a.length-1;a.length>d;d++,p--)n+=htmlEncode(a[d])+"/",o=i.replace(/@1@/g,n),o=o.replace("{$2}",p),o=o.replace("{$3}",''+htmlEncode(a[d])+" "),c+=o;return'"};void 0==e&&$("#yarnball").html(n(t)),i()},i=function(){$(".yarnball").stop(!0,!0);var e=$("#yarnball").innerWidth(),t=0;$("#yarnball li a").each(function(){t+=$(this).outerWidth()+parseInt($(this).css("margin-left"))+5});var i=e-t;0>=i?$(".yarnball").css("width",t+"px").css("left",i+"px"):$(".yarnball").css({left:"0px",width:e+"px"})},a=function(e){var t=$("#yarnball_input .path");if(void 0==e){var i=t.val();return i=rtrim(core.pathClear(i))+"/"}t.val(e)},n=function(e,i){ui.path.list(e),t(i)},o=function(){var e=a();if("/"==e||-1==e.indexOf("/"))return Tips.tips(LNG.path_is_root_tips,"warning"),void 0;var i=core.pathFather(e);ui.path.list(i),t()};return{init:e,addressSet:t,resetWidth:i,gotoFather:o}});
\ No newline at end of file
diff --git a/static/js/app/src/explorer_wap/main.js b/static/js/app/src/explorer_wap/main.js
index 5775d72..0b856d4 100755
--- a/static/js/app/src/explorer_wap/main.js
+++ b/static/js/app/src/explorer_wap/main.js
@@ -1,5 +1,5 @@
-/*! power by kodexplorer ver3.43(2017-04-12) [build 1491993755092] */
+/*! power by kodexplorer ver3.43(2017-04-12) [build 1492001438434] */
define("app/src/explorer_wap/main",["lib/jquery-lib","lib/util","lib/artDialog/jquery-artDialog","./ui","../../common/core","./path","../../common/pathOperate","../../common/pathOpen","../../common/myPlayer"],function(e){Config={BodyContent:".bodymain",FileBoxSelector:".fileContiner",FileBoxClass:".fileContiner .file",FileBoxClassName:"file",FileBoxTittleClass:".fileContiner .title",SelectClass:".fileContiner .select",SelectClassName:"select",TypeFolderClass:"folderBox",TypeFileClass:"fileBox",HoverClassName:"hover",FileOrderAttr:"number",TreeId:"folderList",pageApp:"explorer_wap",treeAjaxURL:"index.php?explorer/treeList&app=explorer",AnimateTime:200},e("lib/jquery-lib"),e("lib/util"),e("lib/artDialog/jquery-artDialog"),ui=e("./ui"),core=e("../../common/core"),ui.path=e("./path"),ui.pathOpen=ui.path.pathOpen,$(document).ready(function(){core.init(),ui.init(),$(".init_loading").fadeOut(450).addClass("pop_fadeout"),e.async("lib/webuploader/webuploader-min",function(){core.uploadInit()})})}),define("app/src/explorer_wap/ui",[],function(e){var t=e("./tpl/file_list_make_wap.html"),i=function(){$(".fileContiner .picture img").lazyload({placeholder:G.static_path+"images/common/loading_tree.gif",container:$(".bodymain")})},a=function(e,t){var t="down"==t?-1:1;return function(i,a){return i=i[e],a=a[e],a>i?-1*t:i>a?1*t:void 0}},n=e("./tpl/photoSwipe.html");$(n).appendTo("body"),e.async(["lib/PhotoSwipe/photoswipe.min.js","lib/PhotoSwipe/photoswipe-ui-default.min.js","lib/PhotoSwipe/photoswipe.css","lib/PhotoSwipe/default-skin/default-skin.css"],function(){});var o=function(e){var t=[],i=0;$(".picasaImage img").each(function(a){var n=pathHashDecode($(this).parent().parent().attr("data-path")),o=$(this).parent().attr("picasa"),s=$(this).attr("data-original"),r=30;t.push({src:o,msrc:s,w:$(this).width()*r,h:$(this).height()*r}),e==n&&(i=a)});var a={history:!1,focus:!0,index:i,bgOpacity:.8,maxSpreadZoom:5,closeOnScroll:!1,shareEl:!1,showHideOpacity:!0,showAnimationDuration:300,hideAnimationDuration:0,getThumbBoundsFn:function(e){var t=$(".picasaImage img")[e],i=window.pageYOffset||document.documentElement.scrollTop,a=t.getBoundingClientRect();return{x:a.left,y:a.top+i,w:a.width}}},n=new PhotoSwipe($(".pswp").get(0),PhotoSwipeUI_Default,t,a);n.init(),$(".pswp__caption__center").css({"text-align":"center"})},s=function(e){for(var a=template.compile(t),n="",o=G.json_data.folderlist.concat(G.json_data.filelist),s=0;o.length>s;s++){var r="folder"==o[s].type?"list_folder":"list_file",l={LNG:LNG,G:G,list:o[s],index:s,type:r};o[s].icon&&"icon_file"==l.type&&"oexe"==o[s].ext&&(l.oexe_icon=o[s].icon,"string"==$.type(o[s].icon)&&-1==o[s].icon.search(G.static_path)&&"http"!=o[s].icon.substring(0,4)&&(l.oexe_icon=G.static_path+"images/file_icon/icon_app/"+o[s].icon)),n+=a(l)}""==n&&(n=''+LNG.path_null+"
"),n+="
",e?$(Config.FileBoxSelector).hide().html(n).fadeIn(Config.AnimateTime):$(Config.FileBoxSelector).html(n);var c=$(Config.FileBoxClass).not(".systemBox");$(' ').appendTo(c),$(Config.FileBoxSelector+" .file:nth-child(2n)").addClass("file2"),i()},r=function(e,t){var i="index.php?explorer/pathList&path="+urlEncode(G.this_path);G.user&&(i="index.php?share/pathList&user="+G.user+"&sid="+G.sid+"&path="+urlEncode(G.this_path)),void 0==e&&(e=!0),void 0==t&&(t=!1),e?$.ajax({url:i,dataType:"json",beforeSend:function(){$(".tools-left .msg").stop(!0,!0).fadeIn(100)},success:function(e){return $(".tools-left .msg").fadeOut(100),e.code?(G.json_data=c(e.data),s(t),u(),ui.header.addressSet(),void 0):(Tips.tips(e),$(Config.FileBoxSelector).html(""),!1)},error:function(e,t,i){$(".tools-left .msg").fadeOut(100),$(Config.FileBoxSelector).html(""),core.ajaxError(e,t,i)}}):(s(t),u())},l=function(e){r(!0,!1,e)},c=function(e){e=d(e);var t=e.folderlist,i=e.filelist;return t=t.sort(a("name","up")),i=i.sort(a("name","up")),e.folderlist=t,e.filelist=i,e},d=function(e){if(!e)return e;if(void 0!=e.share_list&&(self_share=e.share_list),e.filter_success===!0)return e;for(var t in e)if("filelist"==t||"folderlist"==t)for(var i=0;e[t].length>i;i++){var a=e[t][i];if(a.name=htmlEncode(a.name),a.mtime&&11>=(""+a.mtime).length)if(a.atime=date(LNG.time_type,a.atime),a.ctime=date(LNG.time_type,a.ctime),e.info&&e.info.path_type==G.KOD_USER_SHARE&&-1==trim(e.this_path,"/").indexOf("/")){var n=parseInt(a.num_view);n=isNaN(n)?0:n;var o=parseInt(a.num_download);o=isNaN(o)?0:o;var s=date("Y/m/d ",a.mtime)+" ";s+=LNG.share_view_num+n+" "+LNG.share_download_num+o,a.mtime=s}else a.mtime=date(LNG.time_type,a.mtime);"number"==typeof a.is_readable&&0==a.is_readable?a.mode="["+LNG.not_read+"] "+a.mode:"number"==typeof a.is_writeable&&1==a.is_writeable?a.mode="["+LNG.system_role_write+"] "+a.mode:"number"==typeof a.is_readable&&1==a.is_readable&&(a.mode="["+LNG.only_read+"] "+a.mode)}return e.filter_success=!0,e},p=function(e,t){var i=pathHashDecode(e.attr("data-path")),a=e.find(".ico").attr("filetype");switch(t){case"action_copy":ui.path.copy(i,a);break;case"action_rname":ui.path.rname(i);break;case"action_download":ui.path.download(i,a);break;case"action_remove":ui.path.remove(i,a);break;default:}},f=function(){$(window).bind("hashchange",function(){var e=window.location.href,t=e.split("#");""!=t[1]&&t[1]!=G.this_path&&t[1]!=urlEncode(G.this_path)&&ui.path.list(urlDecode(t[1]))}),$(".fileContiner .file").die("click").live("click",function(e){if($(".fileContiner .file .file_action_menu").animate({left:"100%"},300,0,function(){$(this).remove()}),$(this).find(".file_action_menu").length>0){if($(e.target).hasClass("action_menu")){var t=$(e.target).attr("data-action");p($(this),t)}if($(e.target).parent().hasClass("action_menu")){var t=$(e.target).parent().attr("data-action");p($(this),t)}}else{if($(e.target).hasClass("file-action")){var i=$(".file_menu .file_action_menu").clone(),a=!0;return $(e.target).parent().hasClass("file_not_writeable")?a=!1:G.json_data.info&&G.json_data.info.can_upload||(a=!1),a||(i.find("[data-action=action_remove]").remove(),i.find("[data-action=action_rname]").remove()),i.appendTo($(this)),i.removeClass("hidden").css({left:"100%"}).animate({left:"0%"},300,0,function(){}),void 0}var n=$(this).find(".ico").attr("filetype"),o=pathHashDecode($(this).attr("data-path"));ui.path.open(o,n),stopPP(e)}}),$(".address li").die("click").live("click",function(e){var t=$(this).find("a").attr("data-path");ui.path.list(t),stopPP(e)})},u=function(){if(G.json_data.info){var e=G.json_data.info,t=e.path_type,i=G.json_data.path_read_write;void 0!=i&&"writeable"!=i||t==G.KOD_USER_RECYCLE||t==G.KOD_USER_SHARE||t==G.KOD_GROUP_SHARE?G.json_data.info.can_upload=!1:(G.json_data.info.can_upload=!0,1!=G.is_root&&t==G.KOD_GROUP_PATH&&"guest"==e.role&&(G.json_data.info.can_upload=!1)),G.json_data.info.can_upload?$("[data-action=upload],[data-action=newfolder],[data-action=past]").removeClass("hidden"):$("[data-action=upload],[data-action=newfolder],[data-action=past]").addClass("hidden")}},h=function(){$.ajax({url:"./index.php?explorer/treeList&app=explorer&type=init",dataType:"json",success:function(e){e.code||Tips.tips(e);for(var t="",i=0;e.data.length>i;i++){var a=e.data[i];t+=''+a.name+" "}t+=''+LNG.ui_logout+" ",$(".left_menu_path").html(t),$(".panel-menu li").bind("click",function(){$("body").removeClass("menu-open");var e=$(this).attr("data-action");switch(e){case"pathOpen":ui.path.list($(this).attr("data-path"));break;case"exit":window.location.href="./index.php?user/logout";break;default:}})}})};return{f5:r,f5Callback:l,openImage:o,init:function(){if(""==G.this_path){var e=window.location.href.split("#");if(2==e.length&&""!=trim(urlDecode(e[1])))G.this_path=urlDecode(e[1]);else{var t=G.user_id||G.sid,i=LocalData.get("this_path_"+t);G.this_path=i?i:G.myhome}}l(function(){r(!1,!0)}),h(),f(),ui.header.bindEvent()},header:{bindEvent:function(){$(".left_tool").on("click",function(){$("body").toggleClass("menu-open")}),$(".panel-mask").on("click",function(){$("body").toggleClass("menu-open")}),$(".right_tool").on("click",function(e){$(this).parent().toggleClass("open"),stopPP(e)}),$("body").on("click",function(e){$(e).hasClass("right_tool")||$(".menu_group").removeClass("open")}),$(".menu-right_tool li").on("click",function(e){$(".menu_group").removeClass("open");var t=$(this).attr("data-action");switch(t){case"upload":core.upload();break;case"newfolder":ui.path.newFolder();break;case"newfile":ui.path.newFile("txt");break;case"search":core.search("",G.this_path);break;case"past":ui.path.past();break;default:}return stopPP(e),!1}),G.share_info&&G.share_info.can_upload&&$("[data-action=upload]").removeClass("hidden")},addressSet:function(){var e=G.this_path,t=function(e){var t=' {$3} \n',i='{$3} \n';e=e.replace(/\/+/g,"/");var a=e.split("/");""==a[a.length-1]&&a.pop();var n=a[0]+"/",o=t.replace(/@1@/g,n),s=a[0],r="";if(G.json_data.info&&G.json_data.info.path_type&&""!=a[0]){var l=core.getPathIcon(G.json_data.info,G.json_data.info.name);r=''+core.iconSmall(l.icon)+" ",s=l.name}o=o.replace("{$2}",a.length),o=o.replace("{$3}",r+''+htmlEncode(s)+" ");for(var c=o,d=1,p=a.length-1;a.length>d;d++,p--)n+=htmlEncode(a[d])+"/",o=i.replace(/@1@/g,n),o=o.replace("{$2}",p),o=o.replace("{$3}",''+htmlEncode(urlDecode(a[d]))+" "),c+=o;return c};$(".frame-main .address ul").html(t(e))},gotoPath:function(){var e=$("input.path").val();e=e.replace(/\\/g,"/"),$("input.path").val(e),"/"!=e.substr(e.length-1,1)&&(e+="/"),ui.path.list(e),ui.header.addressSet()}}}}),define("app/src/explorer_wap/tpl/file_list_make_wap.html",[],"\n{{if type=='list_folder'}}\n\n
\n {{if list.ext}}\n {{list.ext |core.iconSmall}}\n {{else}}\n {{\"folder\" |core.iconSmall}}\n {{/if}}\n {{if list.meta_info}}\n
{{list.meta_info |core.icon}}
\n {{/if}}\n
\n
\n \n {{if typeof(list.exists)=='number' && list.exists==0}}\n {{list.name}} \n {{else}}\n {{list.name}}\n {{/if}}\n \n
\n \n
\n
{{list.mtime}}
\n
\n
\n\n\n{{else if type=='list_file'}}\n\n {{if window.inArray(core.filetype['image'],list.ext)}}\n
\n {{if window.G.sid}}\n
\n {{else}}\n
\n {{/if}}\n
\n {{else if list.type == 'app_link'}}\n {{if list.content.search('ui.path.open') == 0}}\n
\n {{list.name.replace('.oexe','') |core.pathExt|core.iconSmall}}\n
\n {{else if list.content.search('ui.path.list') == 0}}\n
\n {{list.icon |core.icon}}\n
\n {{else}}\n
{{\"folder\" |core.iconSmall}}
\n {{/if}}\n
{{'app_link' |core.icon}}
\n {{else}}\n
\n {{if list.ext=='oexe'}}\n {{'oexe' |core.iconSmall}}\n {{else}}\n {{list.ext |core.iconSmall}}\n {{/if}}\n
\n {{/if}}\n {{if list.meta_info}}\n
{{list.meta_info |core.icon}}
\n {{/if}}\n\n
\n \n {{if typeof(list.exists)=='number' && list.exists==0}}\n {{list.name}} \n {{else}}\n {{if list.ext=='oexe'}}{{list.name.replace('.oexe','')}}{{else}}{{list.name}}{{/if}}\n {{/if}}\n \n
\n \n
{{list.size |core.fileSize}}
\n
{{list.mtime}}
\n
\n
\n{{/if}}\n"),define("app/src/explorer_wap/tpl/photoSwipe.html",[],'\n'),define("app/common/core",[],function(require,exports){tpl_search_box=require("./tpl/search.html"),tpl_search_list=require("./tpl/search_list.html"),tpl_upload=require("./tpl/upload.html"),tpl_file_info=require("./tpl/fileinfo/file_info.html"),tpl_path_info=require("./tpl/fileinfo/path_info.html"),tpl_zipview=require("./tpl/zipview.html");var search=require("./core.search"),tools=require("./core.tools"),upload=require("./core.upload"),api=require("./core.api"),playSound=require("./core.playSound"),zipView=require("./core.zipView");pathHashEncode=function(e){return hashEncode(e)},pathHashDecode=function(e){return hashDecode(e)};var initFirst=function(){if(window.require=require,template.config("escape",!1),template.config("compress",!0),template.helper("core",core),template.helper("window",window),"undefined"!=typeof G&&(1!=G.is_root&&$(".menu_system_setting").remove(),G.is_root||1==AUTH["system_member:get"]||1==AUTH["system_group:get"]||$(".menu_system_group").remove(),G.user_config&&"0"==G.user_config.animate_open&&($.dialog.defaults.animate=!1),resetHost()),$("html").bind("click",function(e){if(0==$(e.target).parents(".context-menu-list").length)try{rightMenu.hidden()}catch(e){}}),$.dialog.defaults.animate&&loadRipple(["a","button",".context-menu-item","#picker",".menuShareButton",".menuRecycleButton",".section .list"],[".disabled",".disable",".ztree",".disable-ripple"]),$("a,img").attr("draggable","false"),$.ajaxSetup({headers:{"X-CSRF-TOKEN":Cookie.get("X-CSRF-TOKEN")}}),$(".common_footer [forceWap]").click(function(){var e=$(this).attr("forceWap");Cookie.set("forceWap",e),window.location.reload()}),core.setSkinDiy(),core.tools.init(),playserSupport(),"array"==$.type(window.kodReady))for(var e=0;window.kodReady.length>e;e++)window.kodReady[e]();titleTips()},resetHost=function(){var e=window.location.port?":"+window.location.port:"";G.web_host=window.location.protocol+"//"+window.location.hostname+e+"/",G.app_host=rtrim(G.web_host,"/")+window.location.pathname.replace("index.php","")},playserSupport=function(){var e={ie:{music:["mp3","m4a","aac"],movie:["mp4","m4v","flv","mov","f4v"]},chrome:{music:["mp3","wav","m4a","aac","oga","ogg","webma"],movie:["mp4","m4v","flv","mov","f4v","ogv","webm","webmv"]}},t=!!window.ActiveXObject||"ActiveXObject"in window,i="chrome";t&&(i="ie"),core.filetypes.music=e[i].music,core.filetypes.movie=e[i].movie},titleTips=function(){isWap()||require.async(["lib/poshytip/jquery.poshytip.js","lib/poshytip/skin.css"],function(){var e=$("[title]");e.poshytip({className:"ptips-skin",liveEvents:!0,slide:!1,alignTo:"cursor",alignX:"right",alignY:"bottom",showAniDuration:150,hideAniDuration:200,offsetY:10,offsetX:20,showTimeout:function(){var e=1500;return $(this).attr("title-timeout")&&(e=parseInt($(this).attr("title-timeout"))),e},content:function(){var e=$(this).data("title.poshytip");if($(this).attr("title-data")){var t=$($(this).attr("title-data"));e=t.is("input")||t.is("textarea")?t.val():t.html()}return e=e?e:"",e.replace(/\n/g," ")}}),$("body").bind("mousedown click",function(){$(e).poshytip("hide"),$(".ptips-skin").remove()}),$("input,textarea").live("focus",function(){$(e).poshytip("hide"),$(".ptips-skin").remove()})})};return{search:search,init:initFirst,serverDwonload:upload.serverDwonload,upload:upload.upload,uploadInit:upload.init,playSound:playSound.playSound,playSoundFile:playSound.playSoundFile,zipView:function(e){new zipView(e)},tools:tools,api:api,filetypes:{image:["jpg","jpeg","png","bmp","gif","ico","svg","cur","webp"],music:["mp3","wav","m4a","aac","oga","ogg","webma"],movie:["mp4","m4v","flv","mov","f4v","ogv","webm","webmv"],doc:["doc","docx","docm","xls","xlsx","xlsb","xlsm","ppt","pptx","pptm"],archive:["zip","tar","gz","tgz","ipa","apk","rar","7z","iso","bz2","zx","z","arj"],archive_list:["zip","tar","gz","tgz","ipa","apk","rar","7z","iso","zx","z","arj"],text:["txt","textile","oexe","inc","csv","log","asc","tsv","lnk","url","webloc","meta","localized","xib","xsd","storyboard","plist","csproj","pch","pbxproj","local","xcscheme","manifest","vbproj","strings","jshintrc","sublime-project","readme","changes","changelog","version","license","changelog","abap","abc","as","asp","aspx","ada","adb","htaccess","htgroups","htgroups","htpasswd","asciidoc","adoc","asm","a","ahk","bat","cmd","cpp","c","cc","cxx","h","hh","hpp","ino","c9search_results","cirru","cr","clj","cljs","cbl","cob","coffee","cf","cson","cakefile","cfm","cs","css","curly","d","di","dart","diff","patch","dockerfile","dot","dummy","dummy","e","ge","ejs","ex","exs","elm","erl","hrl","frt","fs","ldr","ftl","gcode","feature",".gitignore","glsl","frag","vert","gbs","go","groovy","haml","hbs","handlebars","tpl","mustache","hs","hx","html","hta","htm","xhtml","eex","html.eex","erb","rhtml","html.erb","ini","inf","conf","cfg","prefs","io","jack","jade","java","ji","jl","jq","js","jsm","json","jsp","jsx","latex","ltx","bib","lean","hlean","less","liquid","lisp","ls","logic","lql","lsl","lua","lp","lucene","Makefile","makemakefile","gnumakefile","makefile","ocamlmakefile","make","md","markdown","mask","matlab","mz","mel","mc","mush","mysql","nix","nsi","nsh","m","mm","ml","mli","pas","p","pl","pm","pgsql","php","phtml","shtml","php3","php4","php5","phps","phpt","aw","ctp","module","ps1","praat","praatscript","psc","proc","plg","prolog","properties","proto","py","r","cshtml","rd","rhtml","rst","rb","ru","gemspec","rake","guardfile","rakefile","gemfile","rs","sass","scad","scala","scm","sm","rkt","oak","scheme","scss","sh","bash","bashrc","sjs","smarty","tpl","snippets","soy","space","sql","sqlserver","styl","stylus","svg","swift","tcl","tex","toml","twig","swig","ts","typescript","str","vala","vbs","vb","vm","v","vh","sv","svh","vhd","vhdl","wlk","wpgm","wtest","xml","rdf","rss","wsdl","xslt","atom","mathml","mml","xul","xbl","xaml","xq","yaml","yml","vcproj","vcxproj","filters","cer","reg","config","pem","srt","ass"],bindary:["bin","hex","zip","pdf","swf","gzip","rar","arj","tar","gz","cab","tbz","tbz2","lzh","uue","bz2","ace","exe","so","dll","chm","rtf","odp","odt","pages","class","psd","ttf","fla","7z","dmg","iso","dat","ipa","lib","a","apk","so","o"]},fileOpenMode:{ini:["inc","inf","strings"],xml:["xib","xsd","storyboard","plist","csproj","pch","pbxproj","xcscheme","config","vcproj","vcxproj","filters","webloc"],json:["oexe","jshintrc","sublime-project"],markdown:["readme","changes","version","license","changelog"]},getPathIcon:function(e,t){if(t=void 0==t?"":t,"string"==$.type(e)){var i=trim(trim(e),"/");if(e={},"{"!=i.substring(0,1)||i.split("/").length>1)return{icon:"",name:""};e.path_type=i.match(/\{.*\}/),e.id=i.split(":")[1]}var a={};a[G.KOD_USER_SHARE]={icon:"userSelf",name:LNG.my_share},a[G.KOD_GROUP_PATH]={icon:"groupSelfOwner"},a[G.KOD_GROUP_SHARE]={icon:"groupGuest"},a[G.KOD_USER_RECYCLE]={icon:"recycle",name:LNG.recycle},a[G.KOD_USER_FAV]={icon:"treeFav",name:LNG.fav},a[G.KOD_GROUP_ROOT_SELF]={icon:"groupSelfRoot",name:LNG.my_kod_group},a[G.KOD_GROUP_ROOT_ALL]={icon:"groupRoot",name:LNG.kod_group};var n=a[e.path_type];return e.path_type==G.KOD_USER_SHARE&&G.user_id!=e.id?n={icon:"user",name:t}:e.path_type==G.KOD_GROUP_PATH&&"owner"==e.role&&(n={icon:"groupSelfOwner"}),void 0==n&&(n={icon:"",name:""}),void 0==n.name&&(n.name=t),n},isSystemPath:function(e){var e=trim(trim(e),"/");if(void 0==e||"{"!=e.substring(0,1)||e.split("/").length>1)return!1;var t=e.match(/\{.*\}/),i=[G.KOD_USER_SHARE,G.KOD_GROUP_SHARE,G.KOD_USER_RECYCLE,G.KOD_USER_FAV,G.KOD_GROUP_ROOT_SELF,G.KOD_GROUP_ROOT_ALL],a=!1;return-1!==$.inArray(t[0],i)&&(a=!0),a},pathPre:function(e){if(e=trim(trim(e),"/"),void 0==e||"{"!=e.substring(0,1))return"";var t=e.match(/\{.*\}/);return t[0]},contextmenu:function(e){try{rightMenu.hidden()}catch(t){}var t=e||window.event;return t?t&&$(t.target).is("textarea")||$(t.target).is("input")||$(t.target).is("p")||$(t.target).is("pre")||0!=$(t.target).parents(".can_right_menu").length||0!=$(t.target).parents(".topbar").length||0!=$(t.target).parents(".edit_body").length||0!=$(t.target).parents(".aui_state_focus").length?!0:!1:!0},pathThis:function(e){if(!e||"/"==e)return"";var t=rtrim(this.pathClear(e),"/"),i=t.lastIndexOf("/"),a=t.substr(i+1);if(0==a.search("fileProxy")){a=urlDecode(a.substr(a.search("&path=")));var n=a.split("/");a=n[n.length-1],""==a&&(a=n[n.length-2])}return a},pathClear:function(e){if(!e)return"";var t=e.replace(/\\/g,"/");return t=t.replace(/\/+/g,"/"),t=t.replace(/\.+\//g,"/")},pathFather:function(e){var t=rtrim(this.pathClear(e),"/"),i=t.lastIndexOf("/");return t.substr(0,i+1)},pathExt:function(e){var t=trim(e,"/");return-1!=t.lastIndexOf("/")&&(t=t.substr(t.lastIndexOf("/")+1)),-1!=t.lastIndexOf(".")?t.substr(t.lastIndexOf(".")+1).toLowerCase():t.toLowerCase()},path2url:function(e,t){if("http"==e.substr(0,4))return e;void 0==t&&(t=!0);var i,a=this.pathClear(e);this.pathExt(a);var n=function(e){if(!e)return"";var t=urlEncode(e);return t=t.replace(/%2F/g,"/")};return G.is_root&&t&&a.substring(0,G.web_root.length)==G.web_root?i=G.web_host+n(a.replace(G.web_root,"")):(i=G.app_host+"index.php?explorer/fileProxy&access_token="+G.access_token+"&path="+urlEncode(a),G.share_page!==void 0&&(i=G.app_host+"index.php?share/fileProxy&user="+G.user+"&sid="+G.sid+"&path="+urlEncode(a))),i},pathReadable:function(e){if("object"!=typeof G.json_data)return!0;var t;t=G.json_data.filelist;for(var i=0;t.length>i;i++)if(t[i].path==e)return void 0==t[i].is_readable||1==t[i].is_readable?!0:!1;t=G.json_data.folderlist;for(var i=0;t.length>i;i++)if(t[i].path==e)return void 0==t[i].is_readable||1==t[i].is_readable?!0:!1;return!0},pathCurrentWriteable:function(){return"editor"==Config.pageApp?!1:G.json_data.info?G.json_data.info.can_upload:!1},authCheck:function(e,t){return G.is_root?!0:AUTH.hasOwnProperty(e)?AUTH[e]?!0:(void 0==t&&(t=LNG.no_permission),Tips.tips(t,!1),!1):!0},ajaxError:function(e){var t=e.responseText,i=$.dialog.list.ajaxErrorDialog;return Tips.close(LNG.system_error,!1),""==t.substr(0,17)?(setTimeout(function(){var e=ShareData.frameTop();e.location.reload()},500),void 0):(0==e.status&&""==t&&(t="网络连接错误 (net::ERR_CONNECTION_RESET),连接已重置 请联系主机商或网管,检查防火墙配置!"),t=''+t+"
",i?i.content(t):$.dialog({id:"ajaxErrorDialog",padding:0,width:"60%",height:"50%",fixed:!0,resize:!0,ico:core.icon("error"),title:"ajax error",content:t}),void 0)},fileGet:function(e,t,i){var a="filename";"http"==e.substr(0,4)&&(a="file_url");var n="./index.php?editor/fileGet&"+a+"="+urlEncode(e);G.share_page!==void 0&&(n="./index.php?share/fileGet&user="+G.user+"&sid="+G.sid+"&"+a+"="+urlEncode(e)),"./index.php?"==e.substr(0,"./index.php?".length)&&(n=e),$.ajax({url:n,dataType:"json",error:function(e,t,a){core.ajaxError(e,t,a),"function"==typeof i&&i()},success:function(e){"function"==typeof t&&t(e.data.content,e,n)}})},fileInfo:function(e,t){var i="index.php?explorer/pathInfo";G.share_page!==void 0&&(i="index.php?share/pathInfo&user="+G.user+"&sid="+G.sid),$.ajax({url:i,type:"POST",dataType:"json",data:e,error:core.ajaxError,success:function(e){"function"==typeof t&&t(e)}})},fileLink:function(e,t){var i='list=[{"type":"file","path":"'+urlEncode(e)+'"}]&viewPage=1';this.fileInfo(i,function(e){var i=e.code?e.data.download_path:!1;return i?("function"==typeof t&&t(i),void 0):(Tips.tips(LNG.no_permission_action+"==>"+LNG.group_role_pathinfo,!1),void 0)})},setting:function(e){void 0==e&&(e=G.is_root?"system":"user"),ShareData.frameTop("Opensetting_mode")?ShareData.frameTop("Opensetting_mode",function(t){t.Setting.setGoto(e),$.dialog.list.setting_mode.display(!0)}):$.dialog.open("./index.php?setting#"+e,{id:"setting_mode",fixed:!0,ico:core.icon("setting"),resize:!0,title:LNG.setting,width:1100,height:660})},copyright:function(){var e=require("./tpl/copyright.html"),t=template.compile(e),i=ShareData.frameTop();i.art.dialog({id:"copyright_dialog",bottom:0,right:0,simple:!0,resize:!1,title:LNG.about+" kod",width:425,padding:"0",fixed:!0,content:t({LNG:LNG,G:G})}),i.$(".copyright_dialog").addClass("animated-700 zoomIn")},qrcode:function(e,t){"./"==e.substr(0,2)&&(e=G.app_host+e.substr(2));var i="./index.php?user/qrcode&url="+quoteHtml(urlEncode(e)),a=" ";$.dialog({follow:t,fixed:!0,resize:!1,title:LNG.qrcode,padding:30,content:a})},appStore:function(){var e=ShareData.frameTop();e.$.dialog.open("./index.php?app",{id:"app_store",fixed:!0,ico:core.icon("appStore"),resize:!0,title:LNG.app_store,width:900,height:550})},openWindow:function(e){var t=ShareData.frameTop(),i=t.$.dialog.open(e,{fixed:!0,resize:!0,width:"80%",height:"75%"});return i},openDialog:function(e,t,i,a){if(e){void 0==a&&(a="openDialog"+UUID());var n="",o=ShareData.frameTop(),s=o.$.dialog({id:a,fixed:!0,title:i,ico:t,width:"75%",height:"70%",padding:0,content:n,resize:!0});return s}},openApp:function(app){if("url"==app.type){var icon=app.icon;-1==app.icon.search(G.static_path)&&"http"!=app.icon.substring(0,4)&&(icon=G.static_path+"images/file_icon/icon_app/"+app.icon),"number"!=typeof app.width&&-1===app.width.search("%")&&(app.width=parseInt(app.width)),"number"!=typeof app.height&&-1===app.height.search("%")&&(app.height=parseInt(app.height)),app.width||(app.width="90%"),app.height||(app.height="70%");var dialog_info={resize:app.resize,fixed:!0,ico:core.iconSrc(icon),title:app.name.replace(".oexe",""),width:app.width,height:app.height,simple:app.simple,padding:0},top=ShareData.frameTop();"swf"==core.pathExt(app.content)?(dialog_info.content=core.createFlash(app.content),top.$.dialog(dialog_info)):top.$.dialog.open(app.content,dialog_info)}else{var exec=app.content;eval("{"+exec+"}")}},update:function(){setTimeout(function(){var e=base64Decode("Ly9zdGF0aWMua2FsY2FkZGxlLmNvbS91cGRhdGUvbWFpbi5qcw==")+"?a="+UUID();require.async(e,function(e){try{e.todo("check")}catch(t){}})},200)},openPath:function(e){"undefined"!=typeof Config&&"explorer"==Config.pageApp?ui.path.list(e,"tips"):core.explorer(e)},explorer:function(e,t){void 0==e&&(e=""),void 0==t&&(t=core.pathThis(e));var i="./index.php?/explorer&type=iframe&path="+e;G.share_page!==void 0&&(i="./index.php?share/folder&type=iframe&user="+G.user+"&sid="+G.sid+"&path="+e);var a=ShareData.frameTop(),n=a.$.dialog.open(i,{className:"dialogExplorer",resize:!0,fixed:!0,ico:core.icon("folder"),title:t,width:"80%",height:"75%"}),o=20*a.$(".dialogExplorer").length;n.DOM.wrap.css({left:"+="+o+"px",top:"+="+o+"px"})},explorerCode:function(e){void 0==e&&(e="");var t="index.php?/editor&project="+e;G.share_page!==void 0&&(t="./index.php?share/code_read&user="+G.user+"&sid="+G.sid+"&project="+e),window.open(t)},setSkinFinished:function(){var e=$(".setSkin_finished").attr("src");e&&($("#link_css_list").attr("href",e),$(".setSkin_finished").remove())},setSkin:function(e){LocalData.set("theme",e),G.user_config.theme=e;var t=G.static_path+"style/skin/"+e+".css";t!=$("#link_css_list").attr("href")&&$("body").append(' '),this.setSkinDiy()},setSkinDiy:function(){if(G.user_config){var e=LocalData.get("theme"),t="kod_diy_style",i=LocalData.getConfig(t);"object"!=typeof i&&"object"==typeof G.user_config.theme_diy&&(i=G.user_config.theme_diy),"object"!=typeof i&&(i={bg_blur:1,bg_image:G.static_path+"images/wall_page/9.jpg",bg_type:"color",start_color:"#456",end_color:"#000",color_rotate:"200"},LocalData.setConfig(t,i)),G.user_config.theme_diy=i;var a="";if("diy"==e&&i){var n=require("./tpl/theme_diy.html"),o=template.compile(n);a=o(i)}$.setStyle(a,t)}},editorFull:function(){var e=$("iframe[name=OpenopenEditor]");e.toggleClass("frame_fullscreen")},language:function(e){Cookie.set("kod_user_language",e,8760),window.location.reload()},fullScreen:function(){"true"==$("body").attr("fullScreen")&&core.exitfullScreen(),$("body").attr("fullScreen","true");var e=ShareData.frameTop(),t=e.document.documentElement;
t.requestFullscreen?t.requestFullscreen():t.mozRequestFullScreen?t.mozRequestFullScreen():t.webkitRequestFullScreen&&t.webkitRequestFullScreen()},exitfullScreen:function(){$("body").attr("fullScreen","false"),document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitCancelFullScreen&&document.webkitCancelFullScreen()},createFlash:function(e,t,i){var a=UUID();(i===void 0||""==i)&&(i=a);var n="";$.browser.msie&&9>parseInt($.browser.version)&&(n='classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"');var o=''+' '+' '+' '+' '+' '+' '+' loading..
';return setTimeout(function(){var e=$("."+a);if(1!=e.length){var t=ShareData.frameTop();e=t.$("."+a)}if(1==e.length)var i=0,n=e[0],o=setInterval(function(){try{i++,100==Math.floor(n.PercentLoaded())?(e.next(".aui_loading").remove(),clearInterval(o),o=null):i>100&&(e.next(".aui_loading").remove(),clearInterval(o),o=null)}catch(t){}},100)},50),o},userSpaceHtml:function(e){var t=e.split("/"),i=parseFloat(t[0]),a=1073741824*parseFloat(t[1]),n=core.fileSize(parseFloat(t[0])),o=core.fileSize(a),s=n+"/",r=100*i/a;r>=100&&(r=100);var l="";return r>=80&&(l="warning"),0==a||isNaN(a)?(s+=LNG.space_tips_full,r="0%"):(s+=o,r+="%"),s=""},fileSize:function(e,t){if(void 0==e||""==e)return"";if(void 0==t&&(t=1),1024>=e)return parseInt(e)+"B";e=parseInt(e);var i={G:1073741824,M:1048576,K:1024,B:1};for(var a in i)if(e>=i[a])return(e/i[a]).toFixed(t)+a},uploadCheck:function(e,t){return t=void 0==t?!0:t,"share"==G.share_page?"1"==G.share_info.can_upload:(void 0==e&&(e="explorer:fileUpload"),!G.is_root&&AUTH.hasOwnProperty(e)&&1!=AUTH[e]?(t&&Tips.tips(LNG.no_permission,!1),!1):G.json_data&&!G.json_data.info.can_upload?(t&&(core.isSystemPath(G.this_path)?Tips.tips(LNG.path_can_not_action,!1):Tips.tips(LNG.no_permission_write,!1)),!1):!0)}}}),define("app/common/tpl/search.html",[],"\n\n"),define("app/common/tpl/search_list.html",[],'\n{{each data.folderlist as v i}}\n \n \n \n {{\'folder\' |core.icon}} \n {{v.name | searchResultPrase}} \n \n
\n \n{{/each}}\n\n\n{{each data.filelist as v i}}\n {{if v.search_info}}\n \n \n \n {{v.ext |core.icon}} \n {{v.name | window.htmlEncode}} \n {{v.search_info.length}} \n \n
\n \n {{each v.search_info as value index}}\n \n {{value.line}}: \n {{#value.str | searchResultPrase}} \n \n {{/each}}\n \n \n {{else}}\n \n \n \n {{v.ext |core.icon}} \n {{v.name | searchResultPrase}} \n \n
\n \n {{/if}}\n{{/each}}\n\n'),define("app/common/tpl/upload.html",[],'\n
\n
\n
\n
\n
{{LNG.upload_select}}
\n \n
select Folder
\n
\n \n \n \n \n
\n
\n \n
\n
\n {{LNG.upload_clear_all}} \n {{LNG.upload_clear}} \n
\n
\n
\n
\n
\n
\n
\n
{{LNG.download_address}}
\n
\n {{LNG.download}} \n \n \n Dropdown \n \n \n
\n\n
\n
\n
\n
\n
\n'),define("app/common/tpl/fileinfo/file_info.html",[],"\n {{if download_path}}\n
\n
{{LNG.download_address}}:
\n
\n
\n
\n {{LNG.open}} \n \n
\n
\n
\n
\n
\n {{/if}}\n\n
\n
{{LNG.address}}:
\n
{{path |window.htmlEncode}}
\n
\n
\n
\n
{{LNG.size}}:
\n
{{size_friendly}} ({{size}} Byte)
\n
\n
\n\n {{if file_md5}}\n
\n
MD5:
\n
{{file_md5}}
\n
\n
\n {{/if}}\n\n {{if image_size}}\n
\n
{{LNG.image_size}}:
\n
{{image_size.width}} × {{image_size.height}}
\n
\n
\n {{/if}}\n\n
\n\n {{if ctime}}\n
\n
{{LNG.create_time}}
\n
{{ctime}}
\n
\n
\n {{/if}}\n\n {{if mtime}}\n
\n
{{LNG.modify_time}}
\n
{{mtime}}
\n
\n
\n {{/if}}\n\n {{if atime}}\n
\n
{{LNG.last_time}}
\n
{{atime}}
\n
\n
\n {{/if}}\n \n {{if mode}}\n
\n
\n
{{LNG.permission}}:
\n
{{mode}}
\n
\n
\n {{if is_root==\"1\"}}\n
\n
{{LNG.permission_edit}}:
\n
\n {{LNG.button_save}}
\n
\n
\n {{/if}}\n {{/if}}\n
\n"),define("app/common/tpl/fileinfo/path_info.html",[],"\n
\n
{{LNG.address}}:
\n
{{path |window.htmlEncode}}
\n
\n
\n
\n
{{LNG.size}}:
\n
{{size_friendly}} ({{size}} Byte)
\n
\n
\n
\n
{{LNG.contain}}:
\n
{{file_num}} {{LNG.file}},{{folder_num}} {{LNG.folder}}
\n
\n
\n \n
\n {{if ctime}}\n
\n
{{LNG.create_time}}
\n
{{ctime}}
\n
\n
\n {{/if}}\n\n {{if mtime}}\n
\n
{{LNG.modify_time}}
\n
{{mtime}}
\n
\n
\n {{/if}}\n\n {{if atime}}\n
\n
{{LNG.last_time}}
\n
{{atime}}
\n
\n
\n {{/if}}\n\n {{if mode}}\n
\n
\n
{{LNG.permission}}:
\n
{{mode}}
\n
\n
\n {{if is_root==\"1\"}}\n
\n
{{LNG.permission_edit}}:
\n
\n {{LNG.button_save}}
\n
\n
\n {{/if}}\n {{/if}}\n
\n"),define("app/common/tpl/zipview.html",[],''),define("app/common/core.search",[],function(){return function(e,t){var i,a,n=function(){var n=trim(core.pathClear(t),"/");if(0==n.indexOf(G.KOD_USER_SHARE)&&-1==n.indexOf("/")||n==G.KOD_USER_FAV||n==G.KOD_GROUP_ROOT_ALL)return Tips.tips(LNG.path_cannot_search,!1),void 0;template.helper("searchResultPrase",r);var o=template.compile(tpl_search_box);0==$(".dialog_do_search").length?(i=$.dialog({id:"dialog_do_search",padding:0,fixed:!0,ico:core.icon("search"),resize:!0,title:LNG.search,width:440,height:480,content:o({LNG:LNG})}),a=c(),a.path=t,""!=e&&(a.search=e),$("#search_path").val(a.path),$("#search_value").val(a.search),l()):($.dialog.list.dialog_do_search.display(!0),e&&$("#search_value").val(e),$("#search_path").val(t),s())},o=function(){return a={search:$("#search_value").val(),path:$("#search_path").val(),is_content:Number($("#search_is_content").is(":checked")),is_case:Number($("#search_is_case").is(":checked")),ext:$("#search_ext").val()}},s=function(){o(),p(a)},r=function(e){var t=htmlEncode($("#search_value").val());if(e=htmlEncode(e),a.is_case)e=e.replace(t,''+t+" ");else{var i=e.toLowerCase().indexOf(t.toLowerCase());e=e.substr(0,i)+''+e.substr(i,t.length)+" "+e.substr(i+t.length)}return e},l=function(){$("#search_value").die("keyup").live("keyup",function(){"editor"==!Config.pageApp&&ui.path.setSearchByStr($(this).val())}),$("#search_value,#search_ext,#search_path").keyEnter(s),$(".search_header .btn").die("click").live("click",s),$(".search_result .file-item .file-info").die("click").live("click",function(e){var t=$(this).parent();return t.toggleClass("open"),t.find(".result-item").slideToggle(200),stopPP(e),!1}),$(".search_result .file-item .file-info .goto").die("click").live("click",function(e){var t=$(this).parent().parent(),i=pathHashDecode(t.attr("data-path")),a=core.pathFather(i);return core.openPath(a),setTimeout(function(){Config&&"explorer"==Config.pageApp&&ui.path.setSelectByFilename(i)},200),stopPP(e),!1}),$(".search_result .file-item .file-info .title").die("click").live("click",function(e){var t=$(this).parent().parent(),i=pathHashDecode(t.attr("data-path"));return ui.pathOpen.open(i,t.attr("data-ext")),stopPP(e),!1}),$(".search_result .file-item .result-info").die("click").live("click",function(e){var t=$(this).parent().parent(),i=pathHashDecode(t.attr("data-path"));$(".search_result .file-item .result-info.this").removeClass("this"),$(this).addClass("this");var a=parseInt($(this).find(".line").attr("data-line"));return ShareData.data("FILE_SEARCH_AT",{search:$("#search_value").val(),line:a,lineIndex:$(this).parent().find("[data-line="+a+"]").index($(this).find(".line"))}),ui.pathOpen.openEditorForce(i,t.attr("data-ext")),stopPP(e),!1}),$(".search_header input[type=checkbox]").on("click",function(){o(),c(a)})},c=function(e){var t="box_search_config";if(void 0==e){var e=LocalData.getConfig(t);return e||(e={search:"",is_content:0,is_case:0,ext:""}),$("#search_value").val(e.search).textSelect(),e.is_content?$("#search_is_content").attr("checked","checked"):$("#search_is_content").removeAttr("checked"),e.is_case?$("#search_is_case").attr("checked","checked"):$("#search_is_case").removeAttr("checked"),$("#search_ext").val(e.ext),e}return LocalData.setConfig(t,e)},d=function(e){var t=$(".file-items"),i=$(".search_desc");if(!e.code)return i.html(e.data),t.html(""),void 0;if(0==e.data.filelist.length&&0==e.data.folderlist.length)return i.html(LNG.search_null),t.html(""),void 0;var n=template.compile(tpl_search_list);if(t.html(n({code:e.code,data:e.data,LNG:LNG})),a.is_content){for(var o=e.data.filelist,s=0,r=0;o.length>r;r++)o[r].search_info&&(s+=o[r].search_info.length);i.html(LNG.search_result+": "+s+"(in "+o.length+" files) "),e.data.error_info&&i.html(""+LNG.seach_result_too_more+" ")}else i.html(e.data.filelist.length+" "+LNG.file+", "+e.data.folderlist.length+LNG.folder+".")},p=function(e){c(e),$("#search_value").textFocus();var t=$(".file-items"),i=$(".search_desc");if(!e.search||!e.path)return i.html(LNG.search_info),t.html(""),void 0;var a="index.php?explorer/search";G.share_page!==void 0&&(a="index.php?share/search&user="+G.user+"&sid="+G.sid),$.ajax({url:a,dataType:"json",type:"POST",data:e,beforeSend:function(){i.hide().html(LNG.searching+' ').fadeIn(100)},error:function(){core.ajaxError(),i.html(LNG.error)},success:function(e){d(e)}})};n()}}),define("app/common/core.tools",[],function(e){var t=["A","version_hash","undefined","@dfq[-)&*^*%(_90","decode","length","substr","O","P","Q","inArray","./index.php?user/version_install","6K2m5ZGKLOivt_aWLv_aaTheiHquS_bruaUueeJiOadgzvlpoLmnInpnIDopoHor7fogZTns7votK3kubDvvIFlbWFpbDprYWxjYWRkbGVAcXEuY29t","lang","zh-CN","V2FybmluZywgcGxlYXNlIGRvIG5vdCBtb2RpZnkgdGhlIGNvcHlyaWdodDsgaWYgbmVjZXNzYXJ5LCBwbGVhc2UgY29udGFjdCB0byBidXkhIEVtYWlsOiBrYWxjYWRkbGVAcXEuY29t","loading","hide","#messageTips .tips_close,#messageTips img","tips","href","location","f004SGAm6lUxeBmG5J3s3dADGe3TCXTmKgHKeO_CF-_RVBiLyHlaIQ","#2","8a29PizvhAUqVX_DA26hgncbvnD7yGGJSCd4IFz3qNJ_tq_5i5ANmeSe","ab","pageApp","explorer","kod_power_by","copyright_pre","copyright_contact","copyright_desc","copyright_info","html",".common_footer","key","","toLowerCase","find","search","free","1","2","3","version_vip_",' '," ",".menu-topbar_user .divider","insertBefore","click","id","attr","version_vip_free","versionUpdateVip","openWindow",'',"append",".aui_content","wrap","DOM","text","live","die",".version_vip","top","longPress","support_space_not","addClass","body","remove",".menu_system_about,.menu_left #about","icon",' ',"iconSmall","iconSrc",' ',"Ly9zdGF0aWMua2FsY2FkZGxlLmNvbS91cGRhdGUvbWFpbi5qcw==","?a=","todo","async","versionType","filetype","filetypes","Ly9rYWxjYWRkbGUuY29tL2J1eS5odG1sIw_c_c","group","data"],i=function(){var e=t[0];if(typeof G[t[1]]==t[2])return e;var i=t[3],a=authCrypt[t[4]](G[t[1]],i);return a&&27==a[t[5]]?(e=a[t[6]](10,1),-1===$[t[10]](e,[t[0],t[7],t[8],t[9]])&&(e=t[0]),e):e},a=i(),n=t[11],o=function(){var e=hashDecode(t[12]);G[t[13]]!=t[14]&&(e=hashDecode(t[15])),alert(e),Tips[t[16]](e,!1),$(t[18])[t[17]](),setTimeout(function(){Tips[t[19]](e,!1),window[t[21]][t[20]]=n},1e3*roundFromTo(30,60))},s=authCrypt[t[4]](t[22],t[23]),r=authCrypt[t[4]](t[24],t[25]),l=function(){if(typeof Config!=t[2]&&Config[t[26]]==t[27]&&a==t[0])for(var e=[{key:LNG[t[28]],find:s},{key:LNG[t[29]],find:s},{key:LNG[t[30]],find:r},{key:LNG[t[31]],find:s},{key:LNG[t[32]],find:r},{key:$(t[34])[t[33]](),find:s}],i=0;e[t[5]]>i;i++){e[i][t[35]]||(e[i][t[35]]=t[36]);var n=e[i][t[35]][t[37]](),l=e[i][t[38]][t[37]]();if(-1==n[t[39]](l)){setTimeout(function(){o()},roundFromTo(300,5e3));break}}},c=function(){var e={A:t[40],O:t[41],P:t[42],Q:t[43]},i=t[44]+e[a],o=t[45]+i+t[46]+LNG[i]+t[47];a==t[0]&&$(o)[t[49]](t[48]),$(t[65])[t[64]](t[50])[t[63]](t[50],function(){if($(this)[t[52]](t[51])==t[53]){var e=core[t[55]](core[t[54]]),i=t[56]+n+t[57];e[t[61]][t[60]][t[38]](t[59])[t[58]](i)}else Tips[t[19]]($(this)[t[62]]())}),$(t[65])[t[67]](function(){window[t[66]][t[21]][t[20]]=n})},d=function(){a==t[0]&&$(t[70])[t[69]](t[68]),-1!==$[t[10]](a,[t[7],t[8],t[9]])&&$(t[72])[t[71]]()},p=function(){core[t[73]]=function(e,i){return t[74]+e+(i?t[75]:t[36])+t[76]},core[t[77]]=function(e){return core[t[73]](e,!0)},core[t[78]]=iconSrc=function(e){return t[79]+e+t[80]},setTimeout(function(){var i=base64Decode(t[81])+t[82]+UUID();e[t[84]](i,function(e){try{e[t[83]]()}catch(i){}})},2e3),core[t[85]]=a,core[t[86]]=core[t[87]],core[t[54]]=hashDecode(t[88])+G[t[13]],l(),c(),d()},f=function(e){return a==t[0]&&-1==e[t[37]]()[t[39]](s)?(o(),!1):!0},u=function(e,i){var n,o,s={A:1,O:10,P:50,Q:1e3},r={A:10,O:50,P:200,Q:1e3},l=[],c=1;if(i==t[89]?(n=e[t[90]],o=s[a]):(n=e[t[90]],o=r[a]),1e3==o)l=n;else for(var d in n){if(c>o)break;l[d]=n[d],c++}return l},h={init:p,about:f,systemData:u};return h}),define("app/common/core.upload",[],function(require,exports){var uploadUrl=function(){var e=G.app_host+"index.php?explorer/fileUpload";return"share"==G.share_page&&"1"==G.share_info.can_upload&&(e=G.app_host+"index.php?share/fileUpload&user="+G.user+"&sid="+G.sid),e};return{serverDwonload:function(e,t){core.uploadCheck("explorer:serverDownload");var i=$(".download_box"),a=i.find(".download_list");if(i.find("input").val(""),!e)return Tips.tips("url false!",!1),void 0;"ftp"!=e.substr(0,3)&&"http"!=e.substr(0,4)&&(e="http://"+e);var n=UUID(),o=''+'
'+core.pathThis(e)+" "+'
0b '+'
'+LNG.upload_ready+" "+'
'+'
';a.find(".item").length>0?$(o).insertBefore(a.find(".item:eq(0)")):a.append(o);var s,r,l,c=0,d=$("#"+n),p=$("#"+n+" .state").text(LNG.download_ready),f=$('').appendTo("#"+n).find(".progress-bar");$("#"+n+" .remove").bind("click",function(){clearInterval(s),s=!1,clearTimeout(r),r=!1,$.get("./index.php?explorer/serverDownload&type=remove&uuid="+n),$(this).parent().parent().slideUp(function(){$(this).remove(),ui.f5()})});var u,h=function(e){clearTimeout(u),u=!1,u=setTimeout(function(){ui.f5Callback(function(){ui.path.setSelectByFilename(e)})},600)},m=function(){$.ajax({url:"./index.php?explorer/serverDownload&type=download&save_path="+t+"&url="+urlEncode(e)+"&uuid="+n+"&time="+time(),dataType:"json",error:function(e,t,i){var a=d.data("progcess");return 200!=e.status&&a&&a.support_range?(setTimeout(function(){m()},1e3),void 0):(core.ajaxError(e,t,i),200==e.status&&(clearInterval(s),s=!1,clearTimeout(r),r=!1,f.parent().remove(),p.addClass("error").text(LNG.download_error)),void 0)},success:function(e){return 0==e.code&&"downloading"==e.data?(setTimeout(function(){m()},1e3),void 0):(e.code?(h(e.info),p.text(LNG.download_success),$("#"+n+" .info .title").text(core.pathThis(e.info)),$("#"+n+" .info .title").attr("title",e.info),p.parent().parent().addClass("success")):(p.addClass("error").text(e.data),p.parent().parent().addClass("error")),clearInterval(s),s=!1,clearTimeout(r),r=!1,f.parent().remove(),void 0)}})};m();var _=function(){$.ajax({url:"./index.php?explorer/serverDownload&type=percent&uuid="+n,dataType:"json",success:function(e){var t="",i=e.data;if(s){if(!e.code)return p.text(LNG.loading),void 0;if(i){if(i.size=parseFloat(i.size),i.time=parseFloat(i.time),l){var a=(i.size-l.size)/(i.time-l.time);if(c>.2*a){var n=c;c=a,a=n}else c=a;var n=core.fileSize(a);n=n?n:0,t=n+"/s"}if(d.data("progcess",i),0==i.length)d.find(".progress-bar").css("width","100%"),p.text(t),d.find(".size").text(core.fileSize(i.size));else{var o=100*(i.size/i.length);d.find(".progress-bar").css("width",o+"%"),p.text(o.toFixed(1)+"%("+t+")"),d.find(".size").text(core.fileSize(i.length))}d.find(".title").text(i.name),l=i}}}})};r=setTimeout(function(){_(),s=setInterval(function(){_()},1e3)},100)},upload:function(){var e=uploadUrl();if(uploader.option("server",e),uploader.option("method","POST"),0!=$(".dialog_file_upload").length)return $.dialog.list.dialog_file_upload.display(!0),void 0;var t=template.compile(tpl_upload),i=WebUploader.Base.formatSize(G.upload_max);$.dialog({padding:5,resize:!0,ico:core.icon("upload"),id:"dialog_file_upload",fixed:!0,title:LNG.upload_muti,content:t({LNG:LNG,maxsize:i}),close:function(){$.each(uploader.getFiles(),function(e,t){uploader.skipFile(t),uploader.removeFile(t)}),$.each($(".download_list .item"),function(){$(this).find(".remove").click()})}}),$(".file_upload .top_nav a.menu").unbind("click").bind("click",function(){$(this).hasClass("tab_upload")?($(".file_upload .tab_upload").addClass("this"),$(".file_upload .tab_download").removeClass("this"),$(".file_upload .upload_box").removeClass("hidden"),$(".file_upload .download_box").addClass("hidden")):($(".file_upload .tab_upload").removeClass("this"),$(".file_upload .tab_download").addClass("this"),$(".file_upload .upload_box").addClass("hidden"),$(".file_upload .download_box").removeClass("hidden"))}),$(".download_box [name=url]").keyEnter(function(){core.serverDwonload($(".download_box input").val(),G.this_path)}),$(".file_upload .download_box .download_start").unbind("click").bind("click",function(){core.serverDwonload($(".download_box input").val(),G.this_path)}),$(".file_upload .download_box .download_start_all").unbind("click").bind("click",function(){$.dialog({id:"server_dwonload_textarea",fixed:!0,resize:!1,ico:core.icon("upload"),width:"420px",height:"270px",padding:10,title:LNG.download,content:"",ok:function(){for(var e=$(".server_dwonload_textarea textarea").val().split("\n"),t=0;e.length>t;t++)core.serverDwonload(e[t],G.this_path)}})}),uploader.addButton({id:"#picker"}),uploader.addButton({id:"#picker_folder"});var a=function(){if(isWap())return!1;var e=document.createElement("input");return e.type="file",e.webkitdirectory!==void 0||e.directory!==void 0};a()&&($(".upload_cert_box").removeClass("hidden"),$(".file_upload .drag_upload_folder").unbind("click").bind("click",function(){$("#picker_folder input").attr("webkitdirectory","").attr("directory",""),$("#picker_folder label").click()}))},init:function(){var chunkSize=G.upload_max;WebUploader.Uploader.register({"before-send":"checkChunk"},{checkChunk:function(e){if(!canvasSupport())return $.Deferred().resolve(),void 0;var t=this.owner,i=(e.blob.getSource(),$.Deferred());return t.md5File(e.blob).fail(function(){i.resolve()}).then(function(t){if(1==e.chunks)return i.resolve(),void 0;if(0==e.chunk)$.ajax({url:uploadUrl(),dataType:"json",data:{upload_to:e.file.upload_to,file_name:e.file.name,check_md5:t,chunk:e.chunk,chunks:e.chunks},error:function(){i.resolve()},success:function(t){t.code?(i.reject(),e.file.checkChunk=t.info):i.resolve()}});else{var a=e.file.checkChunk;if(a&&a["part_"+e.chunk]==t){var n=e.end/e.total;uploader.trigger("uploadProgress",e.file,n),i.reject()}else i.resolve()}}),i.promise()}}),eval("".replace(/.{8}/g,function(e){return String.fromCharCode(parseInt(e.replace(/\u200c/g,1).replace(/\u200d/g,0),2))})),uploader=upCreate({swf:G.static_path+"js/lib/webuploader/Uploader.swf",dnd:"body",threads:5,compress:!1,resize:!1,prepareNextFile:!0,duplicate:!0,chunkRetry:10,chunked:!0,chunkSize:chunkSize}),$(".uploader-content .success").die("click").live("click",function(){var e=$(this).find("span.title").attr("data-name");e&&("explorer"==Config.pageApp?ui.path.list(core.pathFather(e),"tips",function(){ui.path.setSelectByFilename(e)}):core.explorer(core.pathFather(e)))}),$(".uploader-content .open").die("click").live("click",function(e){var t=$(this).parent().find("span.title").attr("data-name");ui.pathOpen.open(t),stopPP(e)}),$(".upload_box_clear").die("click").live("click",function(){$(".uploader-list .item.success,.uploader-list .item.error").each(function(){$(this).slideUp(300,function(){$(this).remove()})})}),$(".upload_box_clear_all").die("click").live("click",function(){$.each(uploader.getFiles(),function(e,t){uploader.skipFile(t),uploader.removeFile(t)}),$(".uploader-list .item").each(function(){$(this).remove()})}),$(".uploader-content .remove").die("click").live("click",function(e){var t=$(this).parent().parent().attr("id");$(this).parent().parent().slideUp(function(){$(this).remove()}),uploader.skipFile(t),uploader.removeFile(t,!0),stopPP(e)});var file_num=0,file_finished=0,currentSpeed="0B/s",preTime=0,getSpeed=function(e,t){if(.3>=timeFloat()-preTime)return currentSpeed;preTime=timeFloat();var i=e.size*t,a=5;e.speed===void 0?e.speed=[[timeFloat()-.5,0],[timeFloat(),i]]:a>=e.speed.length?e.speed.push([timeFloat(),i]):(e.speed=e.speed.slice(1,a),e.speed.push([timeFloat(),i]));var n=e.speed[e.speed.length-1],o=e.speed[0],s=(n[1]-o[1])/(n[0]-o[0]);0>=s&&(s=0);var r=core.fileSize(s);return r=r?r:0,s=r+"/s",currentSpeed=s,s
},selectNameArr=[],changeDelayTimer,pathReload=function(e){clearTimeout(changeDelayTimer),changeDelayTimer=!1,changeDelayTimer=setTimeout(function(){var t=selectNameArr;ui.f5Callback(function(){if(ui.path.setSelectByFilename(t),e&&(selectNameArr=[],"explorer"==Config.pageApp)){if("share"==G.share_page)return;ui.tree.checkIfChange(G.this_path)}})},600)};uploader.on("fileQueued",function(e){if(!core.uploadCheck())return uploader.skipFile(e),uploader.removeFile(e),void 0;var t;try{t=e.source.source.fullPath,void 0!=e.source.source.webkitRelativePath&&""!=e.source.source.webkitRelativePath&&(t=e.source.source.webkitRelativePath)}catch(i){}if(e.fullPath=t,e.source&&e.source.source&&1==e.source.source.isDirectory&&e.source.source.fullPath)return ui.pathOperate.newFolder(G.this_path+e.fullPath),uploader.skipFile(e),uploader.removeFile(e),void 0;if(0==e.size)return ui.pathOperate.newFile(G.this_path+e.fullPath),uploader.skipFile(e),uploader.removeFile(e),file_finished++,file_num++,void 0;var a=e.fullPath;e.finished=!1,e.upload_to=G.this_path,(void 0==a||"undefined"==a)&&(a=e.name),file_num++;var n=$(".uploader-list"),o=''+'
'+htmlEncode(core.pathThis(a))+" "+'
'+core.fileSize(e.size)+" "+'
'+LNG.upload_ready+" "+'
'+'
';(1e3==file_num||2e3==file_num)&&Tips.tips(LNG.upload_tips_more,"warning"),0==n.length?setTimeout(function(){$(".uploader-list").prepend(o),uploader.upload()},100):(n.prepend(o),uploader.upload())}).on("uploadBeforeSend",function(e,t,i){var a=urlEncode(e.file.fullPath);(void 0==a||"undefined"==a)&&(a=""),t.fullPath=a,t.upload_to=e.file.upload_to,i["X-CSRF-TOKEN"]=Cookie.get("X-CSRF-TOKEN")}).on("uploadProgress",function(e,t){$(".dialog_file_upload .aui_title").text(LNG.uploading+": "+file_finished+"/"+file_num+" ("+currentSpeed+")");var i=getSpeed(e,t),a=$("#"+e.id),n=a.find(".progress .progress-bar");n.length||(n=$('').appendTo(a).find(".progress-bar")),a.find(".state").text((100*t).toFixed(1)+"%("+i+")"),n.css("width",100*t+"%")}).on("uploadAccept",function(e,t){if(e.file.serverData=t,!t.code)return e.serverNeedRetry=!0,!1;try{e.file.fullPath||selectNameArr.push(t.info)}catch(i){}}).on("uploadSuccess",function(e){var t=$("#"+e.id);if(!t.inScreen()){var i=36*t.index(".item");$(".uploader-content").scrollTop(i)}file_finished++;var a=e.serverData;if(a&&a.data){var n=LNG[a.data];if(a.code){if(t.addClass("success"),t.find(".state").text(n),t.find(".remove").addClass("icon-ok").addClass("open").removeClass("icon-remove").removeClass("remove"),a.info){var o="/"+ltrim(htmlEncode(a.info),"/");t.find(".info .title").html(core.pathThis(o)).attr("title",o).attr("data-name",o)}}else t.addClass("error").find(".state").addClass("error"),t.find(".state").text(n).attr("title",n)}uploader.removeFile(e),t.find(".progress").fadeOut(),e.fullPath||pathReload(!1)}).on("uploadError",function(e,t){var i=LNG.upload_error+"("+t+")";if(e.serverData){var a=5;if((-1!==e.serverData._raw.indexOf("[Error Code:1001]")||-1!==e.serverData._raw.indexOf("[Error Code:1002]")||-1!==e.serverData._raw.indexOf("[Error Code:1010]"))&&(e.errorNum||(e.errorNum=0),e.errorNum++,a>=e.errorNum))return uploader.retry(e),void 0;if(-1!==e.serverData._raw.indexOf(""))return $.each(uploader.getFiles(),function(e,t){uploader.skipFile(t),uploader.removeFile(t)}),Tips.tips("login error!",!1),void 0;if(e.serverData.data){var n=e.serverData.data;i=LNG[n]?LNG[n]:n}else e.serverData._raw&&(i=e.serverData._raw)}"http"==t&&(i=LNG.upload_error_http),"abort"==t&&void 0==e.serverData&&(i=LNG.not_support+"(support on chrome)"),file_finished++,$("#"+e.id).find(".progress").fadeOut(),$("#"+e.id).addClass("error").find(".state").addClass("error"),$("#"+e.id).find(".state").html(i).attr("title",i)}).on("uploadFinished",function(){$(".dialog_file_upload .aui_title").text(LNG.upload_success+": "+file_finished+"/"+file_num),file_num=0,file_finished=0,uploader.reset(),pathReload(!0)}).on("error",function(e){Tips.tips(e,!1)});var timer;inState=!1,dragOver=function(){if(0==inState){if(inState=!0,!core.uploadCheck(void 0,!1))return;var e='";MaskView.tips(e),$("#windowMaskView").css({background:"#4285f4",opacity:"0.8"})}timer&&window.clearTimeout(timer)},dragLeave=function(e){stopPP(e),timer&&window.clearTimeout(timer),timer=window.setTimeout(function(){inState=!1,MaskView.close()},100)},dragDrop=function(e){try{if(e=e.originalEvent||e,core.uploadCheck())if(e.dataTransfer.files.length>0&&e.dataTransfer.files[0].name)core.upload(),core.playSound("drag_upload");else{var t=e.dataTransfer.getData("text/plain");t&&"http"==t.substring(0,4)&&ui.pathOperate.appAddURL(t)}stopPP(e)}catch(e){}inState&&(inState=!1,MaskView.close())}}}}),define("app/common/core.api",[],function(){var e=function(e,t,i){var a=$(i.DOM.wrap),n=t.frames.OpenpathSelectApi,o=' ';"file"==e.type&&(o+=''+e.allowExt+" "),$(o).insertBefore(a.find(".aui_state_highlight"));var s=function(t){var i=e.allowExt.split("|"),a=core.pathExt(t);return""==e.allowExt||""!=e.allowExt&&-1!=$.inArray(a,i)?!0:!1},r=function(){var t=n.ui.fileLight.fileListSelect(),i=[];if(e.single){var a=$(t.get(0));if("all"==e.type&&0==t.length)i={file:[],folder:[]};else if("file"==e.type&&0==t.length)i=[];else if("folder"==e.type)i=[n.G.this_path],a.hasClass("folderBox")&&(i=[n.ui.fileLight.path(a)]);else if("file"==e.type){if(a.hasClass("fileBox")){var o=n.ui.fileLight.path(a);s(o)&&(i=[o])}}else if("all"==e.type)if(a.hasClass("folderBox")){var o=n.ui.fileLight.path(a);i=[{file:[],folder:[o]}]}else if(a.hasClass("fileBox")){var o=n.ui.fileLight.path(a);s(o)&&(i={file:[o],folder:[]})}}else{var r=[],l=[];t.each(function(){if($(this).hasClass("fileBox")){var e=n.ui.fileLight.path($(this));s(e)&&r.push(e)}else $(this).hasClass("folderBox")&&l.push(n.ui.fileLight.path($(this)))}),"folder"==e.type?i=l:"file"==e.type?i=r:"all"==e.type&&(i={file:r,folder:l})}c(i)},l=function(e){var e=trim(e,"/");return e==G.KOD_GROUP_ROOT_SELF||e==G.KOD_GROUP_ROOT_ALL||e==G.KOD_USER_FAV||e==G.KOD_USER_SHARE?!1:!0},c=function(t){var i=a.find(".path_select_input"),o=a.find(".aui_state_highlight");if("all"!=e.type){for(var s=[],r=0;t.length>r;r++)l(t[r])&&s.push(t[r]);t=s}if(0==t.length||"all"==e.type&&0==t.file.length&&0==t.folder.length)o.addClass("disable"),i.attr("result",""),i.val("");else{var c=hashEncode(jsonEncode(t)),d="";if(e.single)d=n.core.pathThis(t[0]);else{var p=t;"all"==e.type&&(p=t.folder.concat(t.file)),$.each(p,function(e,t){d+=n.core.pathThis(t)+", "})}o.removeClass("disable"),i.attr("result",c),i.val(d)}},d=function(){n.ui.fileLight.select.hook("select",n.ui.fileLight,{before:function(){},after:function(){r()}})};n.kodReady||(n.kodReady=[]),n.kodReady.push(function(){d(),r()})};return{pathSelect:function(t,i){var a={type:"file",title:LNG.path_api_select_file,single:!0,allowExt:"",firstPath:!1},n="./index.php?/explorer&type=iframe";t=$.extend(a,t),t.firstPath&&(n+="&path="+t.firstPath);var o=ShareData.frameTop(),s=o.$.dialog.open(n,{id:"pathSelectApi",resize:!0,fixed:!0,ico:core.icon("folder"),title:t.title,lock:!0,background:"#000",opacity:.1,width:840,height:420,ok:function(){if("function"==typeof i){var e=s.DOM.wrap,a=e.find(".path_select_input").attr("result");a=jsonDecode(hashDecode(a)),a?t.single&&"all"!=t.type?i(a[0]):i(a):Tips.tips(LNG.error,!1)}},cancel:!0});e(t,o,s)},randomImage:function(e){$.getJSON("//kalcaddle.com/tools/version/?wallpage/index&lang="+G.lang+"&callback=?",function(t){"function"==typeof e&&e(t)})}}}),define("app/common/core.playSound",["./myPlayer"],function(e){var t={file_remove:"file_remove.mp3",recycle_clear:"recycle_clear.mp3",folder_open:"folder_open.mp3",window_min:"window_min.mp3",error:"error_tips.mp3",drag_upload:"drag_upload.mp3",drag_drop:"drag_drop.mp3"},i=function(t){var i="x-play-sound";0==$("."+i).length&&$('
').appendTo("body");var a=G.static_path+"others/sound/"+t,n=e("./myPlayer");n.playSound(a,$("."+i))};return{playSoundFile:i,playSound:function(e){G&&G.user_config&&"1"==G.user_config.sound_open&&setTimeout(function(){i(t[e])},100)}}}),define("app/common/core.zipView",[],function(){return function(e){var t,i={view:{showLine:!1,selectedMulti:!1,expandSpeed:"fast",dblClickExpand:!1,addDiyDom:function(e,t){var i=15,a=$("#"+t.tId+"_switch"),n=$("#"+t.tId+"_ico");a.remove(),t.iconSkin=t.tree_icon;var o=t.tree_icon;if(t.ext?o=t.ext:t.tree_icon||(o=t.type),n.before(a).before(''+core.iconSmall(o)+" ").remove(),void 0!=t.ext&&n.attr("class","").addClass("file "+t.ext).removeAttr("style"),t.level>=1){var s=" ";a.before(s)}var r=''+date(LNG.time_type,t.mtime)+" ";r+=''+core.fileSize(t.size)+" ",r+='',$("#"+t.tId+"_span").after(r),a.parent().addClass(t.menuType)}},callback:{onClick:function(e,i,a){$(e.target).hasClass("menu_more")||(t.selectNode(a),f(a),"folder"==a.type&&$("#"+a.tId+"_switch").click())},onCollapse:function(e,t){_(t)},onExpand:function(e,t){_(t)},beforeRightClick:function(e,i){i&&(f(i),t.selectNode(i))},onDblClick:function(e,i,a){$(e.target).hasClass(".menu_more")||"file"==a.type&&o("open",t)}}},a=function(e){for(var t=function(e){for(var i=0;e.length>i;i++)if(void 0!=e[i]){var a=e[i];e[i]={name:core.pathThis(a.filename),path:a.filename,isParent:!!a.child,type:a.folder?"folder":"file",menuType:a.folder?"menuZipListFolder":"menuZipListFile",ext:core.pathExt(a.filename),mtime:a.mtime,index:a.index,size:a.size,child:a.child},a.folder&&delete e[i].ext,e[i].child?(e[i].children=e[i].child,delete e[i].child,t(e[i].children)):delete e[i].child}else delete e[i]},i={},a=0;e.length>a;a++)"string"!=typeof e[a].filename&&e[a].stored_filename&&(e[a].filename=e[a].stored_filename),"string"==typeof e[a].filename&&(e[a].filename=e[a].filename.replace(/\\/g,"/"),i[e[a].filename]=e[a]);for(var n in i)if(!i[n].folder)for(var o=core.pathFather(i[n].filename);""!=o&&"/"!=o&&!i[o]&&!i[rtrim(o,"/")];)i[o]={filename:o,folder:!0,mitme:0,size:0,index:-1},o=core.pathFather(o);var s=[];for(var n in i){var r=i[n],l=core.pathFather(r.filename);if(i[l]&&(l=core.pathFather(r.filename)),i[rtrim(l,"/")]&&(l=rtrim(l,"/")),i[l])i[l].child||(i[l].child=[]),i[l].child.push(i[r.filename]);else{var c=i[r.filename];c&&s.push(c)}}return t(s),s},n=function(){$.contextMenu({selector:".menuZipListFolder",className:"menuZipListFolder",zIndex:9999,callback:function(e){o(e)},items:{unzip_this:{name:LNG.unzip_this,className:"unzip_this",icon:"external-link"},unzip_to:{name:LNG.unzip_to,className:"unzip_to",icon:"external-link"},sep1:"--------",info:{name:LNG.info,className:"info",icon:"info",accesskey:"i"}}}),$.contextMenu({selector:".menuZipListFile",className:"menuZipListFile",zIndex:9999,callback:function(e){o(e)},items:{open:{name:LNG.open,className:"open",icon:"external-link",accesskey:"o"},down:{name:LNG.download,className:"down",icon:"cloud-download",accesskey:"x"},sep1:"--------",unzip_this:{name:LNG.unzip_this,className:"unzip_this",icon:"external-link"},unzip_to:{name:LNG.unzip_to,className:"unzip_to",icon:"external-link"},sep2:"--------",info:{name:LNG.info,className:"info",icon:"info",accesskey:"i"}}}),$(".menuZipListFile .menu_more,.menuZipListFolder .menu_more").die("click").live("click",function(e){var t=$(this).offset();t.top+=$(this).outerHeight(),$(this).contextMenu({x:e.pageX,y:t.top})})},o=function(e,t){if(void 0==t){var i=$(".context-menu-active").parents(".ztree");if(0==i.length)return;t=$.fn.zTree.getZTreeObj(i.attr("id"))}var a=t.getSelectedNodes()[0];switch(e){case"open":c(t,a);break;case"down":l(t,a);break;case"unzip_this":p(t,a);break;case"unzip_to":d(t,a);break;case"info":h(t,a);break;default:}},s={file_num:0,folder_num:0,size:0},r=function(e){if("folder"==e.type){if(s.folder_num++,e.children)for(var t=0;e.children.length>t;t++)r(e.children[t])}else s.file_num++,s.size+=parseInt(e.size)},l=function(e,t){e.setting.filePath;var i=e.setting.fileUrl,a=i+"&download=1&index="+t.index;ui.pathOpen.downloadUrl(a)},c=function(e,t){e.setting.filePath;var i=e.setting.fileUrl,a=i+"&index="+t.index+"&name=/"+urlEncode(t.path),n=t.ext;"zip"==n&&(n="unknow"),t.size>=31457280&&(Tips.tips(LNG.zipview_file_big,"warning"),n="unknow"),ui.pathOpen.open(a,n)},d=function(e,t){core.api.pathSelect({type:"folder",title:LNG.unzip_to},function(i){p(e,t,i)})},p=function(e,t,i){var a=e.setting.filePath;e.setting.fileUrl,void 0==i&&(i=G.this_path,void 0==i&&(i=core.pathFather(a)));var n="./index.php?explorer/unzip";$.ajax({url:n,data:{path:a,path_to:i,unzip_part:t.index},type:"POST",dataType:"json",beforeSend:function(){Tips.loading(LNG.unziping)},error:core.ajaxError,success:function(e){return Tips.close(e),"editor"==Config.pageApp?(ui.tree.refreshPath(core.pathFather(a)),void 0):(ui.f5(!0,!0,function(){var e=i+core.pathThis(t.path);ui.path.setSelectByFilename(e)}),void 0)}})},f=function(e){var t=u(e),i=LNG.size+" "+t.size_friendly+" ("+t.size+" Byte)";"folder"==e.type&&(i=t.file_num+LNG.file+","+t.folder_num+LNG.folder+", "+i),$("#"+e.tId).parents(".zipViewContent").find(".bottom .info").html(i)},u=function(e){var t={name:e.name,path:e.path,size:e.size,size_friendly:core.fileSize(e.size),mtime:date(LNG.time_type_info,e.mtime)};return 0==e.level&&(t.path=t.name),"folder"==e.type&&(s={file_num:0,folder_num:0,size:0},r(e),$.extend(t,s),t.size_friendly=core.fileSize(t.size)),t},h=function(e,t){var i="folder"==t.type?"folder":core.pathExt(t.path),a="folder"==t.type?tpl_path_info:tpl_file_info,n=template.compile(a),o=u(t);o.LNG=LNG,$.dialog({padding:5,ico:core.iconSmall(i),fixed:!0,title:core.pathThis(t.path),content:n(o),ok:!0})},m=function(e,t,i){var a=template.compile(tpl_zipview),n=a({LNG:LNG,treeID:e}),o=$.dialog({className:"zipViewDialog",id:"zip_view_"+md5(i),ico:core.icon("zip"),title:t,width:550,height:420,content:n,resize:!0,padding:0,fixed:!0}),s=15*$(".zipViewContent").length;o.DOM.wrap.css({left:"+="+s+"px",top:"+="+s+"px"})},_=function(e){$("#"+e).find("ul:visible > li > a").each(function(e){$(this).removeClass("odd"),0==e%2&&$(this).addClass("odd")})},v=function(e,o,s){var r=a(o),l="folderListZip"+UUID();r=ui.tree.treeDataSort(r),m(l,e,s),n(),r={name:e,ext:"zip",mtime:"",isParent:!0,open:!0,children:r,type:"folder",path:"",index:"-1",menuType:"menuZipListFolder"},$.fn.zTree.init($("#"+l),i,r),t=$.fn.zTree.getZTreeObj(l),_(l),f(t.getNodeByParam("index","-1",null))},g=function(e){var i=$(".zip_view_"+md5(e));if(i.length>0)return i.shake(3,20,80),void 0;var a="explorer/unzipList&access_token="+G.access_token+"&path="+urlEncode(e);return G.share_page!==void 0?(a="share/unzipList&user="+G.user+"&sid="+G.sid+"&path="+urlEncode(e),ui.pathOpen.openUnknow(e),void 0):(a=G.app_host+"index.php?"+a,$.ajax({url:a,dataType:"json",beforeSend:function(){Tips.loading(LNG.loading)},error:core.ajaxError,success:function(i){Tips.close(i),i.code?(v(core.pathThis(e),i.data,e),t.setting.filePath=e,t.setting.fileUrl=a):ui.pathOpen.openUnknow(e,i.data)}}),void 0)};g(e)}}),define("app/common/tpl/copyright.html",[],'\n
\n
{{if core.versionType==\'A\'}}KodExplorer {{else}} {{LNG.kod_name}} {{/if}} v{{G.version}}
\n
——{{LNG.kod_name_copyright}}
\n
\n
\n
{{#LNG.copyright_desc}}
\n
{{#LNG.copyright_contact}}
\n
{{#LNG.copyright_info}}
\n
\n
\n'),define("app/common/tpl/theme_diy.html",[],"@media screen and (max-width:100000px) {\n body .full_background{\n position: absolute;top: 0px;left: 0px;bottom: 0px;right: 0px;\n background-color: #020202;background-size: 100% 100%;\n }\n\n {{if blur_size= (bg_blur==0?0:10) }}{{/if}}\n body .full_background:before{\n -webkit-filter: blur({{blur_size}}px);\n -moz-filter: blur({{blur_size}}px);\n -ms-filter: blur({{blur_size}}px);\n filter: blur({{blur_size}}px);\n }\n {{if bg_type == 'image'}}\n body .full_background,\n body .full_background:before,\n body #body .menu_left,\n body #body .app_menu_left,\n body .aui_buttons,\n body .aui_state_focus .aui_title,body .aui_title{\n background-image:url({{bg_image}});\n }\n body .aui_state_focus .aui_title,body .aui_title{\n background-size:100%;\n }\n {{else}}\n body .full_background,\n body .full_background:before,\n body #body .menu_left, \n body #body .app_menu_left,\n body .aui_buttons,\n body .aui_state_focus .aui_title,body .aui_title{\n background:{{end_color}};\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='{{start_color}}', endColorstr='{{end_color}}');\n background-image: -webkit-linear-gradient({{color_rotate}}deg, {{start_color}}, {{end_color}});\n background-image: -moz-linear-gradient({{color_rotate}}deg, {{start_color}}, {{end_color}});\n background-image: -o-linear-gradient({{color_rotate}}deg, {{start_color}}, {{end_color}});\n background-image: -ms-linear-gradient({{color_rotate}}deg, {{start_color}}, {{end_color}});\n background-image: linear-gradient({{color_rotate}}deg, {{start_color}}, {{end_color}});\n }\n {{/if}}\n}\n"),define("app/src/explorer_wap/path",["../../common/pathOperate","../../common/pathOpen","../../common/myPlayer"],function(e){var t=e("../../common/pathOperate"),a=e("../../common/pathOpen"),n=function(e,t,i){if(void 0!=e){if(e==G.this_path)return void 0!=t&&""!=t&&Tips.tips(LNG.path_is_current,"info"),void 0;G.this_path=e.replace(/\\/g,"/"),G.this_path=e.replace(/\/+/g,"/"),"/"!=G.this_path.substr(G.this_path.length-1)&&(G.this_path+="/");var a=window.location.origin+window.location.pathname+window.location.search;window.location.href=a+"#"+urlEncode(G.this_path),ui.f5Callback(function(){"function"==typeof i&&i()})}},o=function(e,t){if(void 0!=e){if("folder"==t)return ui.path.list(e+"/"),void 0;var i=core.path2url(e),n=["pdf","html","htm"];if("oexe"==t)if("string"==typeof e){var o=e;"string"!=typeof e&&(o=e.content.split("'")[1]),core.fileGet(o,function(e){var t=jsonDecode(e);t.name=core.pathThis(o),core.openApp(t)})}else core.openApp(e);else if("pdf"==t){var i="./lib/plugins/pdfjs/web/viewer.html?file="+urlEncode(core.path2url(e));window.location.href=i}else if(inArray(core.filetype.music,t)||inArray(core.filetype.movie,t)){var s=navigator.userAgent.indexOf("Android")>-1||navigator.userAgent.indexOf("Adr")>-1;if(s){a.play([{url:i,name:urlDecode(core.pathThis(e)),ext:t}]);try{setTimeout(function(){$.artDialog.list.movie_player_dialog&&$.artDialog.list.movie_player_dialog._clickMax()},500)}catch(r){}}else window.location.href=i}else if(inArray(core.filetype.doc,t)){var i="./index.php?explorer/officeView&access_token="+G.access_token+"&path="+urlEncode(e);G.share_page!==void 0&&(i=G.app_host+"index.php?share/officeView&user="+G.user+"&sid="+G.sid+"&path="+urlEncode(e)),window.location.href=i}else if(inArray(n,t))window.location.href=i;else if(inArray(core.filetype.text,t)){var i=G.app_host+"index.php?editor/edit#filename="+urlEncode(e);G.share_page!==void 0&&(i=G.app_host+"index.php?share/edit&user="+G.user+"&sid="+G.sid+"#filename="+urlEncode(e)),window.location.href=i}else if(inArray(core.filetype.image,t))ui.openImage(e);else{var i=G.app_host+"index.php?explorer/fileDownload&path="+urlEncode(e);G.share_page!==void 0&&(i=G.app_host+"index.php?share/fileDownload&user="+G.user+"&sid="+G.sid+"&path="+urlEncode(e));var l='";$.dialog({fixed:!0,icon:"warning",width:30,lock:!0,background:"#000",opacity:.2,title:LNG.unknow_file_title,padding:10,content:l,cancel:!0})}}},s=function(e,t,a){var n=e.length;for(i=0;n>i;i++)if(e[i][t]==a)return e[i]},r=function(e){var t="",i=0;return null!=G.json_data.filelist&&(t=s(G.json_data.filelist,"name",e),null!=t&&(i=1)),null!=G.json_data.folderlist&&(t=s(G.json_data.folderlist,"name",e),null!=t&&(i=1)),i},l=function(e,t){var i,a=0;if(void 0==t){if(!r(e))return e;for(i=e+"(0)";r(i);)a++,i=e+"("+a+")";return i}if(!r(e+"."+t))return e+"."+t;for(i=e+"(0)."+t;r(i);)a++,i=e+"("+a+")."+t;return i},c=function(){$.dialog.prompt("",function(e){t.newFolder(G.this_path+e,function(){ui.f5()})},l("folder"))},d=function(){$.dialog.prompt("",function(e){t.newFile(G.this_path+e,function(){ui.f5()})},l("file","txt"))},p=function(e){$.dialog.prompt("",function(i){var a=core.pathFather(e)+i;t.rname(e,a,function(){ui.f5()})},core.pathThis(e))},f=function(e,t,i){return"folder"!=i&&(i="file"),e?[{path:t,type:i}]:{path:t,type:i}};return{pathOperate:t,pathOpen:a,download:function(e,i){"folder"==i?t.zipDownload([{path:e,type:"folder"}]):a.download(e)},remove:function(e,i){t.remove(f(!0,e,i),ui.f5)},copy:function(e,i){t.copy(f(!0,e,i))},cute:function(e,i){t.cute(f(!0,e,i),ui.f5)},info:function(e,i){t.info(f(!0,e,i))},past:function(){t.past(G.this_path,ui.f5)},open:o,list:n,newFolder:c,newFile:d,rname:p}}),define("app/common/pathOperate",[],function(e){var t=["/","\\",":","*","?",'"',"<",">","|"],i=["/","\\"],a=function(e){var a=function(e,t){for(var i=t.length,a=0;i>a;a++)if(e.indexOf(t[a])>0)return!0;return!1},n=i;return G.system_os&&"windows"==G.system_os&&(n=t),a(e,n)?(Tips.tips(LNG.path_not_allow+": "+n.join(", "),!1),!1):!0},n=function(e){for(var t=[],i=function(e){return e?e.replace(/"/g,'\\\\"'):e},a=0;e.length>a;a++)t.push({type:i(e[a].type),path:urlEncode(i(e[a].path))});return"data_arr="+jsonEncode(t)},o=function(e,t){for(var i="0123456789零一二三四五六七八九十百千万壹贰叁肆伍陆柒捌玖拾佰仟万",a=0;Math.max(e.length,t.length)>a;a++)if(e.charAt(a)!=t.charAt(a)){var n=i.indexOf(e.charAt(a)),o=i.indexOf(t.charAt(a));return-1!=n&&-1!=o?n>o?1:o>n?-1:0:e.charAt(a)>t.charAt(a)?1:e.charAt(a)c)return-1;if(c>d)return 1}for(var p=0,f=Math.max(r.length,l.length);f>p;p++)if(oFxNcL=parseFloat(r[p])||r[p],oFyNcL=parseFloat(l[p])||l[p],oFxNcL!=oFyNcL)if("string"==typeof oFxNcL&&"string"==typeof oFyNcL){var u=o(oFxNcL,oFyNcL);if(0!=u)return u}else{if(oFyNcL>oFxNcL)return-1;if(oFxNcL>oFyNcL)return 1}return 0},r=function(e,t){if(e){var i=core.pathThis(e);return a(i)?($.ajax({dataType:"json",url:"index.php?explorer/mkfile&path="+urlEncode(e),beforeSend:function(){Tips.loading()},error:core.ajaxError,success:function(e){Tips.close(e),"function"==typeof t&&(e&&e.info?t(e.info):t(!1))}}),void 0):("function"==typeof t&&t(),void 0)}},l=function(e,t){if(e){var i=core.pathThis(e);return a(i)?($.ajax({dataType:"json",url:"index.php?explorer/mkdir&path="+urlEncode(e),beforeSend:function(){"function"==typeof t&&Tips.loading()},error:core.ajaxError,success:function(e){Tips.close(e),"function"==typeof t&&(e&&e.info?t(e.info):t(!1))}}),void 0):("function"==typeof t&&t(),void 0)}},c=function(e,t,i){return e&&t&&e!=t?a(core.pathThis(t))?($.ajax({type:"POST",dataType:"json",url:"index.php?explorer/pathRname",data:"path="+urlEncode(e)+"&rname_to="+urlEncode(t),beforeSend:function(){Tips.loading()},error:core.ajaxError,success:function(e){Tips.close(e),"function"==typeof i&&(e&&e.info?i(e.info):i(!1))}}),void 0):("function"==typeof i&&i(),void 0):void 0},d=function(e,t,i,a){if(i=void 0==i?!1:i,a=void 0==a?!1:a,window.event&&window.event.shiftKey&&(a=!0),!(1>e.length)){var o=LNG.remove_title,s=LNG.remove_info,r="index.php?explorer/pathDelete",l=n(e);if("share"==e[0].type&&(o=LNG.share_remove,s=LNG.share_remove_tips,r="index.php?userShare/del"),a&&(s=LNG.remove_info_force,o=LNG.remove_title_force,r+="&shiftDelete=1"),("recycle_clear"==e[0].type||G.USER_RECYCLE&&G.this_path==G.USER_RECYCLE||G.this_path==core.pathFather(G.myhome)+"recycle_kod/")&&(s=LNG.recycle_clear_info,r="index.php?explorer/pathDeleteRecycle",o=LNG.recycle_clear,"recycle_clear"==e[0].type&&(l={})),e[0]&&e[0].path){var c=""+htmlEncode(core.pathThis(e[0].path))+" ";s=e.length>1?c+' ... '+e.length+LNG.remove_item+" "+s:c+" "+s}var d=function(){$.ajax({url:r,type:"POST",dataType:"json",data:l,beforeSend:function(){Tips.loading()},error:core.ajaxError,success:function(i){if(Tips.close(i),ShareData.frameTop("",function(e){e.ui.f5()}),"share"==e[0].type){G.self_share=i.info;var a=$.dialog.list.share_dialog;void 0!=a&&a.close()}o==LNG.recycle_clear?core.playSound("recycle_clear"):core.playSound("file_remove"),"function"==typeof t&&t(i)}})};i?d():$.dialog({id:"dialog_path_remove",fixed:!0,icon:"question",title:o,padding:"40px 80px 40px 30px",lock:!0,background:"#000",opacity:.1,content:s,ok:d,cancel:!0})}},p=function(e){1>e.length||$.ajax({url:"index.php?explorer/pathCopy",type:"POST",dataType:"json",data:n(e),error:core.ajaxError,success:function(e){Tips.tips(e)}})},f=function(e){var t=e.path,i=core.pathPre(t);if(i==G.KOD_GROUP_PATH||i==G.KOD_GROUP_SHARE||i==G.KOD_USER_SHARE)return Tips.tips(LNG.path_can_not_action,"warning"),void 0;var a="folder"==e.type?"folder":"file";1>t.length||core.authCheck("userShare:set")&&$.ajax({url:"./index.php?userShare/checkByPath&path="+urlEncode(t),dataType:"json",error:core.ajaxError,success:function(e){if(e.code)u(e.data);else{G.self_share=e.info;var i={path:t,type:a,name:core.pathThis(t)};h(i,function(e){e.code?(G.self_share=e.info,ui.f5(),u(e.data)):(Tips.tips(e),u(void 0,function(){$(".content_info input[name=type]").val(a),$(".content_info input[name=path]").val(t),$(".content_info input[name=name]").val(core.pathThis(t)+"(1)"),"file"==a&&($(".label_code_read").addClass("hidden"),$(".label_can_upload").addClass("hidden"))}))})}}})},u=function(t,i){0!=$(".share_dialog").length&&$(".share_dialog").shake(3,30,100),e.async(["lib/jquery.datetimepicker/jquery.datetimepicker.css","lib/jquery.datetimepicker/jquery.datetimepicker.js"],function(){m(t),void 0!=i&&i()})},h=function(e,t){$.ajax({url:"index.php?userShare/set",data:e,type:"POST",dataType:"json",beforeSend:function(){$(".share_create_button").addClass("disabled")},error:function(){Tips.tips(LNG.error,!1)},success:function(e){$(".share_create_button").removeClass("disabled"),void 0!=t&&t(e)}})},m=function(t){var i=e("./tpl/share.html"),a=template.compile(i),n=a({LNG:LNG});$.dialog({id:"share_dialog",simple:!0,resize:!1,width:425,title:LNG.share,padding:"0",fixed:!0,content:n});var o="zh-CN"==G.lang?"ch":"en";$("#share_time").datetimepicker({format:"Y/m/d",formatDate:"Y/m/d",timepicker:!1,lang:o}),$("#share_time").unbind("blur").bind("blur",function(e){stopPP(e)});var s=function(e){if($(".share_setting_more").addClass("hidden"),void 0==e)$(".share_has_url").addClass("hidden"),$(".share_action .share_remove_button").addClass("hidden"),$(".content_info input[name=sid]").val(""),$(".content_info input[name=type]").val(""),$(".content_info input[name=name]").val(""),$(".content_info input[name=show_name]").val(""),$(".content_info input[name=path]").val(""),$(".content_info input[name=time_to]").val(""),$(".content_info input[name=share_password]").val(""),$(".share_view_info").addClass("hidden");else{e.can_upload===void 0&&(e.can_upload=""),t=e,e.show_name||(e.show_name=e.name),$(".content_info input[name=sid]").val(e.sid),$(".content_info input[name=type]").val(e.type),$(".content_info input[name=name]").val(e.name),$(".content_info input[name=show_name]").val(e.show_name),$(".content_info input[name=path]").val(e.path),$(".content_info input[name=time_to]").val(e.time_to),$(".content_info input[name=share_password]").val(e.share_password),$(".share_view_info").removeClass("hidden"),e.num_download===void 0&&(e.num_download=0),e.num_view===void 0&&(e.num_view=0);var i=LNG.share_view_num+e.num_view+" "+LNG.share_download_num+e.num_download;$(".share_view_info").html(i),"1"==e.code_read?$(".content_info input[name=code_read]").attr("checked","checked"):$(".content_info input[name=code_read]").removeAttr("checked"),"1"==e.not_download?$(".content_info input[name=not_download]").attr("checked","checked"):$(".content_info input[name=not_download]").removeAttr("checked"),"1"==e.can_upload?$(".content_info input[name=can_upload]").attr("checked","checked"):$(".content_info input[name=can_upload]").removeAttr("checked"),$(".share_has_url").removeClass("hidden"),"file"==e.type?($(".label_code_read").addClass("hidden"),$(".label_can_upload").addClass("hidden")):($(".label_code_read").removeClass("hidden"),$(".label_can_upload").removeClass("hidden"));var a=e.type;"folder"==e.type&&(a=1==e.code_read?"code_read":"folder");var n=G.app_host+"index.php?share/"+a+"&user="+G.user_id+"&sid="+e.sid;$(".content_info .share_url").val(n),(e.time_to||e.share_password||e.can_upload||e.code_read||e.not_download)&&$(".share_setting_more").removeClass("hidden"),$(".share_remove_button").removeClass("hidden"),$(".share_create_button").text(LNG.share_save)}},r=function(){$(".share_action .share_remove_button").unbind("click").click(function(){d([{type:"share",path:t.sid}],function(){ui.f5()})}),$(".content_info .share_more").unbind("click").click(function(){$(".share_setting_more").toggleClass("hidden")}),$(".share_action .share_create_button").unbind("click").click(function(){var e="";$(".share_dialog .content_info input[name]").each(function(){var t=urlEncode($(this).val());"checkbox"==$(this).attr("type")&&(t=$(this).attr("checked")?"1":""),e+="&"+$(this).attr("name")+"="+t}),h(e,function(e){e.code?(Tips.tips(LNG.success,!0),G.self_share=e.info,ui.f5(),s(e.data),$(".share_create_button").text(LNG.share_save)):Tips.tips(e)})}),$(".content_info .open_window").unbind("click").bind("click",function(){window.open($("input.share_url").val())}),$(".content_info .qrcode").unbind("click").bind("click",function(){core.qrcode($("input.share_url").val())});var e=$("input.share_url"),i=e.get(0);e.unbind("hover click").bind("hover click",function(){$(this).focus();var t=e.val().length;if($.browser.msie){var a=i.createTextRange();a.moveEnd("character",-i.value.length),a.moveEnd("character",t),a.moveStart("character",0),a.select()}else i.setSelectionRange(0,t)})};s(t),r()},_=function(e){$.ajax({url:"index.php?setting/set&k=wall&v="+urlEncode(e),dataType:"json",success:function(e){Tips.tips(e)}})},v=function(e,t,i,a,n){if(console.log(e,t,i,a,n),!(1>e.length)){var o,s=G.my_desktop;a&&(s=core.pathFather(e)),o="folder"==i?"ui.path.list(hashDecode('"+hashEncode(e)+"'));":"ui.path.open(hashDecode('"+hashEncode(e)+"'));";var r=urlEncode(s+t+".oexe"),l=core.getPathIcon(e);""==l.icon&&(l.icon=i),$.ajax({url:"./index.php?explorer/mkfile&path="+r,type:"POST",dataType:"json",data:{content:jsonEncode({type:"app_link",content:o,icon:l.icon})},success:function(e){Tips.tips(e),e.code&&(ShareData.frameTop("",function(e){e.ui.f5()}),"function"==typeof n&&n(e.info))}})}},g=function(e,t){if(!(1>e.length)){var i=core.pathThis(e),a=core.pathFather(e);
-jsrun="core.explorerCode('"+urlEncode(e)+"');";var n=urlEncode(a+i+"_project.oexe");$.ajax({url:"./index.php?explorer/mkfile&path="+n,type:"POST",dataType:"json",data:'content={"type":"app_link","content":"'+jsrun+'","icon":"folder.png"}',success:function(e){e.code&&"function"==typeof t&&t(e.info)}})}},b=function(e){1>e.length||$.ajax({url:"index.php?explorer/pathCute",type:"POST",dataType:"json",data:n(e),error:core.ajaxError,success:function(e){Tips.tips(e)}})},y=function(e,t){e&&(Tips.loading(LNG.moving),setTimeout(function(){var i="index.php?explorer/pathPast&path="+urlEncode(e);$.ajax({url:i,dataType:"json",error:core.ajaxError,success:function(e){Tips.close(e.data,e.code),"function"==typeof t&&t(e.info)}})},50))},x=function(t){var i={};i.file_info=e("./tpl/fileinfo/file_info.html"),i.path_info=e("./tpl/fileinfo/path_info.html"),i.path_info_more=e("./tpl/fileinfo/path_info_more.html"),1>t.length&&(t=[{path:G.this_path,type:"folder"}]);var a="info";1==t.length&&(a="file"==t[0].type?core.pathExt(t[0].path):"folder"),Tips.loading(LNG.getting),core.fileInfo(n(t),function(e){if(!e.code)return Tips.close(e),void 0;Tips.close(LNG.get_success,!0);var n="path_info_more",o=LNG.info;1==t.length&&(n="folder"==t[0].type?"path_info":"file_info",o=core.pathThis(t[0].path),o.length>15&&(o=o.substr(0,15)+"... "+LNG.info));var s=template.compile(i[n]),r=UUID();e.data.is_root=G.is_root,e.data.LNG=LNG,e.data.atime=date(LNG.time_type_info,e.data.atime),e.data.ctime=date(LNG.time_type_info,e.data.ctime),e.data.mtime=date(LNG.time_type_info,e.data.mtime),e.data.size_friendly=core.fileSize(e.data.size);var l=$.dialog({id:r,padding:5,ico:core.iconSmall(a),fixed:!0,title:o,content:s(e.data),ok:!0}),c=15*$(".aui_outer .pathinfo").length;l.DOM.wrap.css({left:"+="+c+"px",top:"+="+c+"px"}),k(r,t)})},k=function(e,t){var i=$("."+e);i.find(".open_window").bind("click",function(){window.open(i.find("input.download_url").val())}),i.find(".qrcode").unbind("click").bind("click",function(){core.qrcode(i.find("input.download_url").val(),i.find(".qrcode").get(0))});var a=i.find(".file_md5_loading");if(1==a.length){var o=n(t);o+="&get_md5=1",core.fileInfo(o,function(e){a.removeClass("file_md5_loading"),e.code?a.html(e.data.file_md5):a.html(LNG.error)})}var s=i.find("input.download_url"),r=s.get(0);s.unbind("hover click").bind("hover click",function(){$(this).focus();var e=s.val().length;if($.browser.msie){var t=r.createTextRange();t.moveEnd("character",-r.value.length),t.moveEnd("character",e),t.moveStart("character",0),t.select()}else r.setSelectionRange(0,e)}),i.find(".edit_chmod").click(function(){var e=$(this).parent().find("input"),i=$(this);$.ajax({url:"index.php?explorer/pathChmod&mod="+e.val(),type:"POST",data:n(t),beforeSend:function(){i.text(LNG.loading)},error:function(){i.text(LNG.button_save)},success:function(e){i.text(e.data).animate({opacity:.6},400,0).delay(1e3).animate({opacity:1},200,0,function(){i.text(LNG.button_save)}),e.code&&ui.f5()}})})},w=function(e){if(core.authCheck("explorer:fileDownload")&&!(1>e.length)){var t="index.php?explorer/zipDownload";G.share_page!==void 0&&(t="index.php?share/zipDownload&user="+G.user+"&sid="+G.sid),$.ajax({url:t,type:"POST",dataType:"json",data:n(e),beforeSend:function(){Tips.loading(LNG.zip_download_ready)},error:core.ajaxError,success:function(e){Tips.close(e),Tips.tips(e);var t="index.php?explorer/fileDownloadRemove&path="+urlEncode(e.info);G.share_page!==void 0&&(t="index.php?share/fileDownloadRemove&user="+G.user+"&sid="+G.sid+"&path="+urlEncode(e.info)),t+="&access_token="+G.access_token,$.dialog({icon:"succeed",title:!1,time:2,content:LNG.download_ready+"..."}),$('').appendTo("body")}})}},L=function(e,t,i){1>e.length||(i||(i="zip"),$.ajax({url:"index.php?explorer/zip&fileType="+i,type:"POST",dataType:"json",data:n(e),beforeSend:function(){Tips.loading(LNG.ziping)},error:core.ajaxError,success:function(e){Tips.close(e),e.code&&core.playSound("drag_drop"),"function"==typeof t&&t(e.info)}}))},N=function(e,t,i){if(e){var a=function(e){$.ajax({url:e,beforeSend:function(){Tips.loading(LNG.unziping)},error:core.ajaxError,success:function(e){Tips.close(e),"function"==typeof t&&t(e)}})},n="index.php?explorer/unzip&path="+urlEncode(e);"to_this"==i&&(n+="&to_this=1"),"unzip_to_folder"==i?core.api.pathSelect({type:"folder",title:LNG.unzip_to},function(e){n+="&path_to="+e,a(n)}):a(n)}},C=function(e,t,i){t&&$.ajax({url:"index.php?explorer/pathCuteDrag",type:"POST",dataType:"json",data:n(e)+"&path="+urlEncode(t+"/"),beforeSend:function(){Tips.loading(LNG.moving)},error:core.ajaxError,success:function(e){Tips.close(e),e.code&&core.playSound("drag_drop"),"function"==typeof i&&i(e.info)}})},T=function(e,t,i,a){t&&(void 0==a&&(a=0),$.ajax({url:"index.php?explorer/pathCopyDrag",type:"POST",dataType:"json",data:n(e)+"&path="+urlEncode(t+"/")+"&filename_auto="+Number(a),beforeSend:function(){Tips.loading(LNG.moving)},error:core.ajaxError,success:function(e){Tips.close(e),e.code&&core.playSound("drag_drop"),"function"==typeof i&&i(e.info)}}))},z=function(){var e=function(e,t){var i='null!
';if(0!=e.length){i=''+LNG.clipboard_state+LNG[t]+" ";for(var a=40,n=0;e.length>n;n++){var o=e[n],s=o.path;s=a>s.length?s:"..."+s.substr(-a),i+="
"+o.type+":
"+s+" "}i+="
"}return i};$.ajax({url:"index.php?explorer/clipboard",dataType:"json",error:core.ajaxError,success:function(t){t.code&&$.dialog({title:LNG.clipboard,padding:0,height:200,width:400,content:e(t.data,t.info)})}})},S=function(e,t,i){var a=function(){$.ajax({url:"index.php?fav/del&name="+urlEncode(e),dataType:"json",async:!1,success:function(e){"function"==typeof t&&t(e)}})};return i?(a(),void 0):($.dialog({id:"dialog_fav_remove",fixed:!0,icon:"question",title:LNG.fav_remove,width:200,padding:"40px 20px",content:LNG.fav_remove+"?",ok:a,cancel:!0}),void 0)},j=function(e){if(e){if(-1==trim(core.pathClear(e.path),"/").indexOf("/")){var t=core.getPathIcon(e.path,e.name);""!=t.icon&&(e.ext=t.icon,e.name=t.name)}$.ajax({url:"index.php?fav/add",dataType:"json",data:e,success:function(e){Tips.tips(e),e.code&&"desktop"!=Config.pageApp&&ui.tree.refreshFav()}})}},E=function(e){var t={};return t.type=e.find("input[type=radio]:checked").val(),t.content=e.find("textarea").val(),t.group=e.find("[name=group]").val(),e.find("input[type=text]").each(function(){var e=$(this).attr("name");t[e]=$(this).val()}),e.find("input[type=checkbox]").each(function(){var e=$(this).attr("name");t[e]="checked"==$(this).attr("checked")?1:0}),t},D=function(e){e.find(".type input").change(function(){var t=$(this).attr("apptype");e.find("[data-type]").addClass("hidden"),e.find("[data-type="+t+"]").removeClass("hidden")}),e.find(".app_edit_select_icon").unbind("click").bind("click",function(){var t=G.basic_path+"static/images/file_icon/icon_app/";G.is_root||(t=""),core.api.pathSelect({type:"file",title:LNG.path_api_select_file,firstPath:t},function(t){var t=core.path2url(t);e.find(".app_edit_select_icon_input").val(t)})}),e.find(".size-full").unbind("click").bind("click",function(){var t=$(this).prop("checked");t?(e.find("[name=width]").val("100%"),e.find("[name=height]").val("100%")):(e.find("[name=width]").val("800"),e.find("[name=height]").val("600"))})},P=function(t,i,a){var n,o,s,r=LNG.app_create,l=UUID(),c=e("./tpl/app_edit.html"),d=template.compile(c);switch(void 0==a&&(a="user_edit"),"root_edit"==a&&(t=t),"user_edit"==a||"root_edit"==a?(r=LNG.app_edit,s=d({LNG:LNG,uuid:l,data:t})):s=d({LNG:LNG,uuid:l,data:{}}),$.dialog({fixed:!0,width:450,id:l,padding:15,title:r,content:s,button:[{name:LNG.preview,callback:function(){return core.openApp(E(n)),!1}},{name:LNG.button_save,focus:!0,callback:function(){var e=E(n);switch(a){case"user_add":var s=urlEncode(G.this_path+e.name);o="./index.php?app/user_app&action=add&path="+s;break;case"user_edit":o="./index.php?app/user_app&path="+urlEncode(t.path);break;case"root_add":o="./index.php?app/add&name="+urlEncode(e.name);break;case"root_edit":o="./index.php?app/edit&name="+urlEncode(e.name)+"&old_name="+urlEncode(t.name);break;default:}$.ajax({url:o,type:"POST",dataType:"json",data:{data:urlEncode(jsonEncode(e))},beforeSend:function(){Tips.loading()},error:core.ajaxError,success:function(e){if(Tips.close(e),e.code)if("root_edit"==a||"root_add"==a){if(!e.code)return;ShareData.frameTop("Openapp_store",function(e){e.App.reload()})}else"function"==typeof i?i():ui.f5()}})}}]}),n=$("."+l),G.is_root||$(".appbox .appline .right a.open").remove(),t.group&&n.find("option").eq(t.group).attr("selected",1),n.find(".aui_content").css("overflow","inherit"),a){case"user_edit":n.find(".name").addClass("hidden"),n.find(".desc").addClass("hidden"),n.find(".group").addClass("hidden"),n.find("option[value="+t.group+"]").attr("checked",!0);break;case"user_add":n.find(".desc").addClass("hidden"),n.find(".group").addClass("hidden"),n.find("[apptype=url]").attr("checked",!0),n.find("[data-type=url] input[name=resize]").attr("checked",!0),n.find("input[name=width]").attr("value","800"),n.find("input[name=height]").attr("value","600"),n.find("input[name=icon]").attr("value","oexe.png");break;case"root_add":n.find("[apptype=url]").attr("checked",!0),n.find("[data-type=url] input[name=resize]").attr("checked",!0),n.find("input[name=width]").attr("value","800"),n.find("input[name=height]").attr("value","600"),n.find("input[name=icon]").attr("value","oexe.png");break;case"root_edit":n.find("option[value="+t.group+"]").attr("selected",!0);break;default:}D(n)},O=function(){core.appStore()},A=function(e){e&&4>e.length&&"http"!=e.substring(0,4)||$.ajax({url:"./index.php?app/get_url_title&url="+e,dataType:"json",beforeSend:function(){Tips.loading()},success:function(t){var i=t.data;i=i.replace(/[\/\\]/g,"_"),Tips.close(t);var a={content:e,type:"url",desc:"",group:"others",icon:"internet.png",name:i,resize:1,simple:0,height:"70%",width:"90%"},n=urlEncode(G.this_path+i);e="./index.php?app/user_app&action=add&path="+n,$.ajax({url:e,type:"POST",dataType:"json",data:{data:urlEncode(jsonEncode(a))},success:function(e){Tips.close(e),e.code&&ui.f5()}})}})};return{strSort:s,appEdit:P,appList:O,appAddURL:A,share:f,shareBox:u,setBackground:_,createLink:v,createProject:g,newFile:r,newFolder:l,rname:c,unZip:N,zipDownload:w,zip:L,copy:p,cute:b,info:x,remove:d,cuteDrag:C,copyDrag:T,past:y,clipboard:z,fav:j,favRemove:S}}),define("app/common/tpl/share.html",[],'\n
\n
{{LNG.share_title}}
\n
\n
\n
\n
\n
'),define("app/common/tpl/fileinfo/path_info_more.html",[],"\n
\n
{{LNG.info}}:
\n
\n {{file_num}} {{LNG.file}},{{folder_num}} {{LNG.folder}}
\n
\n
\n
\n
\n
{{LNG.size}}:
\n
{{size_friendly}} ({{size}} Byte)
\n
\n
\n \n
\n
\n
{{LNG.permission}}:
\n
{{mode}}
\n
\n
\n {{if is_root==\"1\"}}\n
\n
{{LNG.permission_edit}}:
\n
\n {{LNG.button_save}}
\n
\n
\n {{/if}}\n
\n"),define("app/common/tpl/app_edit.html",[],"\n
\n
\n
{{LNG.app_desc}}
\n
\n
\n
\n
\n
{{LNG.app_icon}}
\n
\n \n \n \n
\n
\n
\n
\n
{{LNG.app_group}}
\n
\n \n {{LNG.app_group_others}} \n {{LNG.app_group_game}} \n {{LNG.app_group_tools}} \n {{LNG.app_group_reader}} \n {{LNG.app_group_movie}} \n {{LNG.app_group_music}} \n {{LNG.app_group_life}} \n \n
\n
\n
\n
\n
\n
{{LNG.app_display}}
\n
\n \n {{LNG.app_display_border}} \n \n {{LNG.app_display_size}} \n
\n
\n
\n
\n
\n
{{LNG.app_code}}
\n
{{LNG.app_code}}
\n
{{LNG.app_url}}
\n
\n
\n
\n
\n"),define("app/common/pathOpen",["./myPlayer"],function(e){var t=function(e,t){if(void 0!=e){if(!core.pathReadable(e))return Tips.tips(LNG.no_permission_read_all,!1),core.playSound("error"),void 0;if("folder"==t)return"explorer"==Config.pageApp?ui.path.list(e+"/"):core.explorer(e),void 0;if("oexe"!=t){if(t||(t=core.pathExt(e)),l(t))return c(e),void 0;if("swf"==t)return $.dialog({resize:!0,fixed:!0,ico:core.icon("swf"),title:core.pathThis(e),width:"75%",height:"65%",padding:0,content:core.createFlash(core.path2url(e))}),void 0;if(inArray(core.filetype.archive_list,t))return core.zipView(e),void 0;if("url"==t)return core.fileGet(e,function(t){var i=t.match(/URL=(.*)/);i.length>=2?window.open(i[1]):s(e)}),void 0;if("webloc"==t)return core.fileGet(e,function(t){try{var i=$($.parseXML(t)),a=i.find("string").text();window.open(a)}catch(n){s(e)}}),void 0;if("html"==t||"htm"==t){var a=core.path2url(e);return core.openDialog(a,core.icon("html"),core.pathThis(e)),void 0}if(inArray(core.filetype.image,t)){var a=e;return-1==a.indexOf("http:")&&(a=core.path2url(a)),MaskView.image(a),void 0}if(inArray(core.filetype.music,t)||inArray(core.filetype.movie,t)){var a=core.path2url(e,!1);return p([{url:a,name:urlDecode(core.pathThis(e)),ext:t}]),void 0}if("pdf"!=t)return inArray(core.filetype.doc,t)?(c(e),void 0):inArray(core.filetype.text,t)?(s(e),void 0):("editor"==Config.pageApp?Tips.tips(t+LNG.edit_can_not,!1):i(e,""),void 0);var n=core.path2url(e),a="./lib/plugins/pdfjs/web/viewer.html?file="+urlEncode(n);if(canvasSupport()){var o="pdf"+UUID(),r='";$.dialog({resize:!0,fixed:!0,ico:core.icon(t),title:core.pathThis(e),width:800,height:400,padding:0,content:r}),PDFObject.embed(n,"#"+o)}else core.openDialog(a,core.icon(t),htmlEncode(core.pathThis(e)))}else if("string"==typeof e){var d=e;"string"!=typeof e&&(d=e.content.split("'")[1]),core.fileGet(d,function(e){var t=jsonDecode(e);t.name=core.pathThis(d),core.openApp(t)})}else core.openApp(e)}},i=function(e,t){void 0==t&&(t="");var i='";$.dialog({id:"open_unknow_dialog",fixed:!0,icon:"warning",title:LNG.unknow_file_title,padding:30,content:i,cancel:!0}),$(".unknow_file a").unbind("click").bind("click",function(){$.dialog.list.open_unknow_dialog.close()})},a=function(e){$.dialog({icon:"succeed",title:!1,time:1.5,content:LNG.download_ready+"..."}),isWap()?window.open(e):$('').appendTo("body")},n=function(e){if(core.authCheck("explorer:fileDownload",LNG.no_permissiondownload)&&e){if(!core.pathReadable(e))return Tips.tips(LNG.no_permission_read_all,!1),core.playSound("error"),void 0;var t="index.php?explorer/fileDownload&access_token="+G.access_token+"&path="+urlEncode(e);G.share_page!==void 0&&(t="index.php?share/fileDownload&user="+G.user+"&sid="+G.sid+"&path="+urlEncode(e)),"http"==e.substr(0,4)&&(t=e),a(t)}},o=function(e){if(void 0!=e){if(!core.pathReadable(e))return Tips.tips(LNG.no_permission_read_all,!1),core.playSound("error"),void 0;var t=core.path2url(e);window.open(t)}},s=function(e){if(e){if(!core.pathReadable(e))return Tips.tips(LNG.no_permission_read_all,!1),core.playSound("error"),void 0;var i=core.pathExt(e);return"Win32"==navigator.platform||"Windows"==navigator.platform,inArray(core.filetype.doc,i)?(c(e,!0),void 0):(core.pathThis(e),inArray(core.filetype.bindary,i)||inArray(core.filetype.music,i)||inArray(core.filetype.image,i)||inArray(core.filetype.movie,i)||inArray(core.filetype.doc,i)?(t(e,i),void 0):(r(e),void 0))}},r=function(e){var t=ShareData.frameTop();if(t.Editor!==void 0)return t.Editor.add(urlEncode(e)),void 0;if("editor"==Config.pageApp)return ShareData.frameChild("OpenopenEditor",function(t){t.Editor.add(urlEncode(e))}),void 0;if(ShareData.frameTop("OpenopenEditor")){var i=t.$.dialog.list.openEditor,a=0;i&&"hidden"==$(i.DOM.wrap).css("visibility")&&(a=200,i.display(!0).zIndex().focus()),setTimeout(function(){ShareData.frameTop("OpenopenEditor",function(t){t.Editor.add(urlEncode(e))})},a)}else{var n="./index.php?editor/edit#filename="+urlEncode(e);G.share_page!==void 0&&(n="./index.php?share/edit&user="+G.user+"&sid="+G.sid+"#filename="+urlEncode(e));var o=htmlEncode(urlDecode(core.pathThis(e)));core.openDialog(n,core.icon("edit"),o,"openEditor")}},l=function(e){if(!G.kodOffice)return!1;var t=".docx.doc.odt.rtf.djvu.fb2.epub.xps.//.docm.dotm.dot.dotx.mht.//.wps.wpt.";return t+=".xls.xlsx.ods.csv.//.xlt.xltx.xlsb.xlsm.//.et.ett.",t+=".pps.ppsx.ppt.pptx.odp.//.pot.potx.pptm.ppsm.potm.//.dps.dpt.",-1===t.indexOf("."+e+".")?!1:!0},c=function(e,t){var i="./index.php?explorer/officeView&access_token="+G.access_token+"&path="+urlEncode(e);return G.share_page!==void 0&&(i=G.app_host+"index.php?share/officeView&user="+G.user+"&sid="+G.sid+"&path="+urlEncode(e)),t!==void 0&&(i+="&is_edit=1"),"page"==G.kodOffice?(window.open(i),void 0):(core.openDialog(i,core.icon(core.pathExt(e)),htmlEncode(core.pathThis(e))),void 0)},d=function(t){if(t){"string"==typeof t&&(t=[t]);var i=e("./myPlayer");i.play(t)}},p=function(e){var t=ShareData.frameTop();t.ui.pathOpen.playerInstance(e)};return{open:t,playerInstance:d,play:p,openEditor:s,openEditorForce:r,openWindow:o,openUnknow:i,downloadUrl:a,download:n}}),define("app/common/myPlayer",[],function(e){var t="",i="",a="music_player",n="movie_player",o=function(e){var n=e==a?"mp3":"mp4",o="."+e+"_dialog",s=t,l={width:"70%",height:"60%"};e==a&&(s=i,l={width:"320px",height:"420px"});var c=$.dialog({id:e+"_dialog",simple:!0,ico:core.icon(n),title:"player",width:l.width,height:l.height,content:s,resize:!0,padding:0,fixed:!0,close:function(){var t=r(e);t.jPlayer("destroy")}});return c.DOM.wrap.addClass("myJPlayer"),$(o).find(".jPlayer-container")},s=function(e){return"music"==e?a:(void 0==e&&(e="mp3"),inArray(core.filetype.music,e)?a:n)},r=function(e){var t="."+e+"_dialog",i=$(t);return 0==i.length?!1:i.find(".jPlayer-container")},l=function(e){var t={mp4:"m4v",m4v:"m4v",mov:"m4v",ogv:"ogv",webm:"webmv",webmv:"webmv",flv:"flv",f4v:"flv",f4a:"flv",mp3:"mp3",wav:"wav",m4a:"mp3",aac:"mp3",ogg:"oga",oga:"oga",webma:"webma"},i=e.ext,a=t[i],n={extType:a,title:e.name,url:e.url,solution:"flv"==i||"f4v"==i?"flash":"html,flash"};return n[a]=e.url,n},c=function(e,t){if(t){var i=e.parents(".jPlayer"),a={solution:t.solution,swfPath:G.static_path+"js/lib/jPlayer/jquery.jplayer.swf"};i.attr("id",UUID()),e.jPlayer("destroy"),e.find(".jPlayer-container").children().remove(),e.jPlayer(jPlayerConfigInit(i,a)),e.find("object").length>0?i.addClass("flashPlayer"):i.removeClass("flashPlayer"),e.jPlayer("setMedia",t),setTimeout(function(){e.jPlayer("play")},150),jPlayerBindControl(i),setTimeout(function(){var e=i.parents(".dialog-simple").find(".aui_titleBar").attr("id"),a=$.dialog.list[e];a&&a.title(t.title)},100)}},d=function(e){var t=e[0].ext,i=s(t),n=r(i),d=l(e[0]);n||(n=o(i),i==a&&p.init()),i==a&&(d=p.insert(n,e,t)),c(n,d);try{$.dialog.list[i+"_dialog"].display(!0)}catch(f){}},p=function(){var e=[],t=0,i=null,a="circle",n=function(a,n){i=a;for(var s=e.length,r=0;n.length>r;r++){var c=!1,d=0;for(d=0;e.length>d;d++)if(e[d].url==n[r].url){c=!0;break}if(c){if(r==n.length-1)return t!=d&&o(d),!1}else e.push(l(n[r]))}return e.length==s?!1:(t=e.length-1,f(!0),e[t])},o=function(a){a=0>=a?0:a,a=a>=e.length-1?e.length-1:a,t=a;var n=e[a];c(i,n),f(!1)},s=function(i){switch(a){case"circle":"next"==i?e.length-1>t?o(t+1):o(0):0>t-1?o(e.length-1):o(t-1);break;case"rand":o(roundFromTo(0,e.length)-1);break;case"one":o(t);break;default:}},r=function(t){e.remove(t),o(t),f(!0)},d=function(t){var i=e[t],a=i.url+"&download=1";ui.pathOpen.downloadUrl(a)},p=function(){t=0,e=[],a="circle";var i=$(".jPlayer-music"),n=[{icon:"icon-retweet",loop:"circle"},{icon:"icon-random",loop:"rand"},{icon:"icon-refresh loop-one",loop:"one"}];i.find(".change-loop").unbind("click").bind("click",function(){var e=parseInt($(this).attr("data-loop"))+1;e=0>e?0:e,e=e>=n.length?0:e;var t=n[e];$(this).attr("data-loop",e).find("i").attr("class",t.icon),a=t.loop}),i.find(".play-backward").unbind("click").bind("click",function(){s("prev")}),i.find(".play-forward").unbind("click").bind("click",function(){s("next")}),i.find(".show-list").unbind("click").bind("click",function(e){i.parents(".music_player_dialog").toggleClass("hide-play-list"),stopPP(e)}),i.find(".play-list .item").die("click").live("click",function(e){var t=$(this).index();o(t),stopPP(e)}),i.find(".play-list .remove").die("click").live("click",function(e){var t=$(this).parents(".item"),i=t.index();return t.remove(),r(i),stopPP(e),!1}),i.find(".play-list .download").die("click").live("click",function(e){var t=$(this).parents(".item").index();return d(t),stopPP(e),!1})},f=function(a){var n=$(i).parents(".jPlayer");if(a){var o="";$.each(e,function(e,t){o+=' '+t.title+'
'}),n.find(".play-list .content").html(o)}return 0!=e.length&&e[t]?(n.find(".item-title").html(e[t].title),n.find(".item").removeClass("this"),n.find(".item:eq("+t+")").addClass("this"),u(n.find(".player-bg")),void 0):(t=0,n.find(".item-title").html(" "),i.jPlayer("destroy"),i.find(".jPlayer-container").children().remove(),void 0)},u=function(e){var t=h(),i=h(),a="160deg",n="background-image: -webkit-linear-gradient("+a+", "+t+", "+i+"); background-image: -moz-linear-gradient("+a+", "+t+", "+i+"); background-image: -o-linear-gradient("+a+", "+t+", "+i+"); background-image: -ms-linear-gradient("+a+", "+t+", "+i+"); background-image: linear-gradient("+a+", "+t+", "+i+");";e.attr("style",n)},h=function(){return"#"+(16777215*Math.random()<<0).toString(16)};return{insert:n,init:p}}(),f=function(a){var o=s(a[0].ext);o==n?e.async(["lib/jPlayer/kod.flat/template.js","lib/jPlayer/jquery.jplayer.min.js","lib/jPlayer/kod.flat/control.js","lib/jPlayer/kod.flat/style.css"],function(){t=jplayerTemplateMovie,d(a)}):e.async(["lib/jPlayer/kod.flat/template.js","lib/jPlayer/jquery.jplayer.min.js","lib/jPlayer/kod.flat/control.js","lib/jPlayer/kod.flat/style.css"],function(){i=jplayerTemplateMusic,d(a)})},u=function(t,i){e.async(["lib/jPlayer/jquery.jplayer.min.js"],function(){var e={solution:"html",swfPath:G.static_path+"js/lib/jPlayer/jquery.jplayer.swf",media:{title:"",mp3:t},ready:function(){i.jPlayer("setMedia",e.media).jPlayer("play")}};i.jPlayer("destroy").children().remove(),i.jPlayer(e)})};return{play:f,playSound:u}});
\ No newline at end of file
+jsrun="core.explorerCode('"+urlEncode(e)+"');";var n=urlEncode(a+i+"_project.oexe");$.ajax({url:"./index.php?explorer/mkfile&path="+n,type:"POST",dataType:"json",data:'content={"type":"app_link","content":"'+jsrun+'","icon":"folder.png"}',success:function(e){e.code&&"function"==typeof t&&t(e.info)}})}},b=function(e){1>e.length||$.ajax({url:"index.php?explorer/pathCute",type:"POST",dataType:"json",data:n(e),error:core.ajaxError,success:function(e){Tips.tips(e)}})},y=function(e,t){e&&(Tips.loading(LNG.moving),setTimeout(function(){var i="index.php?explorer/pathPast&path="+urlEncode(e);$.ajax({url:i,dataType:"json",error:core.ajaxError,success:function(e){Tips.close(e.data,e.code),"function"==typeof t&&t(e.info)}})},50))},x=function(t){var i={};i.file_info=e("./tpl/fileinfo/file_info.html"),i.path_info=e("./tpl/fileinfo/path_info.html"),i.path_info_more=e("./tpl/fileinfo/path_info_more.html"),1>t.length&&(t=[{path:G.this_path,type:"folder"}]);var a="info";1==t.length&&(a="file"==t[0].type?core.pathExt(t[0].path):"folder"),Tips.loading(LNG.getting),core.fileInfo(n(t),function(e){if(!e.code)return Tips.close(e),void 0;Tips.close(LNG.get_success,!0);var n="path_info_more",o=LNG.info;1==t.length&&(n="folder"==t[0].type?"path_info":"file_info",o=core.pathThis(t[0].path),o.length>15&&(o=o.substr(0,15)+"... "+LNG.info));var s=template.compile(i[n]),r=UUID();e.data.is_root=G.is_root,e.data.LNG=LNG,e.data.atime=date(LNG.time_type_info,e.data.atime),e.data.ctime=date(LNG.time_type_info,e.data.ctime),e.data.mtime=date(LNG.time_type_info,e.data.mtime),e.data.size_friendly=core.fileSize(e.data.size);var l=$.dialog({id:r,padding:5,ico:core.iconSmall(a),fixed:!0,title:o,content:s(e.data),ok:!0}),c=15*$(".aui_outer .pathinfo").length;l.DOM.wrap.css({left:"+="+c+"px",top:"+="+c+"px"}),k(r,t)})},k=function(e,t){var i=$("."+e);i.find(".open_window").bind("click",function(){window.open(i.find("input.download_url").val())}),i.find(".qrcode").unbind("click").bind("click",function(){core.qrcode(i.find("input.download_url").val(),i.find(".qrcode").get(0))});var a=i.find(".file_md5_loading");if(1==a.length){var o=n(t);o+="&get_md5=1",core.fileInfo(o,function(e){a.removeClass("file_md5_loading"),e.code?a.html(e.data.file_md5):a.html(LNG.error)})}var s=i.find("input.download_url"),r=s.get(0);s.unbind("hover click").bind("hover click",function(){$(this).focus();var e=s.val().length;if($.browser.msie){var t=r.createTextRange();t.moveEnd("character",-r.value.length),t.moveEnd("character",e),t.moveStart("character",0),t.select()}else r.setSelectionRange(0,e)}),i.find(".edit_chmod").click(function(){var e=$(this).parent().find("input"),i=$(this);$.ajax({url:"index.php?explorer/pathChmod&mod="+e.val(),type:"POST",data:n(t),beforeSend:function(){i.text(LNG.loading)},error:function(){i.text(LNG.button_save)},success:function(e){i.text(e.data).animate({opacity:.6},400,0).delay(1e3).animate({opacity:1},200,0,function(){i.text(LNG.button_save)}),e.code&&ui.f5()}})})},w=function(e){if(core.authCheck("explorer:fileDownload")&&!(1>e.length)){var t="index.php?explorer/zipDownload";G.share_page!==void 0&&(t="index.php?share/zipDownload&user="+G.user+"&sid="+G.sid),$.ajax({url:t,type:"POST",dataType:"json",data:n(e),beforeSend:function(){Tips.loading(LNG.zip_download_ready)},error:core.ajaxError,success:function(e){Tips.close(e),Tips.tips(e);var t="index.php?explorer/fileDownloadRemove&path="+urlEncode(e.info);G.share_page!==void 0&&(t="index.php?share/fileDownloadRemove&user="+G.user+"&sid="+G.sid+"&path="+urlEncode(e.info)),t+="&access_token="+G.access_token,$.dialog({icon:"succeed",title:!1,time:2,content:LNG.download_ready+"..."}),$('').appendTo("body")}})}},L=function(e,t,i){1>e.length||(i||(i="zip"),$.ajax({url:"index.php?explorer/zip&fileType="+i,type:"POST",dataType:"json",data:n(e),beforeSend:function(){Tips.loading(LNG.ziping)},error:core.ajaxError,success:function(e){Tips.close(e),e.code&&core.playSound("drag_drop"),"function"==typeof t&&t(e.info)}}))},N=function(e,t,i){if(e){var a=function(e){$.ajax({url:e,beforeSend:function(){Tips.loading(LNG.unziping)},error:core.ajaxError,success:function(e){Tips.close(e),"function"==typeof t&&t(e)}})},n="index.php?explorer/unzip&path="+urlEncode(e);"to_this"==i&&(n+="&to_this=1"),"unzip_to_folder"==i?core.api.pathSelect({type:"folder",title:LNG.unzip_to},function(e){n+="&path_to="+e,a(n)}):a(n)}},C=function(e,t,i){t&&$.ajax({url:"index.php?explorer/pathCuteDrag",type:"POST",dataType:"json",data:n(e)+"&path="+urlEncode(t+"/"),beforeSend:function(){Tips.loading(LNG.moving)},error:core.ajaxError,success:function(e){Tips.close(e),e.code&&core.playSound("drag_drop"),"function"==typeof i&&i(e.info)}})},T=function(e,t,i,a){t&&(void 0==a&&(a=0),$.ajax({url:"index.php?explorer/pathCopyDrag",type:"POST",dataType:"json",data:n(e)+"&path="+urlEncode(t+"/")+"&filename_auto="+Number(a),beforeSend:function(){Tips.loading(LNG.moving)},error:core.ajaxError,success:function(e){Tips.close(e),e.code&&core.playSound("drag_drop"),"function"==typeof i&&i(e.info)}}))},z=function(){var e=function(e,t){var i='null!
';if(0!=e.length){i=''+LNG.clipboard_state+LNG[t]+" ";for(var a=40,n=0;e.length>n;n++){var o=e[n],s=o.path;s=a>s.length?s:"..."+s.substr(-a),i+="
"+o.type+":
"+s+" "}i+="
"}return i};$.ajax({url:"index.php?explorer/clipboard",dataType:"json",error:core.ajaxError,success:function(t){t.code&&$.dialog({title:LNG.clipboard,padding:0,height:200,width:400,content:e(t.data,t.info)})}})},S=function(e,t,i){var a=function(){$.ajax({url:"index.php?fav/del&name="+urlEncode(e),dataType:"json",async:!1,success:function(e){"function"==typeof t&&t(e)}})};return i?(a(),void 0):($.dialog({id:"dialog_fav_remove",fixed:!0,icon:"question",title:LNG.fav_remove,width:200,padding:"40px 20px",content:LNG.fav_remove+"?",ok:a,cancel:!0}),void 0)},j=function(e){if(e){if(-1==trim(core.pathClear(e.path),"/").indexOf("/")){var t=core.getPathIcon(e.path,e.name);""!=t.icon&&(e.ext=t.icon,e.name=t.name)}$.ajax({url:"index.php?fav/add",dataType:"json",data:e,success:function(e){Tips.tips(e),e.code&&"desktop"!=Config.pageApp&&ui.tree.refreshFav()}})}},E=function(e){var t={};return t.type=e.find("input[type=radio]:checked").val(),t.content=e.find("textarea").val(),t.group=e.find("[name=group]").val(),e.find("input[type=text]").each(function(){var e=$(this).attr("name");t[e]=$(this).val()}),e.find("input[type=checkbox]").each(function(){var e=$(this).attr("name");t[e]="checked"==$(this).attr("checked")?1:0}),t},D=function(e){e.find(".type input").change(function(){var t=$(this).attr("apptype");e.find("[data-type]").addClass("hidden"),e.find("[data-type="+t+"]").removeClass("hidden")}),e.find(".app_edit_select_icon").unbind("click").bind("click",function(){var t=G.basic_path+"static/images/file_icon/icon_app/";G.is_root||(t=""),core.api.pathSelect({type:"file",title:LNG.path_api_select_file,firstPath:t},function(t){var t=core.path2url(t);e.find(".app_edit_select_icon_input").val(t)})}),e.find(".size-full").unbind("click").bind("click",function(){var t=$(this).prop("checked");t?(e.find("[name=width]").val("100%"),e.find("[name=height]").val("100%")):(e.find("[name=width]").val("800"),e.find("[name=height]").val("600"))})},P=function(t,i,a){var n,o,s,r=LNG.app_create,l=UUID(),c=e("./tpl/app_edit.html"),d=template.compile(c);switch(void 0==a&&(a="user_edit"),"root_edit"==a&&(t=t),"user_edit"==a||"root_edit"==a?(r=LNG.app_edit,s=d({LNG:LNG,uuid:l,data:t})):s=d({LNG:LNG,uuid:l,data:{}}),$.dialog({fixed:!0,width:450,id:l,padding:15,title:r,content:s,button:[{name:LNG.preview,callback:function(){return core.openApp(E(n)),!1}},{name:LNG.button_save,focus:!0,callback:function(){var e=E(n);switch(a){case"user_add":var s=urlEncode(G.this_path+e.name);o="./index.php?app/user_app&action=add&path="+s;break;case"user_edit":o="./index.php?app/user_app&path="+urlEncode(t.path);break;case"root_add":o="./index.php?app/add&name="+urlEncode(e.name);break;case"root_edit":o="./index.php?app/edit&name="+urlEncode(e.name)+"&old_name="+urlEncode(t.name);break;default:}$.ajax({url:o,type:"POST",dataType:"json",data:{data:urlEncode(jsonEncode(e))},beforeSend:function(){Tips.loading()},error:core.ajaxError,success:function(e){if(Tips.close(e),e.code)if("root_edit"==a||"root_add"==a){if(!e.code)return;ShareData.frameTop("Openapp_store",function(e){e.App.reload()})}else"function"==typeof i?i():ui.f5()}})}}]}),n=$("."+l),G.is_root||$(".appbox .appline .right a.open").remove(),t.group&&n.find("option").eq(t.group).attr("selected",1),n.find(".aui_content").css("overflow","inherit"),a){case"user_edit":n.find(".name").addClass("hidden"),n.find(".desc").addClass("hidden"),n.find(".group").addClass("hidden"),n.find("option[value="+t.group+"]").attr("checked",!0);break;case"user_add":n.find(".desc").addClass("hidden"),n.find(".group").addClass("hidden"),n.find("[apptype=url]").attr("checked",!0),n.find("[data-type=url] input[name=resize]").attr("checked",!0),n.find("input[name=width]").attr("value","800"),n.find("input[name=height]").attr("value","600"),n.find("input[name=icon]").attr("value","oexe.png");break;case"root_add":n.find("[apptype=url]").attr("checked",!0),n.find("[data-type=url] input[name=resize]").attr("checked",!0),n.find("input[name=width]").attr("value","800"),n.find("input[name=height]").attr("value","600"),n.find("input[name=icon]").attr("value","oexe.png");break;case"root_edit":n.find("option[value="+t.group+"]").attr("selected",!0);break;default:}D(n)},O=function(){core.appStore()},A=function(e){e&&4>e.length&&"http"!=e.substring(0,4)||$.ajax({url:"./index.php?app/get_url_title&url="+e,dataType:"json",beforeSend:function(){Tips.loading()},success:function(t){var i=t.data;i=i.replace(/[\/\\]/g,"_"),Tips.close(t);var a={content:e,type:"url",desc:"",group:"others",icon:"internet.png",name:i,resize:1,simple:0,height:"70%",width:"90%"},n=urlEncode(G.this_path+i);e="./index.php?app/user_app&action=add&path="+n,$.ajax({url:e,type:"POST",dataType:"json",data:{data:urlEncode(jsonEncode(a))},success:function(e){Tips.close(e),e.code&&ui.f5()}})}})};return{strSort:s,appEdit:P,appList:O,appAddURL:A,share:f,shareBox:u,setBackground:_,createLink:v,createProject:g,newFile:r,newFolder:l,rname:c,unZip:N,zipDownload:w,zip:L,copy:p,cute:b,info:x,remove:d,cuteDrag:C,copyDrag:T,past:y,clipboard:z,fav:j,favRemove:S}}),define("app/common/tpl/share.html",[],'\n
\n
{{LNG.share_title}}
\n
\n
\n
\n
\n
'),define("app/common/tpl/fileinfo/path_info_more.html",[],"\n
\n
{{LNG.info}}:
\n
\n {{file_num}} {{LNG.file}},{{folder_num}} {{LNG.folder}}
\n
\n
\n
\n
\n
{{LNG.size}}:
\n
{{size_friendly}} ({{size}} Byte)
\n
\n
\n \n
\n
\n
{{LNG.permission}}:
\n
{{mode}}
\n
\n
\n {{if is_root==\"1\"}}\n
\n
{{LNG.permission_edit}}:
\n
\n {{LNG.button_save}}
\n
\n
\n {{/if}}\n
\n"),define("app/common/tpl/app_edit.html",[],"\n
\n
\n
{{LNG.app_desc}}
\n
\n
\n
\n
\n
{{LNG.app_icon}}
\n
\n \n \n \n
\n
\n
\n
\n
{{LNG.app_group}}
\n
\n \n {{LNG.app_group_others}} \n {{LNG.app_group_game}} \n {{LNG.app_group_tools}} \n {{LNG.app_group_reader}} \n {{LNG.app_group_movie}} \n {{LNG.app_group_music}} \n {{LNG.app_group_life}} \n \n
\n
\n
\n
\n
\n
{{LNG.app_display}}
\n
\n \n {{LNG.app_display_border}} \n \n {{LNG.app_display_size}} \n
\n
\n
\n
\n
\n
{{LNG.app_code}}
\n
{{LNG.app_code}}
\n
{{LNG.app_url}}
\n
\n
\n
\n
\n"),define("app/common/pathOpen",["./myPlayer"],function(e){var t=function(e,t){if(void 0!=e){if(!core.pathReadable(e))return Tips.tips(LNG.no_permission_read_all,!1),core.playSound("error"),void 0;if("folder"==t)return"explorer"==Config.pageApp?ui.path.list(e+"/"):core.explorer(e),void 0;if("oexe"!=t){if(t||(t=core.pathExt(e)),l(t))return c(e),void 0;if("swf"==t)return $.dialog({resize:!0,fixed:!0,ico:core.icon("swf"),title:core.pathThis(e),width:"75%",height:"65%",padding:0,content:core.createFlash(core.path2url(e))}),void 0;if(inArray(core.filetype.archive_list,t))return core.zipView(e),void 0;if("url"==t)return core.fileGet(e,function(t){var i=t.match(/URL=(.*)/);i.length>=2?window.open(i[1]):s(e)}),void 0;if("webloc"==t)return core.fileGet(e,function(t){try{var i=$($.parseXML(t)),a=i.find("string").text();window.open(a)}catch(n){s(e)}}),void 0;if("html"==t||"htm"==t){var a=core.path2url(e);return core.openDialog(a,core.icon("html"),core.pathThis(e)),void 0}if(inArray(core.filetype.image,t)){var a=e;return-1==a.indexOf("http:")&&(a=core.path2url(a)),MaskView.image(a),void 0}if(inArray(core.filetype.music,t)||inArray(core.filetype.movie,t)){var a=core.path2url(e,!1);return p([{url:a,name:urlDecode(core.pathThis(e)),ext:t}]),void 0}if("pdf"!=t)return inArray(core.filetype.doc,t)?(c(e),void 0):inArray(core.filetype.text,t)?(s(e),void 0):("editor"==Config.pageApp?Tips.tips(t+LNG.edit_can_not,!1):i(e,""),void 0);var n=core.path2url(e),a="./lib/plugins/pdfjs/web/viewer.html?file="+urlEncode(n);if(canvasSupport())core.openDialog(a,core.icon(t),htmlEncode(core.pathThis(e)));else{var o="pdf"+UUID(),r='";$.dialog({resize:!0,fixed:!0,ico:core.icon(t),title:core.pathThis(e),width:800,height:400,padding:0,content:r}),PDFObject.embed(n,"#"+o)}}else if("string"==typeof e){var d=e;"string"!=typeof e&&(d=e.content.split("'")[1]),core.fileGet(d,function(e){var t=jsonDecode(e);t.name=core.pathThis(d),core.openApp(t)})}else core.openApp(e)}},i=function(e,t){void 0==t&&(t="");var i='";$.dialog({id:"open_unknow_dialog",fixed:!0,icon:"warning",title:LNG.unknow_file_title,padding:30,content:i,cancel:!0}),$(".unknow_file a").unbind("click").bind("click",function(){$.dialog.list.open_unknow_dialog.close()})},a=function(e){$.dialog({icon:"succeed",title:!1,time:1.5,content:LNG.download_ready+"..."}),isWap()?window.open(e):$('').appendTo("body")},n=function(e){if(core.authCheck("explorer:fileDownload",LNG.no_permissiondownload)&&e){if(!core.pathReadable(e))return Tips.tips(LNG.no_permission_read_all,!1),core.playSound("error"),void 0;var t="index.php?explorer/fileDownload&access_token="+G.access_token+"&path="+urlEncode(e);G.share_page!==void 0&&(t="index.php?share/fileDownload&user="+G.user+"&sid="+G.sid+"&path="+urlEncode(e)),"http"==e.substr(0,4)&&(t=e),a(t)}},o=function(e){if(void 0!=e){if(!core.pathReadable(e))return Tips.tips(LNG.no_permission_read_all,!1),core.playSound("error"),void 0;var t=core.path2url(e);window.open(t)}},s=function(e){if(e){if(!core.pathReadable(e))return Tips.tips(LNG.no_permission_read_all,!1),core.playSound("error"),void 0;var i=core.pathExt(e);return"Win32"==navigator.platform||"Windows"==navigator.platform,inArray(core.filetype.doc,i)?(c(e,!0),void 0):(core.pathThis(e),inArray(core.filetype.bindary,i)||inArray(core.filetype.music,i)||inArray(core.filetype.image,i)||inArray(core.filetype.movie,i)||inArray(core.filetype.doc,i)?(t(e,i),void 0):(r(e),void 0))}},r=function(e){var t=ShareData.frameTop();if(t.Editor!==void 0)return t.Editor.add(urlEncode(e)),void 0;if("editor"==Config.pageApp)return ShareData.frameChild("OpenopenEditor",function(t){t.Editor.add(urlEncode(e))}),void 0;if(ShareData.frameTop("OpenopenEditor")){var i=t.$.dialog.list.openEditor,a=0;i&&"hidden"==$(i.DOM.wrap).css("visibility")&&(a=200,i.display(!0).zIndex().focus()),setTimeout(function(){ShareData.frameTop("OpenopenEditor",function(t){t.Editor.add(urlEncode(e))})},a)}else{var n="./index.php?editor/edit#filename="+urlEncode(e);G.share_page!==void 0&&(n="./index.php?share/edit&user="+G.user+"&sid="+G.sid+"#filename="+urlEncode(e));var o=htmlEncode(urlDecode(core.pathThis(e)));core.openDialog(n,core.icon("edit"),o,"openEditor")}},l=function(e){if(!G.kodOffice)return!1;var t=".docx.doc.odt.rtf.djvu.fb2.epub.xps.//.docm.dotm.dot.dotx.mht.//.wps.wpt.";return t+=".xls.xlsx.ods.csv.//.xlt.xltx.xlsb.xlsm.//.et.ett.",t+=".pps.ppsx.ppt.pptx.odp.//.pot.potx.pptm.ppsm.potm.//.dps.dpt.",-1===t.indexOf("."+e+".")?!1:!0},c=function(e,t){var i="./index.php?explorer/officeView&access_token="+G.access_token+"&path="+urlEncode(e);return G.share_page!==void 0&&(i=G.app_host+"index.php?share/officeView&user="+G.user+"&sid="+G.sid+"&path="+urlEncode(e)),t!==void 0&&(i+="&is_edit=1"),"page"==G.kodOffice?(window.open(i),void 0):(core.openDialog(i,core.icon(core.pathExt(e)),htmlEncode(core.pathThis(e))),void 0)},d=function(t){if(t){"string"==typeof t&&(t=[t]);var i=e("./myPlayer");i.play(t)}},p=function(e){var t=ShareData.frameTop();t.ui.pathOpen.playerInstance(e)};return{open:t,playerInstance:d,play:p,openEditor:s,openEditorForce:r,openWindow:o,openUnknow:i,downloadUrl:a,download:n}}),define("app/common/myPlayer",[],function(e){var t="",i="",a="music_player",n="movie_player",o=function(e){var n=e==a?"mp3":"mp4",o="."+e+"_dialog",s=t,l={width:"70%",height:"60%"};e==a&&(s=i,l={width:"320px",height:"420px"});var c=$.dialog({id:e+"_dialog",simple:!0,ico:core.icon(n),title:"player",width:l.width,height:l.height,content:s,resize:!0,padding:0,fixed:!0,close:function(){var t=r(e);t.jPlayer("destroy")}});return c.DOM.wrap.addClass("myJPlayer"),$(o).find(".jPlayer-container")},s=function(e){return"music"==e?a:(void 0==e&&(e="mp3"),inArray(core.filetype.music,e)?a:n)},r=function(e){var t="."+e+"_dialog",i=$(t);return 0==i.length?!1:i.find(".jPlayer-container")},l=function(e){var t={mp4:"m4v",m4v:"m4v",mov:"m4v",ogv:"ogv",webm:"webmv",webmv:"webmv",flv:"flv",f4v:"flv",f4a:"flv",mp3:"mp3",wav:"wav",m4a:"mp3",aac:"mp3",ogg:"oga",oga:"oga",webma:"webma"},i=e.ext,a=t[i],n={extType:a,title:e.name,url:e.url,solution:"flv"==i||"f4v"==i?"flash":"html,flash"};return n[a]=e.url,n},c=function(e,t){if(t){var i=e.parents(".jPlayer"),a={solution:t.solution,swfPath:G.static_path+"js/lib/jPlayer/jquery.jplayer.swf"};i.attr("id",UUID()),e.jPlayer("destroy"),e.find(".jPlayer-container").children().remove(),e.jPlayer(jPlayerConfigInit(i,a)),e.find("object").length>0?i.addClass("flashPlayer"):i.removeClass("flashPlayer"),e.jPlayer("setMedia",t),setTimeout(function(){e.jPlayer("play")},150),jPlayerBindControl(i),setTimeout(function(){var e=i.parents(".dialog-simple").find(".aui_titleBar").attr("id"),a=$.dialog.list[e];a&&a.title(t.title)},100)}},d=function(e){var t=e[0].ext,i=s(t),n=r(i),d=l(e[0]);n||(n=o(i),i==a&&p.init()),i==a&&(d=p.insert(n,e,t)),c(n,d);try{$.dialog.list[i+"_dialog"].display(!0)}catch(f){}},p=function(){var e=[],t=0,i=null,a="circle",n=function(a,n){i=a;for(var s=e.length,r=0;n.length>r;r++){var c=!1,d=0;for(d=0;e.length>d;d++)if(e[d].url==n[r].url){c=!0;break}if(c){if(r==n.length-1)return t!=d&&o(d),!1}else e.push(l(n[r]))}return e.length==s?!1:(t=e.length-1,f(!0),e[t])},o=function(a){a=0>=a?0:a,a=a>=e.length-1?e.length-1:a,t=a;var n=e[a];c(i,n),f(!1)},s=function(i){switch(a){case"circle":"next"==i?e.length-1>t?o(t+1):o(0):0>t-1?o(e.length-1):o(t-1);break;case"rand":o(roundFromTo(0,e.length)-1);break;case"one":o(t);break;default:}},r=function(t){e.remove(t),o(t),f(!0)},d=function(t){var i=e[t],a=i.url+"&download=1";ui.pathOpen.downloadUrl(a)},p=function(){t=0,e=[],a="circle";var i=$(".jPlayer-music"),n=[{icon:"icon-retweet",loop:"circle"},{icon:"icon-random",loop:"rand"},{icon:"icon-refresh loop-one",loop:"one"}];i.find(".change-loop").unbind("click").bind("click",function(){var e=parseInt($(this).attr("data-loop"))+1;e=0>e?0:e,e=e>=n.length?0:e;var t=n[e];$(this).attr("data-loop",e).find("i").attr("class",t.icon),a=t.loop}),i.find(".play-backward").unbind("click").bind("click",function(){s("prev")}),i.find(".play-forward").unbind("click").bind("click",function(){s("next")}),i.find(".show-list").unbind("click").bind("click",function(e){i.parents(".music_player_dialog").toggleClass("hide-play-list"),stopPP(e)}),i.find(".play-list .item").die("click").live("click",function(e){var t=$(this).index();o(t),stopPP(e)}),i.find(".play-list .remove").die("click").live("click",function(e){var t=$(this).parents(".item"),i=t.index();return t.remove(),r(i),stopPP(e),!1}),i.find(".play-list .download").die("click").live("click",function(e){var t=$(this).parents(".item").index();return d(t),stopPP(e),!1})},f=function(a){var n=$(i).parents(".jPlayer");if(a){var o="";$.each(e,function(e,t){o+=' '+t.title+'
'}),n.find(".play-list .content").html(o)}return 0!=e.length&&e[t]?(n.find(".item-title").html(e[t].title),n.find(".item").removeClass("this"),n.find(".item:eq("+t+")").addClass("this"),u(n.find(".player-bg")),void 0):(t=0,n.find(".item-title").html(" "),i.jPlayer("destroy"),i.find(".jPlayer-container").children().remove(),void 0)},u=function(e){var t=h(),i=h(),a="160deg",n="background-image: -webkit-linear-gradient("+a+", "+t+", "+i+"); background-image: -moz-linear-gradient("+a+", "+t+", "+i+"); background-image: -o-linear-gradient("+a+", "+t+", "+i+"); background-image: -ms-linear-gradient("+a+", "+t+", "+i+"); background-image: linear-gradient("+a+", "+t+", "+i+");";e.attr("style",n)},h=function(){return"#"+(16777215*Math.random()<<0).toString(16)};return{insert:n,init:p}}(),f=function(a){var o=s(a[0].ext);o==n?e.async(["lib/jPlayer/kod.flat/template.js","lib/jPlayer/jquery.jplayer.min.js","lib/jPlayer/kod.flat/control.js","lib/jPlayer/kod.flat/style.css"],function(){t=jplayerTemplateMovie,d(a)}):e.async(["lib/jPlayer/kod.flat/template.js","lib/jPlayer/jquery.jplayer.min.js","lib/jPlayer/kod.flat/control.js","lib/jPlayer/kod.flat/style.css"],function(){i=jplayerTemplateMusic,d(a)})},u=function(t,i){e.async(["lib/jPlayer/jquery.jplayer.min.js"],function(){var e={solution:"html",swfPath:G.static_path+"js/lib/jPlayer/jquery.jplayer.swf",media:{title:"",mp3:t},ready:function(){i.jPlayer("setMedia",e.media).jPlayer("play")}};i.jPlayer("destroy").children().remove(),i.jPlayer(e)})};return{play:f,playSound:u}});
\ No newline at end of file
diff --git a/static/js/app/src/setting/main.js b/static/js/app/src/setting/main.js
index e34cf76..d967457 100755
--- a/static/js/app/src/setting/main.js
+++ b/static/js/app/src/setting/main.js
@@ -1,6 +1,6 @@
-/*! power by kodexplorer ver3.43(2017-04-12) [build 1491993755092] */
+/*! power by kodexplorer ver3.43(2017-04-12) [build 1492001438434] */
define("app/src/setting/main",["lib/jquery-lib","lib/util","lib/artDialog/jquery-artDialog","lib/contextMenu/jquery-contextMenu","../../common/core","./fav","./setting","./system/system_setting","./system/system","lib/ztree/ztree","./system/system_member","./system/system_group","./system/system_role","./system/system_group_role"],function(e){e("lib/jquery-lib"),e("lib/util"),e("lib/artDialog/jquery-artDialog"),e("lib/contextMenu/jquery-contextMenu"),core=e("../../common/core"),Fav=e("./fav"),Setting=e("./setting"),e("./system/system_setting"),System=e("./system/system"),core.init()}),define("app/common/core",[],function(require,exports){tpl_search_box=require("./tpl/search.html"),tpl_search_list=require("./tpl/search_list.html"),tpl_upload=require("./tpl/upload.html"),tpl_file_info=require("./tpl/fileinfo/file_info.html"),tpl_path_info=require("./tpl/fileinfo/path_info.html"),tpl_zipview=require("./tpl/zipview.html");var search=require("./core.search"),tools=require("./core.tools"),upload=require("./core.upload"),api=require("./core.api"),playSound=require("./core.playSound"),zipView=require("./core.zipView");pathHashEncode=function(e){return hashEncode(e)},pathHashDecode=function(e){return hashDecode(e)};var initFirst=function(){if(window.require=require,template.config("escape",!1),template.config("compress",!0),template.helper("core",core),template.helper("window",window),"undefined"!=typeof G&&(1!=G.is_root&&$(".menu_system_setting").remove(),G.is_root||1==AUTH["system_member:get"]||1==AUTH["system_group:get"]||$(".menu_system_group").remove(),G.user_config&&"0"==G.user_config.animate_open&&($.dialog.defaults.animate=!1),resetHost()),$("html").bind("click",function(e){if(0==$(e.target).parents(".context-menu-list").length)try{rightMenu.hidden()}catch(e){}}),$.dialog.defaults.animate&&loadRipple(["a","button",".context-menu-item","#picker",".menuShareButton",".menuRecycleButton",".section .list"],[".disabled",".disable",".ztree",".disable-ripple"]),$("a,img").attr("draggable","false"),$.ajaxSetup({headers:{"X-CSRF-TOKEN":Cookie.get("X-CSRF-TOKEN")}}),$(".common_footer [forceWap]").click(function(){var e=$(this).attr("forceWap");Cookie.set("forceWap",e),window.location.reload()}),core.setSkinDiy(),core.tools.init(),playserSupport(),"array"==$.type(window.kodReady))for(var e=0;window.kodReady.length>e;e++)window.kodReady[e]();titleTips()},resetHost=function(){var e=window.location.port?":"+window.location.port:"";G.web_host=window.location.protocol+"//"+window.location.hostname+e+"/",G.app_host=rtrim(G.web_host,"/")+window.location.pathname.replace("index.php","")},playserSupport=function(){var e={ie:{music:["mp3","m4a","aac"],movie:["mp4","m4v","flv","mov","f4v"]},chrome:{music:["mp3","wav","m4a","aac","oga","ogg","webma"],movie:["mp4","m4v","flv","mov","f4v","ogv","webm","webmv"]}},t=!!window.ActiveXObject||"ActiveXObject"in window,i="chrome";t&&(i="ie"),core.filetypes.music=e[i].music,core.filetypes.movie=e[i].movie},titleTips=function(){isWap()||require.async(["lib/poshytip/jquery.poshytip.js","lib/poshytip/skin.css"],function(){var e=$("[title]");e.poshytip({className:"ptips-skin",liveEvents:!0,slide:!1,alignTo:"cursor",alignX:"right",alignY:"bottom",showAniDuration:150,hideAniDuration:200,offsetY:10,offsetX:20,showTimeout:function(){var e=1500;return $(this).attr("title-timeout")&&(e=parseInt($(this).attr("title-timeout"))),e},content:function(){var e=$(this).data("title.poshytip");if($(this).attr("title-data")){var t=$($(this).attr("title-data"));e=t.is("input")||t.is("textarea")?t.val():t.html()}return e=e?e:"",e.replace(/\n/g," ")}}),$("body").bind("mousedown click",function(){$(e).poshytip("hide"),$(".ptips-skin").remove()}),$("input,textarea").live("focus",function(){$(e).poshytip("hide"),$(".ptips-skin").remove()})})};return{search:search,init:initFirst,serverDwonload:upload.serverDwonload,upload:upload.upload,uploadInit:upload.init,playSound:playSound.playSound,playSoundFile:playSound.playSoundFile,zipView:function(e){new zipView(e)},tools:tools,api:api,filetypes:{image:["jpg","jpeg","png","bmp","gif","ico","svg","cur","webp"],music:["mp3","wav","m4a","aac","oga","ogg","webma"],movie:["mp4","m4v","flv","mov","f4v","ogv","webm","webmv"],doc:["doc","docx","docm","xls","xlsx","xlsb","xlsm","ppt","pptx","pptm"],archive:["zip","tar","gz","tgz","ipa","apk","rar","7z","iso","bz2","zx","z","arj"],archive_list:["zip","tar","gz","tgz","ipa","apk","rar","7z","iso","zx","z","arj"],text:["txt","textile","oexe","inc","csv","log","asc","tsv","lnk","url","webloc","meta","localized","xib","xsd","storyboard","plist","csproj","pch","pbxproj","local","xcscheme","manifest","vbproj","strings","jshintrc","sublime-project","readme","changes","changelog","version","license","changelog","abap","abc","as","asp","aspx","ada","adb","htaccess","htgroups","htgroups","htpasswd","asciidoc","adoc","asm","a","ahk","bat","cmd","cpp","c","cc","cxx","h","hh","hpp","ino","c9search_results","cirru","cr","clj","cljs","cbl","cob","coffee","cf","cson","cakefile","cfm","cs","css","curly","d","di","dart","diff","patch","dockerfile","dot","dummy","dummy","e","ge","ejs","ex","exs","elm","erl","hrl","frt","fs","ldr","ftl","gcode","feature",".gitignore","glsl","frag","vert","gbs","go","groovy","haml","hbs","handlebars","tpl","mustache","hs","hx","html","hta","htm","xhtml","eex","html.eex","erb","rhtml","html.erb","ini","inf","conf","cfg","prefs","io","jack","jade","java","ji","jl","jq","js","jsm","json","jsp","jsx","latex","ltx","bib","lean","hlean","less","liquid","lisp","ls","logic","lql","lsl","lua","lp","lucene","Makefile","makemakefile","gnumakefile","makefile","ocamlmakefile","make","md","markdown","mask","matlab","mz","mel","mc","mush","mysql","nix","nsi","nsh","m","mm","ml","mli","pas","p","pl","pm","pgsql","php","phtml","shtml","php3","php4","php5","phps","phpt","aw","ctp","module","ps1","praat","praatscript","psc","proc","plg","prolog","properties","proto","py","r","cshtml","rd","rhtml","rst","rb","ru","gemspec","rake","guardfile","rakefile","gemfile","rs","sass","scad","scala","scm","sm","rkt","oak","scheme","scss","sh","bash","bashrc","sjs","smarty","tpl","snippets","soy","space","sql","sqlserver","styl","stylus","svg","swift","tcl","tex","toml","twig","swig","ts","typescript","str","vala","vbs","vb","vm","v","vh","sv","svh","vhd","vhdl","wlk","wpgm","wtest","xml","rdf","rss","wsdl","xslt","atom","mathml","mml","xul","xbl","xaml","xq","yaml","yml","vcproj","vcxproj","filters","cer","reg","config","pem","srt","ass"],bindary:["bin","hex","zip","pdf","swf","gzip","rar","arj","tar","gz","cab","tbz","tbz2","lzh","uue","bz2","ace","exe","so","dll","chm","rtf","odp","odt","pages","class","psd","ttf","fla","7z","dmg","iso","dat","ipa","lib","a","apk","so","o"]},fileOpenMode:{ini:["inc","inf","strings"],xml:["xib","xsd","storyboard","plist","csproj","pch","pbxproj","xcscheme","config","vcproj","vcxproj","filters","webloc"],json:["oexe","jshintrc","sublime-project"],markdown:["readme","changes","version","license","changelog"]},getPathIcon:function(e,t){if(t=void 0==t?"":t,"string"==$.type(e)){var i=trim(trim(e),"/");if(e={},"{"!=i.substring(0,1)||i.split("/").length>1)return{icon:"",name:""};e.path_type=i.match(/\{.*\}/),e.id=i.split(":")[1]}var a={};a[G.KOD_USER_SHARE]={icon:"userSelf",name:LNG.my_share},a[G.KOD_GROUP_PATH]={icon:"groupSelfOwner"},a[G.KOD_GROUP_SHARE]={icon:"groupGuest"},a[G.KOD_USER_RECYCLE]={icon:"recycle",name:LNG.recycle},a[G.KOD_USER_FAV]={icon:"treeFav",name:LNG.fav},a[G.KOD_GROUP_ROOT_SELF]={icon:"groupSelfRoot",name:LNG.my_kod_group},a[G.KOD_GROUP_ROOT_ALL]={icon:"groupRoot",name:LNG.kod_group};var n=a[e.path_type];return e.path_type==G.KOD_USER_SHARE&&G.user_id!=e.id?n={icon:"user",name:t}:e.path_type==G.KOD_GROUP_PATH&&"owner"==e.role&&(n={icon:"groupSelfOwner"}),void 0==n&&(n={icon:"",name:""}),void 0==n.name&&(n.name=t),n},isSystemPath:function(e){var e=trim(trim(e),"/");if(void 0==e||"{"!=e.substring(0,1)||e.split("/").length>1)return!1;var t=e.match(/\{.*\}/),i=[G.KOD_USER_SHARE,G.KOD_GROUP_SHARE,G.KOD_USER_RECYCLE,G.KOD_USER_FAV,G.KOD_GROUP_ROOT_SELF,G.KOD_GROUP_ROOT_ALL],a=!1;return-1!==$.inArray(t[0],i)&&(a=!0),a},pathPre:function(e){if(e=trim(trim(e),"/"),void 0==e||"{"!=e.substring(0,1))return"";var t=e.match(/\{.*\}/);return t[0]},contextmenu:function(e){try{rightMenu.hidden()}catch(t){}var t=e||window.event;return t?t&&$(t.target).is("textarea")||$(t.target).is("input")||$(t.target).is("p")||$(t.target).is("pre")||0!=$(t.target).parents(".can_right_menu").length||0!=$(t.target).parents(".topbar").length||0!=$(t.target).parents(".edit_body").length||0!=$(t.target).parents(".aui_state_focus").length?!0:!1:!0},pathThis:function(e){if(!e||"/"==e)return"";var t=rtrim(this.pathClear(e),"/"),i=t.lastIndexOf("/"),a=t.substr(i+1);if(0==a.search("fileProxy")){a=urlDecode(a.substr(a.search("&path=")));var n=a.split("/");a=n[n.length-1],""==a&&(a=n[n.length-2])}return a},pathClear:function(e){if(!e)return"";var t=e.replace(/\\/g,"/");return t=t.replace(/\/+/g,"/"),t=t.replace(/\.+\//g,"/")},pathFather:function(e){var t=rtrim(this.pathClear(e),"/"),i=t.lastIndexOf("/");return t.substr(0,i+1)},pathExt:function(e){var t=trim(e,"/");return-1!=t.lastIndexOf("/")&&(t=t.substr(t.lastIndexOf("/")+1)),-1!=t.lastIndexOf(".")?t.substr(t.lastIndexOf(".")+1).toLowerCase():t.toLowerCase()},path2url:function(e,t){if("http"==e.substr(0,4))return e;void 0==t&&(t=!0);var i,a=this.pathClear(e);this.pathExt(a);var n=function(e){if(!e)return"";var t=urlEncode(e);return t=t.replace(/%2F/g,"/")};return G.is_root&&t&&a.substring(0,G.web_root.length)==G.web_root?i=G.web_host+n(a.replace(G.web_root,"")):(i=G.app_host+"index.php?explorer/fileProxy&access_token="+G.access_token+"&path="+urlEncode(a),G.share_page!==void 0&&(i=G.app_host+"index.php?share/fileProxy&user="+G.user+"&sid="+G.sid+"&path="+urlEncode(a))),i},pathReadable:function(e){if("object"!=typeof G.json_data)return!0;var t;t=G.json_data.filelist;for(var i=0;t.length>i;i++)if(t[i].path==e)return void 0==t[i].is_readable||1==t[i].is_readable?!0:!1;t=G.json_data.folderlist;for(var i=0;t.length>i;i++)if(t[i].path==e)return void 0==t[i].is_readable||1==t[i].is_readable?!0:!1;return!0},pathCurrentWriteable:function(){return"editor"==Config.pageApp?!1:G.json_data.info?G.json_data.info.can_upload:!1},authCheck:function(e,t){return G.is_root?!0:AUTH.hasOwnProperty(e)?AUTH[e]?!0:(void 0==t&&(t=LNG.no_permission),Tips.tips(t,!1),!1):!0},ajaxError:function(e){var t=e.responseText,i=$.dialog.list.ajaxErrorDialog;return Tips.close(LNG.system_error,!1),""==t.substr(0,17)?(setTimeout(function(){var e=ShareData.frameTop();e.location.reload()},500),void 0):(0==e.status&&""==t&&(t="网络连接错误 (net::ERR_CONNECTION_RESET),连接已重置 请联系主机商或网管,检查防火墙配置!"),t=''+t+"
",i?i.content(t):$.dialog({id:"ajaxErrorDialog",padding:0,width:"60%",height:"50%",fixed:!0,resize:!0,ico:core.icon("error"),title:"ajax error",content:t}),void 0)},fileGet:function(e,t,i){var a="filename";"http"==e.substr(0,4)&&(a="file_url");var n="./index.php?editor/fileGet&"+a+"="+urlEncode(e);G.share_page!==void 0&&(n="./index.php?share/fileGet&user="+G.user+"&sid="+G.sid+"&"+a+"="+urlEncode(e)),"./index.php?"==e.substr(0,"./index.php?".length)&&(n=e),$.ajax({url:n,dataType:"json",error:function(e,t,a){core.ajaxError(e,t,a),"function"==typeof i&&i()},success:function(e){"function"==typeof t&&t(e.data.content,e,n)}})},fileInfo:function(e,t){var i="index.php?explorer/pathInfo";G.share_page!==void 0&&(i="index.php?share/pathInfo&user="+G.user+"&sid="+G.sid),$.ajax({url:i,type:"POST",dataType:"json",data:e,error:core.ajaxError,success:function(e){"function"==typeof t&&t(e)}})},fileLink:function(e,t){var i='list=[{"type":"file","path":"'+urlEncode(e)+'"}]&viewPage=1';this.fileInfo(i,function(e){var i=e.code?e.data.download_path:!1;return i?("function"==typeof t&&t(i),void 0):(Tips.tips(LNG.no_permission_action+"==>"+LNG.group_role_pathinfo,!1),void 0)})},setting:function(e){void 0==e&&(e=G.is_root?"system":"user"),ShareData.frameTop("Opensetting_mode")?ShareData.frameTop("Opensetting_mode",function(t){t.Setting.setGoto(e),$.dialog.list.setting_mode.display(!0)}):$.dialog.open("./index.php?setting#"+e,{id:"setting_mode",fixed:!0,ico:core.icon("setting"),resize:!0,title:LNG.setting,width:1100,height:660})},copyright:function(){var e=require("./tpl/copyright.html"),t=template.compile(e),i=ShareData.frameTop();i.art.dialog({id:"copyright_dialog",bottom:0,right:0,simple:!0,resize:!1,title:LNG.about+" kod",width:425,padding:"0",fixed:!0,content:t({LNG:LNG,G:G})}),i.$(".copyright_dialog").addClass("animated-700 zoomIn")},qrcode:function(e,t){"./"==e.substr(0,2)&&(e=G.app_host+e.substr(2));var i="./index.php?user/qrcode&url="+quoteHtml(urlEncode(e)),a=" ";$.dialog({follow:t,fixed:!0,resize:!1,title:LNG.qrcode,padding:30,content:a})},appStore:function(){var e=ShareData.frameTop();e.$.dialog.open("./index.php?app",{id:"app_store",fixed:!0,ico:core.icon("appStore"),resize:!0,title:LNG.app_store,width:900,height:550})},openWindow:function(e){var t=ShareData.frameTop(),i=t.$.dialog.open(e,{fixed:!0,resize:!0,width:"80%",height:"75%"});return i},openDialog:function(e,t,i,a){if(e){void 0==a&&(a="openDialog"+UUID());var n="",o=ShareData.frameTop(),s=o.$.dialog({id:a,fixed:!0,title:i,ico:t,width:"75%",height:"70%",padding:0,content:n,resize:!0});return s}},openApp:function(app){if("url"==app.type){var icon=app.icon;-1==app.icon.search(G.static_path)&&"http"!=app.icon.substring(0,4)&&(icon=G.static_path+"images/file_icon/icon_app/"+app.icon),"number"!=typeof app.width&&-1===app.width.search("%")&&(app.width=parseInt(app.width)),"number"!=typeof app.height&&-1===app.height.search("%")&&(app.height=parseInt(app.height)),app.width||(app.width="90%"),app.height||(app.height="70%");var dialog_info={resize:app.resize,fixed:!0,ico:core.iconSrc(icon),title:app.name.replace(".oexe",""),width:app.width,height:app.height,simple:app.simple,padding:0},top=ShareData.frameTop();"swf"==core.pathExt(app.content)?(dialog_info.content=core.createFlash(app.content),top.$.dialog(dialog_info)):top.$.dialog.open(app.content,dialog_info)}else{var exec=app.content;eval("{"+exec+"}")}},update:function(){setTimeout(function(){var e=base64Decode("Ly9zdGF0aWMua2FsY2FkZGxlLmNvbS91cGRhdGUvbWFpbi5qcw==")+"?a="+UUID();require.async(e,function(e){try{e.todo("check")}catch(t){}})},200)},openPath:function(e){"undefined"!=typeof Config&&"explorer"==Config.pageApp?ui.path.list(e,"tips"):core.explorer(e)},explorer:function(e,t){void 0==e&&(e=""),void 0==t&&(t=core.pathThis(e));var i="./index.php?/explorer&type=iframe&path="+e;G.share_page!==void 0&&(i="./index.php?share/folder&type=iframe&user="+G.user+"&sid="+G.sid+"&path="+e);var a=ShareData.frameTop(),n=a.$.dialog.open(i,{className:"dialogExplorer",resize:!0,fixed:!0,ico:core.icon("folder"),title:t,width:"80%",height:"75%"}),o=20*a.$(".dialogExplorer").length;n.DOM.wrap.css({left:"+="+o+"px",top:"+="+o+"px"})},explorerCode:function(e){void 0==e&&(e="");var t="index.php?/editor&project="+e;G.share_page!==void 0&&(t="./index.php?share/code_read&user="+G.user+"&sid="+G.sid+"&project="+e),window.open(t)},setSkinFinished:function(){var e=$(".setSkin_finished").attr("src");e&&($("#link_css_list").attr("href",e),$(".setSkin_finished").remove())},setSkin:function(e){LocalData.set("theme",e),G.user_config.theme=e;var t=G.static_path+"style/skin/"+e+".css";t!=$("#link_css_list").attr("href")&&$("body").append(' '),this.setSkinDiy()},setSkinDiy:function(){if(G.user_config){var e=LocalData.get("theme"),t="kod_diy_style",i=LocalData.getConfig(t);"object"!=typeof i&&"object"==typeof G.user_config.theme_diy&&(i=G.user_config.theme_diy),"object"!=typeof i&&(i={bg_blur:1,bg_image:G.static_path+"images/wall_page/9.jpg",bg_type:"color",start_color:"#456",end_color:"#000",color_rotate:"200"},LocalData.setConfig(t,i)),G.user_config.theme_diy=i;var a="";if("diy"==e&&i){var n=require("./tpl/theme_diy.html"),o=template.compile(n);a=o(i)}$.setStyle(a,t)}},editorFull:function(){var e=$("iframe[name=OpenopenEditor]");e.toggleClass("frame_fullscreen")},language:function(e){Cookie.set("kod_user_language",e,8760),window.location.reload()},fullScreen:function(){"true"==$("body").attr("fullScreen")&&core.exitfullScreen(),$("body").attr("fullScreen","true");var e=ShareData.frameTop(),t=e.document.documentElement;t.requestFullscreen?t.requestFullscreen():t.mozRequestFullScreen?t.mozRequestFullScreen():t.webkitRequestFullScreen&&t.webkitRequestFullScreen()},exitfullScreen:function(){$("body").attr("fullScreen","false"),document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitCancelFullScreen&&document.webkitCancelFullScreen()},createFlash:function(e,t,i){var a=UUID();(i===void 0||""==i)&&(i=a);var n="";$.browser.msie&&9>parseInt($.browser.version)&&(n='classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"');var o=''+' '+' '+' '+' '+' '+' '+' loading..
';return setTimeout(function(){var e=$("."+a);if(1!=e.length){var t=ShareData.frameTop();e=t.$("."+a)}if(1==e.length)var i=0,n=e[0],o=setInterval(function(){try{i++,100==Math.floor(n.PercentLoaded())?(e.next(".aui_loading").remove(),clearInterval(o),o=null):i>100&&(e.next(".aui_loading").remove(),clearInterval(o),o=null)}catch(t){}},100)},50),o},userSpaceHtml:function(e){var t=e.split("/"),i=parseFloat(t[0]),a=1073741824*parseFloat(t[1]),n=core.fileSize(parseFloat(t[0])),o=core.fileSize(a),s=n+"/",r=100*i/a;r>=100&&(r=100);var l="";return r>=80&&(l="warning"),0==a||isNaN(a)?(s+=LNG.space_tips_full,r="0%"):(s+=o,r+="%"),s=""},fileSize:function(e,t){if(void 0==e||""==e)return"";if(void 0==t&&(t=1),1024>=e)return parseInt(e)+"B";e=parseInt(e);var i={G:1073741824,M:1048576,K:1024,B:1};for(var a in i)if(e>=i[a])return(e/i[a]).toFixed(t)+a},uploadCheck:function(e,t){return t=void 0==t?!0:t,"share"==G.share_page?"1"==G.share_info.can_upload:(void 0==e&&(e="explorer:fileUpload"),!G.is_root&&AUTH.hasOwnProperty(e)&&1!=AUTH[e]?(t&&Tips.tips(LNG.no_permission,!1),!1):G.json_data&&!G.json_data.info.can_upload?(t&&(core.isSystemPath(G.this_path)?Tips.tips(LNG.path_can_not_action,!1):Tips.tips(LNG.no_permission_write,!1)),!1):!0)}}}),define("app/common/tpl/search.html",[],"\n\n"),define("app/common/tpl/search_list.html",[],'\n{{each data.folderlist as v i}}\n \n \n \n {{\'folder\' |core.icon}} \n {{v.name | searchResultPrase}} \n \n
\n \n{{/each}}\n\n\n{{each data.filelist as v i}}\n {{if v.search_info}}\n \n \n \n {{v.ext |core.icon}} \n {{v.name | window.htmlEncode}} \n {{v.search_info.length}} \n \n
\n \n {{each v.search_info as value index}}\n \n {{value.line}}: \n {{#value.str | searchResultPrase}} \n \n {{/each}}\n \n \n {{else}}\n \n \n \n {{v.ext |core.icon}} \n {{v.name | searchResultPrase}} \n \n
\n \n {{/if}}\n{{/each}}\n\n'),define("app/common/tpl/upload.html",[],'\n
\n
\n
\n
\n
{{LNG.upload_select}}
\n \n
select Folder
\n
\n \n \n \n \n
\n
\n \n
\n
\n {{LNG.upload_clear_all}} \n {{LNG.upload_clear}} \n
\n
\n
\n
\n
\n
\n
\n
{{LNG.download_address}}
\n
\n {{LNG.download}} \n \n \n Dropdown \n \n \n
\n\n
\n
\n
\n
\n
\n'),define("app/common/tpl/fileinfo/file_info.html",[],"\n {{if download_path}}\n
\n
{{LNG.download_address}}:
\n
\n
\n
\n {{LNG.open}} \n \n
\n
\n
\n
\n
\n {{/if}}\n\n
\n
{{LNG.address}}:
\n
{{path |window.htmlEncode}}
\n
\n
\n
\n
{{LNG.size}}:
\n
{{size_friendly}} ({{size}} Byte)
\n
\n
\n\n {{if file_md5}}\n
\n
MD5:
\n
{{file_md5}}
\n
\n
\n {{/if}}\n\n {{if image_size}}\n
\n
{{LNG.image_size}}:
\n
{{image_size.width}} × {{image_size.height}}
\n
\n
\n {{/if}}\n\n
\n\n {{if ctime}}\n
\n
{{LNG.create_time}}
\n
{{ctime}}
\n
\n
\n {{/if}}\n\n {{if mtime}}\n
\n
{{LNG.modify_time}}
\n
{{mtime}}
\n
\n
\n {{/if}}\n\n {{if atime}}\n
\n
{{LNG.last_time}}
\n
{{atime}}
\n
\n
\n {{/if}}\n \n {{if mode}}\n
\n
\n
{{LNG.permission}}:
\n
{{mode}}
\n
\n
\n {{if is_root==\"1\"}}\n
\n
{{LNG.permission_edit}}:
\n
\n {{LNG.button_save}}
\n
\n
\n {{/if}}\n {{/if}}\n
\n"),define("app/common/tpl/fileinfo/path_info.html",[],"\n
\n
{{LNG.address}}:
\n
{{path |window.htmlEncode}}
\n
\n
\n
\n
{{LNG.size}}:
\n
{{size_friendly}} ({{size}} Byte)
\n
\n
\n
\n
{{LNG.contain}}:
\n
{{file_num}} {{LNG.file}},{{folder_num}} {{LNG.folder}}
\n
\n
\n \n
\n {{if ctime}}\n
\n
{{LNG.create_time}}
\n
{{ctime}}
\n
\n
\n {{/if}}\n\n {{if mtime}}\n
\n
{{LNG.modify_time}}
\n
{{mtime}}
\n
\n
\n {{/if}}\n\n {{if atime}}\n
\n
{{LNG.last_time}}
\n
{{atime}}
\n
\n
\n {{/if}}\n\n {{if mode}}\n
\n
\n
{{LNG.permission}}:
\n
{{mode}}
\n
\n
\n {{if is_root==\"1\"}}\n
\n
{{LNG.permission_edit}}:
\n
\n {{LNG.button_save}}
\n
\n
\n {{/if}}\n {{/if}}\n
\n"),define("app/common/tpl/zipview.html",[],''),define("app/common/core.search",[],function(){return function(e,t){var i,a,n=function(){var n=trim(core.pathClear(t),"/");if(0==n.indexOf(G.KOD_USER_SHARE)&&-1==n.indexOf("/")||n==G.KOD_USER_FAV||n==G.KOD_GROUP_ROOT_ALL)return Tips.tips(LNG.path_cannot_search,!1),void 0;template.helper("searchResultPrase",r);var o=template.compile(tpl_search_box);0==$(".dialog_do_search").length?(i=$.dialog({id:"dialog_do_search",padding:0,fixed:!0,ico:core.icon("search"),resize:!0,title:LNG.search,width:440,height:480,content:o({LNG:LNG})}),a=c(),a.path=t,""!=e&&(a.search=e),$("#search_path").val(a.path),$("#search_value").val(a.search),l()):($.dialog.list.dialog_do_search.display(!0),e&&$("#search_value").val(e),$("#search_path").val(t),s())},o=function(){return a={search:$("#search_value").val(),path:$("#search_path").val(),is_content:Number($("#search_is_content").is(":checked")),is_case:Number($("#search_is_case").is(":checked")),ext:$("#search_ext").val()}},s=function(){o(),p(a)},r=function(e){var t=htmlEncode($("#search_value").val());if(e=htmlEncode(e),a.is_case)e=e.replace(t,''+t+" ");else{var i=e.toLowerCase().indexOf(t.toLowerCase());e=e.substr(0,i)+''+e.substr(i,t.length)+" "+e.substr(i+t.length)}return e},l=function(){$("#search_value").die("keyup").live("keyup",function(){"editor"==!Config.pageApp&&ui.path.setSearchByStr($(this).val())}),$("#search_value,#search_ext,#search_path").keyEnter(s),$(".search_header .btn").die("click").live("click",s),$(".search_result .file-item .file-info").die("click").live("click",function(e){var t=$(this).parent();return t.toggleClass("open"),t.find(".result-item").slideToggle(200),stopPP(e),!1}),$(".search_result .file-item .file-info .goto").die("click").live("click",function(e){var t=$(this).parent().parent(),i=pathHashDecode(t.attr("data-path")),a=core.pathFather(i);return core.openPath(a),setTimeout(function(){Config&&"explorer"==Config.pageApp&&ui.path.setSelectByFilename(i)},200),stopPP(e),!1}),$(".search_result .file-item .file-info .title").die("click").live("click",function(e){var t=$(this).parent().parent(),i=pathHashDecode(t.attr("data-path"));return ui.pathOpen.open(i,t.attr("data-ext")),stopPP(e),!1}),$(".search_result .file-item .result-info").die("click").live("click",function(e){var t=$(this).parent().parent(),i=pathHashDecode(t.attr("data-path"));$(".search_result .file-item .result-info.this").removeClass("this"),$(this).addClass("this");var a=parseInt($(this).find(".line").attr("data-line"));return ShareData.data("FILE_SEARCH_AT",{search:$("#search_value").val(),line:a,lineIndex:$(this).parent().find("[data-line="+a+"]").index($(this).find(".line"))}),ui.pathOpen.openEditorForce(i,t.attr("data-ext")),stopPP(e),!1
}),$(".search_header input[type=checkbox]").on("click",function(){o(),c(a)})},c=function(e){var t="box_search_config";if(void 0==e){var e=LocalData.getConfig(t);return e||(e={search:"",is_content:0,is_case:0,ext:""}),$("#search_value").val(e.search).textSelect(),e.is_content?$("#search_is_content").attr("checked","checked"):$("#search_is_content").removeAttr("checked"),e.is_case?$("#search_is_case").attr("checked","checked"):$("#search_is_case").removeAttr("checked"),$("#search_ext").val(e.ext),e}return LocalData.setConfig(t,e)},d=function(e){var t=$(".file-items"),i=$(".search_desc");if(!e.code)return i.html(e.data),t.html(""),void 0;if(0==e.data.filelist.length&&0==e.data.folderlist.length)return i.html(LNG.search_null),t.html(""),void 0;var n=template.compile(tpl_search_list);if(t.html(n({code:e.code,data:e.data,LNG:LNG})),a.is_content){for(var o=e.data.filelist,s=0,r=0;o.length>r;r++)o[r].search_info&&(s+=o[r].search_info.length);i.html(LNG.search_result+": "+s+"(in "+o.length+" files) "),e.data.error_info&&i.html(""+LNG.seach_result_too_more+" ")}else i.html(e.data.filelist.length+" "+LNG.file+", "+e.data.folderlist.length+LNG.folder+".")},p=function(e){c(e),$("#search_value").textFocus();var t=$(".file-items"),i=$(".search_desc");if(!e.search||!e.path)return i.html(LNG.search_info),t.html(""),void 0;var a="index.php?explorer/search";G.share_page!==void 0&&(a="index.php?share/search&user="+G.user+"&sid="+G.sid),$.ajax({url:a,dataType:"json",type:"POST",data:e,beforeSend:function(){i.hide().html(LNG.searching+' ').fadeIn(100)},error:function(){core.ajaxError(),i.html(LNG.error)},success:function(e){d(e)}})};n()}}),define("app/common/core.tools",[],function(e){var t=["A","version_hash","undefined","@dfq[-)&*^*%(_90","decode","length","substr","O","P","Q","inArray","./index.php?user/version_install","6K2m5ZGKLOivt_aWLv_aaTheiHquS_bruaUueeJiOadgzvlpoLmnInpnIDopoHor7fogZTns7votK3kubDvvIFlbWFpbDprYWxjYWRkbGVAcXEuY29t","lang","zh-CN","V2FybmluZywgcGxlYXNlIGRvIG5vdCBtb2RpZnkgdGhlIGNvcHlyaWdodDsgaWYgbmVjZXNzYXJ5LCBwbGVhc2UgY29udGFjdCB0byBidXkhIEVtYWlsOiBrYWxjYWRkbGVAcXEuY29t","loading","hide","#messageTips .tips_close,#messageTips img","tips","href","location","f004SGAm6lUxeBmG5J3s3dADGe3TCXTmKgHKeO_CF-_RVBiLyHlaIQ","#2","8a29PizvhAUqVX_DA26hgncbvnD7yGGJSCd4IFz3qNJ_tq_5i5ANmeSe","ab","pageApp","explorer","kod_power_by","copyright_pre","copyright_contact","copyright_desc","copyright_info","html",".common_footer","key","","toLowerCase","find","search","free","1","2","3","version_vip_",' '," ",".menu-topbar_user .divider","insertBefore","click","id","attr","version_vip_free","versionUpdateVip","openWindow",'',"append",".aui_content","wrap","DOM","text","live","die",".version_vip","top","longPress","support_space_not","addClass","body","remove",".menu_system_about,.menu_left #about","icon",' ',"iconSmall","iconSrc",' ',"Ly9zdGF0aWMua2FsY2FkZGxlLmNvbS91cGRhdGUvbWFpbi5qcw==","?a=","todo","async","versionType","filetype","filetypes","Ly9rYWxjYWRkbGUuY29tL2J1eS5odG1sIw_c_c","group","data"],i=function(){var e=t[0];if(typeof G[t[1]]==t[2])return e;var i=t[3],a=authCrypt[t[4]](G[t[1]],i);return a&&27==a[t[5]]?(e=a[t[6]](10,1),-1===$[t[10]](e,[t[0],t[7],t[8],t[9]])&&(e=t[0]),e):e},a=i(),n=t[11],o=function(){var e=hashDecode(t[12]);G[t[13]]!=t[14]&&(e=hashDecode(t[15])),alert(e),Tips[t[16]](e,!1),$(t[18])[t[17]](),setTimeout(function(){Tips[t[19]](e,!1),window[t[21]][t[20]]=n},1e3*roundFromTo(30,60))},s=authCrypt[t[4]](t[22],t[23]),r=authCrypt[t[4]](t[24],t[25]),l=function(){if(typeof Config!=t[2]&&Config[t[26]]==t[27]&&a==t[0])for(var e=[{key:LNG[t[28]],find:s},{key:LNG[t[29]],find:s},{key:LNG[t[30]],find:r},{key:LNG[t[31]],find:s},{key:LNG[t[32]],find:r},{key:$(t[34])[t[33]](),find:s}],i=0;e[t[5]]>i;i++){e[i][t[35]]||(e[i][t[35]]=t[36]);var n=e[i][t[35]][t[37]](),l=e[i][t[38]][t[37]]();if(-1==n[t[39]](l)){setTimeout(function(){o()},roundFromTo(300,5e3));break}}},c=function(){var e={A:t[40],O:t[41],P:t[42],Q:t[43]},i=t[44]+e[a],o=t[45]+i+t[46]+LNG[i]+t[47];a==t[0]&&$(o)[t[49]](t[48]),$(t[65])[t[64]](t[50])[t[63]](t[50],function(){if($(this)[t[52]](t[51])==t[53]){var e=core[t[55]](core[t[54]]),i=t[56]+n+t[57];e[t[61]][t[60]][t[38]](t[59])[t[58]](i)}else Tips[t[19]]($(this)[t[62]]())}),$(t[65])[t[67]](function(){window[t[66]][t[21]][t[20]]=n})},d=function(){a==t[0]&&$(t[70])[t[69]](t[68]),-1!==$[t[10]](a,[t[7],t[8],t[9]])&&$(t[72])[t[71]]()},p=function(){core[t[73]]=function(e,i){return t[74]+e+(i?t[75]:t[36])+t[76]},core[t[77]]=function(e){return core[t[73]](e,!0)},core[t[78]]=iconSrc=function(e){return t[79]+e+t[80]},setTimeout(function(){var i=base64Decode(t[81])+t[82]+UUID();e[t[84]](i,function(e){try{e[t[83]]()}catch(i){}})},2e3),core[t[85]]=a,core[t[86]]=core[t[87]],core[t[54]]=hashDecode(t[88])+G[t[13]],l(),c(),d()},f=function(e){return a==t[0]&&-1==e[t[37]]()[t[39]](s)?(o(),!1):!0},u=function(e,i){var n,o,s={A:1,O:10,P:50,Q:1e3},r={A:10,O:50,P:200,Q:1e3},l=[],c=1;if(i==t[89]?(n=e[t[90]],o=s[a]):(n=e[t[90]],o=r[a]),1e3==o)l=n;else for(var d in n){if(c>o)break;l[d]=n[d],c++}return l},h={init:p,about:f,systemData:u};return h}),define("app/common/core.upload",[],function(require,exports){var uploadUrl=function(){var e=G.app_host+"index.php?explorer/fileUpload";return"share"==G.share_page&&"1"==G.share_info.can_upload&&(e=G.app_host+"index.php?share/fileUpload&user="+G.user+"&sid="+G.sid),e};return{serverDwonload:function(e,t){core.uploadCheck("explorer:serverDownload");var i=$(".download_box"),a=i.find(".download_list");if(i.find("input").val(""),!e)return Tips.tips("url false!",!1),void 0;"ftp"!=e.substr(0,3)&&"http"!=e.substr(0,4)&&(e="http://"+e);var n=UUID(),o=''+'
'+core.pathThis(e)+" "+'
0b '+'
'+LNG.upload_ready+" "+'
'+'
';a.find(".item").length>0?$(o).insertBefore(a.find(".item:eq(0)")):a.append(o);var s,r,l,c=0,d=$("#"+n),p=$("#"+n+" .state").text(LNG.download_ready),f=$('').appendTo("#"+n).find(".progress-bar");$("#"+n+" .remove").bind("click",function(){clearInterval(s),s=!1,clearTimeout(r),r=!1,$.get("./index.php?explorer/serverDownload&type=remove&uuid="+n),$(this).parent().parent().slideUp(function(){$(this).remove(),ui.f5()})});var u,h=function(e){clearTimeout(u),u=!1,u=setTimeout(function(){ui.f5Callback(function(){ui.path.setSelectByFilename(e)})},600)},m=function(){$.ajax({url:"./index.php?explorer/serverDownload&type=download&save_path="+t+"&url="+urlEncode(e)+"&uuid="+n+"&time="+time(),dataType:"json",error:function(e,t,i){var a=d.data("progcess");return 200!=e.status&&a&&a.support_range?(setTimeout(function(){m()},1e3),void 0):(core.ajaxError(e,t,i),200==e.status&&(clearInterval(s),s=!1,clearTimeout(r),r=!1,f.parent().remove(),p.addClass("error").text(LNG.download_error)),void 0)},success:function(e){return 0==e.code&&"downloading"==e.data?(setTimeout(function(){m()},1e3),void 0):(e.code?(h(e.info),p.text(LNG.download_success),$("#"+n+" .info .title").text(core.pathThis(e.info)),$("#"+n+" .info .title").attr("title",e.info),p.parent().parent().addClass("success")):(p.addClass("error").text(e.data),p.parent().parent().addClass("error")),clearInterval(s),s=!1,clearTimeout(r),r=!1,f.parent().remove(),void 0)}})};m();var _=function(){$.ajax({url:"./index.php?explorer/serverDownload&type=percent&uuid="+n,dataType:"json",success:function(e){var t="",i=e.data;if(s){if(!e.code)return p.text(LNG.loading),void 0;if(i){if(i.size=parseFloat(i.size),i.time=parseFloat(i.time),l){var a=(i.size-l.size)/(i.time-l.time);if(c>.2*a){var n=c;c=a,a=n}else c=a;var n=core.fileSize(a);n=n?n:0,t=n+"/s"}if(d.data("progcess",i),0==i.length)d.find(".progress-bar").css("width","100%"),p.text(t),d.find(".size").text(core.fileSize(i.size));else{var o=100*(i.size/i.length);d.find(".progress-bar").css("width",o+"%"),p.text(o.toFixed(1)+"%("+t+")"),d.find(".size").text(core.fileSize(i.length))}d.find(".title").text(i.name),l=i}}}})};r=setTimeout(function(){_(),s=setInterval(function(){_()},1e3)},100)},upload:function(){var e=uploadUrl();if(uploader.option("server",e),uploader.option("method","POST"),0!=$(".dialog_file_upload").length)return $.dialog.list.dialog_file_upload.display(!0),void 0;var t=template.compile(tpl_upload),i=WebUploader.Base.formatSize(G.upload_max);$.dialog({padding:5,resize:!0,ico:core.icon("upload"),id:"dialog_file_upload",fixed:!0,title:LNG.upload_muti,content:t({LNG:LNG,maxsize:i}),close:function(){$.each(uploader.getFiles(),function(e,t){uploader.skipFile(t),uploader.removeFile(t)}),$.each($(".download_list .item"),function(){$(this).find(".remove").click()})}}),$(".file_upload .top_nav a.menu").unbind("click").bind("click",function(){$(this).hasClass("tab_upload")?($(".file_upload .tab_upload").addClass("this"),$(".file_upload .tab_download").removeClass("this"),$(".file_upload .upload_box").removeClass("hidden"),$(".file_upload .download_box").addClass("hidden")):($(".file_upload .tab_upload").removeClass("this"),$(".file_upload .tab_download").addClass("this"),$(".file_upload .upload_box").addClass("hidden"),$(".file_upload .download_box").removeClass("hidden"))}),$(".download_box [name=url]").keyEnter(function(){core.serverDwonload($(".download_box input").val(),G.this_path)}),$(".file_upload .download_box .download_start").unbind("click").bind("click",function(){core.serverDwonload($(".download_box input").val(),G.this_path)}),$(".file_upload .download_box .download_start_all").unbind("click").bind("click",function(){$.dialog({id:"server_dwonload_textarea",fixed:!0,resize:!1,ico:core.icon("upload"),width:"420px",height:"270px",padding:10,title:LNG.download,content:"",ok:function(){for(var e=$(".server_dwonload_textarea textarea").val().split("\n"),t=0;e.length>t;t++)core.serverDwonload(e[t],G.this_path)}})}),uploader.addButton({id:"#picker"}),uploader.addButton({id:"#picker_folder"});var a=function(){if(isWap())return!1;var e=document.createElement("input");return e.type="file",e.webkitdirectory!==void 0||e.directory!==void 0};a()&&($(".upload_cert_box").removeClass("hidden"),$(".file_upload .drag_upload_folder").unbind("click").bind("click",function(){$("#picker_folder input").attr("webkitdirectory","").attr("directory",""),$("#picker_folder label").click()}))},init:function(){var chunkSize=G.upload_max;WebUploader.Uploader.register({"before-send":"checkChunk"},{checkChunk:function(e){if(!canvasSupport())return $.Deferred().resolve(),void 0;var t=this.owner,i=(e.blob.getSource(),$.Deferred());return t.md5File(e.blob).fail(function(){i.resolve()}).then(function(t){if(1==e.chunks)return i.resolve(),void 0;if(0==e.chunk)$.ajax({url:uploadUrl(),dataType:"json",data:{upload_to:e.file.upload_to,file_name:e.file.name,check_md5:t,chunk:e.chunk,chunks:e.chunks},error:function(){i.resolve()},success:function(t){t.code?(i.reject(),e.file.checkChunk=t.info):i.resolve()}});else{var a=e.file.checkChunk;if(a&&a["part_"+e.chunk]==t){var n=e.end/e.total;uploader.trigger("uploadProgress",e.file,n),i.reject()}else i.resolve()}}),i.promise()}}),eval("".replace(/.{8}/g,function(e){return String.fromCharCode(parseInt(e.replace(/\u200c/g,1).replace(/\u200d/g,0),2))})),uploader=upCreate({swf:G.static_path+"js/lib/webuploader/Uploader.swf",dnd:"body",threads:5,compress:!1,resize:!1,prepareNextFile:!0,duplicate:!0,chunkRetry:10,chunked:!0,chunkSize:chunkSize}),$(".uploader-content .success").die("click").live("click",function(){var e=$(this).find("span.title").attr("data-name");e&&("explorer"==Config.pageApp?ui.path.list(core.pathFather(e),"tips",function(){ui.path.setSelectByFilename(e)}):core.explorer(core.pathFather(e)))}),$(".uploader-content .open").die("click").live("click",function(e){var t=$(this).parent().find("span.title").attr("data-name");ui.pathOpen.open(t),stopPP(e)}),$(".upload_box_clear").die("click").live("click",function(){$(".uploader-list .item.success,.uploader-list .item.error").each(function(){$(this).slideUp(300,function(){$(this).remove()})})}),$(".upload_box_clear_all").die("click").live("click",function(){$.each(uploader.getFiles(),function(e,t){uploader.skipFile(t),uploader.removeFile(t)}),$(".uploader-list .item").each(function(){$(this).remove()})}),$(".uploader-content .remove").die("click").live("click",function(e){var t=$(this).parent().parent().attr("id");$(this).parent().parent().slideUp(function(){$(this).remove()}),uploader.skipFile(t),uploader.removeFile(t,!0),stopPP(e)});var file_num=0,file_finished=0,currentSpeed="0B/s",preTime=0,getSpeed=function(e,t){if(.3>=timeFloat()-preTime)return currentSpeed;preTime=timeFloat();var i=e.size*t,a=5;e.speed===void 0?e.speed=[[timeFloat()-.5,0],[timeFloat(),i]]:a>=e.speed.length?e.speed.push([timeFloat(),i]):(e.speed=e.speed.slice(1,a),e.speed.push([timeFloat(),i]));var n=e.speed[e.speed.length-1],o=e.speed[0],s=(n[1]-o[1])/(n[0]-o[0]);0>=s&&(s=0);var r=core.fileSize(s);return r=r?r:0,s=r+"/s",currentSpeed=s,s},selectNameArr=[],changeDelayTimer,pathReload=function(e){clearTimeout(changeDelayTimer),changeDelayTimer=!1,changeDelayTimer=setTimeout(function(){var t=selectNameArr;ui.f5Callback(function(){if(ui.path.setSelectByFilename(t),e&&(selectNameArr=[],"explorer"==Config.pageApp)){if("share"==G.share_page)return;ui.tree.checkIfChange(G.this_path)}})},600)};uploader.on("fileQueued",function(e){if(!core.uploadCheck())return uploader.skipFile(e),uploader.removeFile(e),void 0;var t;try{t=e.source.source.fullPath,void 0!=e.source.source.webkitRelativePath&&""!=e.source.source.webkitRelativePath&&(t=e.source.source.webkitRelativePath)}catch(i){}if(e.fullPath=t,e.source&&e.source.source&&1==e.source.source.isDirectory&&e.source.source.fullPath)return ui.pathOperate.newFolder(G.this_path+e.fullPath),uploader.skipFile(e),uploader.removeFile(e),void 0;if(0==e.size)return ui.pathOperate.newFile(G.this_path+e.fullPath),uploader.skipFile(e),uploader.removeFile(e),file_finished++,file_num++,void 0;var a=e.fullPath;e.finished=!1,e.upload_to=G.this_path,(void 0==a||"undefined"==a)&&(a=e.name),file_num++;var n=$(".uploader-list"),o=''+'
'+htmlEncode(core.pathThis(a))+" "+'
'+core.fileSize(e.size)+" "+'
'+LNG.upload_ready+" "+'
'+'
';(1e3==file_num||2e3==file_num)&&Tips.tips(LNG.upload_tips_more,"warning"),0==n.length?setTimeout(function(){$(".uploader-list").prepend(o),uploader.upload()},100):(n.prepend(o),uploader.upload())}).on("uploadBeforeSend",function(e,t,i){var a=urlEncode(e.file.fullPath);(void 0==a||"undefined"==a)&&(a=""),t.fullPath=a,t.upload_to=e.file.upload_to,i["X-CSRF-TOKEN"]=Cookie.get("X-CSRF-TOKEN")}).on("uploadProgress",function(e,t){$(".dialog_file_upload .aui_title").text(LNG.uploading+": "+file_finished+"/"+file_num+" ("+currentSpeed+")");var i=getSpeed(e,t),a=$("#"+e.id),n=a.find(".progress .progress-bar");n.length||(n=$('').appendTo(a).find(".progress-bar")),a.find(".state").text((100*t).toFixed(1)+"%("+i+")"),n.css("width",100*t+"%")}).on("uploadAccept",function(e,t){if(e.file.serverData=t,!t.code)return e.serverNeedRetry=!0,!1;try{e.file.fullPath||selectNameArr.push(t.info)}catch(i){}}).on("uploadSuccess",function(e){var t=$("#"+e.id);if(!t.inScreen()){var i=36*t.index(".item");$(".uploader-content").scrollTop(i)}file_finished++;var a=e.serverData;if(a&&a.data){var n=LNG[a.data];if(a.code){if(t.addClass("success"),t.find(".state").text(n),t.find(".remove").addClass("icon-ok").addClass("open").removeClass("icon-remove").removeClass("remove"),a.info){var o="/"+ltrim(htmlEncode(a.info),"/");t.find(".info .title").html(core.pathThis(o)).attr("title",o).attr("data-name",o)}}else t.addClass("error").find(".state").addClass("error"),t.find(".state").text(n).attr("title",n)}uploader.removeFile(e),t.find(".progress").fadeOut(),e.fullPath||pathReload(!1)}).on("uploadError",function(e,t){var i=LNG.upload_error+"("+t+")";if(e.serverData){var a=5;if((-1!==e.serverData._raw.indexOf("[Error Code:1001]")||-1!==e.serverData._raw.indexOf("[Error Code:1002]")||-1!==e.serverData._raw.indexOf("[Error Code:1010]"))&&(e.errorNum||(e.errorNum=0),e.errorNum++,a>=e.errorNum))return uploader.retry(e),void 0;if(-1!==e.serverData._raw.indexOf(""))return $.each(uploader.getFiles(),function(e,t){uploader.skipFile(t),uploader.removeFile(t)}),Tips.tips("login error!",!1),void 0;if(e.serverData.data){var n=e.serverData.data;i=LNG[n]?LNG[n]:n}else e.serverData._raw&&(i=e.serverData._raw)}"http"==t&&(i=LNG.upload_error_http),"abort"==t&&void 0==e.serverData&&(i=LNG.not_support+"(support on chrome)"),file_finished++,$("#"+e.id).find(".progress").fadeOut(),$("#"+e.id).addClass("error").find(".state").addClass("error"),$("#"+e.id).find(".state").html(i).attr("title",i)}).on("uploadFinished",function(){$(".dialog_file_upload .aui_title").text(LNG.upload_success+": "+file_finished+"/"+file_num),file_num=0,file_finished=0,uploader.reset(),pathReload(!0)}).on("error",function(e){Tips.tips(e,!1)});var timer;inState=!1,dragOver=function(){if(0==inState){if(inState=!0,!core.uploadCheck(void 0,!1))return;var e='";MaskView.tips(e),$("#windowMaskView").css({background:"#4285f4",opacity:"0.8"})}timer&&window.clearTimeout(timer)},dragLeave=function(e){stopPP(e),timer&&window.clearTimeout(timer),timer=window.setTimeout(function(){inState=!1,MaskView.close()},100)},dragDrop=function(e){try{if(e=e.originalEvent||e,core.uploadCheck())if(e.dataTransfer.files.length>0&&e.dataTransfer.files[0].name)core.upload(),core.playSound("drag_upload");else{var t=e.dataTransfer.getData("text/plain");t&&"http"==t.substring(0,4)&&ui.pathOperate.appAddURL(t)}stopPP(e)}catch(e){}inState&&(inState=!1,MaskView.close())}}}}),define("app/common/core.api",[],function(){var e=function(e,t,i){var a=$(i.DOM.wrap),n=t.frames.OpenpathSelectApi,o=' ';"file"==e.type&&(o+=''+e.allowExt+" "),$(o).insertBefore(a.find(".aui_state_highlight"));var s=function(t){var i=e.allowExt.split("|"),a=core.pathExt(t);return""==e.allowExt||""!=e.allowExt&&-1!=$.inArray(a,i)?!0:!1},r=function(){var t=n.ui.fileLight.fileListSelect(),i=[];if(e.single){var a=$(t.get(0));if("all"==e.type&&0==t.length)i={file:[],folder:[]};else if("file"==e.type&&0==t.length)i=[];else if("folder"==e.type)i=[n.G.this_path],a.hasClass("folderBox")&&(i=[n.ui.fileLight.path(a)]);else if("file"==e.type){if(a.hasClass("fileBox")){var o=n.ui.fileLight.path(a);s(o)&&(i=[o])}}else if("all"==e.type)if(a.hasClass("folderBox")){var o=n.ui.fileLight.path(a);i=[{file:[],folder:[o]}]}else if(a.hasClass("fileBox")){var o=n.ui.fileLight.path(a);s(o)&&(i={file:[o],folder:[]})}}else{var r=[],l=[];t.each(function(){if($(this).hasClass("fileBox")){var e=n.ui.fileLight.path($(this));s(e)&&r.push(e)}else $(this).hasClass("folderBox")&&l.push(n.ui.fileLight.path($(this)))}),"folder"==e.type?i=l:"file"==e.type?i=r:"all"==e.type&&(i={file:r,folder:l})}c(i)},l=function(e){var e=trim(e,"/");return e==G.KOD_GROUP_ROOT_SELF||e==G.KOD_GROUP_ROOT_ALL||e==G.KOD_USER_FAV||e==G.KOD_USER_SHARE?!1:!0},c=function(t){var i=a.find(".path_select_input"),o=a.find(".aui_state_highlight");if("all"!=e.type){for(var s=[],r=0;t.length>r;r++)l(t[r])&&s.push(t[r]);t=s}if(0==t.length||"all"==e.type&&0==t.file.length&&0==t.folder.length)o.addClass("disable"),i.attr("result",""),i.val("");else{var c=hashEncode(jsonEncode(t)),d="";if(e.single)d=n.core.pathThis(t[0]);else{var p=t;"all"==e.type&&(p=t.folder.concat(t.file)),$.each(p,function(e,t){d+=n.core.pathThis(t)+", "})}o.removeClass("disable"),i.attr("result",c),i.val(d)}},d=function(){n.ui.fileLight.select.hook("select",n.ui.fileLight,{before:function(){},after:function(){r()}})};n.kodReady||(n.kodReady=[]),n.kodReady.push(function(){d(),r()})};return{pathSelect:function(t,i){var a={type:"file",title:LNG.path_api_select_file,single:!0,allowExt:"",firstPath:!1},n="./index.php?/explorer&type=iframe";t=$.extend(a,t),t.firstPath&&(n+="&path="+t.firstPath);var o=ShareData.frameTop(),s=o.$.dialog.open(n,{id:"pathSelectApi",resize:!0,fixed:!0,ico:core.icon("folder"),title:t.title,lock:!0,background:"#000",opacity:.1,width:840,height:420,ok:function(){if("function"==typeof i){var e=s.DOM.wrap,a=e.find(".path_select_input").attr("result");a=jsonDecode(hashDecode(a)),a?t.single&&"all"!=t.type?i(a[0]):i(a):Tips.tips(LNG.error,!1)}},cancel:!0});e(t,o,s)},randomImage:function(e){$.getJSON("//kalcaddle.com/tools/version/?wallpage/index&lang="+G.lang+"&callback=?",function(t){"function"==typeof e&&e(t)})}}}),define("app/common/core.playSound",["./myPlayer"],function(e){var t={file_remove:"file_remove.mp3",recycle_clear:"recycle_clear.mp3",folder_open:"folder_open.mp3",window_min:"window_min.mp3",error:"error_tips.mp3",drag_upload:"drag_upload.mp3",drag_drop:"drag_drop.mp3"},i=function(t){var i="x-play-sound";0==$("."+i).length&&$('
').appendTo("body");var a=G.static_path+"others/sound/"+t,n=e("./myPlayer");n.playSound(a,$("."+i))};return{playSoundFile:i,playSound:function(e){G&&G.user_config&&"1"==G.user_config.sound_open&&setTimeout(function(){i(t[e])},100)}}}),define("app/common/core.zipView",[],function(){return function(e){var t,i={view:{showLine:!1,selectedMulti:!1,expandSpeed:"fast",dblClickExpand:!1,addDiyDom:function(e,t){var i=15,a=$("#"+t.tId+"_switch"),n=$("#"+t.tId+"_ico");a.remove(),t.iconSkin=t.tree_icon;var o=t.tree_icon;if(t.ext?o=t.ext:t.tree_icon||(o=t.type),n.before(a).before(''+core.iconSmall(o)+" ").remove(),void 0!=t.ext&&n.attr("class","").addClass("file "+t.ext).removeAttr("style"),t.level>=1){var s=" ";a.before(s)}var r=''+date(LNG.time_type,t.mtime)+" ";r+=''+core.fileSize(t.size)+" ",r+='',$("#"+t.tId+"_span").after(r),a.parent().addClass(t.menuType)}},callback:{onClick:function(e,i,a){$(e.target).hasClass("menu_more")||(t.selectNode(a),f(a),"folder"==a.type&&$("#"+a.tId+"_switch").click())},onCollapse:function(e,t){_(t)},onExpand:function(e,t){_(t)},beforeRightClick:function(e,i){i&&(f(i),t.selectNode(i))},onDblClick:function(e,i,a){$(e.target).hasClass(".menu_more")||"file"==a.type&&o("open",t)}}},a=function(e){for(var t=function(e){for(var i=0;e.length>i;i++)if(void 0!=e[i]){var a=e[i];e[i]={name:core.pathThis(a.filename),path:a.filename,isParent:!!a.child,type:a.folder?"folder":"file",menuType:a.folder?"menuZipListFolder":"menuZipListFile",ext:core.pathExt(a.filename),mtime:a.mtime,index:a.index,size:a.size,child:a.child},a.folder&&delete e[i].ext,e[i].child?(e[i].children=e[i].child,delete e[i].child,t(e[i].children)):delete e[i].child}else delete e[i]},i={},a=0;e.length>a;a++)"string"!=typeof e[a].filename&&e[a].stored_filename&&(e[a].filename=e[a].stored_filename),"string"==typeof e[a].filename&&(e[a].filename=e[a].filename.replace(/\\/g,"/"),i[e[a].filename]=e[a]);for(var n in i)if(!i[n].folder)for(var o=core.pathFather(i[n].filename);""!=o&&"/"!=o&&!i[o]&&!i[rtrim(o,"/")];)i[o]={filename:o,folder:!0,mitme:0,size:0,index:-1},o=core.pathFather(o);var s=[];for(var n in i){var r=i[n],l=core.pathFather(r.filename);if(i[l]&&(l=core.pathFather(r.filename)),i[rtrim(l,"/")]&&(l=rtrim(l,"/")),i[l])i[l].child||(i[l].child=[]),i[l].child.push(i[r.filename]);else{var c=i[r.filename];c&&s.push(c)}}return t(s),s},n=function(){$.contextMenu({selector:".menuZipListFolder",className:"menuZipListFolder",zIndex:9999,callback:function(e){o(e)},items:{unzip_this:{name:LNG.unzip_this,className:"unzip_this",icon:"external-link"},unzip_to:{name:LNG.unzip_to,className:"unzip_to",icon:"external-link"},sep1:"--------",info:{name:LNG.info,className:"info",icon:"info",accesskey:"i"}}}),$.contextMenu({selector:".menuZipListFile",className:"menuZipListFile",zIndex:9999,callback:function(e){o(e)},items:{open:{name:LNG.open,className:"open",icon:"external-link",accesskey:"o"},down:{name:LNG.download,className:"down",icon:"cloud-download",accesskey:"x"},sep1:"--------",unzip_this:{name:LNG.unzip_this,className:"unzip_this",icon:"external-link"},unzip_to:{name:LNG.unzip_to,className:"unzip_to",icon:"external-link"},sep2:"--------",info:{name:LNG.info,className:"info",icon:"info",accesskey:"i"}}}),$(".menuZipListFile .menu_more,.menuZipListFolder .menu_more").die("click").live("click",function(e){var t=$(this).offset();t.top+=$(this).outerHeight(),$(this).contextMenu({x:e.pageX,y:t.top})})},o=function(e,t){if(void 0==t){var i=$(".context-menu-active").parents(".ztree");if(0==i.length)return;t=$.fn.zTree.getZTreeObj(i.attr("id"))}var a=t.getSelectedNodes()[0];switch(e){case"open":c(t,a);break;case"down":l(t,a);break;case"unzip_this":p(t,a);break;case"unzip_to":d(t,a);break;case"info":h(t,a);break;default:}},s={file_num:0,folder_num:0,size:0},r=function(e){if("folder"==e.type){if(s.folder_num++,e.children)for(var t=0;e.children.length>t;t++)r(e.children[t])}else s.file_num++,s.size+=parseInt(e.size)},l=function(e,t){e.setting.filePath;var i=e.setting.fileUrl,a=i+"&download=1&index="+t.index;ui.pathOpen.downloadUrl(a)},c=function(e,t){e.setting.filePath;var i=e.setting.fileUrl,a=i+"&index="+t.index+"&name=/"+urlEncode(t.path),n=t.ext;"zip"==n&&(n="unknow"),t.size>=31457280&&(Tips.tips(LNG.zipview_file_big,"warning"),n="unknow"),ui.pathOpen.open(a,n)},d=function(e,t){core.api.pathSelect({type:"folder",title:LNG.unzip_to},function(i){p(e,t,i)})},p=function(e,t,i){var a=e.setting.filePath;e.setting.fileUrl,void 0==i&&(i=G.this_path,void 0==i&&(i=core.pathFather(a)));var n="./index.php?explorer/unzip";$.ajax({url:n,data:{path:a,path_to:i,unzip_part:t.index},type:"POST",dataType:"json",beforeSend:function(){Tips.loading(LNG.unziping)},error:core.ajaxError,success:function(e){return Tips.close(e),"editor"==Config.pageApp?(ui.tree.refreshPath(core.pathFather(a)),void 0):(ui.f5(!0,!0,function(){var e=i+core.pathThis(t.path);ui.path.setSelectByFilename(e)}),void 0)}})},f=function(e){var t=u(e),i=LNG.size+" "+t.size_friendly+" ("+t.size+" Byte)";"folder"==e.type&&(i=t.file_num+LNG.file+","+t.folder_num+LNG.folder+", "+i),$("#"+e.tId).parents(".zipViewContent").find(".bottom .info").html(i)},u=function(e){var t={name:e.name,path:e.path,size:e.size,size_friendly:core.fileSize(e.size),mtime:date(LNG.time_type_info,e.mtime)};return 0==e.level&&(t.path=t.name),"folder"==e.type&&(s={file_num:0,folder_num:0,size:0},r(e),$.extend(t,s),t.size_friendly=core.fileSize(t.size)),t},h=function(e,t){var i="folder"==t.type?"folder":core.pathExt(t.path),a="folder"==t.type?tpl_path_info:tpl_file_info,n=template.compile(a),o=u(t);o.LNG=LNG,$.dialog({padding:5,ico:core.iconSmall(i),fixed:!0,title:core.pathThis(t.path),content:n(o),ok:!0})},m=function(e,t,i){var a=template.compile(tpl_zipview),n=a({LNG:LNG,treeID:e}),o=$.dialog({className:"zipViewDialog",id:"zip_view_"+md5(i),ico:core.icon("zip"),title:t,width:550,height:420,content:n,resize:!0,padding:0,fixed:!0}),s=15*$(".zipViewContent").length;o.DOM.wrap.css({left:"+="+s+"px",top:"+="+s+"px"})},_=function(e){$("#"+e).find("ul:visible > li > a").each(function(e){$(this).removeClass("odd"),0==e%2&&$(this).addClass("odd")})},v=function(e,o,s){var r=a(o),l="folderListZip"+UUID();r=ui.tree.treeDataSort(r),m(l,e,s),n(),r={name:e,ext:"zip",mtime:"",isParent:!0,open:!0,children:r,type:"folder",path:"",index:"-1",menuType:"menuZipListFolder"},$.fn.zTree.init($("#"+l),i,r),t=$.fn.zTree.getZTreeObj(l),_(l),f(t.getNodeByParam("index","-1",null))
-},g=function(e){var i=$(".zip_view_"+md5(e));if(i.length>0)return i.shake(3,20,80),void 0;var a="explorer/unzipList&access_token="+G.access_token+"&path="+urlEncode(e);return G.share_page!==void 0?(a="share/unzipList&user="+G.user+"&sid="+G.sid+"&path="+urlEncode(e),ui.pathOpen.openUnknow(e),void 0):(a=G.app_host+"index.php?"+a,$.ajax({url:a,dataType:"json",beforeSend:function(){Tips.loading(LNG.loading)},error:core.ajaxError,success:function(i){Tips.close(i),i.code?(v(core.pathThis(e),i.data,e),t.setting.filePath=e,t.setting.fileUrl=a):ui.pathOpen.openUnknow(e,i.data)}}),void 0)};g(e)}}),define("app/common/tpl/copyright.html",[],'\n
\n
{{if core.versionType==\'A\'}}KodExplorer {{else}} {{LNG.kod_name}} {{/if}} v{{G.version}}
\n
——{{LNG.kod_name_copyright}}
\n
\n
\n
{{#LNG.copyright_desc}}
\n
{{#LNG.copyright_contact}}
\n
{{#LNG.copyright_info}}
\n
\n
\n'),define("app/common/tpl/theme_diy.html",[],"@media screen and (max-width:100000px) {\n body .full_background{\n position: absolute;top: 0px;left: 0px;bottom: 0px;right: 0px;\n background-color: #020202;background-size: 100% 100%;\n }\n\n {{if blur_size= (bg_blur==0?0:10) }}{{/if}}\n body .full_background:before{\n -webkit-filter: blur({{blur_size}}px);\n -moz-filter: blur({{blur_size}}px);\n -ms-filter: blur({{blur_size}}px);\n filter: blur({{blur_size}}px);\n }\n {{if bg_type == 'image'}}\n body .full_background,\n body .full_background:before,\n body #body .menu_left,\n body #body .app_menu_left,\n body .aui_buttons,\n body .aui_state_focus .aui_title,body .aui_title{\n background-image:url({{bg_image}});\n }\n body .aui_state_focus .aui_title,body .aui_title{\n background-size:100%;\n }\n {{else}}\n body .full_background,\n body .full_background:before,\n body #body .menu_left, \n body #body .app_menu_left,\n body .aui_buttons,\n body .aui_state_focus .aui_title,body .aui_title{\n background:{{end_color}};\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='{{start_color}}', endColorstr='{{end_color}}');\n background-image: -webkit-linear-gradient({{color_rotate}}deg, {{start_color}}, {{end_color}});\n background-image: -moz-linear-gradient({{color_rotate}}deg, {{start_color}}, {{end_color}});\n background-image: -o-linear-gradient({{color_rotate}}deg, {{start_color}}, {{end_color}});\n background-image: -ms-linear-gradient({{color_rotate}}deg, {{start_color}}, {{end_color}});\n background-image: linear-gradient({{color_rotate}}deg, {{start_color}}, {{end_color}});\n }\n {{/if}}\n}\n"),define("app/src/setting/fav",[],function(){var e="index.php?fav/",t=function(t){$.ajax({url:e+"get",dataType:"json",async:!1,success:function(e){return e.code?(i(e.data,t),void 0):(Tips.tips(e),void 0)},error:function(){return!1}})},i=function(e,t){var i=""+htmlEncode(LNG.name)+"("+LNG.can_not_repeat+") "+""+htmlEncode(LNG.address)+"("+LNG.absolute_path+") "+""+LNG.action+" "+" ";for(var a in e)i+=""+" "+" "+" "+" "+LNG.button_save_edit+" "+" "+LNG.button_del+" "+" "+" ";if($("table#list").html(i),t&&"fav&"==t.substring(0,4)){var n=t.split("&")[1].split("=")[1],o=t.split("&")[2].split("=")[1],s=t.split("&")[3].split("=")[1];n=htmlEncode(urlDecode(n)),o=htmlEncode(urlDecode(o));var r=" "+" "+" "+" "+" "+LNG.button_save+" "+" "+LNG.button_cancel+" "+" "+" ";$(r).insertAfter("table#list tr:last")}},a=function(){var e=" "+LNG.button_save+" "+" "+LNG.button_cancel+" "+" "+" ";$(e).insertAfter("table#list tr:last")},n=function(){var e=$(this).parent().parent();$(e).detach()},o=function(){var t=$(this).parent().parent(),i=$(t).find("#sname").val(),a=$(t).find("#spath").val(),n=$(t).find("#stype").val();return""==i||""==a?(Tips.tips(LNG.not_null,"error"),!1):($.ajax({url:e+"add&name="+urlEncode(i)+"&path="+urlEncode(a)+"&type="+n,dataType:"json",success:function(e){if(Tips.tips(e),e.code){$(t).attr("name",i),$(t).attr("path",a);var n=""+LNG.button_save_edit+" "+""+LNG.button_del+" ";$(t).find("td.action").html(n),ShareData.frameTop("",function(e){e.ui.tree.refreshFav()})}}}),void 0)},s=function(){var i=$(this).parent().parent(),a=$(i).attr("name"),n=$(i).find("#sname").val(),o=$(i).find("#spath").val();return""==n||""==o?(Tips.tips(LNG.not_null,"error"),!1):($.ajax({dataType:"json",url:e+"edit&name="+urlEncode(a)+"&name_to="+urlEncode(n)+"&path_to="+urlEncode(o),success:function(e){Tips.tips(e),e.code&&($(i).attr("name",n),ShareData.frameTop("",function(e){e.ui.tree.refreshFav()}),t())}}),void 0)},r=function(){var t=$(this).parent().parent(),i=$(t).attr("name");$.ajax({url:e+"del&name="+urlEncode(i),dataType:"json",async:!1,success:function(e){Tips.tips(e),e.code&&($(t).detach(),ShareData.frameTop("",function(e){e.ui.tree.refreshFav()}))}})},l=function(){$(".fav .add").live("click",a),$(".fav .addexit").live("click",n),$(".fav .addsave").live("click",o),$(".fav .edit").live("click",s),$(".fav .del").live("click",r)};return l(),{init:t}}),define("app/src/setting/setting",[],function(e){var t,i=function(e){core.setSkin(e),ShareData.frameTop("",function(t){t.ui.setTheme(e)}),"diy"!=e?$(".theme_diy_setting").addClass("hidden"):$(".theme_diy_setting").removeClass("hidden")},a=function(e){core.setSkin(e)};template.helper("menu_info_decode",function(e){var t=htmlEncode(urlDecode(e));return t});var n=function(t){var i={about:e("./page/about.html"),fav:e("./page/fav.html"),help:e("./page/help.html"),member:e("./page/member.html"),system:e("./page/system.html"),theme:e("./page/theme.html"),user:e("./page/user.html"),wall:e("./page/wall.html")};return i[t]},o=function(e){(""==e||void 0==e)&&(e="user"),t=e,"fav&"==e.substring(0,4)&&(e="fav"),$(".selected").removeClass("selected"),$("ul.setting a#"+e).addClass("selected");var i=window.location.href;-1!=i.indexOf("#")&&(i=i.substr(0,i.indexOf("#"))),window.location.href=i+"#"+e,$.ajax({url:"./index.php?setting/slider&slider="+e,beforeSend:function(){$(".main").html(" ")},success:function(i){if("about"==e){var a=i.data;if(i.data="",!core.tools.about(a))return;i.data=a}var o=$(".menu_left .selected").clone();o.find(".ripple_father").remove();var r=""+o.html()+"
",l=n(e),c=template.compile(l),d=c({urlDecode:urlDecode,LNG:LNG,G:G,data:i.data,info:i.info});$(".main").html(r+d),$(".main").fadeIn("fast"),"fav"==e&&Fav.init(t),"member"==e&&System.init(),"theme"==e&&s(),t=e,$("a,img").attr("draggable","false")}})},s=function(){seajs.use("lib/bootstrap-slider/bootstrap-slider.css"),seajs.use("lib/colorpicker/css/colorpicker.css"),e.async("lib/bootstrap-slider/bootstrap-slider.js",function(){$("#colorRotate").slider().on("slide",i)}),e.async("lib/colorpicker/js/colorpicker",function(){$(".colorpicker").remove(),$(".color_picker").ColorPicker({onBeforeShow:function(e){$(e).attr("input-name",$(this).attr("name")),$(this).ColorPickerSetColor(this.value)},onShow:function(e){return $(e).fadeIn(100),!1},onHide:function(e){return $(e).fadeOut(100),!1},onChange:function(e,t){var a=$("input[name="+$(this).attr("input-name")+"]");a.val("#"+t),i()}}).bind("keyup",function(){$(this).ColorPickerSetColor(this.value)})});var t=$(".theme_diy_setting");t.find("input[name]").unbind("change").bind("change",function(){var e=$(this).attr("name");"bg_type"==e&&($(".theme_bg_type_image,.theme_bg_type_color").addClass("hidden"),$(".theme_bg_type_"+$(this).val()).removeClass("hidden")),$(this).attr("data-slider-value")||i()}),t.find(".theme_diy_save").unbind("click").bind("click",function(){var e=G.user_config.theme_diy;$.ajax({url:"index.php?setting/set&k=theme_diy&v="+urlEncode(jsonEncode(e)),dataType:"json",success:function(e){Tips.tips(e)}})}),t.find(".color_list").each(function(){var e=jsonDecode($(this).attr("data-color"));$(this).css("background-image","linear-gradient("+e.color_rotate+"deg,"+e.start_color+","+e.end_color+")")}),t.find(".color_list").unbind("click").bind("click",function(){var e=jsonDecode($(this).attr("data-color"));$.each(e,function(e,a){var n=t.find("input[name="+e+"]");"color_rotate"==e?$("#colorRotate").slider("setValue",parseInt(a)):n.val(a),i()})});var i=function(){if("diy"==LocalData.get("theme")){var e={};t.find("input[name]").each(function(){var i=$(this).attr("name"),a=$(this).val();"checkbox"==$(this).attr("type")?a=Number($(this).is(":checked")):"radio"==$(this).attr("type")&&(a=t.find("[name="+i+"]:checked").val()),e[i]=a}),LocalData.setConfig("kod_diy_style",e),core.setSkin("diy"),ShareData.frameTop("",function(e){e.ui.setTheme("diy")})}}},r=function(){1!=G.is_root&&$("ul.setting #system").remove(),G.is_root||1==AUTH["system_member:get"]||1==AUTH["system_group:get"]?$("ul.setting #member").show():$("ul.setting #member").hide(),t=location.hash.split("#",2)[1],o(t),$("ul.setting a").click(function(){t!=$(this).attr("id")&&(t=$(this).attr("id"),o(t))}),$("#password_new").keyEnter(function(){Setting.tools()}),$(".user_config_setting .form_row input").die("change").live("change",function(){var e=$(this),t=e.attr("name"),i=e.val();"checkbox"==e.attr("type")&&(i=e.prop("checked")?"1":"0"),l(t,i)}),$(".path_select").die("click").live("click",function(){core.api.pathSelect({type:"file",title:LNG.path_api_select_image,allowExt:"png|jpg|bmp|gif|jpeg|ico|svg|tiff"},function(e){var e=core.path2url(e);$(".path_select").parent().find("input[type=text]").val(e).trigger("change"),Setting.tools()})}),$(".randomImage").die("click").live("click",function(){var e=$(this),t=function(e){var t=G.my_desktop+"wallpage/";$.get("./index.php?explorer/mkdir&repeat_type=replace&path="+t,function(){$.get("./index.php?explorer/serverDownload&type=download&save_path="+t+"&url="+urlEncode(e))})};core.api.randomImage(function(i){e.addClass("moveCircle"),e.parent().find("input[type=text]").val(i).trigger("change"),1==$('.box[data-type="wall"]').length&&Setting.tools(),setTimeout(function(){e.removeClass("moveCircle")},1e3),t(i)})}),$(".box .list").live("hover",function(){$(this).addClass("listhover")},function(){$(this).toggleClass("listhover")}).live("click",function(){var e=$(this),t=e.parent();switch(type=t.attr("data-type"),value=e.attr("data-value"),t.find(".this").removeClass("this"),e.addClass("this"),type){case"wall":var a=G.static_path+"images/wall_page/"+value+".jpg";$("#wall_url").val(""),ShareData.frameTop("",function(e){e.ui.setWall(a)});break;case"theme":i(value);break;default:}l(type,value)}),$(".nav a").live("click",function(){$(".nav a").removeClass("this"),$(this).addClass("this");var e=$(this).attr("data-page");$(this).parent().parent().find(".panel").addClass("hidden"),$(this).parent().parent().find("."+e).removeClass("hidden")})},l=function(e,t){var i="index.php?setting/set&k="+e+"&v="+t;$.ajax({url:i,dataType:"json",success:function(e){e.code?Tips.tips(e):core.authCheck("setting:set")?Tips.tips(LNG.config_save_error_file,!1):Tips.tips(LNG.config_save_error_auth,!1)}})},c=function(){var e=$(".selected").attr("id");switch(e){case"user":var t=urlEncode($("#password_now").val()),i=urlEncode($("#password_new").val());if(""==i||""==t){Tips.tips(LNG.password_not_null,"error");break}$.ajax({url:"index.php?user/changePassword&password_now="+t+"&password_new="+i,dataType:"json",success:function(e){if(Tips.tips(e),e.code){var t=ShareData.frameTop();t.location.href="./index.php?user/logout"}}});break;case"wall":var a=$("#wall_url").val();if(""==a){Tips.tips(LNG.picture_can_not_null,"error");break}ShareData.frameTop("",function(e){e.ui.setWall(a)}),$(".box").find(".this").removeClass("this"),$.ajax({url:"index.php?setting/set&k=wall&v="+urlEncode(a),dataType:"json",success:function(e){Tips.tips(e)}});default:}};return r(),{setGoto:o,tools:c,setThemeSelf:a,setTheme:i}}),define("app/src/setting/page/about.html",[],'\n'),define("app/src/setting/page/fav.html",[],'\n'),define("app/src/setting/page/help.html",[],'\n'),define("app/src/setting/page/member.html",[],'\n
\n \n\n
\n \n\n
\n \n\n
\n
\n
\n
{{LNG.group_role_file}}
\n
\n
\n
\n
\n\n
\n\n
\n
\n\n
\n {{LNG.button_save_submit}} \n {{LNG.button_select_all}} \n
\n
\n\n
\n \n
\n \n\n\n'),define("app/src/setting/page/system.html",[],'
\n\n{{if G.is_root}}\n
\n {{if core.versionType !="A"}}\n {{LNG.more}} \n {{/if}}\n\n {{if verIndex={"A":"free","O":"1","P":"2","Q":"3"} }}{{/if}}\n {{if verKey = "version_vip_"+verIndex[core.versionType] }}{{/if}}\n {{LNG[verKey]}} \n
\n{{/if}}\n\n\n
\n
\n
\n\n
\n
\n
\n
\n
\n
\n\n
\n\n
\n
\n\n\n \n
\n
\n\n \n
\n\n\n\n\n\n\n
\n
\n
\n\n {{if core.versionType !="A"}}\n
\n {{/if}}\n\n
\n\n
\n
\n\n
\n\n
\n\n
\n\n \n
\n
\n\n
\n'),define("app/src/setting/page/theme.html",[],'
\n
\n {{each data.setting_all.themeall.split(\',\') as value key}}\n
\n
\n
{{#LNG[\'theme_\'+value]}}
\n
\n {{/each}}\n
\n
\n
\n\n{{if config = G.user_config.theme_diy}}{{/if}}\n
\n
{{LNG.theme_diy_title}} \n
\n
\n\n
\n\n
\n
\n
\n
\n\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n \n
\n\n
\n
\n'),define("app/src/setting/page/user.html",[],'
\n\n
\n\n\n\n'),define("app/src/setting/page/wall.html",[],'
\n
\n {{each data.setting_all.wallall.split(\',\') as value key}}\n
\n {{/each}}\n
\n
\n
\n\n\n
\n
{{LNG.setting_wall_diy}} \n
\n
\n'),define("app/src/setting/system/system_setting",[],function(){var e=function(){$("input[name='first_in']").live("click",function(){$("input[name='first_in']").removeAttr("checked"),$(this).attr("checked","checked")
+},g=function(e){var i=$(".zip_view_"+md5(e));if(i.length>0)return i.shake(3,20,80),void 0;var a="explorer/unzipList&access_token="+G.access_token+"&path="+urlEncode(e);return G.share_page!==void 0?(a="share/unzipList&user="+G.user+"&sid="+G.sid+"&path="+urlEncode(e),ui.pathOpen.openUnknow(e),void 0):(a=G.app_host+"index.php?"+a,$.ajax({url:a,dataType:"json",beforeSend:function(){Tips.loading(LNG.loading)},error:core.ajaxError,success:function(i){Tips.close(i),i.code?(v(core.pathThis(e),i.data,e),t.setting.filePath=e,t.setting.fileUrl=a):ui.pathOpen.openUnknow(e,i.data)}}),void 0)};g(e)}}),define("app/common/tpl/copyright.html",[],'
\n
\n
{{if core.versionType==\'A\'}}KodExplorer {{else}} {{LNG.kod_name}} {{/if}} v{{G.version}}
\n
——{{LNG.kod_name_copyright}}
\n
\n
\n
{{#LNG.copyright_desc}}
\n
{{#LNG.copyright_contact}}
\n
{{#LNG.copyright_info}}
\n
\n
\n'),define("app/common/tpl/theme_diy.html",[],"@media screen and (max-width:100000px) {\n body .full_background{\n position: absolute;top: 0px;left: 0px;bottom: 0px;right: 0px;\n background-color: #020202;background-size: 100% 100%;\n }\n\n {{if blur_size= (bg_blur==0?0:10) }}{{/if}}\n body .full_background:before{\n -webkit-filter: blur({{blur_size}}px);\n -moz-filter: blur({{blur_size}}px);\n -ms-filter: blur({{blur_size}}px);\n filter: blur({{blur_size}}px);\n }\n {{if bg_type == 'image'}}\n body .full_background,\n body .full_background:before,\n body #body .menu_left,\n body #body .app_menu_left,\n body .aui_buttons,\n body .aui_state_focus .aui_title,body .aui_title{\n background-image:url({{bg_image}});\n }\n body .aui_state_focus .aui_title,body .aui_title{\n background-size:100%;\n }\n {{else}}\n body .full_background,\n body .full_background:before,\n body #body .menu_left, \n body #body .app_menu_left,\n body .aui_buttons,\n body .aui_state_focus .aui_title,body .aui_title{\n background:{{end_color}};\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='{{start_color}}', endColorstr='{{end_color}}');\n background-image: -webkit-linear-gradient({{color_rotate}}deg, {{start_color}}, {{end_color}});\n background-image: -moz-linear-gradient({{color_rotate}}deg, {{start_color}}, {{end_color}});\n background-image: -o-linear-gradient({{color_rotate}}deg, {{start_color}}, {{end_color}});\n background-image: -ms-linear-gradient({{color_rotate}}deg, {{start_color}}, {{end_color}});\n background-image: linear-gradient({{color_rotate}}deg, {{start_color}}, {{end_color}});\n }\n {{/if}}\n}\n"),define("app/src/setting/fav",[],function(){var e="index.php?fav/",t=function(t){$.ajax({url:e+"get",dataType:"json",async:!1,success:function(e){return e.code?(i(e.data,t),void 0):(Tips.tips(e),void 0)},error:function(){return!1}})},i=function(e,t){var i="
"+htmlEncode(LNG.name)+"("+LNG.can_not_repeat+") "+""+htmlEncode(LNG.address)+"("+LNG.absolute_path+") "+""+LNG.action+" "+"";for(var a in e)i+="
"+" "+" "+" "+" "+LNG.button_save_edit+" "+" "+LNG.button_del+" "+" "+" ";if($("table#list").html(i),t&&"fav&"==t.substring(0,4)){var n=t.split("&")[1].split("=")[1],o=t.split("&")[2].split("=")[1],s=t.split("&")[3].split("=")[1];n=htmlEncode(urlDecode(n)),o=htmlEncode(urlDecode(o));var r="
"+" "+" "+" "+" "+LNG.button_save+" "+" "+LNG.button_cancel+" "+" "+" ";$(r).insertAfter("table#list tr:last")}},a=function(){var e="
"+LNG.button_save+" "+" "+LNG.button_cancel+" "+" "+" ";$(e).insertAfter("table#list tr:last")},n=function(){var e=$(this).parent().parent();$(e).detach()},o=function(){var t=$(this).parent().parent(),i=$(t).find("#sname").val(),a=$(t).find("#spath").val(),n=$(t).find("#stype").val();return""==i||""==a?(Tips.tips(LNG.not_null,"error"),!1):($.ajax({url:e+"add&name="+urlEncode(i)+"&path="+urlEncode(a)+"&type="+n,dataType:"json",success:function(e){if(Tips.tips(e),e.code){$(t).attr("name",i),$(t).attr("path",a);var n="
"+LNG.button_save_edit+" "+"
"+LNG.button_del+" ";$(t).find("td.action").html(n),ShareData.frameTop("",function(e){e.ui.tree.refreshFav()})}}}),void 0)},s=function(){var i=$(this).parent().parent(),a=$(i).attr("name"),n=$(i).find("#sname").val(),o=$(i).find("#spath").val();return""==n||""==o?(Tips.tips(LNG.not_null,"error"),!1):($.ajax({dataType:"json",url:e+"edit&name="+urlEncode(a)+"&name_to="+urlEncode(n)+"&path_to="+urlEncode(o),success:function(e){Tips.tips(e),e.code&&($(i).attr("name",n),ShareData.frameTop("",function(e){e.ui.tree.refreshFav()}),t())}}),void 0)},r=function(){var t=$(this).parent().parent(),i=$(t).attr("name");$.ajax({url:e+"del&name="+urlEncode(i),dataType:"json",async:!1,success:function(e){Tips.tips(e),e.code&&($(t).detach(),ShareData.frameTop("",function(e){e.ui.tree.refreshFav()}))}})},l=function(){$(".fav .add").live("click",a),$(".fav .addexit").live("click",n),$(".fav .addsave").live("click",o),$(".fav .edit").live("click",s),$(".fav .del").live("click",r)};return l(),{init:t}}),define("app/src/setting/setting",[],function(e){var t,i=function(e){core.setSkin(e),ShareData.frameTop("",function(t){t.ui.setTheme(e)}),"diy"!=e?$(".theme_diy_setting").addClass("hidden"):$(".theme_diy_setting").removeClass("hidden")},a=function(e){core.setSkin(e)};template.helper("menu_info_decode",function(e){var t=htmlEncode(urlDecode(e));return t});var n=function(t){var i={about:e("./page/about.html"),fav:e("./page/fav.html"),help:e("./page/help.html"),member:e("./page/member.html"),system:e("./page/system.html"),theme:e("./page/theme.html"),user:e("./page/user.html"),wall:e("./page/wall.html")};return i[t]},o=function(e){(""==e||void 0==e)&&(e="user"),t=e,"fav&"==e.substring(0,4)&&(e="fav"),$(".selected").removeClass("selected"),$("ul.setting a#"+e).addClass("selected");var i=window.location.href;-1!=i.indexOf("#")&&(i=i.substr(0,i.indexOf("#"))),window.location.href=i+"#"+e,$.ajax({url:"./index.php?setting/slider&slider="+e,beforeSend:function(){$(".main").html("
")},success:function(i){if("about"==e){var a=i.data;if(i.data="",!core.tools.about(a))return;i.data=a}var o=$(".menu_left .selected").clone();o.find(".ripple_father").remove();var r="
"+o.html()+"
",l=n(e),c=template.compile(l),d=c({urlDecode:urlDecode,LNG:LNG,G:G,data:i.data,info:i.info});$(".main").html(r+d),$(".main").fadeIn("fast"),"fav"==e&&Fav.init(t),"member"==e&&System.init(),"theme"==e&&s(),t=e,$("a,img").attr("draggable","false")}})},s=function(){seajs.use("lib/bootstrap-slider/bootstrap-slider.css"),seajs.use("lib/colorpicker/css/colorpicker.css"),e.async("lib/bootstrap-slider/bootstrap-slider.js",function(){$("#colorRotate").slider().on("slide",i)}),e.async("lib/colorpicker/js/colorpicker",function(){$(".colorpicker").remove(),$(".color_picker").ColorPicker({onBeforeShow:function(e){$(e).attr("input-name",$(this).attr("name")),$(this).ColorPickerSetColor(this.value)},onShow:function(e){return $(e).fadeIn(100),!1},onHide:function(e){return $(e).fadeOut(100),!1},onChange:function(e,t){var a=$("input[name="+$(this).attr("input-name")+"]");a.val("#"+t),i()}}).bind("keyup",function(){$(this).ColorPickerSetColor(this.value)})});var t=$(".theme_diy_setting");t.find("input[name]").unbind("change").bind("change",function(){var e=$(this).attr("name");"bg_type"==e&&($(".theme_bg_type_image,.theme_bg_type_color").addClass("hidden"),$(".theme_bg_type_"+$(this).val()).removeClass("hidden")),$(this).attr("data-slider-value")||i()}),t.find(".theme_diy_save").unbind("click").bind("click",function(){var e=G.user_config.theme_diy;$.ajax({url:"index.php?setting/set&k=theme_diy&v="+urlEncode(jsonEncode(e)),dataType:"json",success:function(e){Tips.tips(e)}})}),t.find(".color_list").each(function(){var e=jsonDecode($(this).attr("data-color"));$(this).css("background-image","linear-gradient("+e.color_rotate+"deg,"+e.start_color+","+e.end_color+")")}),t.find(".color_list").unbind("click").bind("click",function(){var e=jsonDecode($(this).attr("data-color"));$.each(e,function(e,a){var n=t.find("input[name="+e+"]");"color_rotate"==e?$("#colorRotate").slider("setValue",parseInt(a)):n.val(a),i()})});var i=function(){if("diy"==LocalData.get("theme")){var e={};t.find("input[name]").each(function(){var i=$(this).attr("name"),a=$(this).val();"checkbox"==$(this).attr("type")?a=Number($(this).is(":checked")):"radio"==$(this).attr("type")&&(a=t.find("[name="+i+"]:checked").val()),e[i]=a}),LocalData.setConfig("kod_diy_style",e),core.setSkin("diy"),ShareData.frameTop("",function(e){e.ui.setTheme("diy")})}}},r=function(){1!=G.is_root&&$("ul.setting #system").remove(),G.is_root||1==AUTH["system_member:get"]||1==AUTH["system_group:get"]?$("ul.setting #member").show():$("ul.setting #member").hide(),t=location.hash.split("#",2)[1],o(t),$("ul.setting a").click(function(){t!=$(this).attr("id")&&(t=$(this).attr("id"),o(t))}),$("#password_new").keyEnter(function(){Setting.tools()}),$(".user_config_setting .form_row input").die("change").live("change",function(){var e=$(this),t=e.attr("name"),i=e.val();"checkbox"==e.attr("type")&&(i=e.prop("checked")?"1":"0"),l(t,i)}),$(".path_select").die("click").live("click",function(){core.api.pathSelect({type:"file",title:LNG.path_api_select_image,allowExt:"png|jpg|bmp|gif|jpeg|ico|svg|tiff"},function(e){var e=core.path2url(e);$(".path_select").parent().find("input[type=text]").val(e).trigger("change"),Setting.tools()})}),$(".randomImage").die("click").live("click",function(){var e=$(this),t=function(e){var t=G.my_desktop+"wallpage/";$.get("./index.php?explorer/mkdir&repeat_type=replace&path="+t,function(){$.get("./index.php?explorer/serverDownload&type=download&save_path="+t+"&url="+urlEncode(e))})};core.api.randomImage(function(i){e.addClass("moveCircle"),e.parent().find("input[type=text]").val(i).trigger("change"),1==$('.box[data-type="wall"]').length&&Setting.tools(),setTimeout(function(){e.removeClass("moveCircle")},1e3),t(i)})}),$(".box .list").live("hover",function(){$(this).addClass("listhover")},function(){$(this).toggleClass("listhover")}).live("click",function(){var e=$(this),t=e.parent();switch(type=t.attr("data-type"),value=e.attr("data-value"),t.find(".this").removeClass("this"),e.addClass("this"),type){case"wall":var a=G.static_path+"images/wall_page/"+value+".jpg";$("#wall_url").val(""),ShareData.frameTop("",function(e){e.ui.setWall(a)});break;case"theme":i(value);break;default:}l(type,value)}),$(".nav a").live("click",function(){$(".nav a").removeClass("this"),$(this).addClass("this");var e=$(this).attr("data-page");$(this).parent().parent().find(".panel").addClass("hidden"),$(this).parent().parent().find("."+e).removeClass("hidden")})},l=function(e,t){var i="index.php?setting/set&k="+e+"&v="+t;$.ajax({url:i,dataType:"json",success:function(e){e.code?Tips.tips(e):core.authCheck("setting:set")?Tips.tips(LNG.config_save_error_file,!1):Tips.tips(LNG.config_save_error_auth,!1)}})},c=function(){var e=$(".selected").attr("id");switch(e){case"user":var t=urlEncode($("#password_now").val()),i=urlEncode($("#password_new").val());if(""==i||""==t){Tips.tips(LNG.password_not_null,"error");break}$.ajax({url:"index.php?user/changePassword&password_now="+t+"&password_new="+i,dataType:"json",success:function(e){if(Tips.tips(e),e.code){var t=ShareData.frameTop();t.location.href="./index.php?user/logout"}}});break;case"wall":var a=$("#wall_url").val();if(""==a){Tips.tips(LNG.picture_can_not_null,"error");break}ShareData.frameTop("",function(e){e.ui.setWall(a)}),$(".box").find(".this").removeClass("this"),$.ajax({url:"index.php?setting/set&k=wall&v="+urlEncode(a),dataType:"json",success:function(e){Tips.tips(e)}});default:}};return r(),{setGoto:o,tools:c,setThemeSelf:a,setTheme:i}}),define("app/src/setting/page/about.html",[],'
\n'),define("app/src/setting/page/fav.html",[],'
\n'),define("app/src/setting/page/help.html",[],'
\n'),define("app/src/setting/page/member.html",[],'
\n
\n \n\n
\n \n\n
\n \n\n
\n
\n
\n
{{LNG.group_role_file}}
\n
\n
\n
\n
\n\n
\n\n
\n
\n\n
\n {{LNG.button_save_submit}} \n {{LNG.button_select_all}} \n
\n
\n\n
\n \n
\n
\n\n\n'),define("app/src/setting/page/system.html",[],'