$maxTracks) { $lines = array_slice($lines, -$maxTracks); file_put_contents($logFile, implode("\n", $lines) . "\n", LOCK_EX); } $reversed = array_reverse($lines); foreach ($reversed as $line) { $decoded = json_decode($line, true); if (is_array($decoded)) { $tracks[] = $decoded; } } } } ?>
Create a unique key to get a link that identifies which link was clicked. Clicks are logged with the key.
Replace KEY in the URL with the key above to construct your link.
No tracked keys yet. Click the button above to create one.
No tracks yet.
| Time | Key | IP | User-Agent | Referrer | Target URL | Method | Request URI |
|---|---|---|---|---|---|---|---|
| (X-Forwarded: ' . htmlspecialchars($t['ip_forwarded']) . ')'; ?> |