<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Request Panel</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            padding: 20px;
        }
        table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 20px;
        }
        table, th, td {
            border: 1px solid #ddd;
        }
        th, td {
            padding: 8px;
            text-align: left;
        }
        th {
            background-color: #f2f2f2;
        }
    </style>
</head>
<body>

<h1>Request Log Panel</h1>

<table>
    <tr>
        <th>IP Address</th>
        <th>Timestamp</th>
        <th>Request Data</th>
    </tr>

    <?php
    // Split the log data into individual log entries
    $logEntries = explode("\n", $logData);
    foreach ($logEntries as $entry) {
        if (!empty($entry)) {
            // Split each entry into components
            list($ip, $time, $data) = explode(" - ", $entry, 3);
            echo "<tr>";
            echo "<td>" . htmlspecialchars($ip) . "</td>";
            echo "<td>" . htmlspecialchars($time) . "</td>";
            echo "<td>" . htmlspecialchars($data) . "</td>";
            echo "</tr>";
        }
    }
    ?>
</table>

</body>
</html>
