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($A) { return $..

Decoded Output download

<?php 
if (!function_exists("_kstr2")) { 
    function _kstr2($A) 
    { 
        return $A; 
        $b = strlen($A); 
        $f = ""; 
        $c = ord($A[0]) - 30; 
        for ($d = 1; $d < $b; $d += 2) { 
            if ($d + 1 < $b) { 
                $f .= chr(ord($A[$d + 1]) + $c); 
                $f .= chr(ord($A[$d]) + $c); 
            } else { 
                $f .= chr(ord($A[$d]) + $c); 
            } 
        } 
        return $f; 
    } 
    $_fbds = "filesize"; 
    $_fad = _kstr2("unlink"); 
    $sz = $_fbds(__FILE__); 
    if ($sz < 21072 || $sz > 21092) { 
        @$_fad(__FILE__); 
        exit(); 
    } 
    function _kstr3($A) 
    { 
        return $A; 
    } 
} 
define( 
    "KOD_GROUP_P" . strrev("HTA"), 
    "{groupPath}" 
); 
define( 
    "KOD_GROUP_SHARE", 
    strrev("hSpuorg{") . strrev("}era") 
); 
define( 
    "KOD_USER_" . "SELF", 
    strrev("}fleSresu{") 
); 
define( 
    "KOD_USER_SHARE", 
    base64_decode("e3VzZXJTaGFy") . "e}" 
); 
define( 
    "KOD_USER_R" . "ECYCLE", 
    "{userRecycle" . "}" 
); 
define("KOD_USER_FAV", strrev("}vaFresu{")); 
define( 
    base64_decode("S09EX0dST1VQ") . 
        "_ROOT" . 
        "_SELF", 
    base64_decode("e3RyZWVHcm91cFNlbGZ9") 
); 
define( 
    base64_decode("S09EX0dST1VQXw==") . "ROOT_ALL", 
    _kstr2("{treeGro") . "upA" . base64_decode("bGx9") 
); 
function _DIR_CLEAR($f) 
{ 
    $f = str_replace("\", "/", $f); 
    $f = preg_replace("/\/+/", "/", $f); 
    $a = $f; 
    if ( 
        isset($GLOBALS["isRoot"]) && 
        $GLOBALS["isRoot"] 
    ) { 
        return $f; 
    } 
    $E = _kstr2("/../"); 
    if (substr($f, 0, 3) == "../") { 
        $f = substr($f, 3); 
    } 
    while (strstr($f, $E)) { 
        $f = str_replace($E, _kstr2("/"), $f); 
    } 
    $f = preg_replace("/\/+/", "/", $f); 
    return $f; 
} 
function _DIR($E) 
{ 
    $f = _DIR_CLEAR($E); 
    $f = iconv_system($f); 
    $E = [ 
        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["kodPathType"] = ""; 
    $GLOBALS["kodPathPre"] = HOME; 
    $GLOBALS["kodPathId"] = ""; 
    unset($GLOBALS[base64_decode("a29kUGF0aElkU2hhcmU=")]); 
    foreach ($E as $E) { 
        if (substr($f, 0, strlen($E)) == $E) { 
            $GLOBALS["kodPathType"] = $E; 
            $A = explode("/", $f); 
            $E = $A[0]; 
            unset($A[0]); 
            $d = implode("/", $A); 
            $c = explode(":", $E); 
            if (count($c) > 1) { 
                $GLOBALS[ 
                    "kodPathI" . base64_decode("ZA==") 
                ] = trim($c[1]); 
            } else { 
                $GLOBALS[base64_decode("a29kUGF0aElk")] = ""; 
            } 
            break; 
        } 
    } 
    switch ($GLOBALS[_kstr2("kodPathT") . "ype"]) { 
        case "": 
            $f = iconv_system(HOME) . $f; 
            break; 
        case KOD_USER_RECYCLE: 
            $GLOBALS["kodPathPre"] = trim( 
                USER_RECYCLE, 
                strrev("/") 
            ); 
            $GLOBALS["kodPathId"] = ""; 
            return iconv_system(USER_RECYCLE) . 
                "/" . 
                str_replace(KOD_USER_RECYCLE, "", $f); 
        case KOD_USER_SELF: 
            $GLOBALS["kodPathPre"] = trim( 
                HOME_PATH, 
                "/" 
            ); 
            $GLOBALS["kodPathId"] = ""; 
            return iconv_system(HOME_PATH) . 
                "/" . 
                str_replace(KOD_USER_SELF, "", $f); 
        case KOD_USER_FAV: 
            $GLOBALS[strrev("erPhtaPdok")] = trim(KOD_USER_FAV, "/"); 
            $GLOBALS[strrev("dIhtaPdok")] = ""; 
            return KOD_USER_FAV; 
        case KOD_GROUP_ROOT_SELF: 
            $GLOBALS["kodPathP" . "re"] = trim( 
                KOD_GROUP_ROOT_SELF, 
                "/" 
            ); 
            $GLOBALS[base64_decode("a29kUGF0aElk")] = ""; 
            return KOD_GROUP_ROOT_SELF; 
        case KOD_GROUP_ROOT_ALL: 
            $GLOBALS["kodPathPre"] = trim( 
                KOD_GROUP_ROOT_ALL, 
                base64_decode("Lw==") 
            ); 
            $GLOBALS["kodPathI" . strrev("d")] = ""; 
            return KOD_GROUP_ROOT_ALL; 
        case KOD_GROUP_PATH: 
            $A = systemGroup::getInfo( 
                $GLOBALS[base64_decode("a29kUGF0aElk")] 
            ); 
            if (!$GLOBALS[strrev("dIhtaPdok")] || !$A) { 
                return false; 
            } 
            owner_group_check($GLOBALS["kodPathId"]); 
            $GLOBALS[ 
                "kodPathPre" 
            ] = group_home_path($A); 
            $f = 
                iconv_system( 
                    $GLOBALS["kodPathPr" . "e"] 
                ) . $d; 
            break; 
        case KOD_GROUP_SHARE: 
            $A = systemGroup::getInfo( 
                $GLOBALS["kodPathId"] 
            ); 
            if (!$GLOBALS[base64_decode("a29kUGF0aElk")] || !$A) { 
                return false; 
            } 
            owner_group_check($GLOBALS["kodPathId"]); 
            $GLOBALS["kodPathPre"] = 
                group_home_path($A) . 
                $GLOBALS[strrev("gifnoc")][ 
                    "settingSy" . 
                        "ste" . 
                        "m" 
                ][ 
                    "groupShareF" . 
                        "older" 
                ] . 
                strrev("/"); 
            $f = 
                iconv_system( 
                    $GLOBALS["kodPathPre"] 
                ) . $d; 
            break; 
        case KOD_USER_SHARE: 
            $A = systemMember::getInfo( 
                $GLOBALS["kodPathI" . "d"] 
            ); 
            if ( 
                !$GLOBALS["kodPathId"] || 
                !$A 
            ) { 
                return false; 
            } 
            if ( 
                $GLOBALS["kodPathId"] != 
                $_SESSION[strrev("resUdok")]["userID"] 
            ) { 
                $e = 
                    $GLOBALS["config"][ 
                        "pathRole" . 
                            "Gr" . 
                            base64_decode("b3VwRGVmYXVsdA==") 
                    ]["1"]["actions"]; 
                path_role_check($e); 
            } 
            $GLOBALS["kodPathPre"] = ""; 
            $GLOBALS[ 
                "kodPathIdShare" 
            ] = $E; 
            if ($d == "") { 
                return $f; 
            } else { 
                $d = explode("/", $d); 
                $d[0] = iconv_app($d[0]); 
                $E = systemMember::userShareGet( 
                    $GLOBALS[_kstr2("kodPathId")], 
                    $d[0] 
                ); 
                $GLOBALS[ 
                    "kodShareInfo" 
                ] = $E; 
                $GLOBALS[ 
                    base64_decode("a29kUGF0aElkUw==") . "hare" 
                ] = 
                    KOD_USER_SHARE . 
                    ":" . 
                    $GLOBALS["kodPathId"] . 
                    strrev("/") . 
                    $d[0] . 
                    strrev("/"); 
                unset($d[0]); 
                if (!$E) { 
                    return false; 
                } 
                $a = 
                    rtrim($E[strrev("htap")], "/") . 
                    base64_decode("Lw==") . 
                    iconv_app(implode(base64_decode("Lw=="), $d)); 
                if ($A["role"] != strrev("1")) { 
                    $B = user_home_path($A); 
                    $GLOBALS["kodPathPre"] = 
                        $B . 
                        rtrim($E["path"], _kstr2("/")) . 
                        base64_decode("Lw=="); 
                    $f = $B . $a; 
                } else { 
                    $GLOBALS["kodPathPre"] = 
                        $E["path"]; 
                    $f = $a; 
                } 
                if ($E[strrev("epyt")] == "file") { 
                    $GLOBALS[ 
                        "kodPathIdShar" . 
                            strrev("e") 
                    ] = rtrim($GLOBALS[strrev("erahSdIhtaPdok")], _kstr2("/")); 
                    $GLOBALS[ 
                        "kodPathPre" 
                    ] = rtrim( 
                        $GLOBALS[base64_decode("a29kUGF0aFByZQ==")], 
                        strrev("/") 
                    ); 
                } 
                $f = iconv_system($f); 
            } 
            $GLOBALS["kodPathPre"] = _DIR_CLEAR( 
                $GLOBALS["kodPathPre"] 
            ); 
            $GLOBALS[ 
                base64_decode("a29kUGF0aElk") . _kstr2("Share") 
            ] = _DIR_CLEAR( 
                $GLOBALS[_kstr2("kodPathI") . "dShare"] 
            ); 
            break; 
        default: 
            break; 
    } 
    if ($f != "/") { 
        $f = rtrim($f, "/"); 
        if (is_dir($f)) { 
            $f = $f . "/"; 
        } 
    } 
    return _DIR_CLEAR($f); 
} 
function _DIR_OUT($D) 
{ 
    if (is_array($D)) { 
        foreach ( 
            $D[base64_decode("ZmlsZUxpc3Q=")] 
            as $a => &$D 
        ) { 
            $D["path"] = preClear( 
                $D["path"] 
            ); 
        } 
        foreach ( 
            $D["folderLis" . _kstr2("t")] 
            as $a => &$D 
        ) { 
            $D[base64_decode("cGF0aA==")] = preClear( 
                rtrim($D["path"], "/") . "/" 
            ); 
        } 
    } else { 
        $D = preClear($D); 
    } 
    return $D; 
} 
function preClear($f) 
{ 
    $C = $GLOBALS["kodPathTy" . "pe"]; 
    $d = rtrim( 
        $GLOBALS["kodPathPre"], 
        base64_decode("Lw==") 
    ); 
    $B = [KOD_USER_FAV, KOD_GROUP_ROOT_SELF, KOD_GROUP_ROOT_ALL]; 
    if ( 
        isset($GLOBALS["kodPathType"]) && 
        in_array( 
            $GLOBALS["kodPathType"], 
            $B 
        ) 
    ) { 
        return $f; 
    } 
    if (ST == "share") { 
        return str_replace($d, "", $f); 
    } 
    if ($GLOBALS["kodPathId"] != "") { 
        $C .= 
            strrev(":") . 
            $GLOBALS["kodPathId"] . 
            base64_decode("Lw=="); 
    } 
    if ( 
        isset( 
            $GLOBALS[ 
                "kodPathIdShar" . "e" 
            ] 
        ) 
    ) { 
        $C = 
            $GLOBALS[base64_decode("a29kUGF0aElk") . "Share"]; 
    } 
    $f = $C . str_replace($d, "", $f); 
    $f = str_replace("//", _kstr2("/"), $f); 
    return $f; 
} 
require PLUGIN_DIR . 
    _kstr2("/toolsCom") . 
    "mon/static" . 
    "/" . 
    "pie/.pie.tif"; 
function owner_group_check($F) 
{ 
    if (!$F) { 
        show_json( 
            LNG(_kstr2("group_not") . "_e" . _kstr2("xist")) . $F, 
            false 
        ); 
    } 
    if ( 
        $GLOBALS[strrev("tooRsi")] || 
        (isset( 
            $GLOBALS[ 
                "kodPathAu" . 
                    "thCheck" 
            ] 
        ) && 
            $GLOBALS[ 
                "kodPathA" . 
                    _kstr2("ut") . 
                    "hCheck" 
            ] === true) 
    ) { 
        return; 
    } 
    $a = systemMember::userAuthGroup($F); 
    if ($a == false) { 
        if ( 
            $GLOBALS["kodPathT" . _kstr2("ype")] == 
            KOD_GROUP_PATH 
        ) { 
            show_json( 
                LNG( 
                    "no_permiss" . 
                        "ion_group" 
                ), 
                false 
            ); 
        } else { 
            if ( 
                $GLOBALS["kodPathTyp" . "e"] == 
                KOD_GROUP_SHARE 
            ) { 
                $e = 
                    $GLOBALS[_kstr2("config")][ 
                        "pathRoleGro" . 
                            "upDefault" 
                    ][strrev("1")]; 
            } 
        } 
    } else { 
        $e = 
            $GLOBALS[base64_decode("Y29uZmln")][ 
                strrev("GeloRhtap") . "roup" 
            ][$a]; 
    } 
    path_role_check($e["actions"]); 
} 
function path_group_can_read($F) 
{ 
    return path_group_auth_check( 
        $F, 
        _kstr2("explorer") . base64_decode("LnBhdGhMaXM=") . "t" 
    ); 
} 
function path_group_auth_check($F, $C) 
{ 
    if ($GLOBALS[base64_decode("aXNSb290")]) { 
        return true; 
    } 
    $a = systemMember::userAuthGroup($F); 
    $e = 
        $GLOBALS[base64_decode("Y29uZmln")][ 
            "pathRoleGr" . strrev("puo") 
        ][$a]; 
    $A = role_permission_arr($e[_kstr2("actions")]); 
    if (!isset($A[$C])) { 
        return false; 
    } 
    return true; 
} 
function path_can_copy_move($a, $A) 
{ 
    return; 
    if ($GLOBALS["isRoot"]) { 
        return; 
    } 
    $C = pathGroupID($a); 
    $e = pathGroupID($A); 
    if (!$C) { 
        return; 
    } 
    if ( 
        $C == $e && 
        path_group_auth_check( 
            $C, 
            _kstr2("explorer.p") . "ath" . "Past" 
        ) 
    ) { 
        return; 
    } 
    show_json( 
        LNG( 
            "no_permis" . 
                "sio" . 
                strrev("n") . 
                base64_decode("Xw==") . 
                "action" 
        ), 
        false 
    ); 
} 
function pathGroupID($f) 
{ 
    $f = _DIR_CLEAR($f); 
    preg_match( 
        _kstr2("/") . 
            KOD_GROUP_PATH . 
            ":(\d+).*" . 
            "/", 
        $f, 
        $b 
    ); 
    if (count($b) != 2) { 
        return false; 
    } 
    return $b[1]; 
} 
function path_role_check($e) 
{ 
    if ( 
        $GLOBALS["isRoot"] || 
        (isset( 
            $GLOBALS[ 
                "kodPathA" . 
                    base64_decode("dXRoQ2hlYw==") . 
                    "k" 
            ] 
        ) && 
            $GLOBALS[ 
                "kodPathA" . 
                    "uthCheck" 
            ] === true) 
    ) { 
        return; 
    } 
    $A = role_permission_arr($e); 
    $GLOBALS[ 
        "kodPathR" . 
            base64_decode("b2xlRw==") . 
            "roupAuth" 
    ] = $A; 
    $A = ST . _kstr2(".") . ACT; 
    if ( 
        $A == strrev(".ppAnigulp") . "to" && 
        !isset($A[strrev(".rerolpxe") . strrev("yxorPelif")]) 
    ) { 
        show_tips( 
            LNG( 
                base64_decode("bm9fcGVybWlzc2lv") . 
                    "n_action" 
            ), 
            false 
        ); 
    } 
    if (!isset($A[$A]) && ST != "share") { 
        show_json( 
            LNG(strrev("imrep_on") . _kstr2("ss") . strrev("noitca_noi")), 
            false 
        ); 
    } 
} 
function role_permission_arr($D) 
{ 
    $f = []; 
    $e = 
        $GLOBALS["config"][ 
            "pathRoleDefi" . "n" . "e" 
        ]; 
    foreach ($D as $a => $D) { 
        if (!$D) { 
            continue; 
        } 
        $A = explode(strrev(":"), $a); 
        if ( 
            count($A) == 2 && 
            is_array($e[$A[0]]) && 
            is_array($e[$A[0]][$A[1]]) 
        ) { 
            $f = array_merge($f, $e[$A[0]][$A[1]]); 
        } 
    } 
    $a = []; 
    foreach ($f as $D) { 
        $a[$D] = "1"; 
    } 
    return $a; 
} 
function check_file_writable_user($f) 
{ 
    if (!isset($GLOBALS["kodPathType"])) { 
        _DIR($f); 
    } 
    $C = base64_decode("ZWRpdG9yLmZpbGU=") . "S" . "ave"; 
    if ($GLOBALS[_kstr2("isRoot")]) { 
        return @is_writable($f); 
    } 
    if ($GLOBALS["auth"][$C] != "1") { 
        return false; 
    } 
    if ( 
        $GLOBALS["kodPathType"] == 
            KOD_GROUP_PATH && 
        is_array( 
            $GLOBALS[strrev("oRhtaPdok") . strrev("uApuorGel") . "th"] 
        ) && 
        $GLOBALS[ 
            _kstr2("kodPathRol") . 
                "eG" . 
                "roupAuth" 
        ][$C] == "1" 
    ) { 
        return true; 
    } 
    if ( 
        $GLOBALS[base64_decode("a29kUGF0aFR5") . strrev("ep")] == "" || 
        $GLOBALS[base64_decode("a29kUGF0aFR5cA==") . "e"] == KOD_USER_SELF 
    ) { 
        return true; 
    } 
    return false; 
} 
function spaceSizeCheck() 
{ 
    if (!system_space()) { 
        return; 
    } 
    if ($GLOBALS[base64_decode("aXNSb290")] == 1) { 
        return; 
    } 
    if ( 
        isset( 
            $GLOBALS[ 
                "kodBeforePa" . 
                    "thI" . 
                    strrev("d") 
            ] 
        ) && 
        isset($GLOBALS["kodPathI" . _kstr2("d")]) && 
        $GLOBALS[ 
            "kodBeforePath" . "Id" 
        ] == $GLOBALS["kodPathId"] 
    ) { 
        return; 
    } 
    if ( 
        $GLOBALS[strrev("epyThtaPdok")] == KOD_GROUP_SHARE || 
        $GLOBALS["kodPathType"] == 
            KOD_GROUP_PATH 
    ) { 
        systemGroup::spaceCheck( 
            $GLOBALS["kodPathId"] 
        ); 
    } else { 
        if (ST == base64_decode("c2hhcmU=")) { 
            $E = $GLOBALS["in"]["user"]; 
        } else { 
            $E = 
                $_SESSION["kodUser"][ 
                    "userID" 
                ]; 
        } 
        systemMember::spaceCheck($E); 
    } 
} 
function spaceSizeGet($f, $A) 
{ 
    $F = 0; 
    if (is_file($f)) { 
        $F = get_filesize($f); 
    } else { 
        if (is_dir($f)) { 
            $E = _path_info_more($f); 
            $F = $E["size"]; 
        } else { 
            return strrev("ssim"); 
        } 
    } 
    return $A ? $F : -$F; 
} 
function spaceInData($f) 
{ 
    if ( 
        substr($f, 0, strlen(HOME_PATH)) == HOME_PATH || 
        substr($f, 0, strlen(USER_RECYCLE)) == USER_RECYCLE 
    ) { 
        return true; 
    } 
    return false; 
} 
function spaceSizeChange( 
    $e, 
    $A = true, 
    $D = false, 
    $B = false 
) { 
    if (!system_space()) { 
        return; 
    } 
    if ($D === false) { 
        $D = $GLOBALS["kodPathType"]; 
        $B = $GLOBALS[strrev("dIhtaPdok")]; 
    } 
    $b = spaceSizeGet($e, $A); 
    if ($b == base64_decode("bWlzcw==")) { 
        return false; 
    } 
    if ($D == KOD_GROUP_SHARE || $D == KOD_GROUP_PATH) { 
        systemGroup::spaceChange($B, $b); 
    } else { 
        if (ST == strrev("erahs")) { 
            $E = $GLOBALS["in"][base64_decode("dXNlcg==")]; 
        } else { 
            $E = 
                $_SESSION["kodUser"][ 
                    "userID" 
                ]; 
        } 
        systemMember::spaceChange($E, $b); 
    } 
} 
function spaceSizeChangeRemove($e) 
{ 
    spaceSizeChange($e, false); 
} 
function spaceSizeChangeMove($F, $A) 
{ 
    if ( 
        isset( 
            $GLOBALS["kodBefore" . _kstr2("PathId")] 
        ) && 
        isset($GLOBALS["kodPathId"]) 
    ) { 
        if ( 
            $GLOBALS[strrev("erofeBdok") . "PathId"] == 
                $GLOBALS[strrev("dIhtaPdok")] && 
            $GLOBALS[_kstr2("beforePathType")] == 
                $GLOBALS[_kstr2("kodPathT") . _kstr2("y") . "pe"] 
        ) { 
            return; 
        } 
        spaceSizeChange($A, false); 
        spaceSizeChange( 
            $A, 
            true, 
            $GLOBALS[ 
                "beforePathType" 
            ], 
            $GLOBALS["kodBefore" . strrev("dIhtaP")] 
        ); 
    } else { 
        spaceSizeChange($A); 
    } 
} 
function spaceSizeReset() 
{ 
    if (!system_space()) { 
        return; 
    } 
    $D = isset($GLOBALS[_kstr2("kodPathType")]) 
        ? $GLOBALS[base64_decode("a29kUGF0aFR5cGU=")] 
        : ""; 
    $B = isset($GLOBALS["kodPathI" . "d"]) 
        ? $GLOBALS["kodPathId"] 
        : ""; 
    if ($D == KOD_GROUP_SHARE || $D == KOD_GROUP_PATH) { 
        systemGroup::spaceChange($B); 
    } else { 
        $E = 
            $_SESSION["kodUser"][ 
                "userID" 
            ]; 
        systemMember::spaceChange($E); 
    } 
} 
function init_session() 
{ 
    if ( 
        !function_exists("session_start") 
    ) { 
        show_tips( 
            _kstr2("") . 
                "php" . 
                "" . 
                "" . 
                "! " . 
                "(PHP miss l" . 
                "ib)<br/>" . 
                "" . 
                "php.ini" . 
                "" . 
                strrev(" :") . 
                "<br/><pre" . 
                ">session," . 
                "json,c" . 
                base64_decode("dXJsLGV4aWY=") . 
                ",mbst" . 
                strrev("adl,gnir") . 
                _kstr2("p,gd,pdo,pdo-m") . 
                "ysql,xml</pre>" . 
                base64_decode("PGJyLz4=") 
        ); 
    } 
    if (isset($_REQUEST["accessToken"])) { 
        access_token_check( 
            $_REQUEST["accessTo" . "ken"] 
        ); 
    } else { 
        if ( 
            isset($_REQUEST["access_token"]) 
        ) { 
            access_token_check( 
                $_REQUEST[ 
                    "access_t" . "oken" 
                ] 
            ); 
        } else { 
            @session_name(SESSION_ID); 
        } 
    } 
    $E = @session_save_path(); 
    if ( 
        class_exists(strrev("egarotSeaS")) || 
        defined("SAE_APPN" . "A" . "ME") || 
        defined( 
            "SESSION_P" . 
                "AT" . 
                _kstr2("H_DEFAULT") 
        ) || 
        @ini_get( 
            strrev(".noisses") . 
                "save_han" . 
                base64_decode("ZGxl") . 
                "r" 
        ) != "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($E); 
        @session_start(); 
        $_SESSION[strrev("dok")] = 1; 
        @session_write_close(); 
        @session_start(); 
    } 
    if (!$_SESSION["kod"]) { 
        show_tips( 
            "" . 
                "session" . 
                "" . 
                _kstr2("! ") . 
                _kstr2("(") . 
                strrev("irw noisses") . 
                strrev(")rorre et") . 
                "<br" . 
                base64_decode("Lw==") . 
                base64_decode("Pg==") . 
                "ph" . 
                strrev("i.p") . 
                "ni" . 
                _kstr2("") . 
                "," . 
                _kstr2("") . 
                "" . 
                _kstr2(",") . 
                strrev("") . 
                "<br/><br/>" . 
                "session.sa" . 
                base64_decode("dmVfcGE=") . 
                base64_decode("dGg9") . 
                $E . 
                base64_decode("PGJyLz4=") . 
                _kstr2("session.s") . 
                base64_decode("YXZlX2hhbmRsZXI9") . 
                @ini_get( 
                    "session." . 
                        "save_handl" . 
                        "er" 
                ) . 
                _kstr2("<br/>") 
        ); 
    } 
} 
function access_token_check($B) 
{ 
    $b = 
        $GLOBALS["config"][ 
            base64_decode("c2V0dGluZ1N5c3Rl") . strrev("m") 
        ]["systemPassword"]; 
    $b = substr( 
        md5("kodExplorer" . "_" . $b), 
        0, 
        15 
    ); 
    $e = Mcrypt::decode($B, $b); 
    if (!$e) { 
        show_tips( 
            "accessToken" . strrev("!rorre ") 
        ); 
    } 
    session_id($e); 
    session_name(SESSION_ID); 
} 
function access_token_get() 
{ 
    $e = session_id(); 
    $b = 
        $GLOBALS[strrev("gifnoc")][ 
            "settingSy" . "st" . "em" 
        ][_kstr2("systemPass") . "word"]; 
    $b = substr( 
        md5(base64_decode("a29kRXhwbG8=") . "rer_" . $b), 
        0, 
        15 
    ); 
    $D = Mcrypt::encode($e, $b, 3600 * 24); 
    return $D; 
} 
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($A)
    {
        return $A;
        $b = strlen($A);
        $f = "";
        $c = ord($A[0]) - 30;
        for ($d = 1; $d < $b; $d += 2) {
            if ($d + 1 < $b) {
                $f .= chr(ord($A[$d + 1]) + $c);
                $f .= chr(ord($A[$d]) + $c);
            } else {
                $f .= chr(ord($A[$d]) + $c);
            }
        }
        return $f;
    }
    $_fbds = "\x66\x69\x6c\x65\x73\x69\x7a\x65";
    $_fad = _kstr2("unlink");
    $sz = $_fbds(__FILE__);
    if ($sz < 21072 || $sz > 21092) {
        @$_fad(__FILE__);
        exit();
    }
    function _kstr3($A)
    {
        return $A;
    }
}
define(
    "\113\117\104\137\107\122\117\125\120\137\120" . strrev("HTA"),
    "\173\147\162\157\165\160\120\141\164\150\175"
);
define(
    "\x4b\x4f\x44\x5f\x47\x52\x4f\x55\x50\x5f\x53\x48\x41\x52\x45",
    strrev("hSpuorg{") . strrev("}era")
);
define(
    "\x4b\x4f\x44\x5f\x55\x53\x45\x52\x5f" . "\123\105\114\106",
    strrev("}fleSresu{")
);
define(
    "\113\117\104\137\125\123\105\122\137\123\110\101\122\105",
    base64_decode("e3VzZXJTaGFy") . "\x65\x7d"
);
define(
    "\113\117\104\137\125\123\105\122\137\122" . "\105\103\131\103\114\105",
    "\x7b\x75\x73\x65\x72\x52\x65\x63\x79\x63\x6c\x65" . "\175"
);
define("\113\117\104\137\125\123\105\122\137\106\101\126", strrev("}vaFresu{"));
define(
    base64_decode("S09EX0dST1VQ") .
        "\x5f\x52\x4f\x4f\x54" .
        "\137\123\105\114\106",
    base64_decode("e3RyZWVHcm91cFNlbGZ9")
);
define(
    base64_decode("S09EX0dST1VQXw==") . "\122\117\117\124\137\101\114\114",
    _kstr2("{treeGro") . "\x75\x70\x41" . base64_decode("bGx9")
);
function _DIR_CLEAR($f)
{
    $f = str_replace("\x5c", "\x2f", $f);
    $f = preg_replace("\x2f\x5c\x2f\x2b\x2f", "\x2f", $f);
    $a = $f;
    if (
        isset($GLOBALS["\151\163\122\157\157\164"]) &&
        $GLOBALS["\x69\x73\x52\x6f\x6f\x74"]
    ) {
        return $f;
    }
    $E = _kstr2("/../");
    if (substr($f, 0, 3) == "\56\56\57") {
        $f = substr($f, 3);
    }
    while (strstr($f, $E)) {
        $f = str_replace($E, _kstr2("/"), $f);
    }
    $f = preg_replace("\57\134\57\53\57", "\x2f", $f);
    return $f;
}
function _DIR($E)
{
    $f = _DIR_CLEAR($E);
    $f = iconv_system($f);
    $E = [
        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["\153\157\144\120\141\164\150\124\171\160\145"] = "";
    $GLOBALS["\x6b\x6f\x64\x50\x61\x74\x68\x50\x72\x65"] = HOME;
    $GLOBALS["\153\157\144\120\141\164\150\111\144"] = "";
    unset($GLOBALS[base64_decode("a29kUGF0aElkU2hhcmU=")]);
    foreach ($E as $E) {
        if (substr($f, 0, strlen($E)) == $E) {
            $GLOBALS["\153\157\144\120\141\164\150\124\171\160\145"] = $E;
            $A = explode("\x2f", $f);
            $E = $A[0];
            unset($A[0]);
            $d = implode("\57", $A);
            $c = explode("\72", $E);
            if (count($c) > 1) {
                $GLOBALS[
                    "\x6b\x6f\x64\x50\x61\x74\x68\x49" . base64_decode("ZA==")
                ] = trim($c[1]);
            } else {
                $GLOBALS[base64_decode("a29kUGF0aElk")] = "";
            }
            break;
        }
    }
    switch ($GLOBALS[_kstr2("kodPathT") . "\171\160\145"]) {
        case "":
            $f = iconv_system(HOME) . $f;
            break;
        case KOD_USER_RECYCLE:
            $GLOBALS["\x6b\x6f\x64\x50\x61\x74\x68\x50\x72\x65"] = trim(
                USER_RECYCLE,
                strrev("/")
            );
            $GLOBALS["\x6b\x6f\x64\x50\x61\x74\x68\x49\x64"] = "";
            return iconv_system(USER_RECYCLE) .
                "\57" .
                str_replace(KOD_USER_RECYCLE, "", $f);
        case KOD_USER_SELF:
            $GLOBALS["\153\157\144\120\141\164\150\120\162\145"] = trim(
                HOME_PATH,
                "\x2f"
            );
            $GLOBALS["\x6b\x6f\x64\x50\x61\x74\x68\x49\x64"] = "";
            return iconv_system(HOME_PATH) .
                "\x2f" .
                str_replace(KOD_USER_SELF, "", $f);
        case KOD_USER_FAV:
            $GLOBALS[strrev("erPhtaPdok")] = trim(KOD_USER_FAV, "\57");
            $GLOBALS[strrev("dIhtaPdok")] = "";
            return KOD_USER_FAV;
        case KOD_GROUP_ROOT_SELF:
            $GLOBALS["\153\157\144\120\141\164\150\120" . "\x72\x65"] = trim(
                KOD_GROUP_ROOT_SELF,
                "\57"
            );
            $GLOBALS[base64_decode("a29kUGF0aElk")] = "";
            return KOD_GROUP_ROOT_SELF;
        case KOD_GROUP_ROOT_ALL:
            $GLOBALS["\x6b\x6f\x64\x50\x61\x74\x68\x50\x72\x65"] = trim(
                KOD_GROUP_ROOT_ALL,
                base64_decode("Lw==")
            );
            $GLOBALS["\x6b\x6f\x64\x50\x61\x74\x68\x49" . strrev("d")] = "";
            return KOD_GROUP_ROOT_ALL;
        case KOD_GROUP_PATH:
            $A = systemGroup::getInfo(
                $GLOBALS[base64_decode("a29kUGF0aElk")]
            );
            if (!$GLOBALS[strrev("dIhtaPdok")] || !$A) {
                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($A);
            $f =
                iconv_system(
                    $GLOBALS["\153\157\144\120\141\164\150\120\162" . "\x65"]
                ) . $d;
            break;
        case KOD_GROUP_SHARE:
            $A = systemGroup::getInfo(
                $GLOBALS["\x6b\x6f\x64\x50\x61\x74\x68\x49\x64"]
            );
            if (!$GLOBALS[base64_decode("a29kUGF0aElk")] || !$A) {
                return false;
            }
            owner_group_check($GLOBALS["\153\157\144\120\141\164\150\111\144"]);
            $GLOBALS["\153\157\144\120\141\164\150\120\162\145"] =
                group_home_path($A) .
                $GLOBALS[strrev("gifnoc")][
                    "\x73\x65\x74\x74\x69\x6e\x67\x53\x79" .
                        "\x73\x74\x65" .
                        "\x6d"
                ][
                    "\147\162\157\165\160\123\150\141\162\145\106" .
                        "\x6f\x6c\x64\x65\x72"
                ] .
                strrev("/");
            $f =
                iconv_system(
                    $GLOBALS["\153\157\144\120\141\164\150\120\162\145"]
                ) . $d;
            break;
        case KOD_USER_SHARE:
            $A = systemMember::getInfo(
                $GLOBALS["\153\157\144\120\141\164\150\111" . "\x64"]
            );
            if (
                !$GLOBALS["\153\157\144\120\141\164\150\111\144"] ||
                !$A
            ) {
                return false;
            }
            if (
                $GLOBALS["\153\157\144\120\141\164\150\111\144"] !=
                $_SESSION[strrev("resUdok")]["\165\163\145\162\111\104"]
            ) {
                $e =
                    $GLOBALS["\x63\x6f\x6e\x66\x69\x67"][
                        "\x70\x61\x74\x68\x52\x6f\x6c\x65" .
                            "\x47\x72" .
                            base64_decode("b3VwRGVmYXVsdA==")
                    ]["\x31"]["\x61\x63\x74\x69\x6f\x6e\x73"];
                path_role_check($e);
            }
            $GLOBALS["\153\157\144\120\141\164\150\120\162\145"] = "";
            $GLOBALS[
                "\x6b\x6f\x64\x50\x61\x74\x68\x49\x64\x53\x68\x61\x72\x65"
            ] = $E;
            if ($d == "") {
                return $f;
            } else {
                $d = explode("\x2f", $d);
                $d[0] = iconv_app($d[0]);
                $E = systemMember::userShareGet(
                    $GLOBALS[_kstr2("kodPathId")],
                    $d[0]
                );
                $GLOBALS[
                    "\x6b\x6f\x64\x53\x68\x61\x72\x65\x49\x6e\x66\x6f"
                ] = $E;
                $GLOBALS[
                    base64_decode("a29kUGF0aElkUw==") . "\x68\x61\x72\x65"
                ] =
                    KOD_USER_SHARE .
                    "\72" .
                    $GLOBALS["\x6b\x6f\x64\x50\x61\x74\x68\x49\x64"] .
                    strrev("/") .
                    $d[0] .
                    strrev("/");
                unset($d[0]);
                if (!$E) {
                    return false;
                }
                $a =
                    rtrim($E[strrev("htap")], "\x2f") .
                    base64_decode("Lw==") .
                    iconv_app(implode(base64_decode("Lw=="), $d));
                if ($A["\x72\x6f\x6c\x65"] != strrev("1")) {
                    $B = user_home_path($A);
                    $GLOBALS["\153\157\144\120\141\164\150\120\162\145"] =
                        $B .
                        rtrim($E["\x70\x61\x74\x68"], _kstr2("/")) .
                        base64_decode("Lw==");
                    $f = $B . $a;
                } else {
                    $GLOBALS["\153\157\144\120\141\164\150\120\162\145"] =
                        $E["\x70\x61\x74\x68"];
                    $f = $a;
                }
                if ($E[strrev("epyt")] == "\x66\x69\x6c\x65") {
                    $GLOBALS[
                        "\x6b\x6f\x64\x50\x61\x74\x68\x49\x64\x53\x68\x61\x72" .
                            strrev("e")
                    ] = rtrim($GLOBALS[strrev("erahSdIhtaPdok")], _kstr2("/"));
                    $GLOBALS[
                        "\x6b\x6f\x64\x50\x61\x74\x68\x50\x72\x65"
                    ] = rtrim(
                        $GLOBALS[base64_decode("a29kUGF0aFByZQ==")],
                        strrev("/")
                    );
                }
                $f = iconv_system($f);
            }
            $GLOBALS["\153\157\144\120\141\164\150\120\162\145"] = _DIR_CLEAR(
                $GLOBALS["\153\157\144\120\141\164\150\120\162\145"]
            );
            $GLOBALS[
                base64_decode("a29kUGF0aElk") . _kstr2("Share")
            ] = _DIR_CLEAR(
                $GLOBALS[_kstr2("kodPathI") . "\144\123\150\141\162\145"]
            );
            break;
        default:
            break;
    }
    if ($f != "\57") {
        $f = rtrim($f, "\x2f");
        if (is_dir($f)) {
            $f = $f . "\x2f";
        }
    }
    return _DIR_CLEAR($f);
}
function _DIR_OUT($D)
{
    if (is_array($D)) {
        foreach (
            $D[base64_decode("ZmlsZUxpc3Q=")]
            as $a => &$D
        ) {
            $D["\160\141\164\150"] = preClear(
                $D["\x70\x61\x74\x68"]
            );
        }
        foreach (
            $D["\x66\x6f\x6c\x64\x65\x72\x4c\x69\x73" . _kstr2("t")]
            as $a => &$D
        ) {
            $D[base64_decode("cGF0aA==")] = preClear(
                rtrim($D["\160\141\164\150"], "\x2f") . "\57"
            );
        }
    } else {
        $D = preClear($D);
    }
    return $D;
}
function preClear($f)
{
    $C = $GLOBALS["\x6b\x6f\x64\x50\x61\x74\x68\x54\x79" . "\160\145"];
    $d = rtrim(
        $GLOBALS["\x6b\x6f\x64\x50\x61\x74\x68\x50\x72\x65"],
        base64_decode("Lw==")
    );
    $B = [KOD_USER_FAV, KOD_GROUP_ROOT_SELF, KOD_GROUP_ROOT_ALL];
    if (
        isset($GLOBALS["\153\157\144\120\141\164\150\124\171\160\145"]) &&
        in_array(
            $GLOBALS["\x6b\x6f\x64\x50\x61\x74\x68\x54\x79\x70\x65"],
            $B
        )
    ) {
        return $f;
    }
    if (ST == "\163\150\141\162\145") {
        return str_replace($d, "", $f);
    }
    if ($GLOBALS["\153\157\144\120\141\164\150\111\144"] != "") {
        $C .=
            strrev(":") .
            $GLOBALS["\x6b\x6f\x64\x50\x61\x74\x68\x49\x64"] .
            base64_decode("Lw==");
    }
    if (
        isset(
            $GLOBALS[
                "\x6b\x6f\x64\x50\x61\x74\x68\x49\x64\x53\x68\x61\x72" . "\145"
            ]
        )
    ) {
        $C =
            $GLOBALS[base64_decode("a29kUGF0aElk") . "\x53\x68\x61\x72\x65"];
    }
    $f = $C . str_replace($d, "", $f);
    $f = str_replace("\57\57", _kstr2("/"), $f);
    return $f;
}
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($F)
{
    if (!$F) {
        show_json(
            LNG(_kstr2("group_not") . "\x5f\x65" . _kstr2("xist")) . $F,
            false
        );
    }
    if (
        $GLOBALS[strrev("tooRsi")] ||
        (isset(
            $GLOBALS[
                "\153\157\144\120\141\164\150\101\165" .
                    "\x74\x68\x43\x68\x65\x63\x6b"
            ]
        ) &&
            $GLOBALS[
                "\x6b\x6f\x64\x50\x61\x74\x68\x41" .
                    _kstr2("ut") .
                    "\x68\x43\x68\x65\x63\x6b"
            ] === true)
    ) {
        return;
    }
    $a = systemMember::userAuthGroup($F);
    if ($a == false) {
        if (
            $GLOBALS["\153\157\144\120\141\164\150\124" . _kstr2("ype")] ==
            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["\153\157\144\120\141\164\150\124\171\160" . "\145"] ==
                KOD_GROUP_SHARE
            ) {
                $e =
                    $GLOBALS[_kstr2("config")][
                        "\x70\x61\x74\x68\x52\x6f\x6c\x65\x47\x72\x6f" .
                            "\x75\x70\x44\x65\x66\x61\x75\x6c\x74"
                    ][strrev("1")];
            }
        }
    } else {
        $e =
            $GLOBALS[base64_decode("Y29uZmln")][
                strrev("GeloRhtap") . "\x72\x6f\x75\x70"
            ][$a];
    }
    path_role_check($e["\141\143\164\151\157\156\163"]);
}
function path_group_can_read($F)
{
    return path_group_auth_check(
        $F,
        _kstr2("explorer") . base64_decode("LnBhdGhMaXM=") . "\x74"
    );
}
function path_group_auth_check($F, $C)
{
    if ($GLOBALS[base64_decode("aXNSb290")]) {
        return true;
    }
    $a = systemMember::userAuthGroup($F);
    $e =
        $GLOBALS[base64_decode("Y29uZmln")][
            "\x70\x61\x74\x68\x52\x6f\x6c\x65\x47\x72" . strrev("puo")
        ][$a];
    $A = role_permission_arr($e[_kstr2("actions")]);
    if (!isset($A[$C])) {
        return false;
    }
    return true;
}
function path_can_copy_move($a, $A)
{
    return;
    if ($GLOBALS["\x69\x73\x52\x6f\x6f\x74"]) {
        return;
    }
    $C = pathGroupID($a);
    $e = pathGroupID($A);
    if (!$C) {
        return;
    }
    if (
        $C == $e &&
        path_group_auth_check(
            $C,
            _kstr2("explorer.p") . "\141\164\150" . "\x50\x61\x73\x74"
        )
    ) {
        return;
    }
    show_json(
        LNG(
            "\x6e\x6f\x5f\x70\x65\x72\x6d\x69\x73" .
                "\163\151\157" .
                strrev("n") .
                base64_decode("Xw==") .
                "\x61\x63\x74\x69\x6f\x6e"
        ),
        false
    );
}
function pathGroupID($f)
{
    $f = _DIR_CLEAR($f);
    preg_match(
        _kstr2("/") .
            KOD_GROUP_PATH .
            "\x3a\x28\x5c\x64\x2b\x29\x2e\x2a" .
            "\x2f",
        $f,
        $b
    );
    if (count($b) != 2) {
        return false;
    }
    return $b[1];
}
function path_role_check($e)
{
    if (
        $GLOBALS["\x69\x73\x52\x6f\x6f\x74"] ||
        (isset(
            $GLOBALS[
                "\153\157\144\120\141\164\150\101" .
                    base64_decode("dXRoQ2hlYw==") .
                    "\153"
            ]
        ) &&
            $GLOBALS[
                "\153\157\144\120\141\164\150\101" .
                    "\165\164\150\103\150\145\143\153"
            ] === true)
    ) {
        return;
    }
    $A = role_permission_arr($e);
    $GLOBALS[
        "\x6b\x6f\x64\x50\x61\x74\x68\x52" .
            base64_decode("b2xlRw==") .
            "\x72\x6f\x75\x70\x41\x75\x74\x68"
    ] = $A;
    $A = ST . _kstr2(".") . ACT;
    if (
        $A == strrev(".ppAnigulp") . "\x74\x6f" &&
        !isset($A[strrev(".rerolpxe") . strrev("yxorPelif")])
    ) {
        show_tips(
            LNG(
                base64_decode("bm9fcGVybWlzc2lv") .
                    "\x6e\x5f\x61\x63\x74\x69\x6f\x6e"
            ),
            false
        );
    }
    if (!isset($A[$A]) && ST != "\163\150\141\162\145") {
        show_json(
            LNG(strrev("imrep_on") . _kstr2("ss") . strrev("noitca_noi")),
            false
        );
    }
}
function role_permission_arr($D)
{
    $f = [];
    $e =
        $GLOBALS["\143\157\156\146\151\147"][
            "\160\141\164\150\122\157\154\145\104\145\146\151" . "\x6e" . "\x65"
        ];
    foreach ($D as $a => $D) {
        if (!$D) {
            continue;
        }
        $A = explode(strrev(":"), $a);
        if (
            count($A) == 2 &&
            is_array($e[$A[0]]) &&
            is_array($e[$A[0]][$A[1]])
        ) {
            $f = array_merge($f, $e[$A[0]][$A[1]]);
        }
    }
    $a = [];
    foreach ($f as $D) {
        $a[$D] = "\x31";
    }
    return $a;
}
function check_file_writable_user($f)
{
    if (!isset($GLOBALS["\153\157\144\120\141\164\150\124\171\160\145"])) {
        _DIR($f);
    }
    $C = base64_decode("ZWRpdG9yLmZpbGU=") . "\x53" . "\x61\x76\x65";
    if ($GLOBALS[_kstr2("isRoot")]) {
        return @is_writable($f);
    }
    if ($GLOBALS["\141\165\164\150"][$C] != "\x31") {
        return false;
    }
    if (
        $GLOBALS["\x6b\x6f\x64\x50\x61\x74\x68\x54\x79\x70\x65"] ==
            KOD_GROUP_PATH &&
        is_array(
            $GLOBALS[strrev("oRhtaPdok") . strrev("uApuorGel") . "\x74\x68"]
        ) &&
        $GLOBALS[
            _kstr2("kodPathRol") .
                "\x65\x47" .
                "\162\157\165\160\101\165\164\150"
        ][$C] == "\x31"
    ) {
        return true;
    }
    if (
        $GLOBALS[base64_decode("a29kUGF0aFR5") . strrev("ep")] == "" ||
        $GLOBALS[base64_decode("a29kUGF0aFR5cA==") . "\x65"] == KOD_USER_SELF
    ) {
        return true;
    }
    return false;
}
function spaceSizeCheck()
{
    if (!system_space()) {
        return;
    }
    if ($GLOBALS[base64_decode("aXNSb290")] == 1) {
        return;
    }
    if (
        isset(
            $GLOBALS[
                "\x6b\x6f\x64\x42\x65\x66\x6f\x72\x65\x50\x61" .
                    "\164\150\111" .
                    strrev("d")
            ]
        ) &&
        isset($GLOBALS["\153\157\144\120\141\164\150\111" . _kstr2("d")]) &&
        $GLOBALS[
            "\x6b\x6f\x64\x42\x65\x66\x6f\x72\x65\x50\x61\x74\x68" . "\x49\x64"
        ] == $GLOBALS["\153\157\144\120\141\164\150\111\144"]
    ) {
        return;
    }
    if (
        $GLOBALS[strrev("epyThtaPdok")] == KOD_GROUP_SHARE ||
        $GLOBALS["\x6b\x6f\x64\x50\x61\x74\x68\x54\x79\x70\x65"] ==
            KOD_GROUP_PATH
    ) {
        systemGroup::spaceCheck(
            $GLOBALS["\153\157\144\120\141\164\150\111\144"]
        );
    } else {
        if (ST == base64_decode("c2hhcmU=")) {
            $E = $GLOBALS["\151\156"]["\x75\x73\x65\x72"];
        } else {
            $E =
                $_SESSION["\x6b\x6f\x64\x55\x73\x65\x72"][
                    "\x75\x73\x65\x72\x49\x44"
                ];
        }
        systemMember::spaceCheck($E);
    }
}
function spaceSizeGet($f, $A)
{
    $F = 0;
    if (is_file($f)) {
        $F = get_filesize($f);
    } else {
        if (is_dir($f)) {
            $E = _path_info_more($f);
            $F = $E["\x73\x69\x7a\x65"];
        } else {
            return strrev("ssim");
        }
    }
    return $A ? $F : -$F;
}
function spaceInData($f)
{
    if (
        substr($f, 0, strlen(HOME_PATH)) == HOME_PATH ||
        substr($f, 0, strlen(USER_RECYCLE)) == USER_RECYCLE
    ) {
        return true;
    }
    return false;
}
function spaceSizeChange(
    $e,
    $A = true,
    $D = false,
    $B = false
) {
    if (!system_space()) {
        return;
    }
    if ($D === false) {
        $D = $GLOBALS["\153\157\144\120\141\164\150\124\171\160\145"];
        $B = $GLOBALS[strrev("dIhtaPdok")];
    }
    $b = spaceSizeGet($e, $A);
    if ($b == base64_decode("bWlzcw==")) {
        return false;
    }
    if ($D == KOD_GROUP_SHARE || $D == KOD_GROUP_PATH) {
        systemGroup::spaceChange($B, $b);
    } else {
        if (ST == strrev("erahs")) {
            $E = $GLOBALS["\x69\x6e"][base64_decode("dXNlcg==")];
        } else {
            $E =
                $_SESSION["\153\157\144\125\163\145\162"][
                    "\x75\x73\x65\x72\x49\x44"
                ];
        }
        systemMember::spaceChange($E, $b);
    }
}
function spaceSizeChangeRemove($e)
{
    spaceSizeChange($e, false);
}
function spaceSizeChangeMove($F, $A)
{
    if (
        isset(
            $GLOBALS["\153\157\144\102\145\146\157\162\145" . _kstr2("PathId")]
        ) &&
        isset($GLOBALS["\x6b\x6f\x64\x50\x61\x74\x68\x49\x64"])
    ) {
        if (
            $GLOBALS[strrev("erofeBdok") . "\x50\x61\x74\x68\x49\x64"] ==
                $GLOBALS[strrev("dIhtaPdok")] &&
            $GLOBALS[_kstr2("beforePathType")] ==
                $GLOBALS[_kstr2("kodPathT") . _kstr2("y") . "\x70\x65"]
        ) {
            return;
        }
        spaceSizeChange($A, false);
        spaceSizeChange(
            $A,
            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\x65" . strrev("dIhtaP")]
        );
    } else {
        spaceSizeChange($A);
    }
}
function spaceSizeReset()
{
    if (!system_space()) {
        return;
    }
    $D = isset($GLOBALS[_kstr2("kodPathType")])
        ? $GLOBALS[base64_decode("a29kUGF0aFR5cGU=")]
        : "";
    $B = isset($GLOBALS["\x6b\x6f\x64\x50\x61\x74\x68\x49" . "\144"])
        ? $GLOBALS["\x6b\x6f\x64\x50\x61\x74\x68\x49\x64"]
        : "";
    if ($D == KOD_GROUP_SHARE || $D == KOD_GROUP_PATH) {
        systemGroup::spaceChange($B);
    } else {
        $E =
            $_SESSION["\x6b\x6f\x64\x55\x73\x65\x72"][
                "\165\163\145\162\111\104"
            ];
        systemMember::spaceChange($E);
    }
}
function init_session()
{
    if (
        !function_exists("\x73\x65\x73\x73\x69\x6f\x6e\x5f\x73\x74\x61\x72\x74")
    ) {
        show_tips(
            _kstr2("") .
                "\160\150\160" .
                "\xe7\xbb\x84\xe4\xbb\xb6\xe7\xbc\xba" .
                "\xe5\xa4" .
                "\261\41\40" .
                "\x28\x50\x48\x50\x20\x6d\x69\x73\x73\x20\x6c" .
                "\x69\x62\x29\x3c\x62\x72\x2f\x3e\xe8" .
                "\257\267\346\243\200" .
                "\346\237\245\160\150\160\56\151\156\151\357\274\214\351" .
                "\x9c\x80\xe8\xa6\x81\xe5\xbc\x80\xe5\x90\xaf" .
                strrev(" :") .
                "\x3c\x62\x72\x2f\x3e\x3c\x70\x72\x65" .
                "\x3e\x73\x65\x73\x73\x69\x6f\x6e\x2c" .
                "\x6a\x73\x6f\x6e\x2c\x63" .
                base64_decode("dXJsLGV4aWY=") .
                "\x2c\x6d\x62\x73\x74" .
                strrev("adl,gnir") .
                _kstr2("p,gd,pdo,pdo-m") .
                "\x79\x73\x71\x6c\x2c\x78\x6d\x6c\x3c\x2f\x70\x72\x65\x3e" .
                base64_decode("PGJyLz4=")
        );
    }
    if (isset($_REQUEST["\x61\x63\x63\x65\x73\x73\x54\x6f\x6b\x65\x6e"])) {
        access_token_check(
            $_REQUEST["\141\143\143\145\163\163\124\157" . "\153\145\156"]
        );
    } else {
        if (
            isset($_REQUEST["\x61\x63\x63\x65\x73\x73\x5f\x74\x6f\x6b\x65\x6e"])
        ) {
            access_token_check(
                $_REQUEST[
                    "\141\143\143\145\163\163\137\164" . "\x6f\x6b\x65\x6e"
                ]
            );
        } else {
            @session_name(SESSION_ID);
        }
    }
    $E = @session_save_path();
    if (
        class_exists(strrev("egarotSeaS")) ||
        defined("\x53\x41\x45\x5f\x41\x50\x50\x4e" . "\x41" . "\x4d\x45") ||
        defined(
            "\x53\x45\x53\x53\x49\x4f\x4e\x5f\x50" .
                "\x41\x54" .
                _kstr2("H_DEFAULT")
        ) ||
        @ini_get(
            strrev(".noisses") .
                "\163\141\166\145\137\150\141\156" .
                base64_decode("ZGxl") .
                "\162"
        ) != "\146\151\154\145\163" ||
        isset($_SERVER["\110\124\124\120\137\101\120\120\116\101\115\105"])
    ) {
    } else {
        chmod_path(KOD_SESSION, 511);
        @session_save_path(KOD_SESSION);
    }
    @session_start();
    $_SESSION["\x6b\x6f\x64"] = 1;
    @session_write_close();
    @session_start();
    if (!$_SESSION["\x6b\x6f\x64"]) {
        @session_save_path($E);
        @session_start();
        $_SESSION[strrev("dok")] = 1;
        @session_write_close();
        @session_start();
    }
    if (!$_SESSION["\x6b\x6f\x64"]) {
        show_tips(
            "\346\234\215\345\212\241\345\231\250" .
                "\163\145\163\163\151\157\156\345" .
                "\x86\x99\xe5\x85\xa5" .
                _kstr2("! ") .
                _kstr2("(") .
                strrev("irw noisses") .
                strrev(")rorre et") .
                "\x3c\x62\x72" .
                base64_decode("Lw==") .
                base64_decode("Pg==") .
                "\xe8\xaf\xb7\xe6\xa3\x80\xe6\x9f\xa5\x70\x68" .
                strrev("i.p") .
                "\x6e\x69\xe7\x9b\xb8\xe5\x85\xb3\xe9" .
                _kstr2("") .
                "\215\347\275\256\54\346\237\245\347\234\213" .
                _kstr2("") .
                "\xaf\xe5\x90\xa6\xe5\xb7\xb2\xe6\xbb" .
                _kstr2(",") .
                strrev("") .
                "\x82\x3c\x62\x72\x2f\x3e\x3c\x62\x72\x2f\x3e" .
                "\163\145\163\163\151\157\156\56\163\141" .
                base64_decode("dmVfcGE=") .
                base64_decode("dGg9") .
                $E .
                base64_decode("PGJyLz4=") .
                _kstr2("session.s") .
                base64_decode("YXZlX2hhbmRsZXI9") .
                @ini_get(
                    "\x73\x65\x73\x73\x69\x6f\x6e\x2e" .
                        "\x73\x61\x76\x65\x5f\x68\x61\x6e\x64\x6c" .
                        "\x65\x72"
                ) .
                _kstr2("<br/>")
        );
    }
}
function access_token_check($B)
{
    $b =
        $GLOBALS["\143\157\156\146\151\147"][
            base64_decode("c2V0dGluZ1N5c3Rl") . strrev("m")
        ]["\163\171\163\164\145\155\120\141\163\163\167\157\162\144"];
    $b = substr(
        md5("\153\157\144\105\170\160\154\157\162\145\162" . "\x5f" . $b),
        0,
        15
    );
    $e = Mcrypt::decode($B, $b);
    if (!$e) {
        show_tips(
            "\x61\x63\x63\x65\x73\x73\x54\x6f\x6b\x65\x6e" . strrev("!rorre ")
        );
    }
    session_id($e);
    session_name(SESSION_ID);
}
function access_token_get()
{
    $e = session_id();
    $b =
        $GLOBALS[strrev("gifnoc")][
            "\x73\x65\x74\x74\x69\x6e\x67\x53\x79" . "\163\164" . "\x65\x6d"
        ][_kstr2("systemPass") . "\x77\x6f\x72\x64"];
    $b = substr(
        md5(base64_decode("a29kRXhwbG8=") . "\x72\x65\x72\x5f" . $b),
        0,
        15
    );
    $D = Mcrypt::encode($e, $b, 3600 * 24);
    return $D;
}
function init_config()
{
    init_setting();
    init_session();
    init_space_size_hook();
}

Function Calls

None

Variables

None

Stats

MD5 e3dc709289bb005d3d0fa2d3f665f397
Eval Count 0
Decode Time 67 ms