Public Messages
'; echo '' . htmlspecialchars($entry['name'] ?? 'Anonymous') . '
'; echo '' . htmlspecialchars($entry['message'] ?? '') . '
'; if (!empty($entry['file'])) { $fileType = pathinfo($entry['file'], PATHINFO_EXTENSION); $filePath = 'uploads/' . htmlspecialchars($entry['file']); // Correctly generate the URL to the uploaded file if (in_array($fileType, ['jpg', 'jpeg', 'png', 'gif'])) { echo ''; } elseif (in_array($fileType, ['mp4', 'webm', 'ogg'])) { echo ''; } } echo ''; } } ?>