Files
html/open.php
2026-04-13 13:10:03 +02:00

15 lines
506 B
PHP

<?php
header("Content-Type: image/gif");
header("Cache-Control: no-cache, no-store");
$t = $_GET["t"] ?? "";
$c = $_GET["c"] ?? "";
$ip = $_SERVER["REMOTE_ADDR"] ?? "";
$ua = $_SERVER["HTTP_USER_AGENT"] ?? "";
if ($t && $c) {
$log = "/var/log/ethica-opens.log";
$line = date("Y-m-d H:i:s") . " " . $t . " " . $c . " " . $ip . " " . substr($ua,0,100) . "
";
file_put_contents($log, $line, FILE_APPEND | LOCK_EX);
}
echo base64_decode("R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7");