[insert_php]
if(isset($_COOKIE[‘refid’])) {
$refid = $_COOKIE[‘refid’];
}
if(isset($_GET[‘refid’])) {
$refid = filter_var($_GET[‘refid’], FILTER_SANITIZE_STRING);
}
if(isset($_COOKIE[‘refcampaign’])) {
$refcampaign = $_COOKIE[‘refcampaign’];
}
if(isset($_GET[‘refcampaign’])) {
$refcampaign = $_GET[‘refcampaign’];
}
$additional_flags = ”;
if($refid) { $additional_flags .= ‘&refid=’.$refid; }
if($refcampaign) { $additional_flags .= ‘&refcampaign=’.$refcampaign; }
echo ‘‘;
[/insert_php]