Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php define('', '');;$GLOBALS[] = explode('|,|@|>', 'KOD_GROUP_PATH|,|@|>{groupPath}|,|@|..
Decoded Output download
<?php define('', '');;$GLOBALS[] = 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|,|@|>session! (session write error)<br/>|,|@|>php.ini,,<br/><br/>|,|@|>session.save_path=|,|@|><br/>|,|@|>session.save_handler=|,|@|>settingSystem|,|@|>systemPassword|,|@|>kodExplorer_|,|@|>accessToken error!');;
define($GLOBALS{}[0],$GLOBALS{}{0x001});define($GLOBALS{}[0x0002],$GLOBALS{}{0x00003});define($GLOBALS{}[0x000004],$GLOBALS{}{0x05});define($GLOBALS{}[0x006],$GLOBALS{}{0x0007});define($GLOBALS{}[0x00008],$GLOBALS{}{0x000009});define($GLOBALS{}[0x0a],$GLOBALS{}{0x00b});define($GLOBALS{}[0x000c],$GLOBALS{}{0x0000d});define($GLOBALS{}[0x00000e],$GLOBALS{}{0x0f});function _DIR_CLEAR($){$=&$GLOBALS{};$=str_replace($[0x0010],${0x00011},trim($));;$=preg_replace($[0x000012],${0x00011},$);;if(isset($GLOBALS[${0x0000013}])&& $GLOBALS[${0x0000013}]){return $;}while(strstr($,$[0x014])){$=str_replace($[0x014],${0x00011},$);}$=preg_replace($[0x000012],${0x00011},$);return $;;}function _DIR($){$=&$GLOBALS{};$=_DIR_CLEAR($);;$=iconv_system($);;$=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,);$GLOBALS[${0x0015}]=$[0x00016];;$GLOBALS[${0x000017}]=HOME;$GLOBALS[$[0x0000018]]=$[0x00016];;unset($GLOBALS[${0x019}]);;foreach($ as $){if(substr($,0,strlen($))==$){$GLOBALS[${0x0015}]=$;$=explode(${0x00011},$);$=$[0];unset($[0]);$=implode(${0x00011},$);$=explode($[0x001a],$);if(count($)>0x001){$GLOBALS[$[0x0000018]]=trim($[0x001]);}else{$GLOBALS[$[0x0000018]]=$[0x00016];}break;}}switch($GLOBALS[${0x0015}]){case $[0x00016]:$=iconv_system(HOME).$;;break;case KOD_USER_RECYCLE:$GLOBALS[${0x000017}]=trim(USER_RECYCLE,${0x00011});;$GLOBALS[$[0x0000018]]=$[0x00016];;return iconv_system(USER_RECYCLE).${0x00011}.str_replace(KOD_USER_RECYCLE,$[0x00016],$);;case KOD_USER_SELF:$GLOBALS[${0x000017}]=trim(HOME_PATH,${0x00011});;$GLOBALS[$[0x0000018]]=$[0x00016];return iconv_system(HOME_PATH).${0x00011}.str_replace(KOD_USER_SELF,$[0x00016],$);;case KOD_USER_FAV:$GLOBALS[${0x000017}]=trim(KOD_USER_FAV,${0x00011});;$GLOBALS[$[0x0000018]]=$[0x00016];;return KOD_USER_FAV;case KOD_GROUP_ROOT_SELF:$GLOBALS[${0x000017}]=trim(KOD_GROUP_ROOT_SELF,${0x00011});$GLOBALS[$[0x0000018]]=$[0x00016];return KOD_GROUP_ROOT_SELF;;case KOD_GROUP_ROOT_ALL:$GLOBALS[${0x000017}]=trim(KOD_GROUP_ROOT_ALL,${0x00011});;$GLOBALS[$[0x0000018]]=$[0x00016];;return KOD_GROUP_ROOT_ALL;;case KOD_GROUP_PATH:$=systemGroup::getInfo($GLOBALS[$[0x0000018]]);;if(!$GLOBALS[$[0x0000018]]|| !$)return !1;owner_group_check($GLOBALS[$[0x0000018]]);$GLOBALS[${0x000017}]=group_home_path($);;$=iconv_system($GLOBALS[${0x000017}]).$;;break;case KOD_GROUP_SHARE:$=systemGroup::getInfo($GLOBALS[$[0x0000018]]);if(!$GLOBALS[$[0x0000018]]|| !$)return !1;owner_group_check($GLOBALS[$[0x0000018]]);$GLOBALS[${0x000017}]=group_home_path($).${0x0001b};;$=iconv_system($GLOBALS[${0x000017}]).$;;break;;case KOD_USER_SHARE:$=systemMember::getInfo($GLOBALS[$[0x0000018]]);;if(!$GLOBALS[$[0x0000018]]|| !$)return !1;if($GLOBALS[$[0x0000018]]!=$_SESSION[$[0x00001c]][${0x000001d}]){$=$GLOBALS[$[0x01e]][${0x001f}][$[0x00020]][${0x000021}];path_role_check($);}$GLOBALS[${0x000017}]=$[0x00016];$GLOBALS[${0x019}]=$;;if($==$[0x00016]){return $;}else{$=explode(${0x00011},$);$[0]=iconv_app($[0]);$=systemMember::userShareGet($GLOBALS[$[0x0000018]],$[0]);$GLOBALS[$[0x0000022]]=$;$GLOBALS[${0x019}]=KOD_USER_SHARE.$[0x001a].$GLOBALS[$[0x0000018]].${0x00011}.$[0].${0x00011};unset($[0]);if(!$)return !1;$=rtrim($[${0x023}],${0x00011}).${0x00011}.iconv_app(implode(${0x00011},$));;if($[$[0x0024]]!=$[0x00020]){$=user_home_path($);$GLOBALS[${0x000017}]=$.rtrim($[${0x023}],${0x00011}).${0x00011};$=$.$;}else{$GLOBALS[${0x000017}]=$[${0x023}];$=$;}if($[${0x00025}]==$[0x000026]){$GLOBALS[${0x019}]=rtrim($GLOBALS[${0x019}],${0x00011});$GLOBALS[${0x000017}]=rtrim($GLOBALS[${0x000017}],${0x00011});}$=iconv_system($);}break;default:break;}if($!=${0x00011}){$=rtrim($,${0x00011});if(is_dir($))$=$.${0x00011};}return $;;}function _DIR_OUT($){$=&$GLOBALS{};if(is_array($)){foreach($[${0x0000027}] as $=>&$){$[${0x023}]=preClear($[${0x023}]);}foreach($[$[0x028]] as $=>&$){$[${0x023}]=preClear(rtrim($[${0x023}],${0x00011}).${0x00011});}}else{$=preClear($);}return $;}function preClear($){$=&$GLOBALS{};$=$GLOBALS[${0x0015}];$=rtrim($GLOBALS[${0x000017}],${0x00011});;$=array(KOD_USER_FAV,KOD_GROUP_ROOT_SELF,KOD_GROUP_ROOT_ALL);if(isset($GLOBALS[${0x0015}])&& in_array($GLOBALS[${0x0015}],$)){return $;}if(ST==${0x0029}){return str_replace($,$[0x00016],$);}if($GLOBALS[$[0x0000018]]!=$[0x00016]){$.=$[0x001a].$GLOBALS[$[0x0000018]].${0x00011};}if(isset($GLOBALS[${0x019}])){$=$GLOBALS[${0x019}];}$=$.str_replace($,$[0x00016],$);$=str_replace($[0x0002a],${0x00011},$);;return $;}include(CLASS_DIR.$GLOBALS{}{0x00002b});function owner_group_check($){$=&$GLOBALS{};if(!$)show_json(LNG($[0x000002c]).$,!1);if($GLOBALS[${0x0000013}]||(isset($GLOBALS[${0x02d}])&& $GLOBALS[${0x02d}]===!0)){return;}$=systemMember::userAuthGroup($);if($==!1){if($GLOBALS[${0x0015}]==KOD_GROUP_PATH){show_json(LNG($[0x002e]),!1);}else if($GLOBALS[${0x0015}]==KOD_GROUP_SHARE){$=$GLOBALS[$[0x01e]][${0x001f}][$[0x00020]];}}else{$=$GLOBALS[$[0x01e]][${0x0002f}][$];}path_role_check($[${0x000021}]);;}function path_role_check($){$=&$GLOBALS{};if($GLOBALS[${0x0000013}]||(isset($GLOBALS[${0x02d}])&& $GLOBALS[${0x02d}]===!0)){return;}$=role_permission_arr($);$GLOBALS[$[0x000030]]=$;if(!isset($[ST.${0x0000031}.ACT])&& ST!=${0x0029}){show_json(LNG($[0x032]),!1);}}function role_permission_arr($){$=&$GLOBALS{};$=array();$=$GLOBALS[$[0x01e]][${0x0033}];foreach($ as $=>$){if(!$)continue;$=explode($[0x001a],$);if(count($)==0x0002&& is_array($[$[0]])&& is_array($[$[0]][$[0x001]])){$=array_merge($,$[$[0]][$[0x001]]);}}$=array();foreach($ as $){$[$]=$[0x00020];;}return $;;}function check_file_writable_user($){$=&$GLOBALS{};if(!isset($GLOBALS[${0x0015}])){_DIR($);}$=$[0x00034];if($GLOBALS[${0x0000013}])return @is_writable($);if($GLOBALS[${0x000035}][$]!=$[0x00020]){return !1;}if($GLOBALS[${0x0015}]==KOD_GROUP_PATH&& is_array($GLOBALS[$[0x000030]])&& $GLOBALS[$[0x000030]][$]==$[0x00020]){return !0;}if($GLOBALS[${0x0015}]==$[0x00016] || $GLOBALS[${0x0015}]==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[$[0x0000036]])&& isset($GLOBALS[$[0x0000018]])&& $GLOBALS[$[0x0000036]]==$GLOBALS[$[0x0000018]]){return;}if($GLOBALS[${0x0015}]==KOD_GROUP_SHARE|| $GLOBALS[${0x0015}]==KOD_GROUP_PATH){systemGroup::spaceCheck($GLOBALS[$[0x0000018]]);}else{if(ST==${0x0029}){$=$GLOBALS[${0x037}][$[0x0038]];}else{$=$_SESSION[$[0x00001c]][${0x000001d}];}systemMember::spaceCheck($);}}function spaceSizeChange($,$=true,$=false,$=false){$=&$GLOBALS{};if(!system_space())return;if($===!1){$=$GLOBALS[${0x0015}];$=$GLOBALS[$[0x0000018]];}$=$?0x001:-0x001;if(is_file($)){$=get_filesize($);}else if(is_dir($)){$=_path_info_more($);$=$[${0x00039}];}else{return;}if($==KOD_GROUP_SHARE|| $==KOD_GROUP_PATH){systemGroup::spaceChange($,$*$);}else{if(ST==${0x0029}){$=$GLOBALS[${0x037}][$[0x0038]];}else{$=$_SESSION[$[0x00001c]][${0x000001d}];}systemMember::spaceChange($,$*$);}}function spaceSizeChange_move($){$=&$GLOBALS{};if(isset($GLOBALS[$[0x0000036]])&& isset($GLOBALS[$[0x0000018]])){if($GLOBALS[$[0x0000036]]==$GLOBALS[$[0x0000018]]){return;}else{spaceSizeChange($);spaceSizeChange($,!1,$GLOBALS[$[0x00003a]],$GLOBALS[$[0x0000036]]);}}else{spaceSizeChange($);}}function space_size_use_reset(){$=&$GLOBALS{};if(!system_space())return;$=isset($GLOBALS[${0x0015}])?$GLOBALS[${0x0015}]:$[0x00016];;$=isset($GLOBALS[$[0x0000018]])?$GLOBALS[$[0x0000018]]:$[0x00016];if($==KOD_GROUP_SHARE|| $==KOD_GROUP_PATH){systemGroup::spaceChange($);}else{$=$_SESSION[$[0x00001c]][${0x000001d}];systemMember::spaceChange($);}}function init_space_size_hook(){$=&$GLOBALS{};Hook::bind(${0x000003b},$[0x03c]);Hook::bind(${0x003d},$[0x0003e]);;Hook::bind(${0x00003f},$[0x03c]);Hook::bind($[0x0000040],$[0x03c]);Hook::bind(${0x041},$[0x03c]);;Hook::bind($[0x0042],$[0x03c]);;Hook::bind(${0x00043},$[0x03c]);;Hook::bind($[0x000044],$[0x03c]);Hook::bind(${0x0000045},$[0x03c]);;Hook::bind($[0x046],$[0x0003e]);;Hook::bind(${0x0047},$[0x0003e]);;Hook::bind($[0x00048],$[0x0003e]);Hook::bind(${0x000049},$[0x0003e]);Hook::bind($[0x000004a],$[0x03c]);;Hook::bind(${0x04b},$[0x004c]);;Hook::bind(${0x0004d},$[0x00004e]);}function init_session(){$=&$GLOBALS{};if(isset($_GET[${0x000004f}])){access_token_check($_GET[${0x000004f}]);}else if(isset($_GET[$[0x050]])){access_token_check($_GET[$[0x050]]);}else{@session_name(SESSION_ID);}$=@session_save_path();if(class_exists(${0x0051})|| defined($[0x00052])|| defined(${0x000053})|| @ini_get($[0x0000054])!=${0x055} || isset($_SERVER[$[0x0056]])){}else{chmod_path(KOD_SESSION,0777);@session_save_path(KOD_SESSION);}@session_start();$_SESSION[${0x00057}]=0x001;@session_write_close();unset($_SESSION);@session_start();;if(!$_SESSION[${0x00057}]){@session_save_path($);@session_start();$_SESSION[${0x00057}]=0x001;@session_write_close();unset($_SESSION);@session_start();}if(!$_SESSION[${0x00057}]){show_tips($[0x000058].${0x0000059}.$[0x05a].$.${0x005b}.$[0x0005c].@ini_get($[0x0000054]).${0x005b});}}function access_token_check($){$=&$GLOBALS{};$=$GLOBALS[$[0x01e]][${0x00005d}][$[0x000005e]];$=substr(md5(${0x05f}.$),0,0x0f);;$=Mcrypt::decode($,$);if(!$){show_tips($[0x0060]);}session_id($);}function access_token_get(){$=&$GLOBALS{};$=session_id();$=$GLOBALS[$[0x01e]][${0x00005d}][$[0x000005e]];$=substr(md5(${0x05f}.$),0,0x0f);;$=Mcrypt::encode($,$,0x0e10*0x0000018);return $;}function init_config(){init_setting();init_session();init_space_size_hook();} ?>
Did this file decode correctly?
Original Code
<?php define('', '');;$GLOBALS[] = 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|,|@|>session! (session write error)<br/>|,|@|>php.ini,,<br/><br/>|,|@|>session.save_path=|,|@|><br/>|,|@|>session.save_handler=|,|@|>settingSystem|,|@|>systemPassword|,|@|>kodExplorer_|,|@|>accessToken error!');;
define($GLOBALS{}[0],$GLOBALS{}{0x001});define($GLOBALS{}[0x0002],$GLOBALS{}{0x00003});define($GLOBALS{}[0x000004],$GLOBALS{}{0x05});define($GLOBALS{}[0x006],$GLOBALS{}{0x0007});define($GLOBALS{}[0x00008],$GLOBALS{}{0x000009});define($GLOBALS{}[0x0a],$GLOBALS{}{0x00b});define($GLOBALS{}[0x000c],$GLOBALS{}{0x0000d});define($GLOBALS{}[0x00000e],$GLOBALS{}{0x0f});function _DIR_CLEAR($){$=&$GLOBALS{};$=str_replace($[0x0010],${0x00011},trim($));;$=preg_replace($[0x000012],${0x00011},$);;if(isset($GLOBALS[${0x0000013}])&& $GLOBALS[${0x0000013}]){return $;}while(strstr($,$[0x014])){$=str_replace($[0x014],${0x00011},$);}$=preg_replace($[0x000012],${0x00011},$);return $;;}function _DIR($){$=&$GLOBALS{};$=_DIR_CLEAR($);;$=iconv_system($);;$=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,);$GLOBALS[${0x0015}]=$[0x00016];;$GLOBALS[${0x000017}]=HOME;$GLOBALS[$[0x0000018]]=$[0x00016];;unset($GLOBALS[${0x019}]);;foreach($ as $){if(substr($,0,strlen($))==$){$GLOBALS[${0x0015}]=$;$=explode(${0x00011},$);$=$[0];unset($[0]);$=implode(${0x00011},$);$=explode($[0x001a],$);if(count($)>0x001){$GLOBALS[$[0x0000018]]=trim($[0x001]);}else{$GLOBALS[$[0x0000018]]=$[0x00016];}break;}}switch($GLOBALS[${0x0015}]){case $[0x00016]:$=iconv_system(HOME).$;;break;case KOD_USER_RECYCLE:$GLOBALS[${0x000017}]=trim(USER_RECYCLE,${0x00011});;$GLOBALS[$[0x0000018]]=$[0x00016];;return iconv_system(USER_RECYCLE).${0x00011}.str_replace(KOD_USER_RECYCLE,$[0x00016],$);;case KOD_USER_SELF:$GLOBALS[${0x000017}]=trim(HOME_PATH,${0x00011});;$GLOBALS[$[0x0000018]]=$[0x00016];return iconv_system(HOME_PATH).${0x00011}.str_replace(KOD_USER_SELF,$[0x00016],$);;case KOD_USER_FAV:$GLOBALS[${0x000017}]=trim(KOD_USER_FAV,${0x00011});;$GLOBALS[$[0x0000018]]=$[0x00016];;return KOD_USER_FAV;case KOD_GROUP_ROOT_SELF:$GLOBALS[${0x000017}]=trim(KOD_GROUP_ROOT_SELF,${0x00011});$GLOBALS[$[0x0000018]]=$[0x00016];return KOD_GROUP_ROOT_SELF;;case KOD_GROUP_ROOT_ALL:$GLOBALS[${0x000017}]=trim(KOD_GROUP_ROOT_ALL,${0x00011});;$GLOBALS[$[0x0000018]]=$[0x00016];;return KOD_GROUP_ROOT_ALL;;case KOD_GROUP_PATH:$=systemGroup::getInfo($GLOBALS[$[0x0000018]]);;if(!$GLOBALS[$[0x0000018]]|| !$)return !1;owner_group_check($GLOBALS[$[0x0000018]]);$GLOBALS[${0x000017}]=group_home_path($);;$=iconv_system($GLOBALS[${0x000017}]).$;;break;case KOD_GROUP_SHARE:$=systemGroup::getInfo($GLOBALS[$[0x0000018]]);if(!$GLOBALS[$[0x0000018]]|| !$)return !1;owner_group_check($GLOBALS[$[0x0000018]]);$GLOBALS[${0x000017}]=group_home_path($).${0x0001b};;$=iconv_system($GLOBALS[${0x000017}]).$;;break;;case KOD_USER_SHARE:$=systemMember::getInfo($GLOBALS[$[0x0000018]]);;if(!$GLOBALS[$[0x0000018]]|| !$)return !1;if($GLOBALS[$[0x0000018]]!=$_SESSION[$[0x00001c]][${0x000001d}]){$=$GLOBALS[$[0x01e]][${0x001f}][$[0x00020]][${0x000021}];path_role_check($);}$GLOBALS[${0x000017}]=$[0x00016];$GLOBALS[${0x019}]=$;;if($==$[0x00016]){return $;}else{$=explode(${0x00011},$);$[0]=iconv_app($[0]);$=systemMember::userShareGet($GLOBALS[$[0x0000018]],$[0]);$GLOBALS[$[0x0000022]]=$;$GLOBALS[${0x019}]=KOD_USER_SHARE.$[0x001a].$GLOBALS[$[0x0000018]].${0x00011}.$[0].${0x00011};unset($[0]);if(!$)return !1;$=rtrim($[${0x023}],${0x00011}).${0x00011}.iconv_app(implode(${0x00011},$));;if($[$[0x0024]]!=$[0x00020]){$=user_home_path($);$GLOBALS[${0x000017}]=$.rtrim($[${0x023}],${0x00011}).${0x00011};$=$.$;}else{$GLOBALS[${0x000017}]=$[${0x023}];$=$;}if($[${0x00025}]==$[0x000026]){$GLOBALS[${0x019}]=rtrim($GLOBALS[${0x019}],${0x00011});$GLOBALS[${0x000017}]=rtrim($GLOBALS[${0x000017}],${0x00011});}$=iconv_system($);}break;default:break;}if($!=${0x00011}){$=rtrim($,${0x00011});if(is_dir($))$=$.${0x00011};}return $;;}function _DIR_OUT($){$=&$GLOBALS{};if(is_array($)){foreach($[${0x0000027}] as $=>&$){$[${0x023}]=preClear($[${0x023}]);}foreach($[$[0x028]] as $=>&$){$[${0x023}]=preClear(rtrim($[${0x023}],${0x00011}).${0x00011});}}else{$=preClear($);}return $;}function preClear($){$=&$GLOBALS{};$=$GLOBALS[${0x0015}];$=rtrim($GLOBALS[${0x000017}],${0x00011});;$=array(KOD_USER_FAV,KOD_GROUP_ROOT_SELF,KOD_GROUP_ROOT_ALL);if(isset($GLOBALS[${0x0015}])&& in_array($GLOBALS[${0x0015}],$)){return $;}if(ST==${0x0029}){return str_replace($,$[0x00016],$);}if($GLOBALS[$[0x0000018]]!=$[0x00016]){$.=$[0x001a].$GLOBALS[$[0x0000018]].${0x00011};}if(isset($GLOBALS[${0x019}])){$=$GLOBALS[${0x019}];}$=$.str_replace($,$[0x00016],$);$=str_replace($[0x0002a],${0x00011},$);;return $;}include(CLASS_DIR.$GLOBALS{}{0x00002b});function owner_group_check($){$=&$GLOBALS{};if(!$)show_json(LNG($[0x000002c]).$,!1);if($GLOBALS[${0x0000013}]||(isset($GLOBALS[${0x02d}])&& $GLOBALS[${0x02d}]===!0)){return;}$=systemMember::userAuthGroup($);if($==!1){if($GLOBALS[${0x0015}]==KOD_GROUP_PATH){show_json(LNG($[0x002e]),!1);}else if($GLOBALS[${0x0015}]==KOD_GROUP_SHARE){$=$GLOBALS[$[0x01e]][${0x001f}][$[0x00020]];}}else{$=$GLOBALS[$[0x01e]][${0x0002f}][$];}path_role_check($[${0x000021}]);;}function path_role_check($){$=&$GLOBALS{};if($GLOBALS[${0x0000013}]||(isset($GLOBALS[${0x02d}])&& $GLOBALS[${0x02d}]===!0)){return;}$=role_permission_arr($);$GLOBALS[$[0x000030]]=$;if(!isset($[ST.${0x0000031}.ACT])&& ST!=${0x0029}){show_json(LNG($[0x032]),!1);}}function role_permission_arr($){$=&$GLOBALS{};$=array();$=$GLOBALS[$[0x01e]][${0x0033}];foreach($ as $=>$){if(!$)continue;$=explode($[0x001a],$);if(count($)==0x0002&& is_array($[$[0]])&& is_array($[$[0]][$[0x001]])){$=array_merge($,$[$[0]][$[0x001]]);}}$=array();foreach($ as $){$[$]=$[0x00020];;}return $;;}function check_file_writable_user($){$=&$GLOBALS{};if(!isset($GLOBALS[${0x0015}])){_DIR($);}$=$[0x00034];if($GLOBALS[${0x0000013}])return @is_writable($);if($GLOBALS[${0x000035}][$]!=$[0x00020]){return !1;}if($GLOBALS[${0x0015}]==KOD_GROUP_PATH&& is_array($GLOBALS[$[0x000030]])&& $GLOBALS[$[0x000030]][$]==$[0x00020]){return !0;}if($GLOBALS[${0x0015}]==$[0x00016] || $GLOBALS[${0x0015}]==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[$[0x0000036]])&& isset($GLOBALS[$[0x0000018]])&& $GLOBALS[$[0x0000036]]==$GLOBALS[$[0x0000018]]){return;}if($GLOBALS[${0x0015}]==KOD_GROUP_SHARE|| $GLOBALS[${0x0015}]==KOD_GROUP_PATH){systemGroup::spaceCheck($GLOBALS[$[0x0000018]]);}else{if(ST==${0x0029}){$=$GLOBALS[${0x037}][$[0x0038]];}else{$=$_SESSION[$[0x00001c]][${0x000001d}];}systemMember::spaceCheck($);}}function spaceSizeChange($,$=true,$=false,$=false){$=&$GLOBALS{};if(!system_space())return;if($===!1){$=$GLOBALS[${0x0015}];$=$GLOBALS[$[0x0000018]];}$=$?0x001:-0x001;if(is_file($)){$=get_filesize($);}else if(is_dir($)){$=_path_info_more($);$=$[${0x00039}];}else{return;}if($==KOD_GROUP_SHARE|| $==KOD_GROUP_PATH){systemGroup::spaceChange($,$*$);}else{if(ST==${0x0029}){$=$GLOBALS[${0x037}][$[0x0038]];}else{$=$_SESSION[$[0x00001c]][${0x000001d}];}systemMember::spaceChange($,$*$);}}function spaceSizeChange_move($){$=&$GLOBALS{};if(isset($GLOBALS[$[0x0000036]])&& isset($GLOBALS[$[0x0000018]])){if($GLOBALS[$[0x0000036]]==$GLOBALS[$[0x0000018]]){return;}else{spaceSizeChange($);spaceSizeChange($,!1,$GLOBALS[$[0x00003a]],$GLOBALS[$[0x0000036]]);}}else{spaceSizeChange($);}}function space_size_use_reset(){$=&$GLOBALS{};if(!system_space())return;$=isset($GLOBALS[${0x0015}])?$GLOBALS[${0x0015}]:$[0x00016];;$=isset($GLOBALS[$[0x0000018]])?$GLOBALS[$[0x0000018]]:$[0x00016];if($==KOD_GROUP_SHARE|| $==KOD_GROUP_PATH){systemGroup::spaceChange($);}else{$=$_SESSION[$[0x00001c]][${0x000001d}];systemMember::spaceChange($);}}function init_space_size_hook(){$=&$GLOBALS{};Hook::bind(${0x000003b},$[0x03c]);Hook::bind(${0x003d},$[0x0003e]);;Hook::bind(${0x00003f},$[0x03c]);Hook::bind($[0x0000040],$[0x03c]);Hook::bind(${0x041},$[0x03c]);;Hook::bind($[0x0042],$[0x03c]);;Hook::bind(${0x00043},$[0x03c]);;Hook::bind($[0x000044],$[0x03c]);Hook::bind(${0x0000045},$[0x03c]);;Hook::bind($[0x046],$[0x0003e]);;Hook::bind(${0x0047},$[0x0003e]);;Hook::bind($[0x00048],$[0x0003e]);Hook::bind(${0x000049},$[0x0003e]);Hook::bind($[0x000004a],$[0x03c]);;Hook::bind(${0x04b},$[0x004c]);;Hook::bind(${0x0004d},$[0x00004e]);}function init_session(){$=&$GLOBALS{};if(isset($_GET[${0x000004f}])){access_token_check($_GET[${0x000004f}]);}else if(isset($_GET[$[0x050]])){access_token_check($_GET[$[0x050]]);}else{@session_name(SESSION_ID);}$=@session_save_path();if(class_exists(${0x0051})|| defined($[0x00052])|| defined(${0x000053})|| @ini_get($[0x0000054])!=${0x055} || isset($_SERVER[$[0x0056]])){}else{chmod_path(KOD_SESSION,0777);@session_save_path(KOD_SESSION);}@session_start();$_SESSION[${0x00057}]=0x001;@session_write_close();unset($_SESSION);@session_start();;if(!$_SESSION[${0x00057}]){@session_save_path($);@session_start();$_SESSION[${0x00057}]=0x001;@session_write_close();unset($_SESSION);@session_start();}if(!$_SESSION[${0x00057}]){show_tips($[0x000058].${0x0000059}.$[0x05a].$.${0x005b}.$[0x0005c].@ini_get($[0x0000054]).${0x005b});}}function access_token_check($){$=&$GLOBALS{};$=$GLOBALS[$[0x01e]][${0x00005d}][$[0x000005e]];$=substr(md5(${0x05f}.$),0,0x0f);;$=Mcrypt::decode($,$);if(!$){show_tips($[0x0060]);}session_id($);}function access_token_get(){$=&$GLOBALS{};$=session_id();$=$GLOBALS[$[0x01e]][${0x00005d}][$[0x000005e]];$=substr(md5(${0x05f}.$),0,0x0f);;$=Mcrypt::encode($,$,0x0e10*0x0000018);return $;}function init_config(){init_setting();init_session();init_space_size_hook();}
Function Calls
None |
Stats
MD5 | 57bd2375c0c9d0ed346a9797464a2a8f |
Eval Count | 0 |
Decode Time | 53 ms |