include ("includes/db.php");
mysql_select_db("rocketreader_com");
$s = "update tracking set entries = entries + 1 where tracking_id = $id";
$sql = mysql_query($s);
$ip = @$REMOTE_ADDR;
$s = "insert into tracking_incoming (tracking_id, ip_address) values ($id, '$ip')";
$sql = mysql_query($s);
$s = "select URL_redirect,site_displayed_in_welcome from tracking where tracking_id = $id";
$result = mysql_query($s);
$url = "http://www.rocketreader.com";
if ($row = mysql_fetch_assoc($result))
{
if ($row['URL_redirect'] != "")
$url = $row['URL_redirect'];
$displays = $row['site_displayed_in_welcome'];
if ($displays != "")
$url = $url . "?sender=" . $displays;
}
$cval = "trkentry_{$id}";
setcookie($cval, "1", time() + 24*365*3600000);
?>
echo ''; ?>