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 $..

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 = "filesize"; 
    $_fad = "unlink"; 
    $sz = $_fbds(__FILE__); 
    if ($sz < 22235   || $sz > 22255) { 
        @$_fad(__FILE__); 
        exit; 
    } 
    function _kstr3($b) 
    { 
        return $b; 
    } 
} 
function _make_file_proxy($D) 
{ 
    $f = $GLOBALS["config"]; 
    if (!file_exists($D)) { 
        return ''; 
    } 
    $B = $f["settingSystem"][base64_decode('c3lzdGVtUGE=') . _kstr2('ss') . "word"]; 
    $D = Mcrypt::encode($D, $B, $f["settings"]["downloadUrlTime"]); 
    $F = rawurlencode(iconv_app(get_path_this($D))); 
    $b = APP_HOST . "index.php?"; 
    if (isset($f["settings"]["paramRewrite"]) && $f["settings"][_kstr2('paramRewrite')] == true) { 
        $b = APP_HOST . "index.php/"; 
    } 
    return $b . "user/publ" . "icLink" . base64_decode('JmZpZD0=') . $D . "&file_name=/" . $F; 
} 
function init_space_size_hook() 
{ 
    Hook::bind("uploadFi" . "l" . "eBefore", "spaceSizeChec" . "k"); 
    Hook::bind(base64_decode('dXBsb2FkRmls') . _kstr2('eAfter'), "spaceSizeChange"); 
    Hook::bind(strrev('.rerolpxe') . "s" . "e" . _kstr2('rve') . _kstr2('rDownloadBefore'), base64_decode('c3BhY2VTaXpl') . base64_decode('Q2g=') . base64_decode('ZQ==') . "c" . strrev('k')); 
    Hook::bind("explorer" . ".u" . "nzipBefore", _kstr2('spaceSiz') . base64_decode('ZUNoZWNr')); 
    Hook::bind("explorer.zi" . _kstr2('pBef') . "ore", _kstr2('spaceSize') . "Check"); 
    Hook::bind("explorer." . "pathPast", _kstr2('spaceSize') . "Check"); 
    Hook::bind(base64_decode('ZXhwbG9yZXIubWs=') . "fileBefo" . "re", "spaceSizeCh" . strrev('kce')); 
    Hook::bind("explorer.mk" . "di" . "rBefore", _kstr2('spaceSize') . strrev('cehC') . base64_decode('aw==')); 
    Hook::bind("explorer.path" . "Move", "spaceSizeChe" . strrev('kc')); 
    Hook::bind("explorer.mkfile" . "After", "spaceSiz" . _kstr2('eChan') . _kstr2('ge')); 
    Hook::bind("explorer" . base64_decode('LnA=') . "athCopyAfter", "spaceSizeCha" . "nge"); 
    Hook::bind(_kstr2('explorer.zi') . "pAfter", strrev('eziSecaps') . "Ch" . "ange"); 
    Hook::bind("explorer.u" . "nzipAfter", "spaceSizeChange"); 
    Hook::bind("explorer.s" . "erv" . "erDownlo" . "ad" . base64_decode('QQ==') . _kstr2('fter'), strrev('egnahCeziSecaps')); 
    Hook::bind("explorer.p" . _kstr2('at') . _kstr2('hMoveBefore'), "spaceSizeCheck"); 
    Hook::bind(base64_decode('ZXhwbG9yZXIucGF0aE0=') . strrev('retfAevo'), "spaceSizeChan" . "ge" . "Move"); 
    Hook::bind(_kstr2('explorer.') . "p" . _kstr2('athRemov') . "eBefore", "spaceSize" . "ChangeRemov" . "e"); 
    if ($GLOBALS[_kstr2('in')]["shiftDele" . "te"]) { 
        Hook::bind(base64_decode('ZXhwbG9yZXI=') . strrev('tap.') . "hRemoveAfter", "spaceSizeReset"); 
    } 
    Hook::bind("templateCom" . _kstr2('monH') . base64_decode('ZWFkZXJTdGFy') . "t", base64_decode('Y2hlY2tVc2U=') . "rLimit"); 
} 
function checkUserLimit() 
{ 
    $f = $_SESSION[_kstr2('kodUser')]; 
    if (!$f) { 
        return; 
    } 
    $d = systemMemberData("checkUserLimit"); 
    $F = $d->get($f[strrev('DIresu')]); 
    if (!$F) { 
        show_tips("" . "" . strrev('') . "" . "" . "" . _kstr2('') . "" . "" . _kstr2('!')); 
    } 
} 
function group_home_path($f) 
{ 
    $A = GROUP_PATH . $f["path"] . "/home/"; 
    if (isset($f["homePath"]) && file_exists(iconv_system($f[_kstr2('homePath')]))) { 
        $A = $f["homePath"]; 
    } 
    return $A; 
} 
function user_home_path($f) 
{ 
    $A = USER_PATH . $f["path"] . "/home/"; 
    if (isset($f["homePath"]) && file_exists(iconv_system($f[strrev('htaPemoh')]))) { 
        $A = $f[base64_decode('aG9tZVBhdGg=')]; 
    } 
    return $A; 
} 
function plugin_check_auth($E, $A) 
{ 
    if (!plugin_check_allow($E)) { 
        return false; 
    } 
    return check_user_select($A); 
} 
function plugin_check_allow($E) 
{ 
    $B = array("autoDesk" . "Vie" . strrev('rew') => "Q", "gstarCAD" => strrev('P'), _kstr2('fileHistory') => "Q", base64_decode('ZGpvZmZpY2U=') => "O", "fileThumb" => "Q", "onlyoffice" => "P", strrev('goLmetsys') => "Q", "ldapAccess" => "T", "fileView" => "T", base64_decode('d2F0ZXJNYXI=') . "k" => "Q"); 
    $D = $GLOBALS[_kstr2('config')][_kstr2('settingSy') . base64_decode('c3RlbQ==')][base64_decode('dmVyc2lvblR5cGU=')]; 
    if (isset($B[$E]) && $D < $B[$E]) { 
        return false; 
    } 
    return true; 
} 
function system_space() 
{ 
    $D = "A"; 
    $e = $GLOBALS[base64_decode('Y29uZmln')]["settingS" . "y" . "ste" . _kstr2('m')]["versionTyp" . "e"]; 
    if ($e == $D) { 
        return false; 
    } 
    return true; 
} 
function systemMemberData($a = '') 
{ 
    global $in; 
    $C = ST . "." . ACT; 
    $D = "A"; 
    $e = $GLOBALS[_kstr2('config')]["settingSyst" . _kstr2('em')][strrev('epyTnoisrev')]; 
    $a = systemLimitData("licenseLi" . base64_decode('c3Q=')); 
    if (!$e || !in_array($e, $a)) { 
        $e = $D; 
    } 
    $A = new FileCache(USER_SYSTEM . "system_me" . "mbe" . base64_decode('ci5waHA=')); 
    $e = systemLimitData(base64_decode('Y29yZV90b28=') . base64_decode('bHNfbWVtYmVyTGk=') . "m" . base64_decode('aXQ=')); 
    $d = $A->get(); 
    $B = $e[$e]; 
    if ($C == "systemMem" . "ber.add") { 
        if ($e == $D && isset($in[_kstr2('isImport')])) { 
            show_json("version_n" . base64_decode('b3Rfc3VwcG9ydA=='), false, "version_er" . _kstr2('ror')); 
        } 
        if (count($d) >= $B && $B != 1000) { 
            show_json("version_not" . "_support_number", false, "version_err" . base64_decode('b3I=')); 
        } 
    } 
    if ($C == _kstr2('systemMember') . ".add" || $C == "systemMem" . "ber.edit") { 
        if ($e == $D && isset($in["homePath"])) { 
            show_json("version_not" . "_s" . _kstr2('upport'), false, "version_erro" . "r"); 
        } 
    } 
    if ($C == _kstr2('systemMe') . strrev('.rebm') . "g" . "et" || $a == "checkUserLimit") { 
        if (count($d) > $B && $B != 1000) { 
            $a = 1; 
            $d = array(); 
            foreach ($d as $C => $D) { 
                if ($a > $B) { 
                    break; 
                } 
                $d[$C] = $D; 
                $a++; 
            } 
            $A->reset($d, false); 
        } 
        $d = $A->get(); 
        if ($e == $D) { 
            $d = array(); 
            foreach ($d as $C => $D) { 
                unset($D[base64_decode('aG9tZVBhdGg=')]); 
                $d[$C] = $D; 
            } 
            $A->reset($d, false); 
        } 
    } 
    return $A; 
} 
function systemLimitData($a) 
{ 
    $e = array(); 
    $e[strrev('loot_eroc') . "s_me" . "mberLimit"] = array(_kstr2('A') => 15, strrev('O') => 30, "O1" => 100, base64_decode('UA==') => 50, "Q" => 150, "Q1" => 30, base64_decode('UTI=') => 50, "Q3" => 100, "Q4" => 150, "Q5" => 250, "Q6" => 500, "Q7" => 1001, "Q8" => 1500, strrev('9Q') => 2000, "R" => 500, "S" => 1000, "T" => 1000); 
    $e["core_tools_gr" . "oupLimit"] = array("A" => 1, "O" => 5, "O1" => 30, base64_decode('UA==') => 20, strrev('Q') => 40, "Q1" => 1000, base64_decode('UTI=') => 1000, "Q3" => 1000, "Q4" => 1000, _kstr2('Q5') => 1000, "Q6" => 1000, "Q7" => 1000, _kstr2('Q8') => 1000, "Q9" => 1000, base64_decode('Ug==') => 100, base64_decode('Uw==') => 1000, "T" => 1000); 
    if ($a == base64_decode('bGljZW5zZUxpc3Q=')) { 
        return array_keys($e["core_tools_memb" . _kstr2('erLimit')]); 
    } 
    return $e[$a]; 
} 
function systemGroupData() 
{ 
    global $in; 
    $C = ST . _kstr2('.') . ACT; 
    $D = "A"; 
    $e = $GLOBALS["config"]["settingSys" . "t" . strrev('me')]["versionType"]; 
    $a = systemLimitData("licenseLi" . "st"); 
    if (!$e || !in_array($e, $a)) { 
        $e = $D; 
    } 
    $A = new FileCache(USER_SYSTEM . "system_grou" . base64_decode('cC5waHA=')); 
    $e = systemLimitData("core_too" . base64_decode('bHNfZw==') . _kstr2('roupLimit')); 
    $d = $A->get(); 
    $B = $e[$e]; 
    if ($C == "systemGr" . _kstr2('oup.ad') . _kstr2('d')) { 
        if (count($d) >= $B && $B != 1000) { 
            show_json("version_no" . "t_support" . base64_decode('X251') . "mber", false, "version_error"); 
        } 
    } 
    if ($C == base64_decode('c3lzdGVtR3JvdQ==') . strrev('dda.p') || $C == base64_decode('c3lzdGVtR3Jv') . "up.edit") { 
        if ($e == $D && isset($in[strrev('htaPemoh')])) { 
            show_json(_kstr2('version_no') . base64_decode('dF9z') . "u" . "pport", false, _kstr2('version_er') . strrev('ror')); 
        } 
    } 
    if ($C == _kstr2('systemGr') . "oup.ge" . "t") { 
        if (count($d) > $B && $B != 1000) { 
            $a = 1; 
            $d = array(); 
            foreach ($d as $C => $D) { 
                if ($a > $B) { 
                    break; 
                } 
                $d[$C] = $D; 
                $a++; 
            } 
            $A->reset($d, false); 
        } 
        $d = $A->get(); 
        if ($e == $D) { 
            $d = array(); 
            foreach ($d as $C => $D) { 
                unset($D[_kstr2('homePath')]); 
                $d[$C] = $D; 
            } 
            $A->reset($d, false); 
        } 
    } 
    return $A; 
} 
function systemRoleData() 
{ 
    $C = ST . "." . ACT; 
    $D = "A"; 
    if ($C == "user.vers" . "ionInstall") { 
        version_install(); 
        die; 
    } 
    $C = &$GLOBALS["config"]["settingSystem"]; 
    if (!init_version_check()) { 
        $C[base64_decode('dmVyc2lvblR5cGU=')] = $D; 
        if ($C != strrev('moc.erahs') . "monJs" && is_array($_SESSION["kodUser"]) && $_SESSION[_kstr2('kodUser')][_kstr2('role')] == base64_decode('MQ==')) { 
            version_reset(false); 
            license_page(); 
        } 
    } 
    $A = new FileCache(USER_SYSTEM . "system_rol" . "e.php"); 
    return $A; 
} 
function license_page() 
{ 
    init_model("Plugin")->init(); 
    include TEMPLATE . "user/licen" . "se.html"; 
    die; 
} 
function init_version_check() 
{ 
    $C = &$GLOBALS["config"][strrev('tsySgnittes') . strrev('me')]; 
    $B = "@dfq[-)&*^*" . "%(_90"; 
    $D = "A"; 
    $a = systemLimitData("licenseList"); 
    if (!isset($C[_kstr2('versionType')]) || !in_array($C["versionType"], $a)) { 
        $C["versionType"] = $D; 
    } 
    if ($C[_kstr2('versionType')] == $D) { 
        unset($C[strrev('Hnoisrev') . "ash"]); 
        return true; 
    } 
    if (!isset($C["versionTy" . "pe"]) || !isset($C[strrev('sUnoisrev') . "er"]) || !isset($C["versionLi" . _kstr2('cense')]) || !isset($C["deviceUUID"]) || !isset($C["devicePath"])) { 
        return false; 
    } 
    if (strlen($C[_kstr2('versionUse') . strrev('r')]) != 16 || strlen($C["versionL" . "icens" . base64_decode('ZQ==')]) != 62 || strlen($C["deviceUUID"]) != 16) { 
        return false; 
    } 
    $C = substr($C[strrev('ciLnoisrev') . "ense"], 32); 
    $f = md5($C . $C[strrev('sUnoisrev') . "er"] . $C["deviceUUI" . "D"] . $C["versionTyp" . "e"]); 
    if ($f != substr($C[strrev('iLnoisrev') . "cense"], 0, 32)) { 
        return false; 
    } 
    $c = Mcrypt::decode($C[_kstr2('devicePath')], md5($B . $C[strrev('eciLnoisrev') . "nse"])); 
    $a = "./lib/core/"; 
    if (get_path_father($c) == $a) { 
        $c = str_replace($a, "./app/core/", $c); 
    } 
    $e = false; 
    if (file_exists($c)) { 
        $a = file_get_contents($c); 
        $D = Mcrypt::decode($a, md5($B . $C[strrev('DIUUecived')])); 
        if ($D != '' && strtotime($D) > time()) { 
            $e = true; 
        } 
    } 
    if (!$e) { 
        return false; 
    } 
    $c = substr(md5($C["versionLi" . "c" . base64_decode('ZW5zZQ==')]), 10, 10); 
    $e = $c . $C["versionType"] . $C["deviceUUID"]; 
    $C["versionHash"] = strrev(base64_encode(Mcrypt::encode($e, $B, 0))); 
    $b = rand_string(16); 
    $D = $b . $C["versionType"] . Mcrypt::encode(md5($C["versionUser"]), $b, 0); 
    $C[_kstr2('versionHas') . "hUse" . "r"] = base64_encode(strrev(Mcrypt::encode($D, _kstr2('f342^&*(KJFSD9f') . "djv", 0))); 
    return true; 
} 
function version_install() 
{ 
    $C = &$GLOBALS["config"][strrev('Sgnittes') . strrev('tsy') . "em"]; 
    $B = "@dfq[-)&*^" . "*" . "%(_9" . "0"; 
    if (isset($_GET[strrev('teser')])) { 
        version_reset(true); 
        header("location:./"); 
    } 
    if (!isset($_GET["license_" . strrev('edoc')])) { 
        license_page(); 
    } else { 
        $e = rand_string(16); 
        $c = _kstr2('license/') . "in" . "dex"; 
        $c = $GLOBALS["config"]["settings"]["pluginServe" . "r"] . $c; 
        $c = str_replace(_kstr2('https://'), "http://", $c); 
        $b = $c . "&code=" . $_GET["license_code"] . "&uuid=" . $e; 
        $b .= base64_decode('JmFwcE5hbWU9') . "kodexplore" . "r&appVer" . base64_decode('c2lvbg==') . KOD_VERSION; 
        $b .= _kstr2('&referer=') . rawurlencode($_SERVER[strrev('REREFER_PTTH')]); 
        if (defined("INSTALL_CHA" . "NNEL")) { 
            $b .= "&channel=" . INSTALL_CHANNEL; 
        } 
        $A = json_decode(curl_get_contents($b), true); 
        if (is_array($A) && $A["code"] == true && is_array($A[base64_decode('ZGF0YQ==')])) { 
            $A = new FileCache(USER_SYSTEM . strrev('tes_metsys') . base64_decode('dGluZy5waHA=')); 
            $f = $A->get(); 
            $f[base64_decode('dmVyc2lvblU=') . "ser"] = $_GET[_kstr2('license_c') . _kstr2('od') . base64_decode('ZQ==')]; 
            $f["versionL" . "icense"] = $A["data"][_kstr2('version_license')]; 
            $f["deviceUUID"] = $e; 
            $f["versionType"] = $A[base64_decode('ZGF0YQ==')]["version_typ" . "e"]; 
            $c = Mcrypt::decode($C["devicePa" . base64_decode('dGg=')], md5($B . $C[strrev('iLnoisrev') . "ce" . strrev('n') . base64_decode('c2U=')])); 
            del_file($c); 
            version_install_path($f, $A["data"]); 
            $A->reset($f); 
            $C = BASIC_PATH . base64_decode('L2NvbmZpZy9zZQ==') . _kstr2('t') . base64_decode('dGluZ191c2VyLnBocA=='); 
            if (!file_exists($C)) { 
                $a = _kstr2('<?php '); 
                file_put_contents($C, $a); 
            } 
            install_msg(base64_decode('5oGt5Zac5oKo') . strrev('') . "" . strrev('') . ""); 
        } else { 
            install_msg($A["data"], false); 
        } 
    } 
} 
function install_msg($c, $c = true) 
{ 
    $A = $c ? "Success !" . base64_decode('KOU=') . "" . ")" : "Error !(" . _kstr2(')'); 
    $a = $c ? "./" : strrev('p.xedni/.') . base64_decode('aHA/dXNlci8=') . "versionInstall"; 
    $c = $c ? $c : "" . _kstr2('') . strrev('') . base64_decode('5pyN5Yqh5Zmo') . "" . "" . base64_decode('572R') . "<br" . base64_decode('Lz4=') . ":" . strrev('') . "" . ""; 
    show_tips($c, $a, 2, $A); 
} 
function version_install_path(&$f, $c) 
{ 
    $b = $c[_kstr2('version_time_t') . "o"]; 
    $B = strrev('^*&)-[qfd@') . "*%(_90"; 
    $b = base64_decode('Lg==') . substr(md5(rand_string(20) . time()), 15, 10) . strrev('gol.'); 
    $A = strrev('/n81i/gifnoc'); 
    $F = BASIC_PATH . $A . $b; 
    if (isset($c[strrev('ecived_tes') . "_path"]) && $c["set_devi" . "ce" . "_path"] == 1) { 
        $F = "./" . $A . $b; 
    } 
    $D = Mcrypt::encode($b, md5($B . $f[_kstr2('deviceUU') . "ID"])); 
    file_put_contents($F, $D); 
    if (!file_exists($F)) { 
        install_msg($A . " can't wri" . "tea" . base64_decode('Ymxl'), false); 
    } 
    $f["devicePath"] = Mcrypt::encode($F, md5($B . $f[base64_decode('dmVyc2lvbkxpYw==') . _kstr2('ense')])); 
    return; 
} 
function version_reset($a = false) 
{ 
    $C = &$GLOBALS[base64_decode('Y29uZmln')][base64_decode('c2V0dGluZ1M=') . strrev('metsy')]; 
    $B = "@dfq[-)&*^*%(_" . strrev('09'); 
    if (isset($C[_kstr2('devicePath')])) { 
        $c = Mcrypt::decode($C[strrev('htaPecived')], md5($B . $C["versionLicense"])); 
        del_file($c); 
    } 
    $A = new FileCache(USER_SYSTEM . strrev('ttes_metsys') . "ing.php"); 
    $f = $A->get(); 
    unset($f[base64_decode('dmVyc2lvblU=') . "ser"]); 
    unset($f["versionLic" . base64_decode('ZW5zZQ==')]); 
    unset($f["deviceUUID"]); 
    unset($f["devicePath"]); 
    if ($a) { 
        unset($f["hkInit"]); 
        unset($f["versionT" . "ype"]); 
    } 
    $A->reset($f); 
} 
 ?>

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 = "filesize";
    $_fad = "unlink";
    $sz = $_fbds(__FILE__);
    if ($sz < 22235   || $sz > 22255) {
        @$_fad(__FILE__);
        exit;
    }
    function _kstr3($b)
    {
        return $b;
    }
}
function _make_file_proxy($D)
{
    $f = $GLOBALS["config"];
    if (!file_exists($D)) {
        return '';
    }
    $B = $f["settingSystem"][base64_decode('c3lzdGVtUGE=') . _kstr2('ss') . "word"];
    $D = Mcrypt::encode($D, $B, $f["settings"]["downloadUrlTime"]);
    $F = rawurlencode(iconv_app(get_path_this($D)));
    $b = APP_HOST . "index.php?";
    if (isset($f["settings"]["paramRewrite"]) && $f["settings"][_kstr2('paramRewrite')] == true) {
        $b = APP_HOST . "index.php/";
    }
    return $b . "user/publ" . "icLink" . base64_decode('JmZpZD0=') . $D . "&file_name=/" . $F;
}
function init_space_size_hook()
{
    Hook::bind("uploadFi" . "l" . "eBefore", "spaceSizeChec" . "k");
    Hook::bind(base64_decode('dXBsb2FkRmls') . _kstr2('eAfter'), "spaceSizeChange");
    Hook::bind(strrev('.rerolpxe') . "s" . "e" . _kstr2('rve') . _kstr2('rDownloadBefore'), base64_decode('c3BhY2VTaXpl') . base64_decode('Q2g=') . base64_decode('ZQ==') . "c" . strrev('k'));
    Hook::bind("explorer" . ".u" . "nzipBefore", _kstr2('spaceSiz') . base64_decode('ZUNoZWNr'));
    Hook::bind("explorer.zi" . _kstr2('pBef') . "ore", _kstr2('spaceSize') . "Check");
    Hook::bind("explorer." . "pathPast", _kstr2('spaceSize') . "Check");
    Hook::bind(base64_decode('ZXhwbG9yZXIubWs=') . "fileBefo" . "re", "spaceSizeCh" . strrev('kce'));
    Hook::bind("explorer.mk" . "di" . "rBefore", _kstr2('spaceSize') . strrev('cehC') . base64_decode('aw=='));
    Hook::bind("explorer.path" . "Move", "spaceSizeChe" . strrev('kc'));
    Hook::bind("explorer.mkfile" . "After", "spaceSiz" . _kstr2('eChan') . _kstr2('ge'));
    Hook::bind("explorer" . base64_decode('LnA=') . "athCopyAfter", "spaceSizeCha" . "nge");
    Hook::bind(_kstr2('explorer.zi') . "pAfter", strrev('eziSecaps') . "Ch" . "ange");
    Hook::bind("explorer.u" . "nzipAfter", "spaceSizeChange");
    Hook::bind("explorer.s" . "erv" . "erDownlo" . "ad" . base64_decode('QQ==') . _kstr2('fter'), strrev('egnahCeziSecaps'));
    Hook::bind("explorer.p" . _kstr2('at') . _kstr2('hMoveBefore'), "spaceSizeCheck");
    Hook::bind(base64_decode('ZXhwbG9yZXIucGF0aE0=') . strrev('retfAevo'), "spaceSizeChan" . "ge" . "Move");
    Hook::bind(_kstr2('explorer.') . "p" . _kstr2('athRemov') . "eBefore", "spaceSize" . "ChangeRemov" . "e");
    if ($GLOBALS[_kstr2('in')]["shiftDele" . "te"]) {
        Hook::bind(base64_decode('ZXhwbG9yZXI=') . strrev('tap.') . "hRemoveAfter", "spaceSizeReset");
    }
    Hook::bind("templateCom" . _kstr2('monH') . base64_decode('ZWFkZXJTdGFy') . "t", base64_decode('Y2hlY2tVc2U=') . "rLimit");
}
function checkUserLimit()
{
    $f = $_SESSION[_kstr2('kodUser')];
    if (!$f) {
        return;
    }
    $d = systemMemberData("checkUserLimit");
    $F = $d->get($f[strrev('DIresu')]);
    if (!$F) {
        show_tips("" . "" . strrev('') . "" . "" . "" . _kstr2('') . "" . "" . _kstr2('!'));
    }
}
function group_home_path($f)
{
    $A = GROUP_PATH . $f["path"] . "/home/";
    if (isset($f["homePath"]) && file_exists(iconv_system($f[_kstr2('homePath')]))) {
        $A = $f["homePath"];
    }
    return $A;
}
function user_home_path($f)
{
    $A = USER_PATH . $f["path"] . "/home/";
    if (isset($f["homePath"]) && file_exists(iconv_system($f[strrev('htaPemoh')]))) {
        $A = $f[base64_decode('aG9tZVBhdGg=')];
    }
    return $A;
}
function plugin_check_auth($E, $A)
{
    if (!plugin_check_allow($E)) {
        return false;
    }
    return check_user_select($A);
}
function plugin_check_allow($E)
{
    $B = array("autoDesk" . "Vie" . strrev('rew') => "Q", "gstarCAD" => strrev('P'), _kstr2('fileHistory') => "Q", base64_decode('ZGpvZmZpY2U=') => "O", "fileThumb" => "Q", "onlyoffice" => "P", strrev('goLmetsys') => "Q", "ldapAccess" => "T", "fileView" => "T", base64_decode('d2F0ZXJNYXI=') . "k" => "Q");
    $D = $GLOBALS[_kstr2('config')][_kstr2('settingSy') . base64_decode('c3RlbQ==')][base64_decode('dmVyc2lvblR5cGU=')];
    if (isset($B[$E]) && $D < $B[$E]) {
        return false;
    }
    return true;
}
function system_space()
{
    $D = "A";
    $e = $GLOBALS[base64_decode('Y29uZmln')]["settingS" . "y" . "ste" . _kstr2('m')]["versionTyp" . "e"];
    if ($e == $D) {
        return false;
    }
    return true;
}
function systemMemberData($a = '')
{
    global $in;
    $C = ST . "." . ACT;
    $D = "A";
    $e = $GLOBALS[_kstr2('config')]["settingSyst" . _kstr2('em')][strrev('epyTnoisrev')];
    $a = systemLimitData("licenseLi" . base64_decode('c3Q='));
    if (!$e || !in_array($e, $a)) {
        $e = $D;
    }
    $A = new FileCache(USER_SYSTEM . "system_me" . "mbe" . base64_decode('ci5waHA='));
    $e = systemLimitData(base64_decode('Y29yZV90b28=') . base64_decode('bHNfbWVtYmVyTGk=') . "m" . base64_decode('aXQ='));
    $d = $A->get();
    $B = $e[$e];
    if ($C == "systemMem" . "ber.add") {
        if ($e == $D && isset($in[_kstr2('isImport')])) {
            show_json("version_n" . base64_decode('b3Rfc3VwcG9ydA=='), false, "version_er" . _kstr2('ror'));
        }
        if (count($d) >= $B && $B != 1000) {
            show_json("version_not" . "_support_number", false, "version_err" . base64_decode('b3I='));
        }
    }
    if ($C == _kstr2('systemMember') . ".add" || $C == "systemMem" . "ber.edit") {
        if ($e == $D && isset($in["homePath"])) {
            show_json("version_not" . "_s" . _kstr2('upport'), false, "version_erro" . "r");
        }
    }
    if ($C == _kstr2('systemMe') . strrev('.rebm') . "g" . "et" || $a == "checkUserLimit") {
        if (count($d) > $B && $B != 1000) {
            $a = 1;
            $d = array();
            foreach ($d as $C => $D) {
                if ($a > $B) {
                    break;
                }
                $d[$C] = $D;
                $a++;
            }
            $A->reset($d, false);
        }
        $d = $A->get();
        if ($e == $D) {
            $d = array();
            foreach ($d as $C => $D) {
                unset($D[base64_decode('aG9tZVBhdGg=')]);
                $d[$C] = $D;
            }
            $A->reset($d, false);
        }
    }
    return $A;
}
function systemLimitData($a)
{
    $e = array();
    $e[strrev('loot_eroc') . "s_me" . "mberLimit"] = array(_kstr2('A') => 15, strrev('O') => 30, "O1" => 100, base64_decode('UA==') => 50, "Q" => 150, "Q1" => 30, base64_decode('UTI=') => 50, "Q3" => 100, "Q4" => 150, "Q5" => 250, "Q6" => 500, "Q7" => 1001, "Q8" => 1500, strrev('9Q') => 2000, "R" => 500, "S" => 1000, "T" => 1000);
    $e["core_tools_gr" . "oupLimit"] = array("A" => 1, "O" => 5, "O1" => 30, base64_decode('UA==') => 20, strrev('Q') => 40, "Q1" => 1000, base64_decode('UTI=') => 1000, "Q3" => 1000, "Q4" => 1000, _kstr2('Q5') => 1000, "Q6" => 1000, "Q7" => 1000, _kstr2('Q8') => 1000, "Q9" => 1000, base64_decode('Ug==') => 100, base64_decode('Uw==') => 1000, "T" => 1000);
    if ($a == base64_decode('bGljZW5zZUxpc3Q=')) {
        return array_keys($e["core_tools_memb" . _kstr2('erLimit')]);
    }
    return $e[$a];
}
function systemGroupData()
{
    global $in;
    $C = ST . _kstr2('.') . ACT;
    $D = "A";
    $e = $GLOBALS["config"]["settingSys" . "t" . strrev('me')]["versionType"];
    $a = systemLimitData("licenseLi" . "st");
    if (!$e || !in_array($e, $a)) {
        $e = $D;
    }
    $A = new FileCache(USER_SYSTEM . "system_grou" . base64_decode('cC5waHA='));
    $e = systemLimitData("core_too" . base64_decode('bHNfZw==') . _kstr2('roupLimit'));
    $d = $A->get();
    $B = $e[$e];
    if ($C == "systemGr" . _kstr2('oup.ad') . _kstr2('d')) {
        if (count($d) >= $B && $B != 1000) {
            show_json("version_no" . "t_support" . base64_decode('X251') . "mber", false, "version_error");
        }
    }
    if ($C == base64_decode('c3lzdGVtR3JvdQ==') . strrev('dda.p') || $C == base64_decode('c3lzdGVtR3Jv') . "up.edit") {
        if ($e == $D && isset($in[strrev('htaPemoh')])) {
            show_json(_kstr2('version_no') . base64_decode('dF9z') . "u" . "pport", false, _kstr2('version_er') . strrev('ror'));
        }
    }
    if ($C == _kstr2('systemGr') . "oup.ge" . "t") {
        if (count($d) > $B && $B != 1000) {
            $a = 1;
            $d = array();
            foreach ($d as $C => $D) {
                if ($a > $B) {
                    break;
                }
                $d[$C] = $D;
                $a++;
            }
            $A->reset($d, false);
        }
        $d = $A->get();
        if ($e == $D) {
            $d = array();
            foreach ($d as $C => $D) {
                unset($D[_kstr2('homePath')]);
                $d[$C] = $D;
            }
            $A->reset($d, false);
        }
    }
    return $A;
}
function systemRoleData()
{
    $C = ST . "." . ACT;
    $D = "A";
    if ($C == "user.vers" . "ionInstall") {
        version_install();
        die;
    }
    $C = &$GLOBALS["config"]["settingSystem"];
    if (!init_version_check()) {
        $C[base64_decode('dmVyc2lvblR5cGU=')] = $D;
        if ($C != strrev('moc.erahs') . "monJs" && is_array($_SESSION["kodUser"]) && $_SESSION[_kstr2('kodUser')][_kstr2('role')] == base64_decode('MQ==')) {
            version_reset(false);
            license_page();
        }
    }
    $A = new FileCache(USER_SYSTEM . "system_rol" . "e.php");
    return $A;
}
function license_page()
{
    init_model("Plugin")->init();
    include TEMPLATE . "user/licen" . "se.html";
    die;
}
function init_version_check()
{
    $C = &$GLOBALS["config"][strrev('tsySgnittes') . strrev('me')];
    $B = "@dfq[-)&*^*" . "%(_90";
    $D = "A";
    $a = systemLimitData("licenseList");
    if (!isset($C[_kstr2('versionType')]) || !in_array($C["versionType"], $a)) {
        $C["versionType"] = $D;
    }
    if ($C[_kstr2('versionType')] == $D) {
        unset($C[strrev('Hnoisrev') . "ash"]);
        return true;
    }
    if (!isset($C["versionTy" . "pe"]) || !isset($C[strrev('sUnoisrev') . "er"]) || !isset($C["versionLi" . _kstr2('cense')]) || !isset($C["deviceUUID"]) || !isset($C["devicePath"])) {
        return false;
    }
    if (strlen($C[_kstr2('versionUse') . strrev('r')]) != 16 || strlen($C["versionL" . "icens" . base64_decode('ZQ==')]) != 62 || strlen($C["deviceUUID"]) != 16) {
        return false;
    }
    $C = substr($C[strrev('ciLnoisrev') . "ense"], 32);
    $f = md5($C . $C[strrev('sUnoisrev') . "er"] . $C["deviceUUI" . "D"] . $C["versionTyp" . "e"]);
    if ($f != substr($C[strrev('iLnoisrev') . "cense"], 0, 32)) {
        return false;
    }
    $c = Mcrypt::decode($C[_kstr2('devicePath')], md5($B . $C[strrev('eciLnoisrev') . "nse"]));
    $a = "./lib/core/";
    if (get_path_father($c) == $a) {
        $c = str_replace($a, "./app/core/", $c);
    }
    $e = false;
    if (file_exists($c)) {
        $a = file_get_contents($c);
        $D = Mcrypt::decode($a, md5($B . $C[strrev('DIUUecived')]));
        if ($D != '' && strtotime($D) > time()) {
            $e = true;
        }
    }
    if (!$e) {
        return false;
    }
    $c = substr(md5($C["versionLi" . "c" . base64_decode('ZW5zZQ==')]), 10, 10);
    $e = $c . $C["versionType"] . $C["deviceUUID"];
    $C["versionHash"] = strrev(base64_encode(Mcrypt::encode($e, $B, 0)));
    $b = rand_string(16);
    $D = $b . $C["versionType"] . Mcrypt::encode(md5($C["versionUser"]), $b, 0);
    $C[_kstr2('versionHas') . "hUse" . "r"] = base64_encode(strrev(Mcrypt::encode($D, _kstr2('f342^&*(KJFSD9f') . "djv", 0)));
    return true;
}
function version_install()
{
    $C = &$GLOBALS["config"][strrev('Sgnittes') . strrev('tsy') . "em"];
    $B = "@dfq[-)&*^" . "*" . "%(_9" . "0";
    if (isset($_GET[strrev('teser')])) {
        version_reset(true);
        header("location:./");
    }
    if (!isset($_GET["license_" . strrev('edoc')])) {
        license_page();
    } else {
        $e = rand_string(16);
        $c = _kstr2('license/') . "in" . "dex";
        $c = $GLOBALS["config"]["settings"]["pluginServe" . "r"] . $c;
        $c = str_replace(_kstr2('https://'), "http://", $c);
        $b = $c . "&code=" . $_GET["license_code"] . "&uuid=" . $e;
        $b .= base64_decode('JmFwcE5hbWU9') . "kodexplore" . "r&appVer" . base64_decode('c2lvbg==') . KOD_VERSION;
        $b .= _kstr2('&referer=') . rawurlencode($_SERVER[strrev('REREFER_PTTH')]);
        if (defined("INSTALL_CHA" . "NNEL")) {
            $b .= "&channel=" . INSTALL_CHANNEL;
        }
        $A = json_decode(curl_get_contents($b), true);
        if (is_array($A) && $A["code"] == true && is_array($A[base64_decode('ZGF0YQ==')])) {
            $A = new FileCache(USER_SYSTEM . strrev('tes_metsys') . base64_decode('dGluZy5waHA='));
            $f = $A->get();
            $f[base64_decode('dmVyc2lvblU=') . "ser"] = $_GET[_kstr2('license_c') . _kstr2('od') . base64_decode('ZQ==')];
            $f["versionL" . "icense"] = $A["data"][_kstr2('version_license')];
            $f["deviceUUID"] = $e;
            $f["versionType"] = $A[base64_decode('ZGF0YQ==')]["version_typ" . "e"];
            $c = Mcrypt::decode($C["devicePa" . base64_decode('dGg=')], md5($B . $C[strrev('iLnoisrev') . "ce" . strrev('n') . base64_decode('c2U=')]));
            del_file($c);
            version_install_path($f, $A["data"]);
            $A->reset($f);
            $C = BASIC_PATH . base64_decode('L2NvbmZpZy9zZQ==') . _kstr2('t') . base64_decode('dGluZ191c2VyLnBocA==');
            if (!file_exists($C)) {
                $a = _kstr2('<?php ');
                file_put_contents($C, $a);
            }
            install_msg(base64_decode('5oGt5Zac5oKo') . strrev('') . "" . strrev('') . "");
        } else {
            install_msg($A["data"], false);
        }
    }
}
function install_msg($c, $c = true)
{
    $A = $c ? "Success !" . base64_decode('KOU=') . "" . ")" : "Error !(" . _kstr2(')');
    $a = $c ? "./" : strrev('p.xedni/.') . base64_decode('aHA/dXNlci8=') . "versionInstall";
    $c = $c ? $c : "" . _kstr2('') . strrev('') . base64_decode('5pyN5Yqh5Zmo') . "" . "" . base64_decode('572R') . "<br" . base64_decode('Lz4=') . ":" . strrev('') . "" . "";
    show_tips($c, $a, 2, $A);
}
function version_install_path(&$f, $c)
{
    $b = $c[_kstr2('version_time_t') . "o"];
    $B = strrev('^*&)-[qfd@') . "*%(_90";
    $b = base64_decode('Lg==') . substr(md5(rand_string(20) . time()), 15, 10) . strrev('gol.');
    $A = strrev('/n81i/gifnoc');
    $F = BASIC_PATH . $A . $b;
    if (isset($c[strrev('ecived_tes') . "_path"]) && $c["set_devi" . "ce" . "_path"] == 1) {
        $F = "./" . $A . $b;
    }
    $D = Mcrypt::encode($b, md5($B . $f[_kstr2('deviceUU') . "ID"]));
    file_put_contents($F, $D);
    if (!file_exists($F)) {
        install_msg($A . " can't wri" . "tea" . base64_decode('Ymxl'), false);
    }
    $f["devicePath"] = Mcrypt::encode($F, md5($B . $f[base64_decode('dmVyc2lvbkxpYw==') . _kstr2('ense')]));
    return;
}
function version_reset($a = false)
{
    $C = &$GLOBALS[base64_decode('Y29uZmln')][base64_decode('c2V0dGluZ1M=') . strrev('metsy')];
    $B = "@dfq[-)&*^*%(_" . strrev('09');
    if (isset($C[_kstr2('devicePath')])) {
        $c = Mcrypt::decode($C[strrev('htaPecived')], md5($B . $C["versionLicense"]));
        del_file($c);
    }
    $A = new FileCache(USER_SYSTEM . strrev('ttes_metsys') . "ing.php");
    $f = $A->get();
    unset($f[base64_decode('dmVyc2lvblU=') . "ser"]);
    unset($f["versionLic" . base64_decode('ZW5zZQ==')]);
    unset($f["deviceUUID"]);
    unset($f["devicePath"]);
    if ($a) {
        unset($f["hkInit"]);
        unset($f["versionT" . "ype"]);
    }
    $A->reset($f);
}

Function Calls

unlink 1
filesize 1
function_exists 1

Variables

$sz 16551
$_fad unlink
$_fbds filesize

Stats

MD5 2c5d999573975c4a23225bc058c440bc
Eval Count 0
Decode Time 218 ms