hit_id."'"); $url = stripslashes($click->url); $forward_result = mysql_query("select forward from tg_ref_approved where url = '$url'"); $forward_row = mysql_fetch_array($forward_result); if ($forward_row['forward'] != "") { $url = $forward_row['forward']; } } else { if (isset($_REQUEST["site"])) { $url = $_REQUEST["site"]; } else { $url = &$_SERVER['SERVER_NAME']; } } } else { $url = &$_SERVER['SERVER_NAME']; } header("Location: http://$url"); exit; ?>