🌐 System File Manager (Localhost)

📍 Current Directory: 🖥️ System Root $crumb): if ($crumb === '') continue; // Build path progressively if ($i === 0 && DIRECTORY_SEPARATOR === '\\') { // Windows drive letter $currentPath = $crumb . DIRECTORY_SEPARATOR; } else { $currentPath .= ($currentPath === DIRECTORY_SEPARATOR ? '' : DIRECTORY_SEPARATOR) . $crumb; } ?> Full System Path:

⚠️ LOCALHOST MODE - FULL SYSTEM ACCESS ENABLED

This file manager has unrestricted access to your entire system. Use with caution!

🧭 Quick Navigation: ⬅️ Go Up 🖥️ System Root 🏠 Script Home 💽 Drives: 🐧 Quick: /home /var /etc /tmp 📊 Items: | 📁 Readable: | ✏️ Writable:

📝 Editing:


❌ Cancel
📤 Upload file:
📁 Create folder:
✏️ Rename:

📋 Contents:

.. ($parentName) " . htmlspecialchars($parent) . "
"; } // Display folders foreach ($folders as $folder) { $item_path = $dir . DIRECTORY_SEPARATOR . $folder; $permissions = formatPermissions($item_path); $isWritable = is_writable($item_path); $itemCount = is_readable($item_path) ? count(array_diff(scandir($item_path), ['.', '..'])) : '?'; echo "
📁 " . htmlspecialchars($folder) . " ($itemCount items) | $permissions | " . ($isWritable ? '✏️ Writable' : '🔒 Read-only') . " 🗑 Delete
"; } // Display files foreach ($files as $file) { $item_path = $dir . DIRECTORY_SEPARATOR . $file; $fileSize = filesize($item_path); $fileSizeFormatted = $fileSize > 1024*1024 ? round($fileSize/(1024*1024), 2) . ' MB' : ($fileSize > 1024 ? round($fileSize/1024, 2) . ' KB' : $fileSize . ' B'); $lastModified = date('Y-m-d H:i:s', filemtime($item_path)); $permissions = formatPermissions($item_path); $isWritable = is_writable($item_path); $isExecutable = is_executable($item_path); // File type icon $ext = strtolower(pathinfo($file, PATHINFO_EXTENSION)); $icon = '📄'; if (in_array($ext, ['jpg', 'jpeg', 'png', 'gif', 'bmp', 'svg'])) $icon = '🖼️'; elseif (in_array($ext, ['mp3', 'wav', 'ogg', 'flac'])) $icon = '🎵'; elseif (in_array($ext, ['mp4', 'avi', 'mkv', 'mov'])) $icon = '🎬'; elseif (in_array($ext, ['zip', 'rar', '7z', 'tar', 'gz'])) $icon = '📦'; elseif (in_array($ext, ['php', 'html', 'css', 'js'])) $icon = '💻'; elseif (in_array($ext, ['txt', 'md', 'log'])) $icon = '📝'; elseif ($isExecutable) $icon = '⚙️'; echo "
$icon " . htmlspecialchars($file) . " ($fileSizeFormatted) | $lastModified | $permissions" . ($isExecutable ? ' | ⚙️ Executable' : '') . ($isWritable ? '' : ' | 🔒 Read-only') . " "; // Download button for all files echo "💾 Download"; // Edit button only for text files and if writable if (isEditableFile($file)) { echo "✏️ Edit"; } // Delete button echo "🗑 Delete"; echo "
"; } ?>