KodExplorer/app/controller/util.php

2 lines
14 KiB
PHP
Executable File
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<?php define('<27>', '<27>');講樾諔<EFBFBD>竤𣊭㳜<EFBFBD><EFBFBD><EFBFBD>鿋唯<EFBFBD><EFBFBD>𡊨謨冪;$GLOBALS[<EFBFBD>] = explode('|>|%|@', 'KOD_GROUP_PATH|>|%|@{groupPath}|>|%|@KOD_GROUP_SHARE|>|%|@{groupShare}|>|%|@KOD_USER_SELF|>|%|@{userSelf}|>|%|@KOD_USER_SHARE|>|%|@{userShare}|>|%|@KOD_USER_RECYCLE|>|%|@{userRecycle}|>|%|@KOD_USER_FAV|>|%|@{userFav}|>|%|@KOD_GROUP_ROOT_SELF|>|%|@{treeGroupSelf}|>|%|@KOD_GROUP_ROOT_ALL|>|%|@{treeGroupAll}|>|%|@\\|>|%|@/|>|%|@/\\/+/|>|%|@isRoot|>|%|@/../|>|%|@../|>|%|@kodPathType|>|%|@|>|%|@kodPathPre|>|%|@kodPathId|>|%|@kodPathIdShare|>|%|@:|>|%|@share/|>|%|@kodUser|>|%|@userID|>|%|@config|>|%|@pathRoleGroupDefault|>|%|@1|>|%|@actions|>|%|@kodShareInfo|>|%|@path|>|%|@role|>|%|@type|>|%|@file|>|%|@fileList|>|%|@folderList|>|%|@share|>|%|@//|>|%|@.cache_data|>|%|@group_not_exist|>|%|@kodPathAuthCheck|>|%|@no_permission_group|>|%|@pathRoleGroup|>|%|@kodPathRoleGroupAuth|>|%|@.|>|%|@no_permission_action|>|%|@pathRoleDefine|>|%|@editor.fileSave|>|%|@auth|>|%|@kodBeforePathId|>|%|@in|>|%|@user|>|%|@size|>|%|@beforePathType|>|%|@uploadFileBefore|>|%|@space_size_use_check|>|%|@uploadFileAfter|>|%|@spaceSizeChange|>|%|@explorer.serverDownloadBefore|>|%|@explorer.unzipBefore|>|%|@explorer.zipBefore|>|%|@explorer.pathCopy|>|%|@explorer.mkfileBefore|>|%|@explorer.mkdirBefore|>|%|@explorer.pathMove|>|%|@explorer.mkfileAfter|>|%|@explorer.pathCopyAfter|>|%|@explorer.unzipAfter|>|%|@explorer.serverDownloadAfter|>|%|@explorer.pathMoveBefore|>|%|@explorer.pathMoveBfter|>|%|@spaceSizeChange_move|>|%|@explorer.pathRemoveAfter|>|%|@space_size_use_reset|>|%|@accessToken|>|%|@access_token|>|%|@SaeStorage|>|%|@SAE_APPNAME|>|%|@SESSION_PATH_DEFAULT|>|%|@session.save_handler|>|%|@files|>|%|@HTTP_APPNAME|>|%|@kod|>|%|@<40>滚𦛚<E6BB9A>究ession<6F><EFBFBD>憭梯揖! (session write error)<br/>|>|%|@霂瑟<E99C82><E7919F>叼hp.ini<6E><EFBFBD><E8A9A8>滨蔭,<2C><EFBFBD><EFBFBD><E89DA4><EFBFBD>臬炏撌脫說,<2C>硋倮霂<E99C82><EFBCB8><EFBFBD><E288AA><EFBFBD><br/><br/>|>|%|@session.save_path=|>|%|@<br/>|>|%|@session.save_handler=|>|%|@settingSystem|>|%|@systemPassword|>|%|@kodExplorer_|>|%|@accessToken error!');<EFBFBD>挔欒𥰆<EFBFBD><EFBFBD>庇扈兕蘨<EFBFBD><EFBFBD>褥菁嚗鬩𣳇<EFBFBD>;
define($GLOBALS{<EFBFBD>}[0],$GLOBALS{<EFBFBD>}{0x001});define($GLOBALS{<EFBFBD>}[0x0002],$GLOBALS{<EFBFBD>}{0x00003});define($GLOBALS{<EFBFBD>}[0x000004],$GLOBALS{<EFBFBD>}{0x05});define($GLOBALS{<EFBFBD>}[0x006],$GLOBALS{<EFBFBD>}{0x0007});define($GLOBALS{<EFBFBD>}[0x00008],$GLOBALS{<EFBFBD>}{0x000009});define($GLOBALS{<EFBFBD>}[0x0a],$GLOBALS{<EFBFBD>}{0x00b});define($GLOBALS{<EFBFBD>}[0x000c],$GLOBALS{<EFBFBD>}{0x0000d});define($GLOBALS{<EFBFBD>}[0x00000e],$GLOBALS{<EFBFBD>}{0x0f});function _DIR_CLEAR($<24>){$<24><>=&$GLOBALS{<EFBFBD>};$<24>=str_replace($<24>鎎0x0010],$<24>鞨0x00011},trim($<24>));<EFBFBD>夭噥𡸽毲𤣳<EFBFBD>;$<24>=preg_replace($<24>鎎0x000012],$<24>鞨0x00011},$<24>);<EFBFBD><EFBFBD><EFBFBD>𧯴條禎╨狍齗𧬺鐦<EFBFBD>斶侁謵<EFBFBD><EFBFBD>框╕<EFBFBD>;$<24><>=$<24>;𥑬蜒␛<EFBFBD>抸蚞<EFBFBD>;if(isset($GLOBALS[$<24>鞨0x0000013}])&& $GLOBALS[$<24>鞨0x0000013}]){return $<24>;}$<24>=$<24>鎎0x014];if(substr($<24>,0,0x00003)==$<24>鞨0x0015}){$<24>=substr($<24>,0x00003);}while(strstr($<24>,$<24>)){$<24>=str_replace($<24>,$<24>鞨0x00011},$<24>);}$<24>=preg_replace($<24>鎎0x000012],$<24>鞨0x00011},$<24>);return $<24>;}function _DIR($<24><>){$惎價=&$GLOBALS{<EFBFBD>};$鰊=_DIR_CLEAR($<24><>);$鰊=iconv_system($鰊);霶藃<EFBFBD><EFBFBD>;$哧=array(KOD_GROUP_PATH,KOD_GROUP_SHARE,KOD_USER_SELF,KOD_GROUP_ROOT_SELF,KOD_GROUP_ROOT_ALL,KOD_USER_SHARE,KOD_USER_RECYCLE,KOD_USER_FAV,);<EFBFBD><EFBFBD><EFBFBD>;$GLOBALS[$惎價[0x00016]]=$惎價{0x000017};<EFBFBD><EFBFBD>𧡰捧𨰹墓<EFBFBD>𣾀錚<EFBFBD>;$GLOBALS[$惎價[0x0000018]]=HOME;𩇕<EFBFBD>葳﹞𢫦琡<EFBFBD><EFBFBD>耬怢樞虓<EFBFBD><EFBFBD><EFBFBD>藑踠隊啱准剷鉹剏鏨<EFBFBD>癀裖迊<EFBFBD>;$GLOBALS[$惎價{0x019}]=$惎價{0x000017};𤫩嬦鍍见爢㖗嘥擢薚<EFBFBD><EFBFBD><EFBFBD>蘱罸灹噌奿<EFBFBD>菱糬<EFBFBD><EFBFBD>簆∞<EFBFBD>燭螢騆<EFBFBD><EFBFBD>們絎<EFBFBD><EFBFBD>蚧儹<EFBFBD>㹴澀<EFBFBD>ˉ奪阺煷靽孭<EFBFBD>;unset($GLOBALS[$惎價[0x001a]]);𦻕𨫢畑𣸬穚<EFBFBD>;foreach($哧 as $囆𣏺){if(substr($鰊,0,strlen($囆𣏺))==$囆𣏺){$GLOBALS[$惎價[0x00016]]=$囆𣏺;$埜堞<E59F9C>=explode($惎價{0x00011},$鰊);$麑<><E9BA91>=$埜堞𥰁0];unset($埜堞𥰁0]);$<24><EFBFBD>=implode($惎價{0x00011},$埜堞<E59F9C>);$摫=explode($惎價{0x0001b},$麑<><E9BA91>);if(count($摫)>0x001){$GLOBALS[$惎價{0x019}]=trim($摫[0x001]);}else{$GLOBALS[$惎價{0x019}]=$惎價{0x000017};}break;}}switch($GLOBALS[$惎價[0x00016]]){case $惎價{0x000017}:$鰊=iconv_system(HOME).$鰊;頴摒<EFBFBD><EFBFBD>仮憎肭㰑蹊葋尰㻧╨熇麻梯<EFBFBD><EFBFBD><EFBFBD>;break;case KOD_USER_RECYCLE:$GLOBALS[$惎價[0x0000018]]=trim(USER_RECYCLE,$惎價{0x00011});閅賜<EFBFBD><EFBFBD><EFBFBD><EFBFBD>;$GLOBALS[$惎價{0x019}]=$惎價{0x000017};<EFBFBD>㻛坭惞縟鐏<EFBFBD><EFBFBD>糗卿<EFBFBD><EFBFBD><EFBFBD>𨅏<EFBFBD>鉘桐懭桉𤠒タ<EFBFBD>橉𠳝㔾<EFBFBD><EFBFBD>芍羣;return iconv_system(USER_RECYCLE).$惎價{0x00011}.str_replace(KOD_USER_RECYCLE,$惎價{0x000017},$鰊);case KOD_USER_SELF:$GLOBALS[$惎價[0x0000018]]=trim(HOME_PATH,$惎價{0x00011});<EFBFBD>褅艡搡<EFBFBD><EFBFBD><EFBFBD><EFBFBD>矾∩<EFBFBD>;$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};隽硢敳籓迮蕈誹勘縭<EFBFBD>;return KOD_GROUP_ROOT_SELF;case KOD_GROUP_ROOT_ALL:$GLOBALS[$惎價[0x0000018]]=trim(KOD_GROUP_ROOT_ALL,$惎價{0x00011});$GLOBALS[$惎價{0x019}]=$惎價{0x000017};<EFBFBD><EFBFBD>驒鈡晋<EFBFBD><EFBFBD><EFBFBD><EFBFBD>𨯪橃菅<EFBFBD><EFBFBD>;return KOD_GROUP_ROOT_ALL;韠閟<EFBFBD><EFBFBD><EFBFBD><EFBFBD>𤥿<EFBFBD><EFBFBD>;case KOD_GROUP_PATH:$<24><><EFBFBD>=systemGroup::getInfo($GLOBALS[$惎價{0x019}]);<EFBFBD>磹葙情;if(!$GLOBALS[$惎價{0x019}]|| !$<24><><EFBFBD>)return !1;owner_group_check($GLOBALS[$惎價{0x019}]);<EFBFBD><EFBFBD><EFBFBD><EFBFBD>𣠺鏸氀<EFBFBD><EFBFBD>;$GLOBALS[$惎價[0x0000018]]=group_home_path($<24><><EFBFBD>);<EFBFBD>サ欥<EFBFBD><EFBFBD><EFBFBD>;$鰊=iconv_system($GLOBALS[$惎價[0x0000018]]).$<24><EFBFBD>;break;case KOD_GROUP_SHARE:$<24><><EFBFBD>=systemGroup::getInfo($GLOBALS[$惎價{0x019}]);if(!$GLOBALS[$惎價{0x019}]|| !$<24><><EFBFBD>)return !1;owner_group_check($GLOBALS[$惎價{0x019}]);𨫠<EFBFBD><EFBFBD><EFBFBD><EFBFBD>;$GLOBALS[$惎價[0x0000018]]=group_home_path($<24><><EFBFBD>).$惎價[0x00001c];$鰊=iconv_system($GLOBALS[$惎價[0x0000018]]).$<24><EFBFBD>;<EFBFBD><EFBFBD>𡟵<EFBFBD><EFBFBD><EFBFBD>䠷眸曼栳<EFBFBD><EFBFBD>;break;<EFBFBD><EFBFBD>鍥踏<EFBFBD><EFBFBD>𢎽𠱓𡥄麦<EFBFBD>坛扎<EFBFBD>孻猷蠮ス賮裝魚傘疥际撕<EFBFBD><EFBFBD>;case KOD_USER_SHARE:$<24><><EFBFBD>=systemMember::getInfo($GLOBALS[$惎價{0x019}]);𦻕<EFBFBD><EFBFBD>珀逤<EFBFBD>譢還<EFBFBD><EFBFBD>;if(!$GLOBALS[$惎價{0x019}]|| !$<24><><EFBFBD>)return !1;if($GLOBALS[$惎價{0x019}]!=$_SESSION[$惎價{0x000001d}][$惎價[0x01e]]){$<24><>=$GLOBALS[$惎價{0x001f}][$惎價[0x00020]][$惎價{0x000021}][$惎價[0x0000022]];path_role_check($<24><>);}$GLOBALS[$惎價[0x0000018]]=$惎價{0x000017};$GLOBALS[$惎價[0x001a]]=$<24><>;if($<24><EFBFBD>==$惎價{0x000017}){return $鰊;}else{$皜擢<E79A9C>=explode($惎價{0x00011},$<24><EFBFBD>);$皜擢汥0]=iconv_app($皜擢汥0]);$<24><><EFBFBD>=systemMember::userShareGet($GLOBALS[$惎價{0x019}],$皜擢汥0]);$GLOBALS[$惎價{0x023}]=$<24><><EFBFBD>;$GLOBALS[$惎價[0x001a]]=KOD_USER_SHARE.$惎價{0x0001b}.$GLOBALS[$惎價{0x019}].$惎價{0x00011}.$皜擢汥0].$惎價{0x00011};unset($皜擢汥0]);if(!$<24><><EFBFBD>)return !1;$<24>=rtrim($<24><>$惎價[0x0024]],$惎價{0x00011}).$惎價{0x00011}.iconv_app(implode($惎價{0x00011},$皜擢<E79A9C>));if($<24><>$惎價{0x00025}]!=$惎價{0x000021}){$𣸯=user_home_path($<24><><EFBFBD>);$GLOBALS[$惎價[0x0000018]]=$𣸯.rtrim($<24><>$惎價[0x0024]],$惎價{0x00011}).$惎價{0x00011};$鰊=$𣸯.$<24>;}else{$GLOBALS[$惎價[0x0000018]]=$<24><>$惎價[0x0024]];$鰊=$<24>;}if($<24><>$惎價[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{<EFBFBD>};if(is_array($蘧僥)){foreach($蘧僥[$╛[0x028]] as $湐<>=>&$麢軤<E9BAA2>){$麢軤䴇$╛[0x0024]]=preClear($麢軤䴇$╛[0x0024]]);}foreach($蘧僥[$╛{0x0029}] as $湐<>=>&$麢軤<E9BAA2>){$麢軤䴇$╛[0x0024]]=preClear(rtrim($麢軤䴇$╛[0x0024]],$╛{0x00011}).$╛{0x00011});}}else{$蘧僥=preClear($蘧僥);}return $蘧僥;}function preClear($<24><>){$<24><>=&$GLOBALS{<EFBFBD>};$恌<>=$GLOBALS[$<24><>0x00016]];$𥗠=rtrim($GLOBALS[$<24><>0x0000018]],$<24><>0x00011});$<24><>=array(KOD_USER_FAV,KOD_GROUP_ROOT_SELF,KOD_GROUP_ROOT_ALL);𧅵;if(isset($GLOBALS[$<24><>0x00016]])&& in_array($GLOBALS[$<24><>0x00016]],$<24><>)){return $<24><>;}if(ST==$<24><>0x0002a]){return str_replace($𥗠,$<24><>0x000017},$<24><>);}if($GLOBALS[$<24><>0x019}]!=$<24><>0x000017}){$恌<>.=$<24><>0x0001b}.$GLOBALS[$<24><>0x019}].$<24><>0x00011};}if(isset($GLOBALS[$<24><>0x001a]])){$恌<>=$GLOBALS[$<24><>0x001a]];}$𪊶<><F0AA8AB6>=$恌<>.str_replace($𥗠,$<24><>0x000017},$<24><>);$𪊶<><F0AA8AB6>=str_replace($<24><>0x00002b},$<24><>0x00011},$𪊶<><F0AA8AB6>);return $𪊶<><F0AA8AB6>;}include(CLASS_DIR.$GLOBALS{<EFBFBD>}[0x000002c]);function owner_group_check($馨<>){$暋<>=&$GLOBALS{<EFBFBD>};if(!$馨<>)show_json(LNG($暋鼷0x02d}).$馨<>,!1);if($GLOBALS[$暋鼷0x0000013}]||(isset($GLOBALS[$暋鱍0x002e]])&& $GLOBALS[$暋鱍0x002e]]===!0)){return;}$<24>=systemMember::userAuthGroup($馨<>);if($<24>==!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]][$岠;𣂼<EFBFBD>歇繬陘瘏<EFBFBD><EFBFBD><EFBFBD>舶ŋ囆伎<EFBFBD><EFBFBD>;}path_role_check($粕𢬎$暋鱍0x0000022]]);}function path_role_check($<24>){$<24>=&$GLOBALS{<EFBFBD>};if($GLOBALS[$𣏵0x0000013}]||(isset($GLOBALS[$惽0x002e]])&& $GLOBALS[$惽0x002e]]===!0)){return;}$環=role_permission_arr($<24>);$GLOBALS[$𣏵0x0000031}]=$環;if(!isset($環[ST.$惽0x032].ACT])&& ST!=$惽0x0002a]){show_json(LNG($𣏵0x0033}),!1);}}function role_permission_arr($䉶){$拆<>=&$GLOBALS{<EFBFBD>};$𠘰諭=array();磵熉菮<EFBFBD>魆謈毤<EFBFBD>獰㯬<EFBFBD>;$軜=$GLOBALS[$拆爍0x001f}][$拆鵠0x00034]];氜還鏵㗾梡<EFBFBD>𣛟<EFBFBD><EFBFBD><EFBFBD>栗軉ホ<EFBFBD>習眞萼庣鱞<EFBFBD>祤𤍈<EFBFBD><EFBFBD>鼮艬敻<EFBFBD>;foreach($䉶 as $旳捻=>$澬𧇍){if(!$澬𧇍)continue;$鼵𤦻<E9BCB5>=explode($拆爍0x0001b},$旳捻);if(count($鼵𤦻<E9BCB5>)==0x0002&& is_array($軜[$鼵𤦻<E9BCB5>0]])&& is_array($軜[$鼵𤦻<E9BCB5>0]][$鼵𤦻<E9BCB5>0x001]])){$𠘰諭=array_merge($𠘰諭,$軜[$鼵𤦻<E9BCB5>0]][$鼵𤦻<E9BCB5>0x001]]);}}$堛=array();foreach($𠘰諭 as $澬𧇍){$堛[$澬𧇍]=$拆爍0x000021};}return $堛;}function check_file_writable_user($<24>){$珍=&$GLOBALS{<EFBFBD>};if(!isset($GLOBALS[$珍[0x00016]])){_DIR($<24>);}$羊楉=$珍{0x000035};if($GLOBALS[$珍{0x0000013}])return @is_writable($<24>);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(){$捹<><E68DB9>=&$GLOBALS{<EFBFBD>};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]){$<24>=$GLOBALS[$捹<>𤄏0x0038]][$捹<>𠉵0x00039}];}else{$<24>=$_SESSION[$捹<>𠉵0x000001d}][$捹<>𤄏0x01e]];}systemMember::spaceCheck($<24>);}}function spaceSizeChange($噩<>,$餗捿<E9A497>=true,$<24>=false,$<24>=false){$<24><>=&$GLOBALS{<EFBFBD>};if(!system_space())return;if($<24>===!1){$<24>=$GLOBALS[$<24>囯0x00016]];$<24>=$GLOBALS[$<24>够0x019}];}$餗捿<E9A497>=$餗捿<E9A497>?0x001:-0x001;if(is_file($噩<>)){$<24><EFBFBD>=get_filesize($噩<>);}else if(is_dir($噩<>)){$鶨𡤑<E9B6A8>=_path_info_more($噩<>);$<24><EFBFBD>=$鶨𡤑髠$<24>囯0x00003a]];}else{return;}if($<24>==KOD_GROUP_SHARE|| $<24>==KOD_GROUP_PATH){systemGroup::spaceChange($<24>,$<24><EFBFBD>*$餗捿<E9A497>);}else{if(ST==$<24>囯0x0002a]){$<24>=$GLOBALS[$<24>囯0x0038]][$<24>够0x00039}];}else{$<24>=$_SESSION[$<24>够0x000001d}][$<24>囯0x01e]];}systemMember::spaceChange($<24>,$<24><EFBFBD>*$餗捿<E9A497>);}}function spaceSizeChange_move($<24>){$盛徦<E79B9B>=&$GLOBALS{<EFBFBD>};if(isset($GLOBALS[$盛徦荁0x037}])&& isset($GLOBALS[$盛徦荁0x019}])){if($GLOBALS[$盛徦荁0x037}]==$GLOBALS[$盛徦荁0x019}]){return;}else{spaceSizeChange($<24>);spaceSizeChange($<24>,!1,$GLOBALS[$盛徦荁0x000003b}],$GLOBALS[$盛徦荁0x037}]);}}else{spaceSizeChange($<24>);隣嶋忺搧鴢眦娒<EFBFBD><EFBFBD>鈫挶恄<EFBFBD>楶舠捅藗𧬘荏<EFBFBD>鼢膹璽裏袽鉄𢅺羈<EFBFBD><EFBFBD>啜楸硢𦶠<EFBFBD>;}}function space_size_use_reset(){$瓙肱<E79399>=&$GLOBALS{<EFBFBD>};if(!system_space())return;$巹﹣=isset($GLOBALS[$瓙肱嬠0x00016]])?$GLOBALS[$瓙肱嬠0x00016]]:$瓙肱懆0x000017};<EFBFBD>;$<24><EFBFBD>=isset($GLOBALS[$瓙肱懆0x019}])?$GLOBALS[$瓙肱懆0x019}]:$瓙肱懆0x000017};if($巹﹣==KOD_GROUP_SHARE|| $巹﹣==KOD_GROUP_PATH){systemGroup::spaceChange($<24><EFBFBD>);}else{$<24><>=$_SESSION[$瓙肱懆0x000001d}][$瓙肱嬠0x01e]];systemMember::spaceChange($<24><>);}}function init_space_size_hook(){$<24>=&$GLOBALS{<EFBFBD>};Hook::bind($愴0x03c],$暍0x003d});<EFBFBD><EFBFBD>ㄝ蝸銦箇斤<EFBFBD>;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});𨰹咅焩劐鞣籙敭基<EFBFBD>瑭鴔約菾<EFBFBD>嵃鈡ế<EFBFBD><EFBFBD>攴稃<EFBFBD>𤾆褒<EFBFBD>鷾朔劃䆐裎徶蛺磄<EFBFBD><EFBFBD>;Hook::bind($暍0x0047},$暍0x00003f});Hook::bind($愴0x00048],$暍0x00003f});Hook::bind($暍0x000049},$暍0x00003f});<EFBFBD>碔絩鉆迅;Hook::bind($愴0x000004a],$暍0x00003f});濶羹<EFBFBD><EFBFBD>懨裧<EFBFBD><EFBFBD>覺奴<EFBFBD>𠱁嘉悌昔僾荻鯔碯嗯棈藋<EFBFBD>;Hook::bind($暍0x04b},$暍0x003d});Hook::bind($愴0x004c],$暍0x0004d});鞾棈澥氿輝栯穚痋森騑酋;Hook::bind($愴0x00004e],$暍0x000004f});}function init_session(){$<24>=&$GLOBALS{<EFBFBD>};if(isset($_GET[$嬂0x050]])){access_token_check($_GET[$嬂0x050]]);}else if(isset($_GET[$憱0x0051}])){access_token_check($_GET[$憱0x0051}]);}else{@session_name(SESSION_ID);}$𠌥 ̄<F0A08CA5>=@session_save_path();if(class_exists($嬂0x00052])|| defined($憱0x000053})|| defined($嬂0x0000054])|| @ini_get($憱0x055})!=$嬂0x0056] || isset($_SERVER[$憱0x00057}])){}else{chmod_path(KOD_SESSION,0777);@session_save_path(KOD_SESSION);}@session_start();$_SESSION[$嬂0x000058]]=0x001;𩐝嫋紳<EFBFBD>韻鼫魚逡;@session_write_close();𩐝<EFBFBD>砍秄鿊<EFBFBD>;unset($_SESSION);𦲸蛌<EFBFBD>顯㚬奿鶔筵朮<EFBFBD><EFBFBD><EFBFBD>飲𢬢<EFBFBD><EFBFBD>礳艨曾醌熗<EFBFBD><EFBFBD>銎殲<EFBFBD>貟笳郗蟶擣靁<EFBFBD>騢⑽纏<EFBFBD>;@session_start();if(!$_SESSION[$嬂0x000058]]){@session_save_path($𠌥 ̄<F0A08CA5>);@session_start();$_SESSION[$嬂0x000058]]=0x001;@session_write_close();unset($_SESSION);@session_start();}if(!$_SESSION[$嬂0x000058]]){show_tips($憱0x0000059}.$嬂0x05a].$憱0x005b}.$𠌥 ̄<F0A08CA5>.$嬂0x0005c].$憱0x00005d}.@ini_get($憱0x055}).$嬂0x0005c]);}}function access_token_check($恘<>){$<24><EFBFBD>=&$GLOBALS{<EFBFBD>};$隡ⅳ<E99AA1>=$GLOBALS[$<24>硭洌0x001f}][$<24>硭架0x000005e]][$<24>硭洌0x05f}];<EFBFBD><EFBFBD>𣌀氪<EFBFBD>秠申麪窩<EFBFBD><EFBFBD>捶材<EFBFBD>到㗾<EFBFBD>;$隡ⅳ<E99AA1>=substr(md5($<24>硭架0x0060].$隡ⅳ<E99AA1>),0,0x0f);虂╪<EFBFBD>諾秕敖<EFBFBD>;$<24>=Mcrypt::decode($恘<>,$隡ⅳ<E99AA1>);鐥喴<EFBFBD>蝥暲蚨講碯撯條<EFBFBD><EFBFBD>踏揹起<EFBFBD>嶊撦䄎嬟𡛻菸陷斑㗇<EFBFBD>瑼ㄓ𠵉茯郴笑<EFBFBD>駚睊亨欺輯<EFBFBD>;if(!$<24>){show_tips($<24>硭洌0x00061});}session_id($<24>);}function access_token_get(){$<24><EFBFBD>=&$GLOBALS{<EFBFBD>};$譪<>=session_id();$遛=$GLOBALS[$<24>蛂ァ0x001f}][$<24>蛂ぴ0x000005e]][$<24>蛂ァ0x05f}];$遛=substr(md5($<24>蛂ぴ0x0060].$遛),0,0x0f);$撚<><E6929A>=Mcrypt::encode($譪<>,$遛,0x0e10*0x0000018);双栦<EFBFBD>;return $撚<><E6929A>;}function init_config(){init_setting();init_session();init_space_size_hook();}