0x001){$GLOBALS[${0x019}]=trim($[0x001]);}else{$GLOBALS[${0x019}]=${0x000017};}break;}}switch($GLOBALS[$[0x00016]]){case ${0x000017}:$ț=iconv_system(HOME).$ț;ׇڴˑ穵цƻͬ́ͦᢅ;break;אվؚզڕ;case KOD_USER_RECYCLE:$GLOBALS[$[0x0000018]]=trim(USER_RECYCLE,${0x00011});Ϙʻ—;$GLOBALS[${0x019}]=${0x000017};return iconv_system(USER_RECYCLE).${0x00011}.str_replace(KOD_USER_RECYCLE,${0x000017},$ț);case KOD_USER_SELF:$GLOBALS[$[0x0000018]]=trim(HOME_PATH,${0x00011});ؙżܾ˞ꤚʍ;$GLOBALS[${0x019}]=${0x000017};return iconv_system(HOME_PATH).${0x00011}.str_replace(KOD_USER_SELF,${0x000017},$ț);͎ǃԆ;case KOD_USER_FAV:$GLOBALS[$[0x0000018]]=trim(KOD_USER_FAV,${0x00011});$GLOBALS[${0x019}]=${0x000017};鬫;return KOD_USER_FAV;􇇄΋;case KOD_GROUP_ROOT_SELF:$GLOBALS[$[0x0000018]]=trim(KOD_GROUP_ROOT_SELF,${0x00011});$GLOBALS[${0x019}]=${0x000017};return KOD_GROUP_ROOT_SELF;case KOD_GROUP_ROOT_ALL:$GLOBALS[$[0x0000018]]=trim(KOD_GROUP_ROOT_ALL,${0x00011});Ωꫳ;$GLOBALS[${0x019}]=${0x000017};return KOD_GROUP_ROOT_ALL;ӆ;case KOD_GROUP_PATH:$ڊ=systemGroup::getInfo($GLOBALS[${0x019}]);Ӳٞ;if(!$GLOBALS[${0x019}]|| !$ڊ)return !1;owner_group_check($GLOBALS[${0x019}]);$GLOBALS[$[0x0000018]]=group_home_path($ڊ);ϚիՋݩ;$ț=iconv_system($GLOBALS[$[0x0000018]]).$;break;ɯͫ;case KOD_GROUP_SHARE:$ڊ=systemGroup::getInfo($GLOBALS[${0x019}]);if(!$GLOBALS[${0x019}]|| !$ڊ)return !1;owner_group_check($GLOBALS[${0x019}]);$GLOBALS[$[0x0000018]]=group_home_path($ڊ).$[0x00001c];ݟ;$ț=iconv_system($GLOBALS[$[0x0000018]]).$;;break;case KOD_USER_SHARE:$ڊ=systemMember::getInfo($GLOBALS[${0x019}]);if(!$GLOBALS[${0x019}]|| !$ڊ)return !1;if($GLOBALS[${0x019}]!=$_SESSION[${0x000001d}][$[0x01e]]){$=$GLOBALS[${0x001f}][$[0x00020]][${0x000021}][$[0x0000022]];path_role_check($);}$GLOBALS[$[0x0000018]]=${0x000017};$GLOBALS[$[0x001a]]=$;if($==${0x000017}){return $ț;}else{$=explode(${0x00011},$);$[0]=iconv_app($[0]);$ί=systemMember::userShareGet($GLOBALS[${0x019}],$[0]);$GLOBALS[${0x023}]=$ί;$GLOBALS[$[0x001a]]=KOD_USER_SHARE.${0x0001b}.$GLOBALS[${0x019}].${0x00011}.$[0].${0x00011};unset($[0]);if(!$ί)return !1;$=rtrim($ί[$[0x0024]],${0x00011}).${0x00011}.iconv_app(implode(${0x00011},$));潉݉;if($ڊ[${0x00025}]!=${0x000021}){$=user_home_path($ڊ);$GLOBALS[$[0x0000018]]=$.rtrim($ί[$[0x0024]],${0x00011}).${0x00011};$ț=$.$;}else{$GLOBALS[$[0x0000018]]=$ί[$[0x0024]];$ț=$;}if($ί[$[0x000026]]==${0x0000027}){$GLOBALS[$[0x001a]]=rtrim($GLOBALS[$[0x001a]],${0x00011});$GLOBALS[$[0x0000018]]=rtrim($GLOBALS[$[0x0000018]],${0x00011});}$ț=iconv_system($ț);}break;ҝ»;default:break;}if($ț!=${0x00011}){$ț=rtrim($ț,${0x00011});if(is_dir($ț))$ț=$ț.${0x00011};}return $ț;}function _DIR_OUT($){$=&$_SERVER{};if(is_array($)){foreach($[$[0x028]] as $=>&$){$[$[0x0024]]=preClear($[$[0x0024]]);}foreach($[${0x0029}] as $=>&$){$[$[0x0024]]=preClear(rtrim($[$[0x0024]],${0x00011}).${0x00011});}}else{$=preClear($);}return $;}function preClear($){$=&$_SERVER{};$=$GLOBALS[$[0x00016]];$=rtrim($GLOBALS[$[0x0000018]],${0x00011});;$=array(KOD_USER_FAV,KOD_GROUP_ROOT_SELF,KOD_GROUP_ROOT_ALL);;if(isset($GLOBALS[$[0x00016]])&& in_array($GLOBALS[$[0x00016]],$)){return $;}if(ST==$[0x0002a]){return str_replace($,${0x000017},$);}if($GLOBALS[${0x019}]!=${0x000017}){$.=${0x0001b}.$GLOBALS[${0x019}].${0x00011};}if(isset($GLOBALS[$[0x001a]])){$=$GLOBALS[$[0x001a]];}$=$.str_replace($,${0x000017},$);$=str_replace(${0x00002b},${0x00011},$);return $;}include(CLASS_DIR.$_SERVER{}[0x000002c]);function owner_group_check($){$=&$_SERVER{};if(!$)show_json(LNG(${0x02d}).$,!1);if($GLOBALS[${0x0000013}]||(isset($GLOBALS[$[0x002e]])&& $GLOBALS[$[0x002e]]===!0)){return;}$=systemMember::userAuthGroup($);if($==!1){if($GLOBALS[$[0x00016]]==KOD_GROUP_PATH){show_json(LNG(${0x0002f}),!1);}else if($GLOBALS[$[0x00016]]==KOD_GROUP_SHARE){$=$GLOBALS[${0x001f}][$[0x00020]][${0x000021}];}}else{$=$GLOBALS[${0x001f}][$[0x000030]][$];}path_role_check($[$[0x0000022]]);}function path_role_check($){$=&$_SERVER{};if($GLOBALS[${0x0000013}]||(isset($GLOBALS[$[0x002e]])&& $GLOBALS[$[0x002e]]===!0)){return;}$ԯ=role_permission_arr($);$GLOBALS[${0x0000031}]=$ԯ;䵐Ѓ;if(!isset($ԯ[ST.$[0x032].ACT])&& ST!=$[0x0002a]){show_json(LNG(${0x0033}),!1);}}function role_permission_arr($氻){$р=&$_SERVER{};$=array();$㢙=$GLOBALS[$р{0x001f}][$р[0x00034]];foreach($氻 as $=>$){if(!$)continue;$٠ն=explode($р{0x0001b},$);if(count($٠ն)==0x0002&& is_array($㢙[$٠ն[0]])&& is_array($㢙[$٠ն[0]][$٠ն[0x001]])){$=array_merge($,$㢙[$٠ն[0]][$٠ն[0x001]]);}}$=array();ƕ蜻Əӕ⭵ˢ;foreach($ as $){$[$]=$р{0x000021};̱ն߿Ӝ;}return $;}function check_file_writable_user($؄){$=&$_SERVER{};if(!isset($GLOBALS[$[0x00016]])){_DIR($؄);}$=${0x000035};if($GLOBALS[${0x0000013}])return @is_writable($؄);if($GLOBALS[$[0x0000036]][$]!=${0x000021}){return !1;}if($GLOBALS[$[0x00016]]==KOD_GROUP_PATH&& is_array($GLOBALS[${0x0000031}])&& $GLOBALS[${0x0000031}][$]==${0x000021}){return !0;}if($GLOBALS[$[0x00016]]==${0x000017} || $GLOBALS[$[0x00016]]==KOD_USER_SELF){return !0;}return !1;}function space_size_use_check(){$=&$_SERVER{};if(!system_space())return;if($GLOBALS[${0x0000013}]==0x001)return;if(isset($GLOBALS[${0x037}])&& isset($GLOBALS[${0x019}])&& $GLOBALS[${0x037}]==$GLOBALS[${0x019}]){return;}if($GLOBALS[$[0x00016]]==KOD_GROUP_SHARE|| $GLOBALS[$[0x00016]]==KOD_GROUP_PATH){systemGroup::spaceCheck($GLOBALS[${0x019}]);}else{if(ST==$[0x0002a]){$=$GLOBALS[$[0x0038]][${0x00039}];}else{$=$_SESSION[${0x000001d}][$[0x01e]];}systemMember::spaceCheck($);}}function spaceSizeChange($,$=true,$=false,$=false){$=&$_SERVER{};if(!system_space())return;if($===!1){$=$GLOBALS[$[0x00016]];$=$GLOBALS[${0x019}];}$=$?0x001:-0x001;if(is_file($)){$擗=get_filesize($);}else if(is_dir($)){$=_path_info_more($);$擗=$[$[0x00003a]];}else{return;}if($==KOD_GROUP_SHARE|| $==KOD_GROUP_PATH){systemGroup::spaceChange($,$擗*$);}else{if(ST==$[0x0002a]){$؋=$GLOBALS[$[0x0038]][${0x00039}];}else{$؋=$_SESSION[${0x000001d}][$[0x01e]];}systemMember::spaceChange($؋,$擗*$);}}function spaceSizeChange_move($){$=&$_SERVER{};if(isset($GLOBALS[${0x037}])&& isset($GLOBALS[${0x019}])){if($GLOBALS[${0x037}]==$GLOBALS[${0x019}]){return;}else{spaceSizeChange($);spaceSizeChange($,!1,$GLOBALS[${0x000003b}],$GLOBALS[${0x037}]);}}else{spaceSizeChange($);ЉⓣʧӫҾ;㴻;}}function space_size_use_reset(){$=&$_SERVER{};if(!system_space())return;$ݸÜ=isset($GLOBALS[$[0x00016]])?$GLOBALS[$[0x00016]]:${0x000017};ɶٸ֧ڭ;$=isset($GLOBALS[${0x019}])?$GLOBALS[${0x019}]:${0x000017};;if($ݸÜ==KOD_GROUP_SHARE|| $ݸÜ==KOD_GROUP_PATH){systemGroup::spaceChange($);}else{$Њ=$_SESSION[${0x000001d}][$[0x01e]];systemMember::spaceChange($Њ);}}function init_space_size_hook(){$Ҽ=&$_SERVER{};Hook::bind($Ҽ[0x03c],$Ҽ{0x003d});ӄت򵖋ܮ;Hook::bind($Ҽ[0x0003e],$Ҽ{0x00003f});ߦ;Hook::bind($Ҽ[0x0000040],$Ҽ{0x003d});Hook::bind($Ҽ{0x041},$Ҽ{0x003d});Ļڑԅ摫;Hook::bind($Ҽ[0x0042],$Ҽ{0x003d});Hook::bind($Ҽ{0x00043},$Ҽ{0x003d});־뜪Ӯ˗ܯ⬰ꅊﯾٓȬץ܂;Hook::bind($Ҽ[0x000044],$Ҽ{0x003d});Hook::bind($Ҽ{0x0000045},$Ҽ{0x003d});Hook::bind($Ҽ[0x046],$Ҽ{0x003d});Hook::bind($Ҽ{0x0047},$Ҽ{0x00003f});Ǩ֚ɉí區ᢷ;Hook::bind($Ҽ[0x00048],$Ҽ{0x00003f});;Hook::bind($Ҽ{0x000049},$Ҽ{0x00003f});Hook::bind($Ҽ[0x000004a],$Ҽ{0x00003f});Hook::bind($Ҽ{0x04b},$Ҽ{0x003d});Hook::bind($Ҽ[0x004c],$Ҽ{0x0004d});Hook::bind($Ҽ[0x00004e],$Ҽ{0x000004f});پʔ˥ͪ㵀̙;}function init_session(){$=&$_SERVER{};if(isset($_GET[$[0x050]])){access_token_check($_GET[$[0x050]]);}else if(isset($_GET[${0x0051}])){access_token_check($_GET[${0x0051}]);}else{@session_name(SESSION_ID);}if(class_exists($[0x00052])|| defined(${0x000053})|| isset($_SERVER[$[0x0000054]])){}else{@session_save_path(KOD_SESSION);}@session_start();$_SESSION[${0x055}]=!0;ߦ΄ݤ;@session_write_close();@session_start();̷̿ۻܙ̻;if(!$_SESSION[${0x055}]){chmod_path(KOD_SESSION,0777);}}function access_token_check($μ){$=&$_SERVER{};$=$GLOBALS[${0x001f}][$[0x0056]][${0x00057}];$=substr(md5($[0x000058].$),0,0x0f);̑ԩ;$ԓ=Mcrypt::decode($μ,$);if(!$ԓ){show_tips(${0x0000059});}session_id($ԓ);}function access_token_get(){$ܑ=&$_SERVER{};$=session_id();$ӣ=$GLOBALS[$ܑ{0x001f}][$ܑ[0x0056]][$ܑ{0x00057}];$ӣ=substr(md5($ܑ[0x000058].$ӣ),0,0x0f);ᕩ͙̣ߡͿɎ;$=Mcrypt::encode($,$ӣ,0x0e10*0x0000018);return $;ÎܐޮҁŽ;}function init_config(){init_setting();init_session();init_space_size_hook();}