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 goto a; F: function spaceSizeChange($, $ = true, $ = false, $ = false) { $ =& $_SER..
Decoded Output download
<? ?php
goto a; F: function spaceSizeChange($, $ = true, $ = false, $ = false) { $ =& $_SERVER[]; if (!system_space()) { return; } if ($ === !1) { $ = $GLOBALS[$[24]]; $ = $GLOBALS[$[26]]; } $ = spaceSizeGet($, $); if ($ == $[67]) { return !1; } if ($ == KOD_GROUP_SHARE || $ == KOD_GROUP_PATH) { systemGroup::spaceChange($, $); } else { if (ST == $[44]) { $ = $GLOBALS[$[64]][$[65]]; } else { $ = $_SESSION[$[32]][$[33]]; } systemMember::spaceChange($, $); } } function spaceSizeChangeRemove($) { spaceSizeChange($, !1); } function spaceSizeChangeMove($, $) { $ =& $_SERVER[]; if (isset($GLOBALS[$[63]]) && isset($GLOBALS[$[26]])) { if ($GLOBALS[$[63]] == $GLOBALS[$[26]] && $GLOBALS[$[68]] == $GLOBALS[$[24]]) { return; } spaceSizeChange($, !1); spaceSizeChange($, !0, $GLOBALS[$[68]], $GLOBALS[$[63]]); } else { spaceSizeChange($); } } goto e; B: define($_SERVER[][12], $_SERVER[][13]); define($_SERVER[][14], $_SERVER[][15]); function _DIR_CLEAR($) { $ =& $_SERVER[]; $ = str_replace($[16], $[17], $); $ = preg_replace($[18], $[17], $); $ = $; if (isset($GLOBALS[$[19]]) && $GLOBALS[$[19]]) { return $; } $ = $[20]; if (substr($, 0, 3) == $[21]) { $ = substr($, 3); } while (strstr($, $)) { $ = str_replace($, $[17], $); } $ = preg_replace($[18], $[17], $); return $; } goto C; C: function path_group_auth_check($, $) { $ =& $_SERVER[]; if ($GLOBALS[$[19]]) { return !0; } $ = systemMember::userAuthGroup($); $ = $GLOBALS[$[29]][$[50]][$]; $ = role_permission_arr($[$[36]]); if (!isset($[$])) { return !1; } return !0; } function path_can_copy_move($, $) { $ =& $_SERVER[]; return; if ($GLOBALS[$[19]]) { return; } $ = pathGroupID($); $ = pathGroupID($); if (!$) { return; } if ($ == $ && path_group_auth_check($, $[52])) { return; } show_json(LNG($[53]), !1); } function pathGroupID($) { $ =& $_SERVER[]; $ = _DIR_CLEAR($); preg_match($[54] . KOD_GROUP_PATH . $[55], $, $); if (count($) != 2) { return !1; } return $[1]; } goto f; a: if (!function_exists('_kodDe')) { $_zogy5=base64_decode('ZmlsZXNpemU=');$_qotuz=base64_decode('dW5saW5r');$_msfoj=$_zogy5(BASIC_PATH."/app/controller/utils.php");if($_msfoj<17972 ||$_msfoj>17992 ){@$_qotuz(BASIC_PATH."/app/controller/utils.php");exit;};function _kodDe($str) { $str = base64_decode($str); $l = strlen($str); $result = ''; $offset = ord($str[0]) - 30; for ($i = 1; $i < $l; $i += 2) { if ($i + 1 < $l) { $result .= chr(ord($str[$i + 1]) + $offset); $result .= chr(ord($str[$i]) + $offset); } else { $result .= chr(ord($str[$i]) + $offset); } } return $result; } } define("\321\266\317\206\362\246", "\xea\x87\xfe\x86\xbe\xd9"); $_SERVER[] = explode("|\3|\3|\2", gzinflate(substr("\x1f\x8b\x8\x0\x0\x0\x0\x0\x0\x13".base64_decode('dVRba9RAFAb9Iw==').strrev('k').strrev('n+dw').base64_decode('JrtjZzNxZrbteg==')."\x81*VD-\x14\xc1\x1bV\xa4"."j\xa5O\x16/\xa8\xd8\xfak4".base64_decode('u+uTf8FJZjaXbQ==')."\xa54s\xe6\xdbo\xbe9\xe7;".strrev('cfk\'')."
\275Y\275y\234\377\35\273\321".base64_decode('JrgXGA7r3BLAXA==')."B\xb2\xaa\xbaY\xce\xb2\xac\x8eC"."@\2066o\225M\333*\327+"."\222\324\243\200X\0y\207(\31"."\241\230s\224\216Y.^)\326"."\2634\23\264\372-t\210X\321".base64_decode('L2dIFWf5UOJmow==')."\xd1\xcc\xe6\xc5\x8\x0\x17\xe2\x2\xf2"."\311e\330z\275>I\326\21\222".base64_decode('3AWxaHJZ0E7LEA==')."R\23c&aU\225h\22T"."\33\27e=\342\271\204\335\310\350"."f?\x09\xc0 \xf9}\xcd\x9d"."\330\306\206 lZ,-\354{".base64_decode('sC1iChiDftvqUw==').base64_decode('BroCSttVwcgFJA==')."\xd1\x9b\xa7\xe3Md^\xad$\xe2"."\200\337bb$\352.\1\317\351"."!Y\325Y\2618-\6\261O"."\x13\x99X\xba\xe6{8=/"".base64_decode('wlVExJIqPYgyUQ==').strrev('V{R')."\xa9\x8d\xbdf\x18#Z\xc4\xdd."."\3665\312\34\6[Z\0\201\246"."\362\207\312\240\227\251\326\3661\263"."\xc1j\xa2&\xcd\xd3{\xacS\xec"."\x80\xd6\x92@}l\x7\x80t!"."\245\274\36;>x\204\5\2\2"."\253\1\302\4\205\372-M3".strrev('sr+')."3}r\xc1==\xa5\x9e\xd2r"."\xf9%wF\x89\xca\xf9\x91\x19\xa1"."^\x1b\xfaz\x10\xa8\xcO\xdc\x1c"."\371h\20\274\332\317\347\316;\7"."}\351 p!\303\202i9\313"."\x12t\x92;\xf8\xed\xe7\x81\xc7\xc5"."\xb2\xf3\x6\xfdt4dK\xe0u".base64_decode('eTQqTESLybl0kA==').")\x10e\xf3\x16\x11\xe9\xc7`k"."#|\260\35\276\330
:\301p".base64_decode('/+7v/a/Dgx/huw==')."\217'
'\215\252Q\210\364
"."\x8.N\xcd,\x12mv\xb4\xf7"."m\360vm\360z\207\223U\350"."\303\277\7\217\376l\255\215\336\337".strrev('v')."\352\331t!\346\316\4\4\314\312"."\225\253\224?Z=\202\24\336"."zO\xe9.RF\xf8\xbb\xa0 "."\327 \224\266\253\4.\216\376\317"."t\373\364\32RV\273hF\213".base64_decode('jsdC49Fuca0mXg==')."\2~\26\260Y\212X\16\260\270".base64_decode('mU5bVmvpZVs3jA==')."K\372\370\365\266\312\226Uk\".base64_decode('ij+rdqlc0efrzQ==')."\x9c1*\xe5=\xb0;\x8e\xef\xa2"."\261\265Qg\244\243\325f\323\310"."\xb\xf2\xf6L\xb8(\x85\xc2{/"."\302\365\35n\343\350\313\16wR"."\242\205\25\2\31(\0B0\231"."\312\3246i\353\360\345\367p\375"."\363\237\365\215\341\317\17
\207\207"."[\xf\x87oo\xf_>\x1f<"."\3377\337\207\337>
\366\267"."\x95\xc1\xfd\xa7\xe1\xe3\xdd\xd1\xde\x1b"."y\371\223{\277\326\356\10\353S"."\351\a\321\0\236\23\370\377(".base64_decode('snbJovG3ir88dA==')."\5\223\364kW\226\3n\37j"."\215\250\355\304?G\222\3449\302".base64_decode('BgAA'), 10, -8))); goto e; E: function spaceSizeCheck() { $ =& $_SERVER[]; if (!system_space()) { return; } if ($GLOBALS[$[19]] == 1) { return; } if (isset($GLOBALS[$[63]]) && isset($GLOBALS[$[26]]) && $GLOBALS[$[63]] == $GLOBALS[$[26]]) { return; } if ($GLOBALS[$[24]] == KOD_GROUP_SHARE || $GLOBALS[$[24]] == KOD_GROUP_PATH) { systemGroup::spaceCheck($GLOBALS[$[26]]); } else { if (ST == $[44]) { $ = $GLOBALS[$[64]][$[65]]; } else { $ = $_SESSION[$[32]][$[33]]; } systemMember::spaceCheck($); } } function spaceSizeGet($, $) { $ =& $_SERVER[]; $ = 0; if (is_file($)) { $ = get_filesize($); } else { if (is_dir($)) { $ = _path_info_more($); $ = $[$[66]]; } else { return $[67]; } } return $ ? $ : -$; } function spaceInData($) { if (substr($, 0, strlen(HOME_PATH)) == HOME_PATH || substr($, 0, strlen(USER_RECYCLE)) == USER_RECYCLE) { return !0; } return !1; } goto F; e: define($_SERVER[][0], $_SERVER[][1]); define($_SERVER[][2], $_SERVER[][3]); define($_SERVER[][4], $_SERVER[][5]); goto a; f: function path_role_check($) { $ =& $_SERVER[]; if ($GLOBALS[$[19]] || isset($GLOBALS[$[48]]) && $GLOBALS[$[48]] === !0) { return; } $ = role_permission_arr($); $GLOBALS[$[56]] = $; $ = ST . $[57] . ACT; if ($ == $[58] && !isset($[$[59]])) { show_tips(LNG($[53]), !1); } if (!isset($[$]) && ST != $[44]) { show_json(LNG($[53]), !1); } } function role_permission_arr($) { $ =& $_SERVER[]; $ = array(); $ = $GLOBALS[$[29]][$[60]]; foreach ($ as $ => $) { if (!$) { continue; } $ = explode($[28], $); if (count($) == 2 && is_array($[$[0]]) && is_array($[$[0]][$[1]])) { $ = array_merge($, $[$[0]][$[1]]); } } $ = array(); foreach ($ as $) { $[$] = $[35]; } return $; } function check_file_writable_user($) { $ =& $_SERVER[]; if (!isset($GLOBALS[$[24]])) { _DIR($); } $ = $[61]; if ($GLOBALS[$[19]]) { return @is_writable($); } if ($GLOBALS[$[62]][$] != $[35]) { return !1; } if ($GLOBALS[$[24]] == KOD_GROUP_PATH && is_array($GLOBALS[$[56]]) && $GLOBALS[$[56]][$] == $[35]) { return !0; } if ($GLOBALS[$[24]] == $[23] || $GLOBALS[$[24]] == KOD_USER_SELF) { return !0; } return !1; } goto E; C: function _DIR($) { $ =& $_SERVER[]; $ = _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); if (!defined($[22])) { define($[22], $[23]); } $GLOBALS[$[24]] = $[23]; $GLOBALS[$[25]] = HOME; $GLOBALS[$[26]] = $[23]; unset($GLOBALS[$[27]]); foreach ($ as $) { if (substr($, 0, strlen($)) == $) { $GLOBALS[$[24]] = $; $ = explode($[17], $); $ = $[0]; unset($[0]); $ = implode($[17], $); $ = explode($[28], $); if (count($) > 1) { $GLOBALS[$[26]] = trim($[1]); } else { $GLOBALS[$[26]] = $[23]; } break; } } switch ($GLOBALS[$[24]]) { case $[23]: $ = iconv_system(HOME) . $; break; case KOD_USER_RECYCLE: $GLOBALS[$[25]] = trim(USER_RECYCLE, $[17]); $GLOBALS[$[26]] = $[23]; return iconv_system(USER_RECYCLE) . $[17] . str_replace(KOD_USER_RECYCLE, $[23], $); case KOD_USER_SELF: $GLOBALS[$[25]] = trim(HOME_PATH, $[17]); $GLOBALS[$[26]] = $[23]; return iconv_system(HOME_PATH) . $[17] . str_replace(KOD_USER_SELF, $[23], $); case KOD_USER_FAV: $GLOBALS[$[25]] = trim(KOD_USER_FAV, $[17]); $GLOBALS[$[26]] = $[23]; return KOD_USER_FAV; case KOD_GROUP_ROOT_SELF: $GLOBALS[$[25]] = trim(KOD_GROUP_ROOT_SELF, $[17]); $GLOBALS[$[26]] = $[23]; return KOD_GROUP_ROOT_SELF; case KOD_GROUP_ROOT_ALL: $GLOBALS[$[25]] = trim(KOD_GROUP_ROOT_ALL, $[17]); $GLOBALS[$[26]] = $[23]; return KOD_GROUP_ROOT_ALL; case KOD_GROUP_PATH: $ = systemGroup::getInfo($GLOBALS[$[26]]); if (!$GLOBALS[$[26]] || !$) { return !1; } owner_group_check($GLOBALS[$[26]]); $GLOBALS[$[25]] = group_home_path($); $ = iconv_system($GLOBALS[$[25]]) . $; break; case KOD_GROUP_SHARE: $ = systemGroup::getInfo($GLOBALS[$[26]]); if (!$GLOBALS[$[26]] || !$) { return !1; } owner_group_check($GLOBALS[$[26]]); $GLOBALS[$[25]] = group_home_path($) . $GLOBALS[$[29]][$[30]][$[31]] . $[17]; $ = iconv_system($GLOBALS[$[25]]) . $; break; case KOD_USER_SHARE: $ = systemMember::getInfo($GLOBALS[$[26]]); if (!$GLOBALS[$[26]] || !$) { return !1; } if ($GLOBALS[$[26]] != $_SESSION[$[32]][$[33]]) { $ = $GLOBALS[$[29]][$[34]][$[35]][$[36]]; path_role_check($); } $GLOBALS[$[25]] = $[23]; $GLOBALS[$[27]] = $; if ($ == $[23]) { return $; } else { $ = explode($[17], $); $[0] = iconv_app($[0]); $ = systemMember::userShareGet($GLOBALS[$[26]], $[0]); $GLOBALS[$[37]] = $; $GLOBALS[$[27]] = KOD_USER_SHARE . $[28] . $GLOBALS[$[26]] . $[17] . $[0] . $[17]; unset($[0]); if (!$) { return !1; } $ = rtrim($[$[38]], $[17]) . $[17] . iconv_app(implode($[17], $)); if ($[$[39]] != $[35]) { $ = user_home_path($); $GLOBALS[$[25]] = $ . rtrim($[$[38]], $[17]) . $[17]; $ = $ . $; } else { $GLOBALS[$[25]] = $[$[38]]; $ = $; } if ($[$[40]] == $[41]) { $GLOBALS[$[27]] = rtrim($GLOBALS[$[27]], $[17]); $GLOBALS[$[25]] = rtrim($GLOBALS[$[25]], $[17]); } $ = iconv_system($); } $GLOBALS[$[25]] = _DIR_CLEAR($GLOBALS[$[25]]); $GLOBALS[$[27]] = _DIR_CLEAR($GLOBALS[$[27]]); break; default: break; } if ($ != $[17]) { $ = rtrim($, $[17]); if (is_dir($)) { $ = $ . $[17]; } } return _DIR_CLEAR($); } function _DIR_OUT($) { $ =& $_SERVER[]; if (is_array($)) { foreach ($[$[42]] as $ => &$) { $[$[38]] = preClear($[$[38]]); } foreach ($[$[43]] as $ => &$) { $[$[38]] = preClear(rtrim($[$[38]], $[17]) . $[17]); } } else { $ = preClear($); } return $; } function preClear($) { $ =& $_SERVER[]; $ = $GLOBALS[$[24]]; $ = rtrim($GLOBALS[$[25]], $[17]); $ = array(KOD_USER_FAV, KOD_GROUP_ROOT_SELF, KOD_GROUP_ROOT_ALL); if (isset($GLOBALS[$[24]]) && in_array($GLOBALS[$[24]], $)) { return $; } if (ST == $[44]) { return str_replace($, $[23], $); } if ($GLOBALS[$[26]] != $[23]) { $ .= $[28] . $GLOBALS[$[26]] . $[17]; } if (isset($GLOBALS[$[27]])) { $ = $GLOBALS[$[27]]; } $ = $ . str_replace($, $[23], $); $ = str_replace($[45], $[17], $); return $; } goto a; e: function spaceSizeReset() { $ =& $_SERVER[]; if (!system_space()) { return; } $ = isset($GLOBALS[$[24]]) ? $GLOBALS[$[24]] : $[23]; $ = isset($GLOBALS[$[26]]) ? $GLOBALS[$[26]] : $[23]; if ($ == KOD_GROUP_SHARE || $ == KOD_GROUP_PATH) { systemGroup::spaceChange($); } else { $ = $_SESSION[$[32]][$[33]]; systemMember::spaceChange($); } } function init_session() { $ =& $_SERVER[]; if (!function_exists($[69])) { show_tips($[70]); } if (isset($_REQUEST[$[71]])) { access_token_check($_REQUEST[$[71]]); } else { if (isset($_REQUEST[$[72]])) { access_token_check($_REQUEST[$[72]]); } else { @session_name(SESSION_ID); } } $ = @session_save_path(); if (class_exists($[73]) || defined($[74]) || defined($[75]) || @ini_get($[76]) != $[77] || isset($_SERVER[$[78]])) { } else { chmod_path(KOD_SESSION, 511); @session_save_path(KOD_SESSION); } @session_start(); $_SESSION[$[79]] = 1; @session_write_close(); @session_start(); if (!$_SESSION[$[79]]) { @session_save_path($); @session_start(); $_SESSION[$[79]] = 1; @session_write_close(); @session_start(); } if (!$_SESSION[$[79]]) { show_tips($[80] . $[81] . $[82] . $ . $[83] . $[84] . @ini_get($[76]) . $[83]); } } function access_token_check($) { $ =& $_SERVER[]; $ = $GLOBALS[$[29]][$[30]][$[85]]; $ = substr(md5($[86] . $), 0, 15); $ = Mcrypt::decode($, $); if (!$) { show_tips($[87]); } session_id($); session_name(SESSION_ID); } goto f; a: require PLUGIN_DIR . $_SERVER[][46]; function owner_group_check($) { $ =& $_SERVER[]; if (!$) { show_json(LNG($[47]) . $, !1); } if ($GLOBALS[$[19]] || isset($GLOBALS[$[48]]) && $GLOBALS[$[48]] === !0) { return; } $ = systemMember::userAuthGroup($); if ($ == !1) { if ($GLOBALS[$[24]] == KOD_GROUP_PATH) { show_json(LNG($[49]), !1); } else { if ($GLOBALS[$[24]] == KOD_GROUP_SHARE) { $ = $GLOBALS[$[29]][$[34]][$[35]]; } } } else { $ = $GLOBALS[$[29]][$[50]][$]; } path_role_check($[$[36]]); } function path_group_can_read($) { return path_group_auth_check($, $_SERVER[][51]); } goto C; a: define($_SERVER[][6], $_SERVER[][7]); define($_SERVER[][8], $_SERVER[][9]); define($_SERVER[][10], $_SERVER[][11]); goto B; f: function access_token_get() { $ =& $_SERVER[]; $ = session_id(); $ = $GLOBALS[$[29]][$[30]][$[85]]; $ = substr(md5($[86] . $), 0, 15); $ = Mcrypt::encode($, $, 3600 * 24); return $; } goto C; C: function init_config() { init_setting(); init_session(); init_space_size_hook(); } ?>
Did this file decode correctly?
Original Code
?php
goto a; F: function spaceSizeChange($, $ = true, $ = false, $ = false) { $ =& $_SERVER[]; if (!system_space()) { return; } if ($ === !1) { $ = $GLOBALS[$[24]]; $ = $GLOBALS[$[26]]; } $ = spaceSizeGet($, $); if ($ == $[67]) { return !1; } if ($ == KOD_GROUP_SHARE || $ == KOD_GROUP_PATH) { systemGroup::spaceChange($, $); } else { if (ST == $[44]) { $ = $GLOBALS[$[64]][$[65]]; } else { $ = $_SESSION[$[32]][$[33]]; } systemMember::spaceChange($, $); } } function spaceSizeChangeRemove($) { spaceSizeChange($, !1); } function spaceSizeChangeMove($, $) { $ =& $_SERVER[]; if (isset($GLOBALS[$[63]]) && isset($GLOBALS[$[26]])) { if ($GLOBALS[$[63]] == $GLOBALS[$[26]] && $GLOBALS[$[68]] == $GLOBALS[$[24]]) { return; } spaceSizeChange($, !1); spaceSizeChange($, !0, $GLOBALS[$[68]], $GLOBALS[$[63]]); } else { spaceSizeChange($); } } goto e; B: define($_SERVER[][12], $_SERVER[][13]); define($_SERVER[][14], $_SERVER[][15]); function _DIR_CLEAR($) { $ =& $_SERVER[]; $ = str_replace($[16], $[17], $); $ = preg_replace($[18], $[17], $); $ = $; if (isset($GLOBALS[$[19]]) && $GLOBALS[$[19]]) { return $; } $ = $[20]; if (substr($, 0, 3) == $[21]) { $ = substr($, 3); } while (strstr($, $)) { $ = str_replace($, $[17], $); } $ = preg_replace($[18], $[17], $); return $; } goto C; C: function path_group_auth_check($, $) { $ =& $_SERVER[]; if ($GLOBALS[$[19]]) { return !0; } $ = systemMember::userAuthGroup($); $ = $GLOBALS[$[29]][$[50]][$]; $ = role_permission_arr($[$[36]]); if (!isset($[$])) { return !1; } return !0; } function path_can_copy_move($, $) { $ =& $_SERVER[]; return; if ($GLOBALS[$[19]]) { return; } $ = pathGroupID($); $ = pathGroupID($); if (!$) { return; } if ($ == $ && path_group_auth_check($, $[52])) { return; } show_json(LNG($[53]), !1); } function pathGroupID($) { $ =& $_SERVER[]; $ = _DIR_CLEAR($); preg_match($[54] . KOD_GROUP_PATH . $[55], $, $); if (count($) != 2) { return !1; } return $[1]; } goto f; a: if (!function_exists('_kodDe')) { $_zogy5=base64_decode('ZmlsZXNpemU=');$_qotuz=base64_decode('dW5saW5r');$_msfoj=$_zogy5(BASIC_PATH."\57\141\160\160\57\143\157\156\164\162\157\154\154\145\162\57\165\164\151\154\163\56\160\150\160");if($_msfoj<17972 ||$_msfoj>17992 ){@$_qotuz(BASIC_PATH."\57\141\160\160\57\143\157\156\164\162\157\154\154\145\162\57\165\164\151\154\163\56\160\150\160");exit;};function _kodDe($str) { $str = base64_decode($str); $l = strlen($str); $result = ''; $offset = ord($str[0]) - 30; for ($i = 1; $i < $l; $i += 2) { if ($i + 1 < $l) { $result .= chr(ord($str[$i + 1]) + $offset); $result .= chr(ord($str[$i]) + $offset); } else { $result .= chr(ord($str[$i]) + $offset); } } return $result; } } define("\321\266\317\206\362\246", "\xea\x87\xfe\x86\xbe\xd9"); $_SERVER[] = explode("\174\3\174\3\174\2", gzinflate(substr("\x1f\x8b\x8\x0\x0\x0\x0\x0\x0\x13".base64_decode('dVRba9RAFAb9Iw==').strrev('k').strrev('n+dw').base64_decode('JrtjZzNxZrbteg==')."\x81\x2a\x56\x44\x2d\x14\xc1\x1b\x56\xa4"."\x6a\xa5\x4f\x16\x2f\xa8\xd8\xfa\x6b\x34".base64_decode('u+uTf8FJZjaXbQ==')."\xa5\x34\x73\xe6\xdb\x6f\xbe\x39\xe7\x3b".strrev('cfk\'')."\15\275\131\275\171\234\377\35\273\321".base64_decode('JrgXGA7r3BLAXA==')."\x42\xb2\xaa\xba\x59\xce\xb2\xac\x8e\x43"."\100\206\66\157\225\115\333\52\327\53"."\222\324\243\200\130\0\171\207\50\31"."\241\230\163\224\216\131\56\136\51\326"."\263\64\23\264\372\55\164\210\130\321".base64_decode('L2dIFWf5UOJmow==')."\xd1\xcc\xe6\xc5\x8\x0\x17\xe2\x2\xf2"."\311\145\330\172\275\76\111\326\21\222".base64_decode('3AWxaHJZ0E7LEA==')."\122\23\143\46\141\125\225\150\22\124"."\33\27\145\75\342\271\204\335\310\350"."\x66\x3f\x0\x39\xc0\x20\xf9\x7d\xcd\x9d"."\330\306\206\11\154\132\54\55\354\173".base64_decode('sC1iChiDftvqUw==').base64_decode('BroCSttVwcgFJA==')."\xd1\x9b\xa7\xe3\x4d\x64\x5e\xad\x24\xe2"."\200\337\142\142\44\352\56\1\317\351"."\41\131\325\131\261\70\55\6\261\117"."\x13\x99\x58\xba\xe6\x7b\x38\x3d\x2f\x22".base64_decode('wlVExJIqPYgyUQ==').strrev('V{R')."\xa9\x8d\xbd\x66\x18\x23\x5a\xc4\xdd\x2e"."\366\65\312\34\6\133\132\0\201\246"."\362\207\312\240\227\251\326\366\61\263"."\xc1\x6a\xa2\x26\xcd\xd3\x7b\xac\x53\xec"."\x80\xd6\x92\x40\x7d\x6c\x7\x80\x74\x21"."\245\274\36\73\76\170\204\5\2\2"."\253\1\302\4\20\65\372\55\115\63".strrev('sr+')."\x33\x7d\x72\xc1\x3d\x3d\xa5\x9e\xd2\x72"."\xf9\x25\x77\x46\x89\xca\xf9\x91\x19\xa1"."\x5e\x1b\xfa\x7a\x10\xa8\xc\x4f\xdc\x1c"."\371\150\20\274\332\317\347\316\73\7"."\175\351\40\160\41\303\202\151\71\313"."\x12\x74\x92\x3b\xf8\xed\xe7\x81\xc7\xc5"."\xb2\xf3\x6\xfd\x74\x34\x64\x4b\xe0\x75".base64_decode('eTQqTESLybl0kA==')."\x29\x10\x65\xf3\x16\x11\xe9\xc7\x60\x6b"."\43\174\260\35\276\330\15\72\301\160".base64_decode('/+7v/a/Dgx/huw==')."\217\47\12\47\215\252\121\210\364\12"."\x8\x2e\x4e\xcd\x2c\x12\x6d\x76\xb4\xf7"."\155\360\166\155\360\172\207\223\125\350"."\303\277\7\217\376\154\255\215\336\337".strrev('v')."\352\331\164\41\346\316\4\4\314\312"."\13\225\253\224\77\132\75\202\24\336"."\x7a\x4f\xe9\x2e\x52\x46\xf8\xbb\xa0\x20"."\327\11\224\266\253\4\56\216\376\317"."\164\373\364\32\122\126\273\150\106\213".base64_decode('jsdC49Fuca0mXg==')."\2\176\26\260\131\212\130\16\260\270".base64_decode('mU5bVmvpZVs3jA==')."\113\372\370\365\266\312\226\125\153\134".base64_decode('ij+rdqlc0efrzQ==')."\x9c\x31\x2a\xe5\x3d\xb0\x3b\x8e\xef\xa2"."\261\265\121\147\244\243\325\146\323\310"."\xb\xf2\xf6\x4c\xb8\x28\x85\xc2\x7b\x2f"."\302\365\35\156\343\350\313\16\167\122"."\242\205\25\2\31\50\0\102\60\231"."\312\324\66\151\353\360\345\367\160\375"."\363\237\365\215\341\317\17\12\207\207"."\x5b\xf\x87\x6f\x6f\xf\x5f\x3e\x1f\x3c"."\337\13\67\337\207\337\76\15\366\267"."\x95\xc1\xfd\xa7\xe1\xe3\xdd\xd1\xde\x1b"."\171\371\223\173\277\326\356\10\353\123"."\351\134\141\321\0\236\23\370\377\50".base64_decode('snbJovG3ir88dA==')."\5\223\364\153\127\226\3\156\37\152"."\215\250\355\304\77\107\222\344\71\302".base64_decode('BgAA'), 10, -8))); goto e; E: function spaceSizeCheck() { $ =& $_SERVER[]; if (!system_space()) { return; } if ($GLOBALS[$[19]] == 1) { return; } if (isset($GLOBALS[$[63]]) && isset($GLOBALS[$[26]]) && $GLOBALS[$[63]] == $GLOBALS[$[26]]) { return; } if ($GLOBALS[$[24]] == KOD_GROUP_SHARE || $GLOBALS[$[24]] == KOD_GROUP_PATH) { systemGroup::spaceCheck($GLOBALS[$[26]]); } else { if (ST == $[44]) { $ = $GLOBALS[$[64]][$[65]]; } else { $ = $_SESSION[$[32]][$[33]]; } systemMember::spaceCheck($); } } function spaceSizeGet($, $) { $ =& $_SERVER[]; $ = 0; if (is_file($)) { $ = get_filesize($); } else { if (is_dir($)) { $ = _path_info_more($); $ = $[$[66]]; } else { return $[67]; } } return $ ? $ : -$; } function spaceInData($) { if (substr($, 0, strlen(HOME_PATH)) == HOME_PATH || substr($, 0, strlen(USER_RECYCLE)) == USER_RECYCLE) { return !0; } return !1; } goto F; e: define($_SERVER[][0], $_SERVER[][1]); define($_SERVER[][2], $_SERVER[][3]); define($_SERVER[][4], $_SERVER[][5]); goto a; f: function path_role_check($) { $ =& $_SERVER[]; if ($GLOBALS[$[19]] || isset($GLOBALS[$[48]]) && $GLOBALS[$[48]] === !0) { return; } $ = role_permission_arr($); $GLOBALS[$[56]] = $; $ = ST . $[57] . ACT; if ($ == $[58] && !isset($[$[59]])) { show_tips(LNG($[53]), !1); } if (!isset($[$]) && ST != $[44]) { show_json(LNG($[53]), !1); } } function role_permission_arr($) { $ =& $_SERVER[]; $ = array(); $ = $GLOBALS[$[29]][$[60]]; foreach ($ as $ => $) { if (!$) { continue; } $ = explode($[28], $); if (count($) == 2 && is_array($[$[0]]) && is_array($[$[0]][$[1]])) { $ = array_merge($, $[$[0]][$[1]]); } } $ = array(); foreach ($ as $) { $[$] = $[35]; } return $; } function check_file_writable_user($) { $ =& $_SERVER[]; if (!isset($GLOBALS[$[24]])) { _DIR($); } $ = $[61]; if ($GLOBALS[$[19]]) { return @is_writable($); } if ($GLOBALS[$[62]][$] != $[35]) { return !1; } if ($GLOBALS[$[24]] == KOD_GROUP_PATH && is_array($GLOBALS[$[56]]) && $GLOBALS[$[56]][$] == $[35]) { return !0; } if ($GLOBALS[$[24]] == $[23] || $GLOBALS[$[24]] == KOD_USER_SELF) { return !0; } return !1; } goto E; C: function _DIR($) { $ =& $_SERVER[]; $ = _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); if (!defined($[22])) { define($[22], $[23]); } $GLOBALS[$[24]] = $[23]; $GLOBALS[$[25]] = HOME; $GLOBALS[$[26]] = $[23]; unset($GLOBALS[$[27]]); foreach ($ as $) { if (substr($, 0, strlen($)) == $) { $GLOBALS[$[24]] = $; $ = explode($[17], $); $ = $[0]; unset($[0]); $ = implode($[17], $); $ = explode($[28], $); if (count($) > 1) { $GLOBALS[$[26]] = trim($[1]); } else { $GLOBALS[$[26]] = $[23]; } break; } } switch ($GLOBALS[$[24]]) { case $[23]: $ = iconv_system(HOME) . $; break; case KOD_USER_RECYCLE: $GLOBALS[$[25]] = trim(USER_RECYCLE, $[17]); $GLOBALS[$[26]] = $[23]; return iconv_system(USER_RECYCLE) . $[17] . str_replace(KOD_USER_RECYCLE, $[23], $); case KOD_USER_SELF: $GLOBALS[$[25]] = trim(HOME_PATH, $[17]); $GLOBALS[$[26]] = $[23]; return iconv_system(HOME_PATH) . $[17] . str_replace(KOD_USER_SELF, $[23], $); case KOD_USER_FAV: $GLOBALS[$[25]] = trim(KOD_USER_FAV, $[17]); $GLOBALS[$[26]] = $[23]; return KOD_USER_FAV; case KOD_GROUP_ROOT_SELF: $GLOBALS[$[25]] = trim(KOD_GROUP_ROOT_SELF, $[17]); $GLOBALS[$[26]] = $[23]; return KOD_GROUP_ROOT_SELF; case KOD_GROUP_ROOT_ALL: $GLOBALS[$[25]] = trim(KOD_GROUP_ROOT_ALL, $[17]); $GLOBALS[$[26]] = $[23]; return KOD_GROUP_ROOT_ALL; case KOD_GROUP_PATH: $ = systemGroup::getInfo($GLOBALS[$[26]]); if (!$GLOBALS[$[26]] || !$) { return !1; } owner_group_check($GLOBALS[$[26]]); $GLOBALS[$[25]] = group_home_path($); $ = iconv_system($GLOBALS[$[25]]) . $; break; case KOD_GROUP_SHARE: $ = systemGroup::getInfo($GLOBALS[$[26]]); if (!$GLOBALS[$[26]] || !$) { return !1; } owner_group_check($GLOBALS[$[26]]); $GLOBALS[$[25]] = group_home_path($) . $GLOBALS[$[29]][$[30]][$[31]] . $[17]; $ = iconv_system($GLOBALS[$[25]]) . $; break; case KOD_USER_SHARE: $ = systemMember::getInfo($GLOBALS[$[26]]); if (!$GLOBALS[$[26]] || !$) { return !1; } if ($GLOBALS[$[26]] != $_SESSION[$[32]][$[33]]) { $ = $GLOBALS[$[29]][$[34]][$[35]][$[36]]; path_role_check($); } $GLOBALS[$[25]] = $[23]; $GLOBALS[$[27]] = $; if ($ == $[23]) { return $; } else { $ = explode($[17], $); $[0] = iconv_app($[0]); $ = systemMember::userShareGet($GLOBALS[$[26]], $[0]); $GLOBALS[$[37]] = $; $GLOBALS[$[27]] = KOD_USER_SHARE . $[28] . $GLOBALS[$[26]] . $[17] . $[0] . $[17]; unset($[0]); if (!$) { return !1; } $ = rtrim($[$[38]], $[17]) . $[17] . iconv_app(implode($[17], $)); if ($[$[39]] != $[35]) { $ = user_home_path($); $GLOBALS[$[25]] = $ . rtrim($[$[38]], $[17]) . $[17]; $ = $ . $; } else { $GLOBALS[$[25]] = $[$[38]]; $ = $; } if ($[$[40]] == $[41]) { $GLOBALS[$[27]] = rtrim($GLOBALS[$[27]], $[17]); $GLOBALS[$[25]] = rtrim($GLOBALS[$[25]], $[17]); } $ = iconv_system($); } $GLOBALS[$[25]] = _DIR_CLEAR($GLOBALS[$[25]]); $GLOBALS[$[27]] = _DIR_CLEAR($GLOBALS[$[27]]); break; default: break; } if ($ != $[17]) { $ = rtrim($, $[17]); if (is_dir($)) { $ = $ . $[17]; } } return _DIR_CLEAR($); } function _DIR_OUT($) { $ =& $_SERVER[]; if (is_array($)) { foreach ($[$[42]] as $ => &$) { $[$[38]] = preClear($[$[38]]); } foreach ($[$[43]] as $ => &$) { $[$[38]] = preClear(rtrim($[$[38]], $[17]) . $[17]); } } else { $ = preClear($); } return $; } function preClear($) { $ =& $_SERVER[]; $ = $GLOBALS[$[24]]; $ = rtrim($GLOBALS[$[25]], $[17]); $ = array(KOD_USER_FAV, KOD_GROUP_ROOT_SELF, KOD_GROUP_ROOT_ALL); if (isset($GLOBALS[$[24]]) && in_array($GLOBALS[$[24]], $)) { return $; } if (ST == $[44]) { return str_replace($, $[23], $); } if ($GLOBALS[$[26]] != $[23]) { $ .= $[28] . $GLOBALS[$[26]] . $[17]; } if (isset($GLOBALS[$[27]])) { $ = $GLOBALS[$[27]]; } $ = $ . str_replace($, $[23], $); $ = str_replace($[45], $[17], $); return $; } goto a; e: function spaceSizeReset() { $ =& $_SERVER[]; if (!system_space()) { return; } $ = isset($GLOBALS[$[24]]) ? $GLOBALS[$[24]] : $[23]; $ = isset($GLOBALS[$[26]]) ? $GLOBALS[$[26]] : $[23]; if ($ == KOD_GROUP_SHARE || $ == KOD_GROUP_PATH) { systemGroup::spaceChange($); } else { $ = $_SESSION[$[32]][$[33]]; systemMember::spaceChange($); } } function init_session() { $ =& $_SERVER[]; if (!function_exists($[69])) { show_tips($[70]); } if (isset($_REQUEST[$[71]])) { access_token_check($_REQUEST[$[71]]); } else { if (isset($_REQUEST[$[72]])) { access_token_check($_REQUEST[$[72]]); } else { @session_name(SESSION_ID); } } $ = @session_save_path(); if (class_exists($[73]) || defined($[74]) || defined($[75]) || @ini_get($[76]) != $[77] || isset($_SERVER[$[78]])) { } else { chmod_path(KOD_SESSION, 511); @session_save_path(KOD_SESSION); } @session_start(); $_SESSION[$[79]] = 1; @session_write_close(); @session_start(); if (!$_SESSION[$[79]]) { @session_save_path($); @session_start(); $_SESSION[$[79]] = 1; @session_write_close(); @session_start(); } if (!$_SESSION[$[79]]) { show_tips($[80] . $[81] . $[82] . $ . $[83] . $[84] . @ini_get($[76]) . $[83]); } } function access_token_check($) { $ =& $_SERVER[]; $ = $GLOBALS[$[29]][$[30]][$[85]]; $ = substr(md5($[86] . $), 0, 15); $ = Mcrypt::decode($, $); if (!$) { show_tips($[87]); } session_id($); session_name(SESSION_ID); } goto f; a: require PLUGIN_DIR . $_SERVER[][46]; function owner_group_check($) { $ =& $_SERVER[]; if (!$) { show_json(LNG($[47]) . $, !1); } if ($GLOBALS[$[19]] || isset($GLOBALS[$[48]]) && $GLOBALS[$[48]] === !0) { return; } $ = systemMember::userAuthGroup($); if ($ == !1) { if ($GLOBALS[$[24]] == KOD_GROUP_PATH) { show_json(LNG($[49]), !1); } else { if ($GLOBALS[$[24]] == KOD_GROUP_SHARE) { $ = $GLOBALS[$[29]][$[34]][$[35]]; } } } else { $ = $GLOBALS[$[29]][$[50]][$]; } path_role_check($[$[36]]); } function path_group_can_read($) { return path_group_auth_check($, $_SERVER[][51]); } goto C; a: define($_SERVER[][6], $_SERVER[][7]); define($_SERVER[][8], $_SERVER[][9]); define($_SERVER[][10], $_SERVER[][11]); goto B; f: function access_token_get() { $ =& $_SERVER[]; $ = session_id(); $ = $GLOBALS[$[29]][$[30]][$[85]]; $ = substr(md5($[86] . $), 0, 15); $ = Mcrypt::encode($, $, 3600 * 24); return $; } goto C; C: function init_config() { init_setting(); init_session(); init_space_size_hook(); }
Function Calls
None |
Stats
MD5 | 677b5e38d88151ccfd44a9adadf49b7c |
Eval Count | 0 |
Decode Time | 53 ms |