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($٬){$=&$GLOBALS{};if(is_array($٬)){foreach($٬[$[0x028]] as $=>&$Ԕ){$Ԕ[$[0x0024]]=preClear($Ԕ[$[0x0024]]);}foreach($٬[${0x0029}] as $=>&$Ԕ){$Ԕ[$[0x0024]]=preClear(rtrim($Ԕ[$[0x0024]],${0x00011}).${0x00011});}}else{$٬=preClear($٬);}return $٬;}function preClear($){$=&$GLOBALS{};$=$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.$GLOBALS{}[0x000002c]);function owner_group_check($){$=&$GLOBALS{};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($){$=&$GLOBALS{};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($){$=&$GLOBALS{};$=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($){$=&$GLOBALS{};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(){$=&$GLOBALS{};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){$=&$GLOBALS{};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($ɤ){$=&$GLOBALS{};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(){$=&$GLOBALS{};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(){$=&$GLOBALS{};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(){$ⴋ=&$GLOBALS{};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($ے){$=&$GLOBALS{};$=$GLOBALS[${0x001f}][$[0x0056]][${0x00057}];᷇փʱ值̔—ĤƦ;$=substr(md5($[0x000058].$),0,0x0f);ꃍ;$ɹ=Mcrypt::decode($ے,$);֨Ƃ㠏а؜;if(!$ɹ){show_tips(${0x0000059});}session_id($ɹ);}function access_token_get(){$ީ=&$GLOBALS{};$=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();}