tpl=TEMPLATE.'explorer/';zym_var_27?zym_var_70;$this->user=$_SESSION['kod_user'];if(isset($this->in['path'])){$this->path=_DIR($this->in['path']);$this->check_system_path();}}public function index(){$zym_var_55='';zym_var_27挥?ym_var_35???if(isset($this->in['path'])&& $this->in['path']!=''){$zym_var_55=_DIR_CLEAR($_GET['path']);$zym_var_55=rtrim($zym_var_55,'/').'/';}$this->assign('dir',$zym_var_55);if($this->config['forceWap']){$this->display('index_wap.php');}else{$this->display('index.php');}}private function check_system_path(){if(!in_array(ACT,array('mkfile','mkdir','search','pathCuteDrag','pathCopyDrag','pathPast','fileDownload'))){return;}if($GLOBALS['path_type']==KOD_USER_SHARE&& !strstr(trim($this->in['path'],'/'),'/')){show_json($this->L['error'],!1);}if(in_array($GLOBALS['path_type'],array(KOD_USER_FAV,KOD_GROUP_ROOT_ALL,KOD_GROUP_ROOT_SELF))){show_json($this->L['system_path_not_change'],!1);}}public function pathInfo(){$zym_var_147=json_decode($this->in['list'],!0);if(!$zym_var_147){show_json($this->L['error'],!1);}foreach($zym_var_147 as &$zym_var_73){$zym_var_73['path']=_DIR($zym_var_73['path']);}$zym_var_52=path_info_muti($zym_var_147,$this->L['time_type_info']);if(!$zym_var_52){show_json($this->L['not_exists'],!1);}if(count($zym_var_147)==0x001&& $zym_var_147[0]['type']!='folder'){if($GLOBALS['is_root']|| $GLOBALS['auth']['explorer:fileDownload']==0x001){$zym_var_52['download_path']=_make_file_proxy($zym_var_147[0]['path']);}$zym_var_70=$zym_var_147[0]['path'];if($zym_var_52['size']<0x064*0x00000400*0x00000400|| isset($this->in['get_md5'])){$zym_var_52['file_md5']=@md5_file($zym_var_70);}else{$zym_var_52['file_md5']="...";}$zym_var_53=get_path_ext($zym_var_70);if(in_array($zym_var_53,array('jpg','gif','png','jpeg','bmp'))){load_class('imageThumb');$zym_var_81=imageThumb::imageSize($zym_var_70);if($zym_var_81){$zym_var_52['image_size']=$zym_var_81;}}}$zym_var_52['path']=_DIR_OUT($zym_var_52['path']);show_json($zym_var_52);}public function pathChmod(){$zym_var_305=json_decode($this->in['list'],!0);if(!$zym_var_305){show_json($this->L['error'],!1);}$zym_var_146=octdec('0'.$this->in['mod']);$zym_var_49=0;zym_var_27zym_var_35?zym_var_603zym_var_605?$zym_var_188=0;foreach($zym_var_305 as $zym_var_62){$zym_var_47=_DIR($zym_var_62['path']);zym_var_27桂?衷?ym_var_471?ⅱzym_var_131zym_fun_76?ym_var_414zym_var_54zym_fun_76zym_var_471???zym_var_70zym_var_595骗??ym_var_48zym_var_414??源zym_fun_43兹帙?歆?zym_var_473???if(chmod_path($zym_var_47,$zym_var_146)){$zym_var_49++;}else{$zym_var_188++;}}$zym_var_145=$zym_var_188==0?!0:!1;zym_var_27??ym_var_751?zym_var_600?zym_var_53?ym_var_54?zym_var_602zym_var_602?ym_var_54zym_var_459zym_fun_74zym_var_6zym_var_513??ym_var_131否zym_var_608凛??ym_var_61?拳?ym_var_70??ym_var_473?ym_fun_75zym_var_70?;$zym_var_187=$zym_var_49.' success,'.$zym_var_188.' error';if(count($zym_var_305)==0x001&& $zym_var_188==0){$zym_var_187=$this->L['success'];}show_json($zym_var_187,$zym_var_145);}public function mkfile(){$zym_var_148=BASIC_PATH.'static/others/newfile-tpl/';space_size_use_check();zym_var_27?肢?┬?ym_var_26?zym_var_52?;$zym_var_186='skip';if(isset($this->in['repeat_type'])){$zym_var_186=$this->in['repeat_type'];}$zym_var_113=rtrim($this->path,'/');$zym_var_113=get_filename_auto($zym_var_113,'',$zym_var_186);zym_var_27zym_fun_74?zym_var_459zym_var_22??zym_var_48zym_var_48zym_var_54zym_var_33?????熨?;if(@touch($zym_var_113)){chmod_path($zym_var_113,0777);if(isset($this->in['content'])){file_put_contents($zym_var_113,$this->in['content']);}else{$zym_fun_74=get_path_ext($zym_var_113);$zym_var_44=$zym_var_148.'newfile.'.$zym_fun_74;if(file_exists($zym_var_44)){$zym_var_39=file_get_contents($zym_var_44);file_put_contents($zym_var_113,$zym_var_39);}}zymfunc_1($zym_var_113);show_json($this->L['create_success'],!0,_DIR_OUT(iconv_app($zym_var_113)));}else{show_json($this->L['create_error'],!1);}}public function mkdir(){space_size_use_check();$zym_var_189='skip';zym_var_27zym_var_514??ym_var_46?ym_var_473??孩牲缓?ym_fun_74zym_var_54zym_var_54?zym_var_608??髡麂zym_var_46???札?鞴读?ym_var_26?;if(isset($this->in['repeat_type'])){$zym_var_189=$this->in['repeat_type'];}$zym_var_149=rtrim($this->path,'/');$zym_var_149=get_filename_auto($zym_var_149,'',$zym_var_189);if(mk_dir($zym_var_149,0777)){chmod_path($zym_var_149,0777);show_json($this->L['create_success'],!0,_DIR_OUT(iconv_app($zym_var_149)));}else{show_json($this->L['create_error'],!1);}}public function pathRname(){$zym_var_54=_DIR($this->in['rname_to']);zym_var_27?∩??郸?ym_var_52?if(file_exist_case($zym_var_54)){show_json($this->L['name_isexists'],!1);}if(@rename($this->path,$zym_var_54)){show_json($this->L['rname_success'],!0,_DIR_OUT(iconv_app($zym_var_54)));}else{show_json($this->L['no_permission_write_all'],!1);}}public function search(){if(!isset($this->in['search']))show_json($this->L['please_inpute_search_words'],!1);$zym_var_41=intval($this->in['is_content']);zym_var_27?ym_fun_74zym_var_598zym_var_27??ym_var_459?$zym_var_43=intval($this->in['is_case']);zym_var_27э?ym_var_598肫走??zym_var_48?讼zym_var_35zym_var_53zym_var_98帔?ym_var_70zym_fun_56?ym_var_17?zym_var_26?ym_fun_74zym_var_46?ym_var_46zym_var_27zym_var_27?$zym_var_42=trim($this->in['ext']);zym_var_27?ym_var_605??ym_var_751剖?zym_var_52???ym_var_464?if($GLOBALS['path_type']==KOD_USER_SHARE&& strstr($this->path,KOD_USER_SHARE)){show_json($this->L['path_cannot_search'],!1);}$zym_var_95=path_search($this->path,iconv_system(rawurldecode($this->in['search'])),$zym_var_41,$zym_var_42,$zym_var_43);show_json(_DIR_OUT($zym_var_95));zym_var_27?ym_var_512搿zym_var_514zym_var_513zym_var_35?构zym_var_513zym_var_512zym_var_414zym_var_22zym_fun_74?辙?????ym_fun_75?忿zym_var_26zym_fun_73?zym_var_48zym_var_22???zym_var_35??痫铷zym_var_22zym_var_605悬?zym_var_600;}public function pathList(){$zym_var_100=$this->in['path'];if($zym_var_100=="")$zym_var_100='/';$zym_var_54=$this->path($this->path);if($this->path== MYHOME|| $this->path==HOME){$this->_self_root_load($zym_var_54['folderlist']);}if($zym_var_54['info']['path_type']==KOD_GROUP_PATH&& !strstr(trim(_DIR_CLEAR($this->in['path']),'/'),'/')){$this->_self_group_load($zym_var_54['folderlist']);}$zym_var_54['user_space']=$this->user['config'];show_json($zym_var_54);}public function treeList(){$zym_fun_75=$this->in['app'];if(isset($this->in['type'])&& $this->in['type']=='init'){$this->_tree_init($zym_fun_75);}switch(trim(rawurldecode($this->in['path']))){case KOD_USER_FAV:show_json($this->_tree_fav(),!0);break;case KOD_GROUP_ROOT_SELF:show_json($this->_group_self(),!0);break;case KOD_GROUP_ROOT_ALL:show_json($this->_group_tree('1'),!0);break;default:break;}if((isset($this->in['tree_icon'])&& $this->in['tree_icon']!='groupPublic')&& !strstr(trim(rawurldecode($this->in['path']),'/'),'/')&&($GLOBALS['path_type']==KOD_GROUP_PATH|| $GLOBALS['path_type']==KOD_GROUP_SHARE)){$zym_var_89=$this->_group_tree($GLOBALS['path_id']);show_json($zym_var_89,!0);return;}$zym_var_115=_DIR($this->in['path']);if(!is_readable($zym_var_115))show_json($this->L['no_permission_read'],!1);$zym_var_152=($zym_fun_75=='editor'?!0:!1);zym_var_27zym_var_600迎镲??$zym_var_89=$this->path($zym_var_115,$zym_var_152,!0);function sort_by_key($zym_var_38,$zym_var_100){if($zym_var_38['name']==$zym_var_100['name'])return 0;return($zym_var_38['name']>$zym_var_100['name'])?0x001:-0x001;}usort($zym_var_89['folderlist'],"sort_by_key");zym_var_27?zym_var_52孪zym_var_595??zym_var_459zym_var_602杷?ym_var_608??zym_var_602:?滦zym_var_26zym_var_600店zym_var_26烁???盗??犋?大???ym_var_54?zym_var_98????????ym_var_6萘魅湖?ym_var_512??usort($zym_var_89['filelist'],"sort_by_key");zym_var_27?ym_var_605侪zym_var_512?ym_var_514zym_var_54zym_var_70?zym_var_187??ym_var_514??ym_var_22葭??ym_var_54?ym_var_600zym_var_595zym_var_27?????ym_var_600?ym_var_61??zym_fun_76zym_fun_76zym_var_514?ym_var_70ⅷ????zym_fun_75?聍?ym_var_54zym_var_471饴?ym_var_131zym_var_603樊?ym_var_54??耠抡煊??zym_var_52;if($zym_var_115==MYHOME|| $zym_var_115==HOME){}if($zym_fun_75=='editor'){$zym_var_6=array_merge($zym_var_89['folderlist'],$zym_var_89['filelist']);show_json($zym_var_6,!0);}else{show_json($zym_var_89['folderlist'],!0);}}private function _self_group_load(&$zym_var_150){foreach($zym_var_150 as $zym_var_191=>$zym_var_98){if($zym_var_98['name']=='share'){$zym_var_150[$zym_var_191]=array('name' =>$this->L['group_share'],'menuType' =>"menufolder folderBox",'ext' =>"folder_share",'isParent' =>!0,'is_readable' =>!0,'is_writeable' =>!0,'path' =>KOD_GROUP_PATH.':'.$GLOBALS['path_id'].'/share/','type' =>'folder','open' =>!1,'isParent' =>!1);break;}}$zym_var_150=array_values($zym_var_150);}private function _self_root_load(&$zym_var_10){foreach($zym_var_10 as $zym_var_9=>$zym_var_85){if($zym_var_85['name']=='share'){$zym_var_10[$zym_var_9]=array('name' =>$this->L['my_share'],'menuType' =>"menuTreeUser",'ext' =>"folder_share",'isParent' =>!0,'is_readable' =>!0,'is_writeable' =>!0,'path' =>KOD_USER_SHARE.':'.$this->user["user_id"].'/','type' =>'folder','open' =>!1,'isParent' =>!1);break;}}$zym_var_10=array_values($zym_var_10);if($this->config['user']['recycle_open']=="1"){}}private function _tree_fav(){$zym_var_12=($this->in['app']=='editor'?!0:!1);$zym_var_13=new fileCache(USER.'data/fav.php');zym_var_27??zym_var_751;$zym_var_87=$zym_var_13->get();zym_var_27??ym_var_70?锘zym_var_35?ym_var_54?ym_var_751??ym_var_48澧?zym_var_26∑?ぴ?zym_var_46帔??;$zym_var_16=array();$GLOBALS['path_from_auth_check']=!0;foreach($zym_var_87 as $zym_var_144=>$zym_var_600){$zym_var_190=path_haschildren(_DIR($zym_var_600['path']),$zym_var_12);if(!isset($zym_var_600['type'])){$zym_var_600['type']='folder';}if(in_array($zym_var_600['type'],array('group'))){$zym_var_190=!0;}$zym_var_15=array('name' =>$zym_var_600['name'],'ext' =>$zym_var_600['ext'],'menuType' =>"menuTreeFav",'path' =>$zym_var_600['path'],'type' =>$zym_var_600['type'],'open' =>!1,'isParent' =>$zym_var_190);if(isset($zym_var_600['type'])&& $zym_var_600['type']!='folder'){$zym_var_15['ext']=$zym_var_600['type'];}$zym_var_16[]=$zym_var_15;}$GLOBALS['path_from_auth_check']=!1;return $zym_var_16;}private function _tree_init($zym_var_143){if($zym_var_143=='editor' && isset($this->in['project'])){$zym_var_185=$this->path(_DIR($this->in['project']),!0,!0);$zym_var_184=array_merge($zym_var_185['folderlist'],$zym_var_185['filelist']);$zym_var_8=array(array('name'=> get_path_this($this->in['project']),'children' =>$zym_var_184,'menuType' =>"menuTreeRoot",'ext' =>"folder",'path' =>$this->in['project'],'type' =>'folder','open' =>!0,'isParent' =>count($zym_var_184)>0?!0:!1));show_json($zym_var_8);return;}$zym_var_17=($zym_var_143=='editor'?!0:!1);$zym_var_135=$this->_tree_fav($zym_var_143);zym_var_27zym_fun_76zym_var_513ハ荤??zym_var_46zym_var_512zym_var_605?zym_var_131⑺zym_var_471?沟zym_var_98?ym_var_53?昱zym_var_53唼?zym_var_513?ym_fun_75?ym_var_61?ym_fun_76zym_var_98?ym_fun_75;$zym_var_7=KOD_GROUP_PATH.':1/';if(system_member::user_auth_group(0x001)==!1){$zym_var_7=KOD_GROUP_SHARE.':1/';}$zym_var_598=$this->path(_DIR($zym_var_7),$zym_var_17,!0);$zym_var_1=$this->path(_DIR(MYHOME),$zym_var_17,!0);if($zym_var_17){$zym_var_92=array_merge($zym_var_1['folderlist'],$zym_var_1['filelist']);$zym_var_2=array_merge($zym_var_598['folderlist'],$zym_var_598['filelist']);}else{$zym_var_92=$zym_var_1['folderlist'];$zym_var_2=$zym_var_598['folderlist'];}$zym_var_35=count($zym_var_92)>0?!0:!1;$zym_var_4=count($zym_var_2)>0?!0:!1;zym_var_27箅zym_var_131?ym_var_35?ym_var_61??ㄅ??ym_var_131?zym_var_54zym_var_54?ym_var_464??zym_var_464骡zym_var_459?ym_var_54??zym_var_6溏zym_var_513zym_fun_75?ym_fun_73?ym_var_22????Ⅰzym_fun_56zym_var_22zym_fun_76贰瘊zym_var_600zym_var_605瓷?ym_var_131zym_var_6??ym_var_61龋zym_var_595zym_var_512;$zym_var_8=array('webroot'=>array(),'fav'=>array('name' =>$this->L['fav'],'ext' =>"treeFav",'menuType' =>"menuTreeFavRoot",'children' =>$zym_var_135,'path' =>KOD_USER_FAV,'type' =>'folder','open' =>!0,'isParent' =>count($zym_var_135)>0?!0:!1),'my_home'=>array('name' =>$this->L['root_path'],'menuType' =>"menuTreeRoot",'ext' =>"treeSelf",'children' =>$zym_var_92,'path' =>MYHOME,'type' =>'folder','open' =>!0,'isParent' =>$zym_var_35),'public'=>array('name' =>$this->L['public_path'],'menuType' =>"menuTreeGroupRoot",'ext' =>"groupPublic",'children' =>$zym_var_2,'path' =>$zym_var_7,'type' =>'folder','open' =>!0,'isParent' =>$zym_var_4),'my_group'=>array('name' =>$this->L['my_kod_group'],'menuType' =>"menuTreeGroupRoot",'ext' =>"groupSelfRoot",'children' =>$this->_group_self(),'path' =>KOD_GROUP_ROOT_SELF,'type' =>'folder','open' =>!0,'isParent' =>!0),'group'=>array('name' =>$this->L['kod_group'],'menuType' =>"menuTreeGroupRoot",'ext' =>"groupRoot",'children' =>$this->_group_tree('1'),'path' =>KOD_GROUP_ROOT_ALL,'type' =>'folder','open' =>!0,'isParent' =>!0),);if($zym_var_143=='editor'){unset($zym_var_8['my_group']);unset($zym_var_8['group']);unset($zym_var_8['public']);if($GLOBALS['is_root']==0x001){$zym_var_138=$this->path(_DIR(WEB_ROOT),$zym_var_17,!0);$zym_var_88=array_merge($zym_var_138['folderlist'],$zym_var_138['filelist']);$zym_var_8['webroot']=array('name' =>"webroot",'menuType' =>"menuTreeRoot",'ext' =>"folder",'children' =>$zym_var_88,'path' =>WEB_ROOT,'type' =>'folder','open' =>!0,'isParent' =>!0);}}else{unset($zym_var_8['webroot']);}$zym_fun_56=array();zym_var_27zym_var_61?zym_var_22zym_var_751zym_var_54zym_var_98?ym_var_70;foreach($zym_var_8 as $zym_var_137=>$zym_var_139){if(count($zym_var_139['children'])<0x001&& in_array($zym_var_137,array('my_group','group'))){continue;}$zym_fun_56[]=$zym_var_139;}show_json($zym_fun_56);}private function _group_tree($zym_var_348){$zym_var_608=system_group::load_data();zym_var_27???zym_fun_73zym_fun_76?狠?ym_var_54;$zym_var_112=$zym_var_608->get(array('parent_id',$zym_var_348));zym_var_27?zym_var_52?ym_var_414?zym_fun_74zym_var_6?ym_var_473zym_var_608zym_fun_76?zym_var_513?zym_var_54zym_var_48;$zym_var_180=$this->_make_node_list($zym_var_112);zym_var_27zym_var_22zym_var_751誉幕?zym_var_53??蓣?ym_var_602庹zym_var_131;$zym_var_142=array();zym_var_27zym_fun_76???ym_var_459zym_var_48吗zym_var_48??ym_var_22zym_var_98?ym_var_54?ym_var_512?ym_var_26zym_var_54zym_var_54zym_var_54??zym_var_53zym_var_600?ym_var_605?ym_fun_73?涑?zym_var_751zym_var_459咙适zym_fun_75zym_var_414zym_var_53?ym_fun_76??墨zym_fun_73??zym_var_22??ym_var_595?zym_var_608zym_var_464?;if($zym_var_348!='1'){$zym_var_14=system_member::get_user_at_group($zym_var_348);foreach($zym_var_14 as $zym_var_115=>$zym_var_514){$zym_var_109='user';if($zym_var_514['user_id']==$this->user['user_id']){$zym_var_109='userSelf';}$zym_var_142[]=array('name' =>$zym_var_514['name'],'menuType' =>"menuTreeUser",'ext' =>$zym_var_109,'path' =>KOD_USER_SHARE.':'.$zym_var_514['user_id'].'/','type' =>'folder','open' =>!1,'isParent' =>!1);}}$zym_var_104=array_merge($zym_var_180,$zym_var_142);return $zym_var_104;zym_var_27迟?ym_var_464?ym_var_27?ym_var_52B??ym_var_33?ym_fun_56;}private function _group_self(){$zym_var_31=array();foreach($this->user['group_info'] as $zym_var_103=>$zym_var_18){if($zym_var_103=='1')continue;$zym_var_106=system_group::get_info($zym_var_103);zym_var_27zym_var_61??钢zym_var_46??ㄖ声?ym_var_53zym_var_595zym_var_608?蛾zym_var_602运?钹终漏zym_fun_75zym_var_46?ym_var_46?ym_var_61?zym_var_54?ym_var_751zym_var_53zym_var_598泛?ym_var_27zym_var_600zym_fun_56zym_var_603?ym_var_53?积~喵zym_var_414ⅰzym_var_98;if($zym_var_106){$zym_var_31[]=$zym_var_106;}}return $this->_make_node_list($zym_var_31);}private function _make_node_list($zym_var_107){$zym_var_141=array();if(!is_array($zym_var_107)){return $zym_var_141;}foreach($zym_var_107 as $zym_var_84=>$zym_var_29){$zym_var_140=KOD_GROUP_PATH;$zym_var_61=system_member::user_auth_group($zym_var_29['group_id']);if($zym_var_61==!1){$zym_var_140=KOD_GROUP_SHARE;$zym_var_129='groupGuest';}else if($zym_var_61=='read'){$zym_var_129='groupSelf';}else{$zym_var_129='groupSelfOwner';}$zym_var_134=!0;$zym_var_181=system_member::get_user_at_group($zym_var_29['group_id']);zym_var_27?if(count($zym_var_181)==0&& $zym_var_29['children']==''){$zym_var_134=!1;}$zym_var_141[]=array('name' =>$zym_var_29['name'],'type' =>'folder','path' =>$zym_var_140.':'.$zym_var_29['group_id'].'/','ext' =>$zym_var_129,'tree_icon' =>$zym_var_129,'menuType' =>"menuTreeGroup",'isParent' =>$zym_var_134);}return $zym_var_141;zym_var_27孙zym_fun_43??ym_var_33?ym_var_595zym_var_595?zym_var_595zym_var_61?zym_var_26?}public function pathDelete(){$zym_var_595=json_decode($this->in['list'],!0);zym_var_27zym_var_600zym_var_514??;if(!is_dir(USER_RECYCLE)){mk_dir(USER_RECYCLE);}$zym_var_166=$this->config['user']['recycle_open'];if(!path_writeable(USER_RECYCLE)){$zym_var_166='0';}$zym_var_53=0;$zym_var_60=0;foreach($zym_var_595 as $zym_var_58){$zym_var_33=_DIR($zym_var_58['path']);if($zym_var_166!="1" || $GLOBALS['path_type']==KOD_GROUP_SHARE|| $GLOBALS['path_type']==KOD_GROUP_PATH|| $GLOBALS['path_type']==KOD_USER_RECYCLE){if($zym_var_58['type']=='folder'){if(del_dir($zym_var_33))$zym_var_53++;else $zym_var_60++;zym_var_27氕zym_var_464?唷?莱?ym_var_605?浯??瑞??zym_var_98?冈巷?ym_var_54zym_fun_56?毵??篓??zym_var_98??;}else{if(del_file($zym_var_33))$zym_var_53++;else $zym_var_60++;zym_var_27zym_var_598??}space_size_use_reset();zym_var_27?zym_fun_56祁?}else{$zym_var_35=USER_RECYCLE.get_path_this($zym_var_33);zym_var_27zym_var_33??ym_var_600??ym_var_48zym_fun_74?ym_var_751zym_var_603撰???$zym_var_35=get_filename_auto($zym_var_35,date('-h:i:s'),'folder_rename');if(@rename($zym_var_33,$zym_var_35)){$zym_var_53++;}else{$zym_var_60++;}}}$zym_var_162=$zym_var_60==0?!0:!1;zym_var_27zym_var_414薰先zym_fun_74?ym_fun_75zym_fun_76踢?ym_var_414zym_var_52髟?ym_var_464?$zym_var_34=$zym_var_53.' success,'.$zym_var_60.' error';if($zym_var_60==0){$zym_var_34=$this->L['remove_success'];}show_json($zym_var_34,$zym_var_162);}private function clearTemp(){$zym_var_164=USER_TEMP;$zym_var_473=@filemtime($zym_var_164);if(time()-$zym_var_473>0x0258){del_dir($zym_var_164);mk_dir($zym_var_164);}}public function pathDeleteRecycle(){if(!isset($this->in['list'])){if(!del_dir(USER_RECYCLE)){show_json($this->L['remove_fali'],!1);}else{mkdir(USER_RECYCLE);$this->clearTemp();space_size_use_reset();show_json($this->L['recycle_clear_success'],!0);}}$zym_var_56=json_decode($this->in['list'],!0);zym_var_27楮?嘞zym_var_603↓给?ym_fun_75???ym_fun_73???ym_fun_76东?zym_var_473zym_var_513zym_var_54??zym_fun_43佃腹?zym_var_414?哄;$zym_var_160=0;$zym_var_90=0;foreach($zym_var_56 as $zym_var_77){$zym_var_183=_DIR($zym_var_77['path']);if($zym_var_77['type']=='folder'){if(del_dir($zym_var_183))$zym_var_160++;else $zym_var_90++;zym_var_27灯?zym_var_414?ym_var_27zym_var_48炙?枘?}else{if(del_file($zym_var_183))$zym_var_160++;else $zym_var_90++;}}space_size_use_reset();zym_var_27?ym_var_600?ym_var_473?丈擀zym_var_6?zym_var_464zym_var_98?ym_var_54渌抻+?if(count($zym_var_56)==0x001){if($zym_var_160)show_json($this->L['remove_success']);else show_json($this->L['remove_fali'],!1);zym_var_27铯???聊zym_fun_56?zym_var_605?zym_var_35?蟾??;}else{$zym_fun_43=$zym_var_90==0?!0:!1;zym_var_27?zym_var_471ぇ?讨ㄅ窭??ym_var_48?汽?ym_var_464?ym_var_61?zym_var_54zym_var_414zym_var_131zym_var_414璐恹?え??姆?ym_var_514zym_var_35?ym_var_598揎?ym_fun_43zym_var_602zym_var_473??ym_var_414?show_json($this->L['remove_success'].$zym_var_160.'success,'.$zym_var_90.'error',$zym_fun_43);}}public function pathCopy(){session_start();zym_var_27??事刁蕨螭?$zym_var_82=json_decode($this->in['list'],!0);zym_var_27?ym_var_602zym_var_35?ym_var_70愧zym_var_514??ym_var_46zym_fun_76?ym_fun_56?;$_SESSION['path_copy']=json_encode($zym_var_82);zym_var_27?潼晔?zym_var_70?ym_var_22zym_var_70菽?zym_var_459?遢挫?ym_var_512zym_var_22?但??丹zym_var_414zym_var_595zym_var_605?ym_var_131?é?zym_var_600?Ⅷzym_var_598??ym_fun_75?zym_var_6zym_fun_56zym_var_54?住?ym_var_598?$_SESSION['path_copy_type']='copy';zym_var_27?ym_var_54zym_fun_73zym_var_22?zym_var_473?ym_var_54;show_json($this->L['copy_success'],ture,$_SESSION);}public function pathCute(){session_start();zym_var_27蠖徽?$zym_var_78=json_decode($this->in['list'],!0);zym_var_27???鳐忮zym_var_6?ym_var_48肿?脐zym_fun_56拧构?ym_var_598zym_var_27?zym_var_605徐zym_var_48zym_var_595︻淘zym_var_603?foreach($zym_var_78 as $zym_var_28=>&$zym_var_157){$zym_var_157['path']=rawurldecode($zym_var_157['path']);_DIR($zym_var_157['path']);zym_var_27???ym_var_605?zym_var_464?瀛??狱濠墨ゐ?珩zym_var_603顶损zym_var_600???zym_var_414?撂??ym_var_70?zym_var_608?;}$_SESSION['path_copy']=json_encode($zym_var_78);zym_var_27?zym_var_605??zym_var_33?zym_var_98?ym_var_602zym_var_512?杜煸?$_SESSION['path_copy_type']='cute';zym_var_27zym_var_602?show_json($this->L['cute_success']);}public function pathCuteDrag(){$zym_var_182=json_decode($this->in['list'],!0);zym_var_27zym_var_54?ym_var_473?ym_var_595凝zym_var_473?ym_fun_75zym_var_608;$zym_var_54=$this->path;zym_var_27?冈?zym_var_603zym_var_600zym_fun_75毪???┲吩戈??zym_var_6?zym_var_48?ym_fun_56绀zym_var_600zym_var_52zym_var_595zym_fun_43?$zym_var_227=$GLOBALS['path_type'];zym_var_27痴?ym_var_53zym_fun_56?zym_var_595尻??范瞍庵辱?θzym_var_464?;$zym_var_70=$GLOBALS['path_id'];if(!path_writeable($this->path))show_json($this->L['no_permission_write'],!1);$zym_var_75=0;$zym_var_74=0;zym_var_27?稚?ym_var_61;$zym_var_20=array();foreach($zym_var_182 as $zym_var_155){$zym_var_19=_DIR($zym_var_155['path']);$zym_var_72=get_path_this($zym_var_19);$zym_var_71=get_filename_auto($zym_var_54.$zym_var_72,'',$this->config['user']['file_repeat']);if($zym_var_70!=$GLOBALS['path_id']){space_size_use_check();}if(move_path($zym_var_19,$zym_var_71,'',$this->config['user']['file_repeat'])){$zym_var_75++;if($zym_var_70!=$GLOBALS['path_id']){zymfunc_1($zym_var_71);zymfunc_1($zym_var_71,!1,$zym_var_227,$zym_var_70);}$zym_var_20[]=_DIR_OUT(iconv_app($zym_var_71));}else{$zym_var_74++;zym_var_27zym_var_54?ym_var_600?;}}$zym_var_22=$zym_var_74==0?!0:!1;zym_var_27zym_var_471??ym_var_53??ym_var_53喧zym_var_35?ш│zym_var_22饭?ym_fun_43评??zym_var_414?$zym_var_561=$zym_var_75.' success,'.$zym_var_74.' error';zym_var_27zym_var_131?ym_var_602;if($zym_var_74==0){$zym_var_561=$this->L['success'];}show_json($zym_var_561,$zym_var_22,$zym_var_20);}public function pathCopyDrag(){$zym_var_161=json_decode($this->in['list'],!0);$zym_var_80=$this->path;$zym_var_165=$GLOBALS['path_type'];zym_var_27zym_var_54铃腌zym_var_131?zym_fun_73瘛zym_var_54?zym_fun_74??ym_var_751?ym_var_61?zym_var_52??zym_var_186?zym_var_514猱zym_var_603?ym_var_46zym_var_602?ym_var_595??;$zym_var_59=$GLOBALS['path_id'];zym_var_27zym_var_46?ym_var_473テ?ym_var_602申??ym_var_471zym_fun_56zym_var_600?ym_var_598→zym_var_46??space_size_use_check();if(!path_writeable($this->path))show_json($this->L['no_permission_write'],!1);$zym_var_26=0;$zym_var_57=0;$zym_var_163=array();zym_var_27簏zym_var_414zym_var_6??ym_var_600zym_var_26zym_var_605?ym_var_46?耆豚zym_fun_75zym_var_52zym_var_54υ?zym_var_53?zym_var_471??ym_var_33?ym_var_35zym_var_598??zym_var_751?zym_var_514?foreach($zym_var_161 as $zym_var_192){$zym_var_52=_DIR($zym_var_192['path']);zym_var_27?ym_fun_43?链zym_fun_56拇zym_var_48zym_var_605zym_fun_56zym_fun_73zym_var_54?ym_fun_75鞯拽zym_var_513?ym_var_27掬?斐?zym_var_131zym_var_98zym_fun_75??$zym_var_131=get_path_this($zym_var_52);zym_var_27?ym_var_46zym_var_602zym_var_61??澉?ym_fun_43;$zym_var_196=get_filename_auto($zym_var_80.$zym_var_131,'',$this->config['user']['file_repeat']);if($this->in['filename_auto']==0x001&& trim($zym_var_196,'/')==trim($zym_var_52,'/')){$zym_var_196=get_filename_auto($zym_var_80.$zym_var_131,'','folder_rename');}if(copy_dir($zym_var_52,$zym_var_196)){$zym_var_26++;zymfunc_1($zym_var_131);$zym_var_163[]=_DIR_OUT(iconv_app($zym_var_196));}else{$zym_var_57++;}}$zym_var_117=$zym_var_57==0?!0:!1;$zym_var_24=$zym_var_26.' success,'.$zym_var_57.' error';zym_var_27zym_var_33╊?倭?俚;if($zym_var_57==0){$zym_var_24=$this->L['success'];}show_json($zym_var_24,$zym_var_117,$zym_var_163);}public function clipboard(){$zym_var_25=json_decode($_SESSION['path_copy'],!0);zym_var_27zym_var_131鹇zym_var_54;if(!$zym_var_25){$zym_var_25=array();}show_json($zym_var_25,!0,$_SESSION['path_copy_type']);}public function pathPast(){if(!isset($_SESSION['path_copy'])){show_json($this->L['clipboard_null'],!1,array());}$zym_var_68=$this->path;session_start();$zym_var_23='';zym_var_27zym_var_605;$zym_var_78=array();zym_var_27?ym_var_52禳zym_var_35zym_var_512zym_var_27??zym_var_35?魔????ym_fun_74??ym_fun_74?zym_fun_56?′?zym_var_6zym_var_27;$zym_var_21=json_decode($_SESSION['path_copy'],!0);$zym_var_483=$_SESSION['path_copy_type'];zym_var_27???ym_var_595?ym_var_6??ym_var_602只zym_var_53?ym_var_53?zym_var_603zym_var_61??ym_fun_76胼zym_var_54?;$zym_var_27=$GLOBALS['path_type'];zym_var_27+濞zym_var_61??zym_var_598唠粪??$zym_var_513=$GLOBALS['path_id'];zym_var_27诌zym_var_605zym_var_414zym_var_595zym_var_471zym_var_54?if(!path_writeable($zym_var_68))show_json($this->L['no_permission_write'],!1,$zym_var_78);$GLOBALS['path_from_auth_check']=!0;$zym_var_130=count($zym_var_21);zym_var_27?zym_var_35?zym_var_33zym_fun_76?ym_var_471?;if($zym_var_130==0){show_json($this->L['clipboard_null'],!1,$zym_var_78);}for($zym_var_122=0;$zym_var_122<$zym_var_130;$zym_var_122++){$zym_var_128=_DIR($zym_var_21[$zym_var_122]['path']);_DIR($this->in['path']);$zym_var_83=get_path_this($zym_var_128);$zym_var_114=iconv_app($zym_var_83);if(!file_exists($zym_var_128)){$zym_var_23.= "
  • {$zym_var_114}".$this->L['copy_not_exists']."
  • ";continue;zym_var_27zym_var_605zym_var_608zym_var_54zym_var_514???;}if($zym_var_21[$zym_var_122]['type']=='folder'){if($zym_var_128==substr($zym_var_68,0,strlen($zym_var_128))){$zym_var_23.="{$zym_var_114}".$this->L['current_has_parent']."";continue;}}$zym_var_127=get_filename_auto($zym_var_68.$zym_var_83,'',$this->config['user']['file_repeat']);$zym_var_83=get_path_this($zym_var_127);zym_var_27?ym_var_348?赶zym_var_473字??zym_var_464叮?zym_fun_43??ym_var_52zym_fun_43zym_var_27zym_var_52ⅵzym_var_514zym_var_605???ym_var_598骸佩???ym_var_26国?zym_fun_43钙zym_var_35????疯?怃?ym_var_608?zym_var_70?zym_var_600曰?ym_var_52??ym_var_22?诺?ym_var_600;if($zym_var_483=='copy'){space_size_use_check();copy_dir($zym_var_128,$zym_var_127);zymfunc_1($zym_var_83);}else{if($zym_var_513!=$GLOBALS['path_id']){space_size_use_check();}move_path($zym_var_128,$zym_var_127,'',$this->config['user']['file_repeat']);if($zym_var_513!=$GLOBALS['path_id']){zymfunc_1($zym_var_83);zymfunc_1($zym_var_83,!1,$zym_var_27,$zym_var_513);}}$zym_var_78[]=_DIR_OUT(iconv_app($zym_var_127));}if($zym_var_483=='copy'){$zym_var_471=$this->L['past_success'].$zym_var_23;}else{$_SESSION['path_copy']=json_encode(array());$_SESSION['path_copy_type']='';$zym_var_471=$this->L['cute_past_success'].$zym_var_23;}$zym_var_125=($zym_var_23==''?!0:!1);show_json($zym_var_471,$zym_var_125,$zym_var_78);zym_var_27zym_var_54?zym_var_459斟?ym_var_70瑚???ym_var_473zym_var_54zym_var_598庾zym_var_473廨?ym_var_33擗zym_var_48zym_var_471?ym_var_54峪zym_var_54??zym_var_602哧牒︿?ym_var_602;}public function fileDownload(){file_put_out($this->path,!0);zym_var_27zym_var_61zym_var_61zym_var_46??zym_fun_56?ym_var_514zym_var_46zym_var_131zym_var_512zym_var_6zym_var_602?涵????ym_var_464?ym_var_46?ym_var_53?zym_var_595zym_var_512?ym_var_54zym_fun_56?zym_var_603?馈zym_var_54zym_var_131??ym_var_512?}public function fileDownloadRemove(){$zym_var_126=rawurldecode(_DIR_CLEAR($this->in['path']));$zym_var_126=USER_TEMP.iconv_system($zym_var_126);zymfunc_1($zym_var_126,!1);file_put_out($zym_var_126,!0);zym_var_27zym_var_33?ym_fun_73zym_var_471??咪;del_file($zym_var_126);zym_var_27洗?ym_fun_75zym_var_27zym_var_52ぶ?ym_var_605?绋?zym_var_48zym_var_70??ym_var_52??ym_fun_76?zym_var_54zym_var_603??ym_fun_56?zym_var_70zym_var_595?}public function zipDownload(){if(!file_exists(USER_TEMP)){mkdir(USER_TEMP);}else{$zym_var_193=path_list(USER_TEMP,!0,!1);$zym_var_32=0x0e10*0x0000018;if($zym_var_193['filelist']>=0x001){for($zym_var_86=0;$zym_var_86$zym_var_32){del_file($zym_var_193['filelist'][$zym_var_86]['path'].$zym_var_193['filelist'][$zym_var_86]['name']);}}}}$zym_var_459=$this->zip(USER_TEMP);show_json($this->L['zip_success'],!0,get_path_this($zym_var_459));}public function zip($zym_var_124=''){load_class('pclzip');ini_set('memory_limit','2028M');zym_var_27zym_fun_75?zym_var_46zym_var_595稿??zym_var_608zym_var_608濮叁zym_var_54zym_var_608zym_var_608zym_var_54?$zym_var_5=json_decode($this->in['list'],!0);$zym_var_605=count($zym_var_5);for($zym_var_90=0;$zym_var_90<$zym_var_605;$zym_var_90++){$zym_var_5[$zym_var_90]['path']=rtrim(_DIR($zym_var_5[$zym_var_90]['path']),'/');zym_var_27?ym_fun_73?ym_var_464zym_var_52?谈猞擞?簏余zym_var_464zym_var_98?ym_var_54?览烧zym_var_54zym_var_512ぢ??zym_var_605?ym_var_70?擗zym_var_513?ym_var_54zym_var_22?朦?垒婴剩??zym_fun_75创;}$zym_var_33=$zym_var_124;zym_var_27☆;if($zym_var_124==''){$zym_var_33=get_path_father($zym_var_5[0]['path']);}if(!is_writeable($zym_var_33)){show_json($this->L['no_permission_write'],!1);}if($zym_var_605==0x001){$zym_var_414=get_path_this($zym_var_5[0]['path']);}else{$zym_var_414=get_path_this(get_path_father($zym_var_5[0]['path']));}$zym_var_603=$zym_var_33.$zym_var_414.'.zip';$zym_var_603=get_filename_auto($zym_var_603,'',$this->config['user']['file_repeat']);zym_var_27zym_var_70犹???ym_var_751?ym_var_26zym_var_471zym_var_52?ym_var_98zym_var_471zym_fun_56犍zym_var_33?ym_var_414????赞zym_var_48ず埋zym_var_473?ym_var_459?ym_var_605??????ym_fun_73?zym_fun_73;space_size_use_check();$zym_var_129=array();zym_var_27太zym_var_48zym_var_605zym_var_459?;for($zym_var_90=0;$zym_var_90<$zym_var_605;$zym_var_90++){if(file_exists($zym_var_5[$zym_var_90]['path'])){$zym_var_129[]=$zym_var_5[$zym_var_90]['path'];}}if(count($zym_var_129)==0){show_json($this->L['not_exists'],!1);}$zym_var_98=new PclZip($zym_var_603);foreach($zym_var_129 as $zym_var_97=>$zym_var_94){$zym_var_133=_DIR_CLEAR(get_path_father($zym_var_94));if($zym_var_97==0){$zym_var_195=$zym_var_98->create($zym_var_94,PCLZIP_OPT_REMOVE_PATH,$zym_var_133,PCLZIP_CB_PRE_FILE_NAME,'zip_pre_name');continue;}$zym_var_195=$zym_var_98->add($zym_var_94,PCLZIP_OPT_REMOVE_PATH,$zym_var_133,PCLZIP_CB_PRE_FILE_NAME,'zip_pre_name');}zymfunc_1($zym_var_603);if($zym_var_195==0){show_json("Create error!",!1);}$zym_var_114=$this->L['zip_success'].$this->L['size'].":".size_format(filesize($zym_var_603));if($zym_var_124==''){show_json($zym_var_114,!0,_DIR_OUT(iconv_app($zym_var_603)));}else{return iconv_app($zym_var_603);}}public function unzip(){ini_set('memory_limit','2028M');$zym_var_119=$this->path;zym_var_27zym_var_33?甩??zym_var_603镔?Φ圈瑁?zym_var_473;$zym_var_194=get_path_this($zym_var_119);zym_var_27zym_fun_74????zym_var_22zym_fun_43??绉鸶??zym_var_35篆?ym_var_471绅??码zym_fun_43zym_var_603г?$zym_var_194=substr($zym_var_194,0,strrpos($zym_var_194,'.'));$zym_var_22=get_path_ext($zym_var_119);zym_var_27格zym_var_27鸪ㄟzym_var_35zym_fun_73缝缓?ym_fun_56?;$zym_var_111=get_path_father($zym_var_119).$zym_var_194;if(isset($this->in['to_this'])){$zym_var_111=get_path_father($zym_var_119);}if(isset($this->in['path_to'])){$zym_var_111=_DIR($this->in['path_to']);}if(!is_writeable(get_path_father($zym_var_119))){show_json($this->L['no_permission_write'],!1);}space_size_use_check();load_class('pclzip');zym_var_27?聍zym_fun_73zym_var_513??zym_var_512?zym_var_98旭⒏zym_var_473zym_var_605zym_var_598淦◇?zym_var_48朴鬣棺邢嗜?嘀??ym_var_46zym_var_70zym_var_70zym_fun_43?zym_var_514zym_var_52???zym_fun_56??ym_var_414zym_var_54?宏?怠?ym_fun_43zym_var_471;$zym_fun_73=new PclZip($zym_var_119);zym_var_27?ym_var_46zym_var_600zym_var_54zym_var_602zym_var_602?ym_var_53试?ym_var_53zym_var_53?zym_var_603担?浠冱zym_var_602zym_fun_73?zym_var_54zym_var_53zym_var_605?ym_var_464?zym_var_605zym_var_131?zym_fun_43甘???zym_var_512馥宇???ym_var_53zym_var_35?ym_var_459?zym_var_54?zym_var_61;$zym_var_93=$zym_fun_73->extract(PCLZIP_OPT_PATH,$zym_var_111,PCLZIP_OPT_SET_CHMOD,0777,PCLZIP_CB_PRE_FILE_NAME,'unzip_pre_name',PCLZIP_CB_PRE_EXTRACT,"check_ext_unzip",PCLZIP_OPT_REPLACE_NEWER);if($zym_var_93==0){show_json("Error : ".$zym_fun_73->errorInfo(!0),fasle);}else{zymfunc_1($zym_var_119);show_json($this->L['unzip_success']);}}public function imageRotate(){load_class('imageThumb');zym_var_27zym_var_600zym_var_4595???ym_var_603俩??蕻る?ym_var_61??zym_var_33??zym_var_54?视??陡?;$zym_var_131=new imageThumb($this->path,'file');$zym_var_108=$zym_var_131->imgRotate($this->path,intval($this->in['rotate']));zym_var_27zym_fun_76??剃朵沽zym_var_602?zym_var_6???ym_var_608??耳zym_var_61zym_var_459?╃?zym_var_22??ym_var_54钩???ym_var_595;if($zym_var_108){show_json($this->L['success']);}else{show_json($this->L['error'],!1);}}public function image(){if(filesize($this->path)<=0x00000400*0x014|| !function_exists('imagecolorallocate')){file_put_out($this->path);return;}if(!is_dir(DATA_THUMB)){mk_dir(DATA_THUMB);}load_class('imageThumb');$zym_var_191=$this->path;zym_var_27???zym_var_54??ym_var_6???zym_var_46???ym_fun_75??ym_var_98?ym_var_54??;$zym_var_105=@md5_file($zym_var_191);if(strlen($zym_var_105)<0x05){$zym_var_105=md5($zym_var_191);}$zym_var_197=DATA_THUMB.$zym_var_105.'.png';if(!file_exists($zym_var_197)){if(get_path_father($zym_var_191)==DATA_THUMB){$zym_var_197=$this->path;}else{$zym_var_87=new imageThumb($zym_var_191,'file');$zym_var_87->prorate($zym_var_197,0x0fa,0x0fa);}}if(!file_exists($zym_var_197)|| filesize($zym_var_197)<0x064){$zym_var_197=$this->path;}file_put_out($zym_var_197);}public function serverDownload(){set_time_limit(0);$zym_var_116='download_'.$this->in['uuid'];zym_var_27Ε唷?斟剁?zym_var_54????zym_fun_74丁铕zym_var_48?;if($this->in['type']=='percent'){if(isset($_SESSION[$zym_var_116])){$zym_var_17=$_SESSION[$zym_var_116];$zym_var_51=array('uuid' =>$this->in['uuid'],'length' =>(int)$zym_var_17['length'],'name' =>$zym_var_17['name'],'size' =>(int)@filesize(iconv_system($zym_var_17['path'])),'time' =>mtime());show_json($zym_var_51);}else{show_json('',!1);}}else if($this->in['type']=='remove'){del_file($_SESSION[$zym_var_116]['path']);unset($_SESSION[$zym_var_116]);show_json('',!1);}$zym_var_46=_DIR($this->in['save_path']);if(!is_writeable($zym_var_46)){show_json($this->L['no_permission_write'],!1);}$zym_var_120=rawurldecode($this->in['url']);$zym_var_48=url_header($zym_var_120);if(!$zym_var_48){show_json($this->L['download_error_exists'],!1);}$zym_var_46=$zym_var_46.$zym_var_48['name'];if(!checkExt($zym_var_46)){$zym_var_46=_DIR($this->in['save_path']).date('-h:i:s').'.txt';}space_size_use_check();$zym_var_46=get_filename_auto(iconv_system($zym_var_46),'',$this->config['user']['file_repeat']);$zym_var_30=$zym_var_46.'.downloading';session_start();zym_var_27?ym_var_98怨?zym_var_54?ym_var_54zym_var_608?$_SESSION[$zym_var_116]=array('length'=> $zym_var_48['length'],'path' =>$zym_var_30,'name' =>get_path_this($zym_var_46));zym_var_27?ym_var_595zym_var_131?zym_fun_73zym_var_598zym_var_459纳?zym_var_27zym_var_603??ym_var_61zym_var_98?zym_var_53?ym_fun_74袒zym_var_473??zym_var_54?session_write_close();zym_var_27"?zym_var_464zym_var_414恸;if(file_download_this($zym_var_120,$zym_var_30,$zym_var_48['length'])){session_start();unset($_SESSION[$zym_var_116]);session_write_close();if(@rename($zym_var_30,$zym_var_46)){$zym_var_26=get_path_this(iconv_app($zym_var_46));zymfunc_1($zym_var_46);show_json($this->L['download_success'],!0,_DIR_OUT(iconv_app($zym_var_46)));}else{show_json($this->L['download_error_create'],!1);}}else{session_start();zym_var_27?zym_fun_75峙畛zym_var_595?ym_var_414铍?詈??ym_var_513纵;unset($_SESSION[$zym_var_116]);zym_var_27??zym_var_70zym_var_46?ym_var_54薹柳??zym_var_35?甜?ym_var_52叻zym_var_608zym_var_54?session_write_close();zym_var_27磋?揉?;show_json($this->L['download_error_create'],!1);}}public function officeView(){if(!file_exists($this->path)){show_tips($this->L['not_exists']);}$zym_var_121=get_path_ext($this->path);$zym_var_118=_make_file_proxy($this->path);zym_var_27zym_var_595赢zym_var_414村zym_var_70?追???ym_var_33??ym_var_608??zym_var_605zym_var_46?纲zym_var_48zym_var_131zym_var_595?ym_fun_43???zym_var_54??ym_var_172?zym_var_46zym_var_608?zym_var_22小zym_fun_43?ym_fun_73zym_var_61zym_var_464zym_var_751zym_var_48?ym_var_512zym_var_603zym_var_54???;if(defined("OFFICE_KOD_SERVER")){$zym_var_178=APPHOST.'index.php?explorer/fileProxy&path='.$this->in['path'];$zym_var_132='&appMode=edit&access_token='.session_id();if(OFFICE_KOD_ACTION=='read'){$zym_var_132='&appMode=view';$zym_var_178=_make_file_proxy($this->path);}$zym_var_37=$_SESSION['kod_user'];$zym_var_512=rand_string(0x0a);zym_var_27?ym_var_471??ym_fun_75zym_var_513?zym_fun_76叁?$zym_var_27=OFFICE_KOD_SERVER.rawurlencode($zym_var_178).'&lang='.LANGUAGE_TYPE.'&appType=desktop'.$zym_var_132.'&file_time='.@filemtime($this->path).'&user_id='.$zym_var_37['user_id'].'&user_name='.$zym_var_37['name'].'&app_id='.OFFICE_KOD_APP_ID.'&app_s='.$zym_var_512.'&app_v='.md5($zym_var_512.OFFICE_KOD_APP_KEY);zym_var_27zym_var_595?迨??zym_var_33狠?ym_var_483zym_fun_43zym_var_414Kzym_var_513zym_var_600?zym_var_464?ym_fun_74zym_var_464?湎?佣zym_var_35?ym_var_459??ym_var_514??zym_var_54????ym_var_54zym_var_602翟?ym_var_751????ym_var_514づzym_var_513zym_var_98zym_fun_56?ym_var_48zym_var_54?ym_var_33zym_var_35吆;header("location:".$zym_var_27);zym_var_27zym_var_598?ym_fun_56??exit;}if(file_exists(PLUGIN_DIR.'officeView')){if(isset($_GET['is_edit'])|| !isset($this->config['settings']['office_server_doc2pdf'])){include(PLUGIN_DIR.'officeView/index.php');}else{include(PLUGIN_DIR.'officeView/flexpapper.php');}exit;}$zym_var_102=$_SERVER['HTTP_HOST'];zym_var_27?ym_var_46尤zym_var_603?zym_var_70zym_var_605??ym_var_6;if(strpos(OFFICE_SERVER,'view.officeapps.live.com')===-0x001|| strstr($zym_var_102,'10.10.')|| strstr($zym_var_102,'192.168.')|| strstr($zym_var_102,'127.0.')|| !strstr($zym_var_102,'.')){$zym_var_64=$this->L['unknow_file_office'];show_tips($zym_var_64);}else{$zym_var_27=OFFICE_SERVER.rawurlencode($zym_var_118);header("location:".$zym_var_27);}}public function officeSave(){$zym_var_123=_DIR($this->in['path']);if(isset($this->in['from_activex'])){if($_FILES["file"]["error"]>0){echo "Return Code: ".$_FILES["file"]["error"];}else{move_uploaded_file($_FILES["file"]["tmp_name"],$this->path);echo 'succeed';}exit;}if(!is_writeable($zym_var_123)){$this->json_putout(array('error'=>'no_permission_write'));}if(($zym_var_76=file_get_contents('php://input'))===!1){$this->json_putout(array('error'=>'Bad Request'));}$zym_var_170=json_decode($zym_var_76,!0);if($zym_var_170===NULL){$this->json_putout(array('error'=>'Bad Response'));}$zym_var_54=array(0=>'NotFound',0x001=>'Editing',0x0002=>'MustSave',0x00003=>'Corrupted',0x000004=>'Closed');$zym_var_6=array('error'=>0,'action'=>$zym_var_54[$zym_var_170["status"]]);zym_var_27拴zym_fun_43?zym_var_22?俘zym_var_98zym_var_464;switch($zym_var_54[$zym_var_170["status"]]){case "MustSave":case "Corrupted":$zym_var_6["c"]="saved";zym_var_27?ym_fun_56zym_var_22??zym_var_61?ym_var_513??ym_var_605?zym_var_602?zym_var_70?ym_var_26?ym_var_751;$zym_var_6['status']='0';if(file_download_this($zym_var_170["url"],$zym_var_123)){$zym_var_6['status']='success';}break;default:break;zym_var_27zym_var_608zym_var_48?zym_var_33?O??ym_var_70肽??ym_var_53?蛰;}$this->json_putout($zym_var_6);zym_var_27q???}private function json_putout($zym_var_63){@header('Content-Type: application/json; charset==utf-8');@header('X-Robots-Tag: noindex');@header('X-Content-Type-Options: nosniff');zym_var_27zym_var_751?叙zym_var_33zym_fun_43?ym_var_27zym_var_600??ym_var_70耧???ym_var_513?zym_var_513?∮|zym_var_608葡;echo json_encode($zym_var_63);exit;zym_var_27蟹?ym_var_605钌??耧zym_var_751庑?zym_var_33?ym_fun_74?zym_fun_75zym_fun_73旱??zym_fun_74??ym_fun_74zym_var_52zym_var_751?}public function fileProxy(){$zym_var_602=isset($this->in['download']);file_put_out($this->path,$zym_var_602);zym_var_27?ym_var_48凤?zym_var_600犬奏?zym_var_464?剖诱zym_var_459zym_var_131??ym_var_473zym_var_414?zym_fun_76zym_fun_76脓??zym_var_46?煜?叠?zym_var_27zym_var_512持?ym_var_22?浞zym_var_22zym_var_605?}public function fileUpload(){$zym_var_327=_DIR($this->in['upload_to']);zym_var_27?炊zym_var_46?ym_var_514zym_var_595?ym_var_600n?zym_var_61lzym_var_54;if(!is_writeable($zym_var_327))show_json($this->in['upload_to'],!1);if($zym_var_327=='')show_json($this->L['upload_error_big'],!1);if(strlen($this->in['fullPath'])>0x001){$zym_var_167=_DIR_CLEAR(rawurldecode($this->in['fullPath']));$zym_var_167=get_path_father($zym_var_167);$zym_var_167=iconv_system($zym_var_167);if(mk_dir($zym_var_327.$zym_var_167)){$zym_var_327=$zym_var_327.$zym_var_167;}}$zym_var_61=$this->config['user']['file_repeat'];zym_var_27?zym_fun_75zym_var_33?$zym_var_159=USER_TEMP;zym_var_27zym_fun_73??ym_var_35?女?zym_fun_74ょ?ym_var_464?zym_var_54zym_var_464??mk_dir($zym_var_159);if(!is_writeable($zym_var_159))show_json($this->L['no_permission_write'],!1);upload_chunk('file',$zym_var_327,$zym_var_159,$zym_var_61);}private function path_share(&$zym_var_158){$zym_var_177=explode(',',$GLOBALS['path_id']);$zym_var_79=system_member::user_share_list($zym_var_177[0]);$zym_var_156=$GLOBALS['path_id_user_share'];zym_var_27zym_var_414zym_var_131?foreach($zym_var_79 as $zym_var_46=>$zym_var_69){$zym_var_99=_DIR(KOD_USER_SHARE.':'.$zym_var_177[0].'/'.$zym_var_69['name']);$zym_var_69['path']=$zym_var_69['name'];zym_var_27?处zym_var_54???jzym_var_514峨zym_fun_75??zym_var_595??zym_var_603zym_var_48zym_var_35刺??ym_var_471zym_var_603zym_var_27淘缳??ym_var_6璐炙?质?zym_fun_76?ym_var_600?zym_var_26zym_var_33;$zym_var_69['atime']='';$zym_var_69['ctime']='';zym_var_27zym_var_54;$zym_var_69['mode']='';zym_var_27戴?$zym_var_69['is_readable']=0x001;$zym_var_69['is_writable']=0x001;zym_var_27?ym_var_459zym_var_598?zym_var_473?ym_var_131嗾??ym_var_70偏zym_var_54zym_fun_43?ym_var_27贞?$zym_var_69['exists']=intval(file_exists($zym_var_99));$zym_var_69['meta_info']='path_self_share';zym_var_27笙?瞎zym_fun_43?殖?ym_var_471??zym_var_98?ym_var_27zym_var_514zym_fun_76?ym_var_595??zym_var_459??ym_var_22洧????ym_var_603与zym_var_53????zym_var_54zym_var_598??︻帅zym_var_600韪瘃??zym_var_33琛?zym_var_54纷?;$zym_var_69['menuType']="menuSharePath";if(get_path_ext($zym_var_69['name'])=='oexe'){$zym_var_66=json_decode(@file_get_contents($zym_var_99),!0);if(is_array($zym_var_66))$zym_var_69=array_merge($zym_var_69,$zym_var_66);}if($zym_var_69['type']=='folder'){$zym_var_69['ext']='folder';$zym_var_158['folderlist'][]=$zym_var_69;}else{$zym_var_158['filelist'][]=$zym_var_69;}}$zym_var_158['path_read_write']='readable';zym_var_27??ym_var_473zym_var_464????待zym_var_414?ym_var_48zym_var_600ウ萼?ym_fun_75zym_var_513??ym_var_33zym_var_70?ym_var_602豪黉zym_var_414???ym_var_414;$GLOBALS['path_id_user_share']=$zym_var_156;if($zym_var_177[0]==$this->user['user_id']){$zym_var_158['share_list']=$zym_var_79;}return $zym_var_158;}private function path_fav(&$zym_var_67){$zym_var_751=new fileCache(USER.'data/fav.php');$zym_var_65=$zym_var_751->get();$GLOBALS['path_from_auth_check']=!0;foreach($zym_var_65 as $zym_var_153=>$zym_var_174){$zym_var_173=_DIR($zym_var_174['path']);$zym_var_101=path_haschildren($zym_var_173,$zym_var_154);zym_var_27?甫??二?zym_var_54猱?ym_var_52坍zym_var_595??zym_var_27三zym_var_54?ym_fun_74?ym_var_22贵zym_var_54??zym_fun_74?ym_var_52???zym_var_46zym_var_464zym_var_131神林;if(!isset($zym_var_174['type'])){$zym_var_174['type']='folder';}if($zym_var_174['type']=='folder' && $zym_var_174['ext']!='treeFav'){$zym_var_101=!0;}$zym_var_498=array('name' =>$zym_var_174['name'],'ext' =>$zym_var_174['ext'],'menuType' =>"menuFavPath",'atime' =>'','ctime' =>'','mode' =>'','is_readable' =>0x001,'is_writeable' =>0x001,'exists' =>intval(file_exists($zym_var_173)),'meta_info' =>'treeFav','path' =>$zym_var_174['path'],'type' =>$zym_var_174['type'],'open' =>!1,'isParent' =>!1);if(strstr($zym_var_174['path'],KOD_USER_SHARE)|| strstr($zym_var_174['path'],KOD_USER_FAV)|| strstr($zym_var_174['path'],KOD_GROUP_ROOT_SELF)|| strstr($zym_var_174['path'],KOD_GROUP_ROOT_ALL)){$zym_var_498['exists']=0x001;}if(get_path_ext($zym_var_174['name'])=='oexe'){$zym_var_91=json_decode(@file_get_contents($zym_var_173),!0);if(is_array($zym_var_91))$zym_var_174=array_merge($zym_var_174,$zym_var_91);}if($zym_var_174['type']=='folder'){$zym_var_67['folderlist'][]=$zym_var_498;}else{$zym_var_67['filelist'][]=$zym_var_498;}}$GLOBALS['path_from_auth_check']=!1;$GLOBALS['path_type']=KOD_USER_FAV;zym_var_27??ym_var_514zym_var_131?皇zym_var_514?$zym_var_67['path_read_write']='writeable';zym_var_27zym_var_512风?潞?zym_var_53?ゥzym_fun_73?ym_fun_75?ym_var_464?return $zym_var_67;zym_var_27陕?ym_var_600?傩?zym_var_33ぷ攉;}private function path_group(&$zym_var_175,$zym_var_3){if($zym_var_3==KOD_GROUP_ROOT_SELF){$zym_var_136=$this->_group_self();}else{$zym_var_136=$this->_group_tree('1');}$GLOBALS['path_from_auth_check']=!0;foreach($zym_var_136 as $zym_var_137=>$zym_var_96){$zym_var_172=array('name' =>$zym_var_96['name'],'menuType' =>"menuGroupRoot",'atime' =>'','ctime' =>'','mode' =>'','is_readable' =>0x001,'is_writeable' =>0x001,'exists' =>0x001,'path' =>$zym_var_96['path'],'ext' =>$zym_var_96['ext'],'type' =>'folder','open' =>!1,'isParent' =>!1);zym_var_27??if($zym_var_96['type']=='folder'){$zym_var_175['folderlist'][]=$zym_var_172;}else{$zym_var_175['filelist'][]=$zym_var_172;}}$GLOBALS['path_from_auth_check']=!1;$GLOBALS['path_type']=$zym_var_3;$zym_var_175['path_read_write']='writeable';return $zym_var_175;}private function path($zym_var_176,$zym_var_11=true,$zym_var_179=false){$zym_var_464=explode(',',$this->config['setting_system']['path_hidden']);zym_var_27zym_var_46?ym_var_595zym_fun_43咴?zym_var_54?恩?ym_fun_73zym_var_602??ym_var_6剔???zym_var_27?zym_var_26?ym_fun_76?ym_fun_56瞰zym_var_414zym_var_602??zym_var_53??ym_fun_76弘?ジ?ym_var_514zym_var_603zym_var_48朱zym_var_48??ym_fun_75传zym_var_605ぶ???ym_fun_73zym_var_598锺;$zym_var_151=_DIR_OUT(iconv_app($zym_var_176));if($GLOBALS['path_type']==KOD_USER_SHARE&& strpos(trim($zym_var_176,'/'),'/')===!1){$zym_var_151=$zym_var_176;}$zym_var_110=array('folderlist' =>array(),'filelist' =>array(),'info' =>array(),'path_read_write' =>'not_exists','this_path' =>$zym_var_151);if(!file_exists($zym_var_176)){$zym_var_110['path_read_write']="not_exists";}else if(path_writeable($zym_var_176)){$zym_var_110['path_read_write']='writeable';}else if(path_writeable($zym_var_176)){$zym_var_110['path_read_write']='readable';}else{$zym_var_110['path_read_write']='not_readable';}if($zym_var_176===!1){return $zym_var_110;}else if($GLOBALS['path_type']==KOD_USER_SHARE&& !strstr(trim($this->in['path'],'/'),'/')){$zym_var_110=$this->path_share($zym_var_110);}else if($GLOBALS['path_type']==KOD_USER_FAV){$zym_var_110=$this->path_fav($zym_var_110);}else if($GLOBALS['path_type']==KOD_GROUP_ROOT_SELF){$zym_var_110=$this->path_group($zym_var_110,$GLOBALS['path_type']);}else if($GLOBALS['path_type']==KOD_GROUP_ROOT_ALL){$zym_var_110=$this->path_group($zym_var_110,$GLOBALS['path_type']);}else{$zym_var_11=path_list($zym_var_176,$zym_var_11,!0);$zym_var_110['folderlist']=$zym_var_11['folderlist'];$zym_var_110['filelist']=$zym_var_11['filelist'];}$zym_fun_76=array();$zym_var_168=array();foreach($zym_var_110['filelist'] as $zym_var_99=>$zym_var_100){if(in_array($zym_var_100['name'],$zym_var_464))continue;$zym_var_100['ext']=get_path_ext($zym_var_100['name']);zym_var_27?ym_fun_76琳啭?酬zym_var_512?ぢzym_var_35誓zym_var_608zym_var_598ㄕzym_var_61?ym_fun_75????ym_var_48?zym_var_751?痔?兄?ym_var_513zym_var_514?ym_fun_75?ym_var_414?zym_var_70⒎zym_var_602;if($zym_var_100['ext']=='oexe' && !isset($zym_var_100['content'])){$zym_var_45=iconv_system($zym_var_100['path']);$zym_var_48=json_decode(@file_get_contents($zym_var_45),!0);if(is_array($zym_var_48))$zym_var_100=array_merge($zym_var_100,$zym_var_48);}$zym_fun_76[]=$zym_var_100;}foreach($zym_var_110['folderlist'] as $zym_var_99=>$zym_var_100){if(in_array($zym_var_100['name'],$zym_var_464))continue;$zym_var_168[]=$zym_var_100;}$zym_var_110['filelist']=$zym_fun_76;$zym_var_110['folderlist']=$zym_var_168;$zym_var_110=_DIR_OUT($zym_var_110);zym_var_27zym_fun_56zym_var_33??幌zym_var_70??喻???zym_fun_76??ym_var_514zym_var_414zym_var_471zym_var_61???zym_var_605zym_var_70zym_var_54?ym_fun_74zym_var_52?zym_var_54zym_var_514?ym_var_473潢?$this->_role_check_info($zym_var_110);return $zym_var_110;zym_var_27zym_var_48zym_var_22瘵zym_var_605zym_var_26zym_fun_56zym_fun_75?zym_var_52?zym_var_53ㄝ???ym_var_605?癀休zym_var_131??ym_var_595zym_var_98zym_var_602赫zym_var_70缮zym_var_22zym_fun_56普?zym_var_595⒊??ym_fun_76;}private function _role_check_info(&$zym_var_171){if(!$GLOBALS['path_type']){$zym_var_171['info']=array("path_type"=>'',"role"=>'',"id"=>'','name'=>'');return;}$zym_var_171['info']=array("path_type" =>$GLOBALS['path_type'],"role" =>$GLOBALS['is_root']?'owner':'guest',"id" =>$GLOBALS['path_id'],'name' =>'',);if($GLOBALS['path_type']==KOD_USER_SHARE){$GLOBALS['path_id']=explode(':',$GLOBALS['path_id']);$GLOBALS['path_id']=$GLOBALS['path_id'][0];$zym_var_171['info']['id']=$GLOBALS['path_id'];$zym_var_169=system_member::get_info($GLOBALS['path_id']);$zym_var_171['info']['name']=$zym_var_169['name'];if($GLOBALS['is_root']){$zym_var_171['info']['admin_real_path']=USER_PATH.$zym_var_169['path'].'/home/';}}if($GLOBALS['path_type']==KOD_GROUP_PATH|| $GLOBALS['path_type']==KOD_GROUP_SHARE){$zym_var_50=system_group::get_info($GLOBALS['path_id']);$zym_var_171['info']['name']=$zym_var_50['name'];$zym_var_40=system_member::user_auth_group($GLOBALS['path_id']);if($zym_var_40=='write' || $GLOBALS['is_root']){$zym_var_171['info']['role']='owner';$zym_var_171['group_space_use']=$zym_var_50['config'];}if($GLOBALS['is_root']){$zym_var_171['info']['admin_real_path']=GROUP_PATH.$zym_var_50['path'].'/home/';}}}}