<?php require __DIR__ . '/../config.php'; $pdo=get_pdo(); $campaign=intval($_GET['c']??0); $contact=intval($_GET['cid']??0); if($campaign && $contact){ $pdo->prepare('UPDATE campaign_logs SET opened=1 WHERE campaign_id=? AND contact_id=?')->execute([$campaign,$contact]); } header('Content-Type:image/gif'); echo base64_decode('R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==');