echo $icon . ' '; if (is_dir($full)): <a href="?path= echo urlencode($full); " style="font-weight: bold;"> echo htmlspecialchars($f); </a> else: <a href="?path= echo urlencode($path); &edit= echo urlencode($f); " title="Click to edit"> echo htmlspecialchars($f); </a> <small style="color:#888; margin-left:5px;"> ( echo number_format(filesize($full)); bytes) </small> endif; | echo is_file($full) ? formatSize(filesize($full)) : '<em>DIR</em>'; | <div style="display:flex;gap:5px;flex-wrap:wrap;"> <!-- Rename Form --> <!-- Edit Link (for files only) --> if (is_file($full)): <a href="?path= echo urlencode($path); &edit= echo urlencode($f); " class="action-btn" title="Edit file">✍️</a> endif; <!-- Download Link (for files only) --> if (is_file($full)): <a href="?path= echo urlencode($path); &download= echo urlencode($f); " class="action-btn" title="Download">⬇️</a> endif; <!-- Delete Button --> <a href="?path= echo urlencode($path); &delete= echo urlencode($f); " onclick="return confirmDelete(' echo addslashes(htmlspecialchars($f)); ')" class="action-btn delete-btn" title="Delete">🗑️</a> </div> | |