dblib/db_conf.php4"; if($utm_id == "") { echo "No utm_id was specified in URL!"; exit; } db_connect($CFG->host,$CFG->user,$CFG->password,$CFG->dbname); $query_result = db_query("select LeadID, File, Redirect from Campaign where ID='$utm_id'"); if ($rs = db_fetch_array($query_result)) { $LeadID = $rs["LeadID"]; $File = $rs["File"]; $Redirect = $rs["Redirect"]; db_query("update Campaign set Count=Count+1 where ID='$utm_id'"); } else { echo "Invalid utm_id specified in URL!
"; echo "domain . "/>ACOM Home Page"; exit; } db_free_result($query_result); setcookie("LeadID", "$LeadID", time()+(1 * 12 * 3600 * 1000), "/", $CFG->domain); setcookie("LeadID", "", 1, "/", "www." . $CFG->domain); if($Redirect == "Y") { if(strpos($File, "?")) header("Location: $File&utm_id=$utm_id"); else header("Location: $File?utm_id=$utm_id"); } else { include $File; } ?>