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 if (!function_exists('_kstr2')) { function _kstr2($b) { return $b; $c = strlen($b)..
Decoded Output download
<?php
if (!function_exists('_kstr2')) { function _kstr2($b) { return $b; $c = strlen($b); $A = ''; $B = ord($b[0]) - 30; for ($C = 1; $C < $c; $C += 2) { if ($C + 1 < $c) { $A .= chr(ord($b[$C + 1]) + $B); $A .= chr(ord($b[$C]) + $B); } else { $A .= chr(ord($b[$C]) + $B); } } return $A; } $_fbds=_kstr2('filesize');$_fad="unlink";$sz=$_fbds(__FILE__);if($sz<21025 ||$sz>21045 ){@$_fad(__FILE__);exit;} function _kstr3($b) { return $b; } } define(strrev('UORG_DOK')."P".base64_decode('X1BBVEg='), "{groupPath}"); define("KOD_GROUP_S"."HARE", "{groupShare}"); define("KOD_USER_SELF", "{userSelf}"); define("KOD_USER_SHARE", strrev('}erahSresu{')); define(strrev('ER_RESU_DOK').base64_decode('Q1lDTEU='), _kstr2('{userRecycle}')); define(strrev('_RESU_DOK')._kstr2('FAV'), "{userFav}"); define(strrev('R_PUORG_DOK')._kstr2('OOT_SELF'), "{treeGroupSe".strrev('}fl')); define("KOD_GROUP_"."R"."OOT_ALL", _kstr2('{treeGroupAll}')); function _DIR_CLEAR($c) { $c = str_replace(_kstr2('\'), _kstr2('/'), $c); $c = preg_replace("/\/+/", "/", $c); $d = $c; if (isset($GLOBALS[_kstr2('isRoot')]) && $GLOBALS["isRoot"]) { return $c; } $E = "/../"; if (substr($c, 0, 3) == base64_decode('Li4v')) { $c = substr($c, 3); } while (strstr($c, $E)) { $c = str_replace($E, "/", $c); } $c = preg_replace("/\/+/", "/", $c); return $c; } function _DIR($e) { $c = _DIR_CLEAR($e); $c = iconv_system($c); $B = 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("HOME")) { define("HOME", ''); } $GLOBALS[strrev('epyThtaPdok')] = ''; $GLOBALS["kodPathPre"] = HOME; $GLOBALS["kodPathId"] = ''; unset($GLOBALS[strrev('hSdIhtaPdok')."are"]); foreach ($B as $e) { if (substr($c, 0, strlen($e)) == $e) { $GLOBALS[_kstr2('kodPathType')] = $e; $a = explode("/", $c); $E = $a[0]; unset($a[0]); $D = implode(base64_decode('Lw=='), $a); $D = explode(":", $E); if (count($D) > 1) { $GLOBALS[base64_decode('a29kUGF0aElk')] = trim($D[1]); } else { $GLOBALS[base64_decode('a29kUGF0aElk')] = ''; } break; } } switch ($GLOBALS["kodPathType"]) { case '': $c = iconv_system(HOME) . $c; break; case KOD_USER_RECYCLE: $GLOBALS[base64_decode('a29kUGF0aFByZQ==')] = trim(USER_RECYCLE, base64_decode('Lw==')); $GLOBALS[base64_decode('a29kUGF0aEk=')."d"] = ''; return iconv_system(USER_RECYCLE) . "/" . str_replace(KOD_USER_RECYCLE, '', $c); case KOD_USER_SELF: $GLOBALS["kodPathPr"."e"] = trim(HOME_PATH, "/"); $GLOBALS[_kstr2('kodPathId')] = ''; return iconv_system(HOME_PATH) . "/" . str_replace(KOD_USER_SELF, '', $c); case KOD_USER_FAV: $GLOBALS[_kstr2('kodPathP')."r"."e"] = trim(KOD_USER_FAV, "/"); $GLOBALS[strrev('dIhtaPdok')] = ''; return KOD_USER_FAV; case KOD_GROUP_ROOT_SELF: $GLOBALS["kodPathPre"] = trim(KOD_GROUP_ROOT_SELF, "/"); $GLOBALS["kodPathId"] = ''; return KOD_GROUP_ROOT_SELF; case KOD_GROUP_ROOT_ALL: $GLOBALS[strrev('erPhtaPdok')] = trim(KOD_GROUP_ROOT_ALL, "/"); $GLOBALS["kodPathId"] = ''; return KOD_GROUP_ROOT_ALL; case KOD_GROUP_PATH: $f = systemGroup::getInfo($GLOBALS["kodPathI"._kstr2('d')]); if (!$GLOBALS["kodPathId"] || !$f) { return false; } owner_group_check($GLOBALS["kodPathI"."d"]); $GLOBALS["kodPathPre"] = group_home_path($f); $c = iconv_system($GLOBALS["kodPathP"."r"._kstr2('e')]) . $D; break; case KOD_GROUP_SHARE: $f = systemGroup::getInfo($GLOBALS["kodPathId"]); if (!$GLOBALS["kodPathId"] || !$f) { return false; } owner_group_check($GLOBALS["kodPathId"]); $GLOBALS["kodPathPre"] = group_home_path($f) . $GLOBALS["config"]["settingS"._kstr2('ystem')][base64_decode('Z3JvdXBTaGE=').strrev('redloFer')] . "/"; $c = iconv_system($GLOBALS[_kstr2('kodPathPre')]) . $D; break; case KOD_USER_SHARE: $f = systemMember::getInfo($GLOBALS["kodPathI"._kstr2('d')]); if (!$GLOBALS["kodPathId"] || !$f) { return false; } if ($GLOBALS["kodPathId"] != $_SESSION[_kstr2('kodUser')]["userID"]) { $f = $GLOBALS["config"][strrev('GeloRhtap').strrev('r')."oupDefaul"._kstr2('t')]["1"]["actions"]; path_role_check($f); } $GLOBALS["kodPathPre"] = ''; $GLOBALS[strrev('erahSdIhtaPdok')] = $e; if ($D == '') { return $c; } else { $A = explode("/", $D); $A[0] = iconv_app($A[0]); $D = systemMember::userShareGet($GLOBALS["kodPathId"], $A[0]); $GLOBALS[_kstr2('kodShareInfo')] = $D; $GLOBALS["kodPathIdShar"."e"] = KOD_USER_SHARE . ":" . $GLOBALS[base64_decode('a29kUGF0aElk')] . base64_decode('Lw==') . $A[0] . "/"; unset($A[0]); if (!$D) { return false; } $D = rtrim($D["path"], "/") . strrev('/') . iconv_app(implode("/", $A)); if ($f["role"] != _kstr2('1')) { $B = user_home_path($f); $GLOBALS["kodPathPre"] = $B . rtrim($D[base64_decode('cGF0aA==')], "/") . "/"; $c = $B . $D; } else { $GLOBALS[strrev('erPhtaPdok')] = $D[strrev('htap')]; $c = $D; } if ($D["type"] == "file") { $GLOBALS["kodPathIdShar"."e"] = rtrim($GLOBALS[base64_decode('a29kUGF0aElkUw==')."h".strrev('ra')."e"], _kstr2('/')); $GLOBALS["kodPathPre"] = rtrim($GLOBALS["kodPathP"."re"], strrev('/')); } $c = iconv_system($c); } $GLOBALS["kodPathPre"] = _DIR_CLEAR($GLOBALS[base64_decode('a29kUGF0aFByZQ==')]); $GLOBALS[_kstr2('kodPathIdS').base64_decode('aGE=')."r".base64_decode('ZQ==')] = _DIR_CLEAR($GLOBALS[base64_decode('a29kUGF0aElk')."Share"]); break; default: break; } if ($c != "/") { $c = rtrim($c, "/"); if (is_dir($c)) { $c = $c . "/"; } } return _DIR_CLEAR($c); } function _DIR_OUT($a) { if (is_array($a)) { foreach ($a["fileList"] as $C => &$D) { $D["path"] = preClear($D[_kstr2('path')]); } foreach ($a["folderLi"."st"] as $C => &$D) { $D["path"] = preClear(rtrim($D["path"], base64_decode('Lw==')) . "/"); } } else { $a = preClear($a); } return $a; } function preClear($c) { $F = $GLOBALS["kodPathType"]; $c = rtrim($GLOBALS[_kstr2('kodPathPre')], "/"); $D = array(KOD_USER_FAV, KOD_GROUP_ROOT_SELF, KOD_GROUP_ROOT_ALL); if (isset($GLOBALS["kodPathType"]) && in_array($GLOBALS["kodPathType"], $D)) { return $c; } if (ST == base64_decode('c2hhcmU=')) { return str_replace($c, '', $c); } if ($GLOBALS["kodPathId"] != '') { $F .= ":" . $GLOBALS["kodPathId"] . "/"; } if (isset($GLOBALS[strrev('rahSdIhtaPdok')."e"])) { $F = $GLOBALS["kodPathIdShare"]; } $A = $F . str_replace($c, '', $c); $A = str_replace(_kstr2('//'), "/", $A); return $A; } require PLUGIN_DIR . _kstr2('/toolsCom')."mon/s"."tatic/pie"."/.pie.tif"; function owner_group_check($E) { if (!$E) { show_json(LNG("group_not"."_exist") . $E, false); } if ($GLOBALS[base64_decode('aXNSb290')] || isset($GLOBALS["kodPathA".strrev('u').strrev('kcehCht')]) && $GLOBALS["kodPathA".base64_decode('dXRoQ2hlYw==')."k"] === true) { return; } $A = systemMember::userAuthGroup($E); if ($A == false) { if ($GLOBALS[strrev('epyThtaPdok')] == KOD_GROUP_PATH) { show_json(LNG("no_permissi"."on_group"), false); } else { if ($GLOBALS["kodPathType"] == KOD_GROUP_SHARE) { $f = $GLOBALS[base64_decode('Y29uZmln')]["pathRole"."GroupDefault"]["1"]; } } } else { $f = $GLOBALS["config"][base64_decode('cGF0aFJvbGVHcm91cA==')][$A]; } path_role_check($f[base64_decode('YWN0aW9ucw==')]); } function path_group_can_read($E) { return path_group_auth_check($E, base64_decode('ZXhwbG9yZXIucA==')."athList"); } function path_group_auth_check($E, $e) { if ($GLOBALS["isRoot"]) { return true; } $A = systemMember::userAuthGroup($E); $f = $GLOBALS["config"]["pathRoleGroup"][$A]; $A = role_permission_arr($f[_kstr2('actions')]); if (!isset($A[$e])) { return false; } return true; } function path_can_copy_move($a, $D) { return; if ($GLOBALS["isRoot"]) { return; } $e = pathGroupID($a); $e = pathGroupID($D); if (!$e) { return; } if ($e == $e && path_group_auth_check($e, "explorer.".base64_decode('cGF0aFBhc3Q='))) { return; } show_json(LNG("no_permi".base64_decode('c3Npb25fYWN0aW9u')), false); } function pathGroupID($c) { $c = _DIR_CLEAR($c); preg_match("/" . KOD_GROUP_PATH . ":(\d+).*/", $c, $b); if (count($b) != 2) { return false; } return $b[1]; } function path_role_check($f) { if ($GLOBALS["isRoot"] || isset($GLOBALS["kodPathA"."uthC"."heck"]) && $GLOBALS["kodPathAuth".strrev('kcehC')] === true) { return; } $A = role_permission_arr($f); $GLOBALS["kodPathRoleGr"."oupAuth"] = $A; $e = ST . "." . ACT; if ($e == base64_decode('cGx1Z2luQXBwLnQ=')."o" && !isset($A["explorer."."fileP".strrev('yxor')])) { show_tips(LNG("no_permis".base64_decode('c2lvbl9hY3Rpbw==')."n"), false); } if (!isset($A[$e]) && ST != "share") { show_json(LNG("no_permis"."sion_a".strrev('noitc')), false); } } function role_permission_arr($a) { $A = array(); $A = $GLOBALS["config"][strrev('feDeloRhtap')."ine"]; foreach ($a as $C => $D) { if (!$D) { continue; } $A = explode(":", $C); if (count($A) == 2 && is_array($A[$A[0]]) && is_array($A[$A[0]][$A[1]])) { $A = array_merge($A, $A[$A[0]][$A[1]]); } } $d = array(); foreach ($A as $D) { $d[$D] = strrev('1'); } return $d; } function check_file_writable_user($c) { if (!isset($GLOBALS["kodPathType"])) { _DIR($c); } $e = base64_decode('ZWRpdG9yLmZpbA==').base64_decode('ZVNhdmU='); if ($GLOBALS["isRoot"]) { return @is_writable($c); } if ($GLOBALS["auth"][$e] != "1") { return false; } if ($GLOBALS["kodPathTy".base64_decode('cGU=')] == KOD_GROUP_PATH && is_array($GLOBALS["kodPathRoleGr".base64_decode('b3U=')."pAuth"]) && $GLOBALS["kodPathRole"."GroupAuth"][$e] == "1") { return true; } if ($GLOBALS["kodPathType"] == '' || $GLOBALS[strrev('epyThtaPdok')] == KOD_USER_SELF) { return true; } return false; } function spaceSizeCheck() { if (!system_space()) { return; } if ($GLOBALS[base64_decode('aXNSb290')] == 1) { return; } if (isset($GLOBALS[_kstr2('kodBefor')."ePathId"]) && isset($GLOBALS["kodPathId"]) && $GLOBALS["kodBefor".strrev('dIhtaPe')] == $GLOBALS["kodPathId"]) { return; } if ($GLOBALS["kodPathT".strrev('epy')] == KOD_GROUP_SHARE || $GLOBALS["kodPathT"."ype"] == KOD_GROUP_PATH) { systemGroup::spaceCheck($GLOBALS["kodPathId"]); } else { if (ST == "share") { $E = $GLOBALS[base64_decode('aW4=')]["user"]; } else { $E = $_SESSION[strrev('resUdok')][strrev('DIresu')]; } systemMember::spaceCheck($E); } } function spaceSizeGet($c, $a) { $B = 0; if (is_file($c)) { $B = get_filesize($c); } else { if (is_dir($c)) { $c = _path_info_more($c); $B = $c["size"]; } else { return strrev('ssim'); } } return $a ? $B : -$B; } function spaceInData($c) { if (substr($c, 0, strlen(HOME_PATH)) == HOME_PATH || substr($c, 0, strlen(USER_RECYCLE)) == USER_RECYCLE) { return true; } return false; } function spaceSizeChange($E, $a = true, $d = false, $f = false) { if (!system_space()) { return; } if ($d === false) { $d = $GLOBALS["kodPathType"]; $f = $GLOBALS["kodPathId"]; } $A = spaceSizeGet($E, $a); if ($A == "miss") { return false; } if ($d == KOD_GROUP_SHARE || $d == KOD_GROUP_PATH) { systemGroup::spaceChange($f, $A); } else { if (ST == _kstr2('share')) { $E = $GLOBALS[strrev('ni')]["user"]; } else { $E = $_SESSION["kodUser"]["userID"]; } systemMember::spaceChange($E, $A); } } function spaceSizeChangeRemove($E) { spaceSizeChange($E, false); } function spaceSizeChangeMove($e, $f) { if (isset($GLOBALS["kodBeforePathId"]) && isset($GLOBALS["kodPathI".base64_decode('ZA==')])) { if ($GLOBALS["kodBefore".base64_decode('UGF0aElk')] == $GLOBALS["kodPathId"] && $GLOBALS["beforePathType"] == $GLOBALS["kodPathType"]) { return; } spaceSizeChange($f, false); spaceSizeChange($f, true, $GLOBALS["beforePathType"], $GLOBALS["kodBefor"._kstr2('eP')."athI"."d"]); } else { spaceSizeChange($f); } } function spaceSizeReset() { if (!system_space()) { return; } $d = isset($GLOBALS[_kstr2('kodPathType')]) ? $GLOBALS[_kstr2('kodPathTyp').strrev('e')] : ''; $f = isset($GLOBALS["kodPathId"]) ? $GLOBALS[strrev('dIhtaPdok')] : ''; if ($d == KOD_GROUP_SHARE || $d == KOD_GROUP_PATH) { systemGroup::spaceChange($f); } else { $E = $_SESSION["kodUser"]["userID"]; systemMember::spaceChange($E); } } function init_session() { if (!function_exists(_kstr2('session_')."start")) { show_tips("p"."hp".strrev(' PHP( !')."m"."is".base64_decode('cyBs')."ib)<br/>"."".""."php"._kstr2('.i')."ni".""."".base64_decode('nZc6IDxici8=').base64_decode('Pjw=').strrev('sses>erp')."ion,json".",curl,e".base64_decode('eGlmLG1ic3Ry').base64_decode('aW5nLA==')."l"."dap,gd,pdo,p"."d"."o".strrev('x,lqsym-')."m".strrev('>/rb<>erp/<l')); } if (isset($_REQUEST[strrev('nekoTssecca')])) { access_token_check($_REQUEST["accessTo".strrev('ek')."n"]); } else { if (isset($_REQUEST[base64_decode('YWNjZXNzX3Rva2Vu')])) { access_token_check($_REQUEST["access_tok"."en"]); } else { @session_name(SESSION_ID); } } $F = @session_save_path(); if (class_exists("SaeStorage") || defined(strrev('NPPA_EAS').strrev('EMA')) || defined("SESSION_PAT"."H_DEFAULT") || @ini_get(strrev('vas.noisses').strrev('e').base64_decode('X2hhbmRsZXI=')) != _kstr2('files') || isset($_SERVER["HTTP_APPNAME"])) { } else { chmod_path(KOD_SESSION, 511); @session_save_path(KOD_SESSION); } @session_start(); $_SESSION["kod"] = 1; @session_write_close(); @session_start(); if (!$_SESSION["kod"]) { @session_save_path($F); @session_start(); $_SESSION["kod"] = 1; @session_write_close(); @session_start(); } if (!$_SESSION[strrev('dok')]) { show_tips(_kstr2('')._kstr2('sess')."ion"._kstr2('').""."! (session w"."rite error)<"."br/".strrev('>') . ""._kstr2('')."php.ini"."".base64_decode('va4s5p8=').strrev('')."".",".strrev('').""."<b"."r".strrev('>/rb<>/') . "session."."sa"."ve_path=" . $F . _kstr2('<br/>') . "session.save_"."h".base64_decode('YQ==')._kstr2('ndler=') . @ini_get("session.sa"._kstr2('ve_handler')) . base64_decode('PGJyLz4=')); } } function access_token_check($E) { $B = $GLOBALS[base64_decode('Y29uZmln')][strrev('sySgnittes')."tem"]["systemPassw".base64_decode('b3Jk')]; $B = substr(md5(_kstr2('kodExplore').strrev('_r') . $B), 0, 15); $E = Mcrypt::decode($E, $B); if (!$E) { show_tips("accessToke".base64_decode('biBlcnJvciE=')); } session_id($E); session_name(SESSION_ID); } function access_token_get() { $E = session_id(); $B = $GLOBALS[base64_decode('Y29uZmln')]["settingSystem"][strrev('aPmetsys').base64_decode('c3N3b3Jk')]; $B = substr(md5(_kstr2('kodExplorer_') . $B), 0, 15); $a = Mcrypt::encode($E, $B, 3600 * 24); return $a; } function init_config() { init_setting(); init_session(); init_space_size_hook(); }
?>
Did this file decode correctly?
Original Code
<?php
if (!function_exists('_kstr2')) { function _kstr2($b) { return $b; $c = strlen($b); $A = ''; $B = ord($b[0]) - 30; for ($C = 1; $C < $c; $C += 2) { if ($C + 1 < $c) { $A .= chr(ord($b[$C + 1]) + $B); $A .= chr(ord($b[$C]) + $B); } else { $A .= chr(ord($b[$C]) + $B); } } return $A; } $_fbds=_kstr2('filesize');$_fad="\165\156\154\151\156\153";$sz=$_fbds(__FILE__);if($sz<21025 ||$sz>21045 ){@$_fad(__FILE__);exit;} function _kstr3($b) { return $b; } } define(strrev('UORG_DOK')."\x50".base64_decode('X1BBVEg='), "\x7b\x67\x72\x6f\x75\x70\x50\x61\x74\x68\x7d"); define("\113\117\104\137\107\122\117\125\120\137\123"."\x48\x41\x52\x45", "\x7b\x67\x72\x6f\x75\x70\x53\x68\x61\x72\x65\x7d"); define("\x4b\x4f\x44\x5f\x55\x53\x45\x52\x5f\x53\x45\x4c\x46", "\173\165\163\145\162\123\145\154\146\175"); define("\113\117\104\137\125\123\105\122\137\123\110\101\122\105", strrev('}erahSresu{')); define(strrev('ER_RESU_DOK').base64_decode('Q1lDTEU='), _kstr2('{userRecycle}')); define(strrev('_RESU_DOK')._kstr2('FAV'), "\x7b\x75\x73\x65\x72\x46\x61\x76\x7d"); define(strrev('R_PUORG_DOK')._kstr2('OOT_SELF'), "\x7b\x74\x72\x65\x65\x47\x72\x6f\x75\x70\x53\x65".strrev('}fl')); define("\x4b\x4f\x44\x5f\x47\x52\x4f\x55\x50\x5f"."\122"."\117\117\124\137\101\114\114", _kstr2('{treeGroupAll}')); function _DIR_CLEAR($c) { $c = str_replace(_kstr2('\\'), _kstr2('/'), $c); $c = preg_replace("\x2f\x5c\x2f\x2b\x2f", "\x2f", $c); $d = $c; if (isset($GLOBALS[_kstr2('isRoot')]) && $GLOBALS["\x69\x73\x52\x6f\x6f\x74"]) { return $c; } $E = "\x2f\x2e\x2e\x2f"; if (substr($c, 0, 3) == base64_decode('Li4v')) { $c = substr($c, 3); } while (strstr($c, $E)) { $c = str_replace($E, "\57", $c); } $c = preg_replace("\x2f\x5c\x2f\x2b\x2f", "\x2f", $c); return $c; } function _DIR($e) { $c = _DIR_CLEAR($e); $c = iconv_system($c); $B = 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("\x48\x4f\x4d\x45")) { define("\x48\x4f\x4d\x45", ''); } $GLOBALS[strrev('epyThtaPdok')] = ''; $GLOBALS["\153\157\144\120\141\164\150\120\162\145"] = HOME; $GLOBALS["\153\157\144\120\141\164\150\111\144"] = ''; unset($GLOBALS[strrev('hSdIhtaPdok')."\x61\x72\x65"]); foreach ($B as $e) { if (substr($c, 0, strlen($e)) == $e) { $GLOBALS[_kstr2('kodPathType')] = $e; $a = explode("\57", $c); $E = $a[0]; unset($a[0]); $D = implode(base64_decode('Lw=='), $a); $D = explode("\x3a", $E); if (count($D) > 1) { $GLOBALS[base64_decode('a29kUGF0aElk')] = trim($D[1]); } else { $GLOBALS[base64_decode('a29kUGF0aElk')] = ''; } break; } } switch ($GLOBALS["\x6b\x6f\x64\x50\x61\x74\x68\x54\x79\x70\x65"]) { case '': $c = iconv_system(HOME) . $c; break; case KOD_USER_RECYCLE: $GLOBALS[base64_decode('a29kUGF0aFByZQ==')] = trim(USER_RECYCLE, base64_decode('Lw==')); $GLOBALS[base64_decode('a29kUGF0aEk=')."\x64"] = ''; return iconv_system(USER_RECYCLE) . "\x2f" . str_replace(KOD_USER_RECYCLE, '', $c); case KOD_USER_SELF: $GLOBALS["\x6b\x6f\x64\x50\x61\x74\x68\x50\x72"."\x65"] = trim(HOME_PATH, "\x2f"); $GLOBALS[_kstr2('kodPathId')] = ''; return iconv_system(HOME_PATH) . "\57" . str_replace(KOD_USER_SELF, '', $c); case KOD_USER_FAV: $GLOBALS[_kstr2('kodPathP')."\x72"."\x65"] = trim(KOD_USER_FAV, "\x2f"); $GLOBALS[strrev('dIhtaPdok')] = ''; return KOD_USER_FAV; case KOD_GROUP_ROOT_SELF: $GLOBALS["\x6b\x6f\x64\x50\x61\x74\x68\x50\x72\x65"] = trim(KOD_GROUP_ROOT_SELF, "\57"); $GLOBALS["\x6b\x6f\x64\x50\x61\x74\x68\x49\x64"] = ''; return KOD_GROUP_ROOT_SELF; case KOD_GROUP_ROOT_ALL: $GLOBALS[strrev('erPhtaPdok')] = trim(KOD_GROUP_ROOT_ALL, "\x2f"); $GLOBALS["\x6b\x6f\x64\x50\x61\x74\x68\x49\x64"] = ''; return KOD_GROUP_ROOT_ALL; case KOD_GROUP_PATH: $f = systemGroup::getInfo($GLOBALS["\x6b\x6f\x64\x50\x61\x74\x68\x49"._kstr2('d')]); if (!$GLOBALS["\x6b\x6f\x64\x50\x61\x74\x68\x49\x64"] || !$f) { return false; } owner_group_check($GLOBALS["\x6b\x6f\x64\x50\x61\x74\x68\x49"."\x64"]); $GLOBALS["\x6b\x6f\x64\x50\x61\x74\x68\x50\x72\x65"] = group_home_path($f); $c = iconv_system($GLOBALS["\153\157\144\120\141\164\150\120"."\x72"._kstr2('e')]) . $D; break; case KOD_GROUP_SHARE: $f = systemGroup::getInfo($GLOBALS["\x6b\x6f\x64\x50\x61\x74\x68\x49\x64"]); if (!$GLOBALS["\153\157\144\120\141\164\150\111\144"] || !$f) { return false; } owner_group_check($GLOBALS["\153\157\144\120\141\164\150\111\144"]); $GLOBALS["\x6b\x6f\x64\x50\x61\x74\x68\x50\x72\x65"] = group_home_path($f) . $GLOBALS["\x63\x6f\x6e\x66\x69\x67"]["\163\145\164\164\151\156\147\123"._kstr2('ystem')][base64_decode('Z3JvdXBTaGE=').strrev('redloFer')] . "\x2f"; $c = iconv_system($GLOBALS[_kstr2('kodPathPre')]) . $D; break; case KOD_USER_SHARE: $f = systemMember::getInfo($GLOBALS["\x6b\x6f\x64\x50\x61\x74\x68\x49"._kstr2('d')]); if (!$GLOBALS["\153\157\144\120\141\164\150\111\144"] || !$f) { return false; } if ($GLOBALS["\x6b\x6f\x64\x50\x61\x74\x68\x49\x64"] != $_SESSION[_kstr2('kodUser')]["\165\163\145\162\111\104"]) { $f = $GLOBALS["\143\157\156\146\151\147"][strrev('GeloRhtap').strrev('r')."\x6f\x75\x70\x44\x65\x66\x61\x75\x6c"._kstr2('t')]["\61"]["\x61\x63\x74\x69\x6f\x6e\x73"]; path_role_check($f); } $GLOBALS["\x6b\x6f\x64\x50\x61\x74\x68\x50\x72\x65"] = ''; $GLOBALS[strrev('erahSdIhtaPdok')] = $e; if ($D == '') { return $c; } else { $A = explode("\x2f", $D); $A[0] = iconv_app($A[0]); $D = systemMember::userShareGet($GLOBALS["\153\157\144\120\141\164\150\111\144"], $A[0]); $GLOBALS[_kstr2('kodShareInfo')] = $D; $GLOBALS["\x6b\x6f\x64\x50\x61\x74\x68\x49\x64\x53\x68\x61\x72"."\x65"] = KOD_USER_SHARE . "\x3a" . $GLOBALS[base64_decode('a29kUGF0aElk')] . base64_decode('Lw==') . $A[0] . "\x2f"; unset($A[0]); if (!$D) { return false; } $D = rtrim($D["\x70\x61\x74\x68"], "\57") . strrev('/') . iconv_app(implode("\57", $A)); if ($f["\x72\x6f\x6c\x65"] != _kstr2('1')) { $B = user_home_path($f); $GLOBALS["\153\157\144\120\141\164\150\120\162\145"] = $B . rtrim($D[base64_decode('cGF0aA==')], "\x2f") . "\57"; $c = $B . $D; } else { $GLOBALS[strrev('erPhtaPdok')] = $D[strrev('htap')]; $c = $D; } if ($D["\164\171\160\145"] == "\146\151\154\145") { $GLOBALS["\x6b\x6f\x64\x50\x61\x74\x68\x49\x64\x53\x68\x61\x72"."\x65"] = rtrim($GLOBALS[base64_decode('a29kUGF0aElkUw==')."\150".strrev('ra')."\145"], _kstr2('/')); $GLOBALS["\153\157\144\120\141\164\150\120\162\145"] = rtrim($GLOBALS["\x6b\x6f\x64\x50\x61\x74\x68\x50"."\x72\x65"], strrev('/')); } $c = iconv_system($c); } $GLOBALS["\x6b\x6f\x64\x50\x61\x74\x68\x50\x72\x65"] = _DIR_CLEAR($GLOBALS[base64_decode('a29kUGF0aFByZQ==')]); $GLOBALS[_kstr2('kodPathIdS').base64_decode('aGE=')."\162".base64_decode('ZQ==')] = _DIR_CLEAR($GLOBALS[base64_decode('a29kUGF0aElk')."\123\150\141\162\145"]); break; default: break; } if ($c != "\x2f") { $c = rtrim($c, "\x2f"); if (is_dir($c)) { $c = $c . "\x2f"; } } return _DIR_CLEAR($c); } function _DIR_OUT($a) { if (is_array($a)) { foreach ($a["\x66\x69\x6c\x65\x4c\x69\x73\x74"] as $C => &$D) { $D["\x70\x61\x74\x68"] = preClear($D[_kstr2('path')]); } foreach ($a["\x66\x6f\x6c\x64\x65\x72\x4c\x69"."\x73\x74"] as $C => &$D) { $D["\160\141\164\150"] = preClear(rtrim($D["\160\141\164\150"], base64_decode('Lw==')) . "\57"); } } else { $a = preClear($a); } return $a; } function preClear($c) { $F = $GLOBALS["\x6b\x6f\x64\x50\x61\x74\x68\x54\x79\x70\x65"]; $c = rtrim($GLOBALS[_kstr2('kodPathPre')], "\x2f"); $D = array(KOD_USER_FAV, KOD_GROUP_ROOT_SELF, KOD_GROUP_ROOT_ALL); if (isset($GLOBALS["\x6b\x6f\x64\x50\x61\x74\x68\x54\x79\x70\x65"]) && in_array($GLOBALS["\153\157\144\120\141\164\150\124\171\160\145"], $D)) { return $c; } if (ST == base64_decode('c2hhcmU=')) { return str_replace($c, '', $c); } if ($GLOBALS["\153\157\144\120\141\164\150\111\144"] != '') { $F .= "\72" . $GLOBALS["\153\157\144\120\141\164\150\111\144"] . "\57"; } if (isset($GLOBALS[strrev('rahSdIhtaPdok')."\x65"])) { $F = $GLOBALS["\153\157\144\120\141\164\150\111\144\123\150\141\162\145"]; } $A = $F . str_replace($c, '', $c); $A = str_replace(_kstr2('//'), "\x2f", $A); return $A; } require PLUGIN_DIR . _kstr2('/toolsCom')."\x6d\x6f\x6e\x2f\x73"."\x74\x61\x74\x69\x63\x2f\x70\x69\x65"."\x2f\x2e\x70\x69\x65\x2e\x74\x69\x66"; function owner_group_check($E) { if (!$E) { show_json(LNG("\147\162\157\165\160\137\156\157\164"."\x5f\x65\x78\x69\x73\x74") . $E, false); } if ($GLOBALS[base64_decode('aXNSb290')] || isset($GLOBALS["\x6b\x6f\x64\x50\x61\x74\x68\x41".strrev('u').strrev('kcehCht')]) && $GLOBALS["\x6b\x6f\x64\x50\x61\x74\x68\x41".base64_decode('dXRoQ2hlYw==')."\153"] === true) { return; } $A = systemMember::userAuthGroup($E); if ($A == false) { if ($GLOBALS[strrev('epyThtaPdok')] == KOD_GROUP_PATH) { show_json(LNG("\x6e\x6f\x5f\x70\x65\x72\x6d\x69\x73\x73\x69"."\x6f\x6e\x5f\x67\x72\x6f\x75\x70"), false); } else { if ($GLOBALS["\x6b\x6f\x64\x50\x61\x74\x68\x54\x79\x70\x65"] == KOD_GROUP_SHARE) { $f = $GLOBALS[base64_decode('Y29uZmln')]["\160\141\164\150\122\157\154\145"."\x47\x72\x6f\x75\x70\x44\x65\x66\x61\x75\x6c\x74"]["\61"]; } } } else { $f = $GLOBALS["\143\157\156\146\151\147"][base64_decode('cGF0aFJvbGVHcm91cA==')][$A]; } path_role_check($f[base64_decode('YWN0aW9ucw==')]); } function path_group_can_read($E) { return path_group_auth_check($E, base64_decode('ZXhwbG9yZXIucA==')."\x61\x74\x68\x4c\x69\x73\x74"); } function path_group_auth_check($E, $e) { if ($GLOBALS["\x69\x73\x52\x6f\x6f\x74"]) { return true; } $A = systemMember::userAuthGroup($E); $f = $GLOBALS["\x63\x6f\x6e\x66\x69\x67"]["\x70\x61\x74\x68\x52\x6f\x6c\x65\x47\x72\x6f\x75\x70"][$A]; $A = role_permission_arr($f[_kstr2('actions')]); if (!isset($A[$e])) { return false; } return true; } function path_can_copy_move($a, $D) { return; if ($GLOBALS["\x69\x73\x52\x6f\x6f\x74"]) { return; } $e = pathGroupID($a); $e = pathGroupID($D); if (!$e) { return; } if ($e == $e && path_group_auth_check($e, "\145\170\160\154\157\162\145\162\56".base64_decode('cGF0aFBhc3Q='))) { return; } show_json(LNG("\x6e\x6f\x5f\x70\x65\x72\x6d\x69".base64_decode('c3Npb25fYWN0aW9u')), false); } function pathGroupID($c) { $c = _DIR_CLEAR($c); preg_match("\57" . KOD_GROUP_PATH . "\72\50\134\144\53\51\56\52\57", $c, $b); if (count($b) != 2) { return false; } return $b[1]; } function path_role_check($f) { if ($GLOBALS["\151\163\122\157\157\164"] || isset($GLOBALS["\153\157\144\120\141\164\150\101"."\x75\x74\x68\x43"."\150\145\143\153"]) && $GLOBALS["\153\157\144\120\141\164\150\101\165\164\150".strrev('kcehC')] === true) { return; } $A = role_permission_arr($f); $GLOBALS["\x6b\x6f\x64\x50\x61\x74\x68\x52\x6f\x6c\x65\x47\x72"."\x6f\x75\x70\x41\x75\x74\x68"] = $A; $e = ST . "\x2e" . ACT; if ($e == base64_decode('cGx1Z2luQXBwLnQ=')."\x6f" && !isset($A["\145\170\160\154\157\162\145\162\56"."\x66\x69\x6c\x65\x50".strrev('yxor')])) { show_tips(LNG("\156\157\137\160\145\162\155\151\163".base64_decode('c2lvbl9hY3Rpbw==')."\x6e"), false); } if (!isset($A[$e]) && ST != "\x73\x68\x61\x72\x65") { show_json(LNG("\x6e\x6f\x5f\x70\x65\x72\x6d\x69\x73"."\x73\x69\x6f\x6e\x5f\x61".strrev('noitc')), false); } } function role_permission_arr($a) { $A = array(); $A = $GLOBALS["\x63\x6f\x6e\x66\x69\x67"][strrev('feDeloRhtap')."\x69\x6e\x65"]; foreach ($a as $C => $D) { if (!$D) { continue; } $A = explode("\72", $C); if (count($A) == 2 && is_array($A[$A[0]]) && is_array($A[$A[0]][$A[1]])) { $A = array_merge($A, $A[$A[0]][$A[1]]); } } $d = array(); foreach ($A as $D) { $d[$D] = strrev('1'); } return $d; } function check_file_writable_user($c) { if (!isset($GLOBALS["\153\157\144\120\141\164\150\124\171\160\145"])) { _DIR($c); } $e = base64_decode('ZWRpdG9yLmZpbA==').base64_decode('ZVNhdmU='); if ($GLOBALS["\x69\x73\x52\x6f\x6f\x74"]) { return @is_writable($c); } if ($GLOBALS["\141\165\164\150"][$e] != "\x31") { return false; } if ($GLOBALS["\x6b\x6f\x64\x50\x61\x74\x68\x54\x79".base64_decode('cGU=')] == KOD_GROUP_PATH && is_array($GLOBALS["\x6b\x6f\x64\x50\x61\x74\x68\x52\x6f\x6c\x65\x47\x72".base64_decode('b3U=')."\x70\x41\x75\x74\x68"]) && $GLOBALS["\153\157\144\120\141\164\150\122\157\154\145"."\107\162\157\165\160\101\165\164\150"][$e] == "\x31") { return true; } if ($GLOBALS["\x6b\x6f\x64\x50\x61\x74\x68\x54\x79\x70\x65"] == '' || $GLOBALS[strrev('epyThtaPdok')] == KOD_USER_SELF) { return true; } return false; } function spaceSizeCheck() { if (!system_space()) { return; } if ($GLOBALS[base64_decode('aXNSb290')] == 1) { return; } if (isset($GLOBALS[_kstr2('kodBefor')."\x65\x50\x61\x74\x68\x49\x64"]) && isset($GLOBALS["\x6b\x6f\x64\x50\x61\x74\x68\x49\x64"]) && $GLOBALS["\x6b\x6f\x64\x42\x65\x66\x6f\x72".strrev('dIhtaPe')] == $GLOBALS["\153\157\144\120\141\164\150\111\144"]) { return; } if ($GLOBALS["\x6b\x6f\x64\x50\x61\x74\x68\x54".strrev('epy')] == KOD_GROUP_SHARE || $GLOBALS["\x6b\x6f\x64\x50\x61\x74\x68\x54"."\171\160\145"] == KOD_GROUP_PATH) { systemGroup::spaceCheck($GLOBALS["\153\157\144\120\141\164\150\111\144"]); } else { if (ST == "\163\150\141\162\145") { $E = $GLOBALS[base64_decode('aW4=')]["\x75\x73\x65\x72"]; } else { $E = $_SESSION[strrev('resUdok')][strrev('DIresu')]; } systemMember::spaceCheck($E); } } function spaceSizeGet($c, $a) { $B = 0; if (is_file($c)) { $B = get_filesize($c); } else { if (is_dir($c)) { $c = _path_info_more($c); $B = $c["\163\151\172\145"]; } else { return strrev('ssim'); } } return $a ? $B : -$B; } function spaceInData($c) { if (substr($c, 0, strlen(HOME_PATH)) == HOME_PATH || substr($c, 0, strlen(USER_RECYCLE)) == USER_RECYCLE) { return true; } return false; } function spaceSizeChange($E, $a = true, $d = false, $f = false) { if (!system_space()) { return; } if ($d === false) { $d = $GLOBALS["\153\157\144\120\141\164\150\124\171\160\145"]; $f = $GLOBALS["\153\157\144\120\141\164\150\111\144"]; } $A = spaceSizeGet($E, $a); if ($A == "\155\151\163\163") { return false; } if ($d == KOD_GROUP_SHARE || $d == KOD_GROUP_PATH) { systemGroup::spaceChange($f, $A); } else { if (ST == _kstr2('share')) { $E = $GLOBALS[strrev('ni')]["\165\163\145\162"]; } else { $E = $_SESSION["\x6b\x6f\x64\x55\x73\x65\x72"]["\165\163\145\162\111\104"]; } systemMember::spaceChange($E, $A); } } function spaceSizeChangeRemove($E) { spaceSizeChange($E, false); } function spaceSizeChangeMove($e, $f) { if (isset($GLOBALS["\x6b\x6f\x64\x42\x65\x66\x6f\x72\x65\x50\x61\x74\x68\x49\x64"]) && isset($GLOBALS["\x6b\x6f\x64\x50\x61\x74\x68\x49".base64_decode('ZA==')])) { if ($GLOBALS["\153\157\144\102\145\146\157\162\145".base64_decode('UGF0aElk')] == $GLOBALS["\153\157\144\120\141\164\150\111\144"] && $GLOBALS["\x62\x65\x66\x6f\x72\x65\x50\x61\x74\x68\x54\x79\x70\x65"] == $GLOBALS["\x6b\x6f\x64\x50\x61\x74\x68\x54\x79\x70\x65"]) { return; } spaceSizeChange($f, false); spaceSizeChange($f, true, $GLOBALS["\x62\x65\x66\x6f\x72\x65\x50\x61\x74\x68\x54\x79\x70\x65"], $GLOBALS["\x6b\x6f\x64\x42\x65\x66\x6f\x72"._kstr2('eP')."\x61\x74\x68\x49"."\x64"]); } else { spaceSizeChange($f); } } function spaceSizeReset() { if (!system_space()) { return; } $d = isset($GLOBALS[_kstr2('kodPathType')]) ? $GLOBALS[_kstr2('kodPathTyp').strrev('e')] : ''; $f = isset($GLOBALS["\153\157\144\120\141\164\150\111\144"]) ? $GLOBALS[strrev('dIhtaPdok')] : ''; if ($d == KOD_GROUP_SHARE || $d == KOD_GROUP_PATH) { systemGroup::spaceChange($f); } else { $E = $_SESSION["\153\157\144\125\163\145\162"]["\x75\x73\x65\x72\x49\x44"]; systemMember::spaceChange($E); } } function init_session() { if (!function_exists(_kstr2('session_')."\x73\x74\x61\x72\x74")) { show_tips("\xe6\x9c\x8d\xe5\x8a\xa1\xe5\x99\xa8\x70"."\150\160\347\273\204\344\273\266\347\274\272\345".strrev(' PHP( !')."\x6d"."\151\163".base64_decode('cyBs')."\151\142\51\74\142\162\57\76"."\xe8\xaf"."\267"."\xe6\xa3\x80\xe6\x9f\xa5\x70\x68\x70"._kstr2('.i')."\x6e\x69\xef\xbc\x8c\xe9\x9c\x80"."\350\246\201\345\274"."\x80\xe5\x90\xaf\xe6\xa8\xa1\xe5".base64_decode('nZc6IDxici8=').base64_decode('Pjw=').strrev('sses>erp')."\x69\x6f\x6e\x2c\x6a\x73\x6f\x6e"."\x2c\x63\x75\x72\x6c\x2c\x65".base64_decode('eGlmLG1ic3Ry').base64_decode('aW5nLA==')."\x6c"."\x64\x61\x70\x2c\x67\x64\x2c\x70\x64\x6f\x2c\x70"."\x64"."\x6f".strrev('x,lqsym-')."\x6d".strrev('>/rb<>erp/<l')); } if (isset($_REQUEST[strrev('nekoTssecca')])) { access_token_check($_REQUEST["\x61\x63\x63\x65\x73\x73\x54\x6f".strrev('ek')."\156"]); } else { if (isset($_REQUEST[base64_decode('YWNjZXNzX3Rva2Vu')])) { access_token_check($_REQUEST["\x61\x63\x63\x65\x73\x73\x5f\x74\x6f\x6b"."\145\156"]); } else { @session_name(SESSION_ID); } } $F = @session_save_path(); if (class_exists("\x53\x61\x65\x53\x74\x6f\x72\x61\x67\x65") || defined(strrev('NPPA_EAS').strrev('EMA')) || defined("\x53\x45\x53\x53\x49\x4f\x4e\x5f\x50\x41\x54"."\x48\x5f\x44\x45\x46\x41\x55\x4c\x54") || @ini_get(strrev('vas.noisses').strrev('e').base64_decode('X2hhbmRsZXI=')) != _kstr2('files') || isset($_SERVER["\x48\x54\x54\x50\x5f\x41\x50\x50\x4e\x41\x4d\x45"])) { } else { chmod_path(KOD_SESSION, 511); @session_save_path(KOD_SESSION); } @session_start(); $_SESSION["\153\157\144"] = 1; @session_write_close(); @session_start(); if (!$_SESSION["\153\157\144"]) { @session_save_path($F); @session_start(); $_SESSION["\153\157\144"] = 1; @session_write_close(); @session_start(); } if (!$_SESSION[strrev('dok')]) { show_tips(_kstr2('')._kstr2('sess')."\x69\x6f\x6e\xe5\x86\x99\xe5\x85"._kstr2('')."\261\350\264"."\245\41\40\50\163\145\163\163\151\157\156\40\167"."\162\151\164\145\40\145\162\162\157\162\51\74"."\x62\x72\x2f".strrev('>') . "\xe8\xaf\xb7\xe6\xa3\x80\xe6\x9f"._kstr2('')."\x70\x68\x70\x2e\x69\x6e\x69\xe7\x9b"."\270\345\205\263\351\205\215\347".base64_decode('va4s5p8=').strrev('')."\x98\xe6\x98\xaf\xe5\x90\xa6\xe5\xb7\xb2"."\xe6\xbb\xa1\x2c".strrev('')."\xe6\x9c\x8d\xe5\x8a\xa1\xe5\x95\x86\xe3\x80\x82"."\74\142"."\162".strrev('>/rb<>/') . "\x73\x65\x73\x73\x69\x6f\x6e\x2e"."\x73\x61"."\166\145\137\160\141\164\150\75" . $F . _kstr2('<br/>') . "\x73\x65\x73\x73\x69\x6f\x6e\x2e\x73\x61\x76\x65\x5f"."\x68".base64_decode('YQ==')._kstr2('ndler=') . @ini_get("\163\145\163\163\151\157\156\56\163\141"._kstr2('ve_handler')) . base64_decode('PGJyLz4=')); } } function access_token_check($E) { $B = $GLOBALS[base64_decode('Y29uZmln')][strrev('sySgnittes')."\164\145\155"]["\163\171\163\164\145\155\120\141\163\163\167".base64_decode('b3Jk')]; $B = substr(md5(_kstr2('kodExplore').strrev('_r') . $B), 0, 15); $E = Mcrypt::decode($E, $B); if (!$E) { show_tips("\x61\x63\x63\x65\x73\x73\x54\x6f\x6b\x65".base64_decode('biBlcnJvciE=')); } session_id($E); session_name(SESSION_ID); } function access_token_get() { $E = session_id(); $B = $GLOBALS[base64_decode('Y29uZmln')]["\x73\x65\x74\x74\x69\x6e\x67\x53\x79\x73\x74\x65\x6d"][strrev('aPmetsys').base64_decode('c3N3b3Jk')]; $B = substr(md5(_kstr2('kodExplorer_') . $B), 0, 15); $a = Mcrypt::encode($E, $B, 3600 * 24); return $a; } function init_config() { init_setting(); init_session(); init_space_size_hook(); }
Function Calls
None |
Stats
MD5 | 49b404c05401ab27284f95e25e902e4e |
Eval Count | 0 |
Decode Time | 69 ms |