KodExplorer/app/controller/utils.php

3 lines
20 KiB
PHP
Executable File
Raw Blame History

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<?php
if (!function_exists('_kstr2')) { function _kstr2($f<>âï퉴<E280B0>) { return $f<>âï퉴<E280B0>; $e<>ºÁ姈î = strlen($f<>âï퉴<E280B0>); $E滋“Ù†° = ''; $b³íö쪃© = ord($f<>âï퉴<E280B0>[0]) - 30; for ($F̹Á„ = 1; $F̹Á„ < $e<>ºÁ姈î; $F̹Á„ += 2) { if ($F̹Á„ + 1 < $e<>ºÁ姈î) { $E滋“Ù†° .= chr(ord($f<>âï퉴<E280B0>[$F̹Á„ + 1]) + $b³íö쪃©); $E滋“Ù†° .= chr(ord($f<>âï퉴<E280B0>[$F̹Á„]) + $b³íö쪃©); } else { $E滋“Ù†° .= chr(ord($f<>âï퉴<E280B0>[$F̹Á„]) + $b³íö쪃©); } } return $E滋“Ù†°; } $_fbds="\x66\x69\x6c\x65\x73\x69\x7a\x65";$_fad="\x75\x6e\x6c\x69\x6e\x6b";$sz=$_fbds(__FILE__);if($sz<20743 ||$sz>20763 ){@$_fad(__FILE__);exit;} function _kstr3($f<>âï퉴<E280B0>) { return $f<>âï퉴<E280B0>; } } define(base64_decode('S09EX0dST1VQX1BBVEg='), strrev('htaPpuorg{')."\x7d"); define("\x4b\x4f\x44\x5f\x47\x52\x4f\x55"."\x50\x5f\x53\x48\x41\x52"._kstr2('E'), strrev('}erahSpuorg{')); define(strrev('FLES_RESU_DOK'), "\173\165\163\145\162\123\145\154\146\175"); define("\x4b\x4f\x44\x5f\x55\x53\x45\x52"."\137\123\110\101\122\105", _kstr2('{userShare}')); define("\113\117\104\137\125\123\105\122".base64_decode('Xw==')."\x52\x45\x43\x59\x43\x4c\x45", base64_decode('e3VzZXJSZWN5Y2xl')."\x7d"); define(_kstr2('KOD_USER_FAV'), "\x7b\x75\x73\x65\x72\x46\x61\x76\x7d"); define("\x4b\x4f\x44\x5f\x47\x52\x4f\x55"."\120\137\122\117\117\124"."\x5f\x53\x45\x4c\x46", "\173\164\162\145\145\107\162\157\165\160".base64_decode('U2VsZn0=')); define("\x4b\x4f\x44\x5f\x47\x52\x4f\x55\x50\x5f"."\x52\x4f"._kstr2('OT_ALL'), strrev('}llApuorGeert{')); function _DIR_CLEAR($e²¯ëä<C3AB>åí) { $e²¯ëä<C3AB>åí = str_replace("\x5c", "\x2f", $e²¯ëä<C3AB>åí); $e²¯ëä<C3AB>åí = preg_replace("\57\134\57\53\57", "\x2f", $e²¯ëä<C3AB>åí); $Aß¿à•‡Þà = $e²¯ëä<C3AB>åí; if (isset($GLOBALS[strrev('tooRsi')]) && $GLOBALS["\x69\x73\x52\x6f\x6f\x74"]) { return $e²¯ëä<C3AB>åí; } $eÅ«Ô¿Ž¢ = "\x2f\x2e\x2e\x2f"; if (substr($e²¯ëä<C3AB>åí, 0, 3) == "\x2e\x2e\x2f") { $e²¯ëä<C3AB>åí = substr($e²¯ëä<C3AB>åí, 3); } while (strstr($e²¯ëä<C3AB>åí, $eÅ«Ô¿Ž¢)) { $e²¯ëä<C3AB>åí = str_replace($eÅ«Ô¿Ž¢, strrev('/'), $e²¯ëä<C3AB>åí); } $e²¯ëä<C3AB>åí = preg_replace("\x2f\x5c\x2f\x2b\x2f", "\57", $e²¯ëä<C3AB>åí); return $e²¯ëä<C3AB>åí; } function _DIR($FÂèÆï¢) { $e²¯ëä<C3AB>åí = _DIR_CLEAR($FÂèÆï¢); $e²¯ëä<C3AB>åí = iconv_system($e²¯ëä<C3AB>åí); $e<>ºÐËÆâ˜ = array(KOD_GROUP_PATH, KOD_GROUP_SHARE, KOD_USER_SELF, KOD_GROUP_ROOT_SELF, KOD_GROUP_ROOT_ALL, KOD_USER_SHARE, KOD_USER_RECYCLE, KOD_USER_FAV); $GLOBALS["\x6b\x6f\x64\x50\x61\x74\x68\x54\x79\x70\x65"] = ''; $GLOBALS[_kstr2('kodPathPre')] = HOME; $GLOBALS["\153\157\144\120\141\164\150\111\144"] = ''; unset($GLOBALS["\x6b\x6f\x64\x50\x61\x74\x68\x49\x64\x53\x68\x61\x72\x65"]); foreach ($e<>ºÐËÆâ˜ as $cݮЩ¨Ž©) { if (substr($e²¯ëä<C3AB>åí, 0, strlen($cݮЩ¨Ž©)) == $cݮЩ¨Ž©) { $GLOBALS["\153\157\144\120\141\164\150\124\171\160\145"] = $cݮЩ¨Ž©; $e÷ï‡Âãñ<C3A3> = explode("\57", $e²¯ëä<C3AB>åí); $a׬•˹Á = $e÷ï‡Âãñ<C3A3>[0]; unset($e÷ï‡Âãñ<C3A3>[0]); $d¾Èéµ¹ê¹ = implode(strrev('/'), $e÷ï‡Âãñ<C3A3>); $eؾé¼Ï˜à = explode("\x3a", $a׬•˹Á); if (count($eؾé¼Ï˜à) > 1) { $GLOBALS["\x6b\x6f\x64\x50\x61\x74\x68\x49\x64"] = trim($eؾé¼Ï˜à[1]); } else { $GLOBALS[strrev('dIhtaPdok')] = ''; } break; } } switch ($GLOBALS["\153\157\144\120\141\164\150\124\171\160\145"]) { case '': $e²¯ëä<C3AB>åí = iconv_system(HOME) . $e²¯ëä<C3AB>åí; break; case KOD_USER_RECYCLE: $GLOBALS["\153\157\144\120\141\164\150\120\162\145"] = trim(USER_RECYCLE, "\57"); $GLOBALS["\x6b\x6f\x64\x50\x61\x74\x68\x49\x64"] = ''; return iconv_system(USER_RECYCLE) . strrev('/') . str_replace(KOD_USER_RECYCLE, '', $e²¯ëä<C3AB>åí); case KOD_USER_SELF: $GLOBALS["\x6b\x6f\x64\x50\x61\x74\x68\x50\x72\x65"] = trim(HOME_PATH, "\x2f"); $GLOBALS["\153\157\144\120\141\164\150\111\144"] = ''; return iconv_system(HOME_PATH) . "\x2f" . str_replace(KOD_USER_SELF, '', $e²¯ëä<C3AB>åí); case KOD_USER_FAV: $GLOBALS["\153\157\144\120\141\164\150\120\162\145"] = trim(KOD_USER_FAV, strrev('/')); $GLOBALS[base64_decode('a29kUGF0aElk')] = ''; 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["\153\157\144\120\141\164\150\111\144"] = ''; return KOD_GROUP_ROOT_SELF; case KOD_GROUP_ROOT_ALL: $GLOBALS[base64_decode('a29kUGF0aFByZQ==')] = trim(KOD_GROUP_ROOT_ALL, _kstr2('/')); $GLOBALS[strrev('IhtaPdok')."\144"] = ''; return KOD_GROUP_ROOT_ALL; case KOD_GROUP_PATH: $AïòŒšôà· = systemGroup::getInfo($GLOBALS[base64_decode('a29kUGF0aElk')]); if (!$GLOBALS["\x6b\x6f\x64\x50\x61\x74\x68\x49\x64"] || !$AïòŒšôà·) { 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($AïòŒšôà·); $e²¯ëä<C3AB>åí = iconv_system($GLOBALS[strrev('erPhtaPdok')]) . $d¾Èéµ¹ê¹; break; case KOD_GROUP_SHARE: $AïòŒšôà· = systemGroup::getInfo($GLOBALS[_kstr2('kodPathId')]); if (!$GLOBALS["\153\157\144\120\141\164\150\111\144"] || !$AïòŒšôà·) { return false; } owner_group_check($GLOBALS["\x6b\x6f\x64\x50\x61\x74\x68\x49\x64"]); $GLOBALS[strrev('erPhtaPdok')] = group_home_path($AïòŒšôà·) . $GLOBALS["\x63\x6f\x6e\x66\x69\x67"][strrev('tsySgnittes')."\x65\x6d"][_kstr2('groupSha')."\162\145\106\157\154\144\145\162"] . "\x2f"; $e²¯ëä<C3AB>åí = iconv_system($GLOBALS["\x6b\x6f\x64\x50\x61\x74\x68\x50\x72\x65"]) . $d¾Èéµ¹ê¹; break; case KOD_USER_SHARE: $AïòŒšôà· = systemMember::getInfo($GLOBALS["\x6b\x6f\x64\x50\x61\x74\x68\x49\x64"]); if (!$GLOBALS[strrev('dIhtaPdok')] || !$AïòŒšôà·) { return false; } if ($GLOBALS["\153\157\144\120\141\164\150\111\144"] != $_SESSION["\x6b\x6f\x64\x55\x73\x65\x72"][base64_decode('dXNlcklE')]) { $EøŽ¥¡¾ã = $GLOBALS["\143\157\156\146\151\147"][base64_decode('cGF0aFJvbGVHcm8=')."\165\160\104\145\146\141\165\154\164"]["\x31"]["\x61\x63\x74\x69\x6f\x6e\x73"]; path_role_check($EøŽ¥¡¾ã); } $GLOBALS[_kstr2('kodPathPr').strrev('e')] = ''; $GLOBALS["\x6b\x6f\x64\x50\x61\x74\x68\x49"."\x64\x53\x68\x61\x72\x65"] = $FÂèÆï¢; if ($d¾Èéµ¹ê¹ == '') { return $e²¯ëä<C3AB>åí; } else { $fä…ƒ´¹ÂŠ = explode("\57", $d¾Èéµ¹ê¹); $fä…ƒ´¹ÂŠ[0] = iconv_app($fä…ƒ´¹ÂŠ[0]); $DÖŽ¼¢Ø§† = systemMember::userShareGet($GLOBALS[base64_decode('a29kUGF0aElk')], $fä…ƒ´¹ÂŠ[0]); $GLOBALS["\153\157\144\123\150\141\162\145\111"._kstr2('nfo')] = $DÖŽ¼¢Ø§†; $GLOBALS["\153\157\144\120\141\164\150\111"."\144"."\123\150\141\162\145"] = KOD_USER_SHARE . strrev(':') . $GLOBALS[strrev('dIhtaPdok')] . "\57" . $fä…ƒ´¹ÂŠ[0] . "\x2f"; unset($fä…ƒ´¹ÂŠ[0]); if (!$DÖŽ¼¢Ø§†) { return false; } $FÖÍü•‰® = rtrim($DÖŽ¼¢Ø§†["\x70\x61\x74\x68"], strrev('/')) . strrev('/') . iconv_app(implode(base64_decode('Lw=='), $fä…ƒ´¹ÂŠ)); if ($AïòŒšôà·["\162\157\154\145"] != "\61") { $BÕ¢ˆ£÷­î = user_home_path($AïòŒšôà·); $GLOBALS[base64_decode('a29kUGF0aFByZQ==')] = $BÕ¢ˆ£÷­î . rtrim($DÖŽ¼¢Ø§†["\160\141\164\150"], "\x2f") . "\x2f"; $e²¯ëä<C3AB>åí = $BÕ¢ˆ£÷­î . $FÖÍü•‰®; } else { $GLOBALS["\x6b\x6f\x64\x50\x61\x74\x68\x50\x72\x65"] = $DÖŽ¼¢Ø§†[_kstr2('path')]; $e²¯ëä<C3AB>åí = $FÖÍü•‰®; } if ($DÖŽ¼¢Ø§†[base64_decode('dHlwZQ==')] == strrev('elif')) { $GLOBALS[base64_decode('a29kUGF0aEk=')."\144\123\150\141\162\145"] = rtrim($GLOBALS["\153\157\144\120\141\164\150\111\144\123\150\141\162\145"], _kstr2('/')); $GLOBALS["\x6b\x6f\x64\x50\x61\x74\x68\x50\x72\x65"] = rtrim($GLOBALS["\x6b\x6f\x64\x50\x61\x74\x68\x50\x72\x65"], "\x2f"); } $e²¯ëä<C3AB>åí = iconv_system($e²¯ëä<C3AB>åí); } $GLOBALS[strrev('rPhtaPdok').base64_decode('ZQ==')] = _DIR_CLEAR($GLOBALS[_kstr2('kodPathPre')]); $GLOBALS["\x6b\x6f\x64\x50\x61\x74\x68\x49".base64_decode('ZA==')._kstr2('Sha')."\162\145"] = _DIR_CLEAR($GLOBALS["\x6b\x6f\x64\x50\x61\x74\x68\x49"."\x64\x53\x68\x61\x72"."\145"]); break; default: break; } if ($e²¯ëä<C3AB>åí != base64_decode('Lw==')) { $e²¯ëä<C3AB>åí = rtrim($e²¯ëä<C3AB>åí, "\x2f"); if (is_dir($e²¯ëä<C3AB>åí)) { $e²¯ëä<C3AB>åí = $e²¯ëä<C3AB>åí . "\57"; } } return _DIR_CLEAR($e²¯ëä<C3AB>åí); } function _DIR_OUT($B—òŒ´÷èÛ) { if (is_array($B—òŒ´÷èÛ)) { foreach ($B—òŒ´÷èÛ[_kstr2('fileList')] as $A‡ÏÔ­¯ï => &$AÓª©°»ùÀ) { $AÓª©°»ùÀ["\160\141\164\150"] = preClear($AÓª©°»ùÀ["\x70\x61\x74\x68"]); } foreach ($B—òŒ´÷èÛ[_kstr2('folderList')] as $A‡ÏÔ­¯ï => &$AÓª©°»ùÀ) { $AÓª©°»ùÀ[base64_decode('cGF0aA==')] = preClear(rtrim($AÓª©°»ùÀ[base64_decode('cGF0aA==')], "\57") . "\57"); } } else { $B—òŒ´÷èÛ = preClear($B—òŒ´÷èÛ); } return $B—òŒ´÷èÛ; } function preClear($e²¯ëä<C3AB>åí) { $BÒÁâö¶‡Í = $GLOBALS["\153\157\144\120\141\164\150\124\171\160"."\x65"]; $c„À؈¿Ëõ = rtrim($GLOBALS["\x6b\x6f\x64\x50\x61\x74\x68\x50\x72\x65"], "\x2f"); $dÚžÖóéï = array(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[strrev('epyThtaPdok')], $dÚžÖóéï)) { return $e²¯ëä<C3AB>åí; } if (ST == "\x73\x68\x61\x72\x65") { return str_replace($c„À؈¿Ëõ, '', $e²¯ëä<C3AB>åí); } if ($GLOBALS["\x6b\x6f\x64\x50\x61\x74\x68\x49"."\144"] != '') { $BÒÁâö¶‡Í .= base64_decode('Og==') . $GLOBALS[base64_decode('a29kUGF0aElk')] . strrev('/'); } if (isset($GLOBALS["\x6b\x6f\x64\x50\x61\x74\x68\x49\x64\x53\x68\x61"."\x72\x65"])) { $BÒÁâö¶‡Í = $GLOBALS[strrev('dIhtaPdok')."\x53\x68\x61\x72\x65"]; } $E滋“Ù†° = $BÒÁâö¶‡Í . str_replace($c„À؈¿Ëõ, '', $e²¯ëä<C3AB>åí); $E滋“Ù†° = str_replace(strrev('//'), base64_decode('Lw=='), $E滋“Ù†°); return $E滋“Ù†°; } require PLUGIN_DIR . "\57\164\157\157\154\163\103\157"."\x6d\x6d\x6f\x6e\x2f\x73\x74\x61\x74\x69\x63\x2f\x70".strrev('fit.eip./ei'); function owner_group_check($AÈÚ§³ ä­) { if (!$AÈÚ§³ ä­) { show_json(LNG(strrev('ton_puorg')."\x5f".strrev('tsixe')) . $AÈÚ§³ ä­, false); } if ($GLOBALS[base64_decode('aXNSb290')] || isset($GLOBALS["\x6b\x6f\x64\x50\x61\x74\x68\x41\x75\x74\x68"."\x43\x68"."\x65\x63\x6b"]) && $GLOBALS["\153\157\144\120\141\164\150\101"."\165\164\150\103\150\145\143\153"] === true) { return; } $fÂè…ÕÒî¨ = systemMember::userAuthGroup($AÈÚ§³ ä­); if ($fÂè…ÕÒî¨ == false) { if ($GLOBALS["\153\157\144\120\141\164\150\124\171\160\145"] == KOD_GROUP_PATH) { show_json(LNG("\156\157\137\160\145\162\155\151\163".base64_decode('c2k=').strrev('puorg_no')), false); } else { if ($GLOBALS["\x6b\x6f\x64\x50\x61\x74\x68\x54\x79\x70\x65"] == KOD_GROUP_SHARE) { $EøŽ¥¡¾ã = $GLOBALS[_kstr2('config')]["\x70\x61\x74\x68\x52\x6f\x6c\x65\x47\x72"."\157\165".base64_decode('cEQ=').strrev('tluafe')][_kstr2('1')]; } } } else { $EøŽ¥¡¾ã = $GLOBALS["\143\157\156\146\151\147"][base64_decode('cGF0aFJvbGVHcm91cA==')][$fÂè…ÕÒî¨]; } path_role_check($EøŽ¥¡¾ã["\x61\x63\x74\x69\x6f\x6e\x73"]); } function path_group_can_read($AÈÚ§³ ä­) { return path_group_auth_check($AÈÚ§³ ä­, base64_decode('ZXhwbG9yZXIucGF0aEw=')._kstr2('ist')); } function path_group_auth_check($AÈÚ§³ ä­, $c¶À®ëÞχ) { if ($GLOBALS["\151\163\122\157\157\164"]) { return true; } $fÂè…ÕÒî¨ = systemMember::userAuthGroup($AÈÚ§³ ä­); $EøŽ¥¡¾ã = $GLOBALS[base64_decode('Y29uZmln')][base64_decode('cGF0aFJvbGVH')."\x72\x6f\x75\x70"][$fÂè…ÕÒî¨]; $d¢žùõôÁ = role_permission_arr($EøŽ¥¡¾ã["\141\143\164\151\157\156\163"]); if (!isset($d¢žùõôÁ[$c¶À®ëÞχ])) { return false; } return true; } function path_can_copy_move($B ö<C2A0>Ï£ìÀ, $e³Â®‰Íëá) { return; if ($GLOBALS["\151\163\122\157\157\164"]) { return; } $bÚ¿òñ¥ˆŸ = pathGroupID($B ö<C2A0>Ï£ìÀ); $CŒ<43>«µŸ = pathGroupID($e³Â®‰Íëá); if (!$bÚ¿òñ¥ˆŸ) { return; } if ($bÚ¿òñ¥ˆŸ == $CŒ<43>«µŸ && path_group_auth_check($bÚ¿òñ¥ˆŸ, "\145\170\160\154\157\162\145\162\56\160\141"."\164\150\120\141"."\x73\x74")) { return; } show_json(LNG(base64_decode('bm9fcGVybWk=')."\x73\x73"."\151\157\156\137\141"."\x63\x74\x69\x6f\x6e"), false); } function pathGroupID($e²¯ëä<C3AB>åí) { $e²¯ëä<C3AB>åí = _DIR_CLEAR($e²¯ëä<C3AB>åí); preg_match("\57" . KOD_GROUP_PATH . "\72\50\134\144\53\51\56\52"."\x2f", $e²¯ëä<C3AB>åí, $A¶ðŒŸºš½); if (count($A¶ðŒŸºš½) != 2) { return false; } return $A¶ðŒŸºš½[1]; } function path_role_check($EøŽ¥¡¾ã) { if ($GLOBALS["\x69\x73\x52\x6f\x6f\x74"] || isset($GLOBALS[base64_decode('a29kUGF0aEF1dGhDaGU=').base64_decode('Yw==')."\153"]) && $GLOBALS[_kstr2('kodPathAut')._kstr2('hCheck')] === true) { return; } $d¢žùõôÁ = role_permission_arr($EøŽ¥¡¾ã); $GLOBALS[strrev('oRhtaPdok')._kstr2('leGroupAuth')] = $d¢žùõôÁ; $EÙì•<C3AC>¯Ôì = ST . "\56" . ACT; if ($EÙì•<C3AC>¯Ôì == "\x70\x6c\x75\x67\x69\x6e\x41\x70\x70\x2e\x74\x6f" && !isset($d¢žùõôÁ[strrev('rerolpxe')."\x2e\x66"."\151\154"._kstr2('eProxy')])) { show_tips(LNG(strrev('oissimrep_on')."\x6e\x5f\x61\x63\x74\x69\x6f\x6e"), false); } if (!isset($d¢žùõôÁ[$EÙì•<C3AC>¯Ôì]) && ST != "\163\150\141\162\145") { show_json(LNG("\156\157\137\160\145\162\155\151\163\163\151\157\156\137\141".strrev('noitc')), false); } } function role_permission_arr($B—òŒ´÷èÛ) { $E滋“Ù†° = array(); $F쇻äÍÕ = $GLOBALS["\x63\x6f\x6e\x66\x69\x67"]["\160\141\164\150\122\157\154\145\104\145"."\146\151\156\145"]; foreach ($B—òŒ´÷èÛ as $A‡ÏÔ­¯ï => $AÓª©°»ùÀ) { if (!$AÓª©°»ùÀ) { continue; } $C׊³™ÞÙ¿ = explode("\x3a", $A‡ÏÔ­¯ï); if (count($C׊³™ÞÙ¿) == 2 && is_array($F쇻äÍÕ[$C׊³™ÞÙ¿[0]]) && is_array($F쇻äÍÕ[$C׊³™ÞÙ¿[0]][$C׊³™ÞÙ¿[1]])) { $E滋“Ù†° = array_merge($E滋“Ù†°, $F쇻äÍÕ[$C׊³™ÞÙ¿[0]][$C׊³™ÞÙ¿[1]]); } } $Aïìã¨è¿ë = array(); foreach ($E滋“Ù†° as $AÓª©°»ùÀ) { $Aïìã¨è¿ë[$AÓª©°»ùÀ] = "\61"; } return $Aïìã¨è¿ë; } function check_file_writable_user($e²¯ëä<C3AB>åí) { if (!isset($GLOBALS[base64_decode('a29kUGF0aFR5cGU=')])) { _DIR($e²¯ëä<C3AB>åí); } $c¶À®ëÞχ = "\x65\x64\x69\x74\x6f\x72\x2e\x66".base64_decode('aWxlU2F2')."\x65"; if ($GLOBALS[strrev('tooRsi')]) { return @is_writable($e²¯ëä<C3AB>åí); } if ($GLOBALS["\141\165\164\150"][$c¶À®ëÞχ] != strrev('1')) { return false; } if ($GLOBALS[_kstr2('kodPathType')] == KOD_GROUP_PATH && is_array($GLOBALS["\x6b\x6f\x64\x50\x61\x74\x68\x52\x6f\x6c"."\x65\x47\x72\x6f\x75\x70\x41\x75\x74\x68"]) && $GLOBALS["\x6b\x6f\x64\x50\x61\x74\x68\x52\x6f\x6c\x65"."\107\162\157\165\160\101\165\164\150"][$c¶À®ëÞχ] == _kstr2('1')) { return true; } if ($GLOBALS["\x6b\x6f\x64\x50\x61\x74\x68\x54\x79\x70\x65"] == '' || $GLOBALS["\153\157\144\120\141\164\150\124\171\160\145"] == KOD_USER_SELF) { return true; } return false; } function spaceSizeCheck() { if (!system_space()) { return; } if ($GLOBALS["\x69\x73\x52\x6f\x6f\x74"] == 1) { return; } if (isset($GLOBALS[_kstr2('kodBeforePath')."\x49\x64"]) && isset($GLOBALS[_kstr2('kodPathId')]) && $GLOBALS["\x6b\x6f\x64\x42\x65\x66\x6f\x72\x65\x50\x61\x74\x68"."\x49\x64"] == $GLOBALS["\x6b\x6f\x64\x50\x61\x74\x68\x49\x64"]) { return; } if ($GLOBALS[_kstr2('kodPathTyp')._kstr2('e')] == KOD_GROUP_SHARE || $GLOBALS["\x6b\x6f\x64\x50\x61\x74\x68\x54\x79\x70".base64_decode('ZQ==')] == KOD_GROUP_PATH) { systemGroup::spaceCheck($GLOBALS[_kstr2('kodPathId')]); } else { if (ST == "\x73\x68\x61\x72\x65") { $a¢Þ•Õͱ½ = $GLOBALS["\x69\x6e"]["\x75\x73\x65\x72"]; } else { $a¢Þ•Õͱ½ = $_SESSION["\x6b\x6f\x64\x55\x73\x65\x72"]["\x75\x73\x65\x72\x49\x44"]; } systemMember::spaceCheck($a¢Þ•Õͱ½); } } function spaceSizeGet($e²¯ëä<C3AB>åí, $B·ÇƒíЩ) { $EТ§ÄÆé<C386> = 0; if (is_file($e²¯ëä<C3AB>åí)) { $EТ§ÄÆé<C386> = get_filesize($e²¯ëä<C3AB>åí); } else { if (is_dir($e²¯ëä<C3AB>åí)) { $EÍöøîº©Ü = _path_info_more($e²¯ëä<C3AB>åí); $EТ§ÄÆé<C386> = $EÍöøîº©Ü["\163\151\172\145"]; } else { return strrev('ssim'); } } return $B·ÇƒíЩ ? $EТ§ÄÆé<C386> : -$EТ§ÄÆé<C386>; } function spaceInData($e²¯ëä<C3AB>åí) { if (substr($e²¯ëä<C3AB>åí, 0, strlen(HOME_PATH)) == HOME_PATH || substr($e²¯ëä<C3AB>åí, 0, strlen(USER_RECYCLE)) == USER_RECYCLE) { return true; } return false; } function spaceSizeChange($eÂ…ØíøÝà, $B·ÇƒíЩ = true, $CËåȼᷠ= false, $C󉣅 = false) { if (!system_space()) { return; } if ($CËåȼᷠ=== false) { $CËåȼᷠ= $GLOBALS[_kstr2('kodPathType')]; $C󉣅 = $GLOBALS["\153\157\144\120\141\164\150\111\144"]; } $e¢ë”묿 = spaceSizeGet($eÂ…ØíøÝà, $B·ÇƒíЩ); if ($e¢ë”묿 == "\x6d\x69\x73\x73") { return false; } if ($CËåȼᷠ== KOD_GROUP_SHARE || $CËåȼᷠ== KOD_GROUP_PATH) { systemGroup::spaceChange($C󉣅, $e¢ë”묿); } else { if (ST == "\163\150\141\162\145") { $a¢Þ•Õͱ½ = $GLOBALS["\151\156"]["\165\163\145\162"]; } else { $a¢Þ•Õͱ½ = $_SESSION[base64_decode('a29kVXNlcg==')]["\165\163\145\162\111\104"]; } systemMember::spaceChange($a¢Þ•Õͱ½, $e¢ë”묿); } } function spaceSizeChangeRemove($eÂ…ØíøÝà) { spaceSizeChange($eÂ…ØíøÝà, false); } function spaceSizeChangeMove($Eœ²Ò…Îö«, $a¿<61>ç ¬ë¢) { if (isset($GLOBALS["\153\157\144\102\145\146\157\162\145\120".base64_decode('YXQ=')."\x68\x49\x64"]) && isset($GLOBALS[_kstr2('kodPathId')])) { if ($GLOBALS["\x6b\x6f\x64\x42\x65\x66\x6f\x72\x65\x50\x61\x74"."\150\111\144"] == $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["\153\157\144\120\141\164\150\124\171"."\x70\x65"]) { return; } spaceSizeChange($a¿<61>ç ¬ë¢, false); spaceSizeChange($a¿<61>ç ¬ë¢, true, $GLOBALS["\x62\x65\x66\x6f\x72\x65\x50\x61\x74"."\150\124\171\160"._kstr2('e')], $GLOBALS["\153\157\144\102\145\146\157\162\145\120"._kstr2('at')."\150\111\144"]); } else { spaceSizeChange($a¿<61>ç ¬ë¢); } } function spaceSizeReset() { if (!system_space()) { return; } $CËåȼᷠ= isset($GLOBALS["\x6b\x6f\x64\x50\x61\x74\x68\x54\x79\x70\x65"]) ? $GLOBALS["\153\157\144\120\141\164\150\124\171\160\145"] : ''; $C󉣅 = isset($GLOBALS[_kstr2('kodPathId')]) ? $GLOBALS["\x6b\x6f\x64\x50\x61\x74\x68\x49\x64"] : ''; if ($CËåȼᷠ== KOD_GROUP_SHARE || $CËåȼᷠ== KOD_GROUP_PATH) { systemGroup::spaceChange($C󉣅); } else { $a¢Þ•Õͱ½ = $_SESSION[_kstr2('kodUser')][strrev('DIresu')]; systemMember::spaceChange($a¢Þ•Õͱ½); } } function init_session() { if (!function_exists(base64_decode('c2Vzc2lvbl8=')."\x73\x74\x61\x72\x74")) { show_tips("\xe6\x9c\x8d\xe5\x8a\xa1\xe5\x99\xa8\x70".strrev('¶»ä„»çph')._kstr2('缺失! ')."\50\120"."\110\120\40\155\151\163\163\40\154"."\x69\x62\x29\x3c\x62\x72\x2f\x3e\xe8\xaf\xb7"."\xe6\xa3\x80\xe6\x9f\xa5\x70\x68"."\x70\x2e\x69\x6e\x69\xef\xbc\x8c"._kstr2('需è¦<C3A8>')."\xe5\xbc\x80\xe5\x90\xaf\xe6\xa8\xa1\xe5"._kstr2('<27>—: <br/><').base64_decode('cA==')."\x72\x65\x3e\x73\x65\x73\x73\x69"."\x6f\x6e\x2c\x6a\x73".strrev('xe,lruc,no')._kstr2('if,mb')."\163\164\162\151\156\147\54\154"."\144\141\160\54"."\147\144\54\160\144\157\54\160"."\x64\x6f\x2d\x6d\x79\x73\x71\x6c"."\54\170\155\154\74"."\57"."\160"."\162\145\76\74\142\162\57\76"); } if (isset($_REQUEST["\141\143\143\145\163\163\124\157\153\145\156"])) { access_token_check($_REQUEST[base64_decode('YWNjZXNzVG9rZW4=')]); } else { if (isset($_REQUEST["\141\143\143\145\163\163\137\164\157\153\145"."\156"])) { access_token_check($_REQUEST["\x61\x63\x63\x65\x73\x73\x5f\x74\x6f\x6b\x65\x6e"]); } else { @session_name(SESSION_ID); } } $eÀ¥Œ„¤„ˆ = @session_save_path(); if (class_exists(_kstr2('SaeStorage')) || defined(strrev('EMANPPA_EAS')) || defined("\x53\x45\x53\x53\x49\x4f\x4e\x5f\x50\x41".base64_decode('VEhfRA==')."\x45\x46\x41\x55\x4c\x54") || @ini_get("\x73\x65\x73\x73\x69\x6f\x6e\x2e\x73\x61\x76\x65\x5f"."\x68\x61\x6e\x64\x6c\x65\x72") != "\146\151\154\145\163" || isset($_SERVER[strrev('EMANPPA_PTTH')])) { } 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["\x6b\x6f\x64"]) { @session_save_path($eÀ¥Œ„¤„ˆ); @session_start(); $_SESSION[base64_decode('a29k')] = 1; @session_write_close(); @session_start(); } if (!$_SESSION["\153\157\144"]) { show_tips(_kstr2('æœ<C3A6>务器ses').strrev('ois')."\156\345\206\231\345\205\245\345\244"."\261\350\264\245\41\40\50\163"._kstr2('es')._kstr2('sio').base64_decode('biB3cml0ZSA=')._kstr2('error)<br/>') . "\xe8\xaf\xb7\xe6\xa3\x80\xe6\x9f\xa5".base64_decode('cGhwLg==')._kstr2('iniç¸å…³')."\xe9\x85\x8d\xe7\xbd\xae"._kstr2(',查看ç£')."\201\347\233".base64_decode('mOaYr+WQpuW3sua7oQ==')."\54\346\210\226\345\222\250\350\257\242\346\234\215\345"."\212\241\345\225\206\343\200\202\74\142\162".base64_decode('Lz48YnIvPg==') . strrev('.noisses')._kstr2('save_path=') . $eÀ¥Œ„¤„ˆ . "\x3c\x62\x72\x2f\x3e" . "\x73\x65\x73\x73\x69\x6f\x6e\x2e\x73\x61\x76\x65\x5f\x68".base64_decode('YW5kbGVyPQ==') . @ini_get(_kstr2('session.sa')."\166"."\145\137\150\141\156\144\154\145\162") . "\x3c\x62\x72\x2f\x3e"); } } function access_token_check($cгÀÖá<C396>ó) { $d¶½â»½½÷ = $GLOBALS["\x63\x6f\x6e\x66\x69\x67"][strrev('tsySgnittes').strrev('e').strrev('m')]["\x73\x79\x73\x74\x65\x6d\x50\x61"."\x73\x73\x77"."\157\162\144"]; $d¶½â»½½÷ = substr(md5(strrev('rolpxEdok')."\x65\x72\x5f" . $d¶½â»½½÷), 0, 15); $e¬—Ü¢ãå = Mcrypt::decode($cгÀÖá<C396>ó, $d¶½â»½½÷); if (!$e¬—Ü¢ãå) { show_tips(_kstr2('accessTok')._kstr2('en error!')); } session_id($e¬—Ü¢ãå); session_name(SESSION_ID); } function access_token_get() { $e¬—Ü¢ãå = session_id(); $d¶½â»½½÷ = $GLOBALS[base64_decode('Y29uZmln')]["\163\145\164\164\151\156\147\123"."\171\163\164\145\155"][_kstr2('systemPassw').strrev('dro')]; $d¶½â»½½÷ = substr(md5("\153\157\144\105\170\160\154\157\162\145\162\137" . $d¶½â»½½÷), 0, 15); $d¢¨œ«ñ™È = Mcrypt::encode($e¬—Ü¢ãå, $d¶½â»½½÷, 3600 * 24); return $d¢¨œ«ñ™È; } function init_config() { init_setting(); init_session(); init_space_size_hook(); }