-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
executable file
·49 lines (42 loc) · 1.03 KB
/
index.php
File metadata and controls
executable file
·49 lines (42 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?php
require 'config.php';
$logs = $pdo->query("
SELECT * FROM webhook_requests
ORDER BY id DESC
LIMIT 100
")->fetchAll(PDO::FETCH_ASSOC);
?>
<!DOCTYPE html>
<html>
<head>
<title>Webhook Logs</title>
<style>
body { font-family: Arial; background: #f6f7fb; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { padding: 10px; border-bottom: 1px solid #ddd; }
th { background: #222; color: #fff; }
pre { white-space: pre-wrap; }
</style>
</head>
<body>
<h2>📡 Webhook Request Logs</h2>
<table>
<tr>
<th>ID</th>
<th>Method</th>
<th>IP</th>
<th>Body</th>
<th>Time</th>
</tr>
<?php foreach ($logs as $log): ?>
<tr>
<td><?= $log['id'] ?></td>
<td><?= $log['method'] ?></td>
<td><?= $log['ip_address'] ?></td>
<td><pre><?= htmlspecialchars($log['body']) ?></pre></td>
<td><?= $log['created_at'] ?></td>
</tr>
<?php endforeach; ?>
</table>
</body>
</html>