0) { $ctrow=mysql_fetch_array($goto); if($ctrow['clickthru']!="") { if(substr(urldecode($ctrow['clickthru']),0,4)!="http") { header( "Location: http://".urldecode($ctrow['clickthru'])); } else { header( "Location: ".urldecode($ctrow['clickthru'])); } } } } else { // check for show_id to see if it's a non-campaign ct $site_id = $_GET['sid']; if ($site_id != ""){ include('set_cookie.php'); $goto=mysql_query("SELECT logo_link FROM shows WHERE id=$site_id"); if(mysql_num_rows($goto)>0) { $ctrow=mysql_fetch_array($goto); if($ctrow['logo_link'] != "") { if(substr(urldecode($ctrow['logo_link']),0,4)!="http") { header( "Location: http://".urldecode($ctrow['logo_link'])); } else { header( "Location: ".urldecode($ctrow['logo_link'])); } } } } } ?>