0) { $res=mysql_query("select email from covalent.session where session_id='".$alt_sessid."'") or die(mysql_error()); $row=mysql_fetch_array($res); sn_stuff($row[0]); } else { $sn_customer_id=0; $sn_contact_id=23105; } /************************************* Set Up Products *************************************/ if ($product == "wsas") { $url = "http://dist.wso2.org/products/wsas/java/"; } elseif ($product == "hq") { $url = "http://www.hyperic.net/downloads/download.do?covalent=true"; } elseif ($product == "terracotta") { $url = "http://www.terracotta.org/confluence/display/orgsite/Download"; } elseif ($product == "httpd") { $url = "http://httpd.apache.org/"; } elseif ($product == "tomcat") { $url = "http://jakarta.apache.org/tomcat/index.html"; } elseif ($product == "geronimo") { $url = "http://geronimo.apache.org/"; } elseif ($product == "axis") { $url = "http://ws.apache.org/axis/"; } elseif ($product == "cayenne") { $url = "http://cayenne.apache.org/"; } elseif ($product == "flood") { $url = "http://httpd.apache.org/test/flood/"; } elseif ($product == "jakartacommonslogging") { $url = "http://jakarta.apache.org/"; } elseif ($product == "jmeter") { $url = "http://jakarta.apache.org/"; } elseif ($product == "james") { $url = "http://james.apache.org/"; } elseif ($product == "log4j") { $url = "http://logging.apache.org/"; } elseif ($product == "openjpa") { $url = "http://openjpa.apache.org/"; } elseif ($product == "roller") { //$url = "http://cwiki.apache.org/confluence/display/ROLLER/Roller+Downloads"; $url = "http://roller.apache.org/"; } elseif ($product == "servicemix") { $url = "http://servicemix.apache.org/"; } elseif ($product == "struts") { $url = "http://struts.apache.org/"; } elseif ($product == "xalan") { $url = "http://xml.apache.org/"; } elseif ($product == "xerces") { $url = "http://xml.apache.org/"; } elseif ($product == "mod_aspdotnet") { $url = "http://sourceforge.net/projects/mod-aspdotnet/"; } elseif ($product == "openldap") { $url = "http://www.openldap.org/"; } elseif ($product == "openssl") { $url = "http://www.openssl.org/"; } elseif ($product == "axis2") { $url = "http://ws.apache.org/axis2/"; } elseif ($product == "j2g") { $url = "http://geronimo.apache.org/development-tools.html#DevelopmentTools-J2G"; } elseif ($product == "activemq") { $url = "http://activemq.apache.org/"; } //echo $_COOKIE["cookie_link"] . "
"; //echo "u_id is " . $u_id . "
"; //echo "product is " . $product . "
"; $file_type='op'; //they are logged in $todays_date = date("Y-m-d H:i:s"); $query = "insert into downloads set dlip = '".$_SERVER[REMOTE_ADDR]."', prproducttype = '" . $product . "', customerid = '$sn_customer_id', contactid = '$sn_contact_id', dlproductver = '', dldownloaddate = '$todays_date', file_name = '', file_type = '$file_type', user_agent='".$_SERVER['HTTP_USER_AGENT']."', download_type = '', operating_system = 'unknown'"; /* 060710 11:34:53 355602 Query insert into downloads set dlip = '64.105.110.82', prproducttype = 'ers', customerid = '30900', contactid = '21422', dlproductver = '2.4.0', dldownloaddate = '2006-07-10 11:57:32', file_name = 'dist/ers/2.4.0/ers-2.4.0-x86-winnt.sfx.exe', file_type = 'dist', download_type = '', operating_system = 'Windows 2000/2003' */ mysql_query($query); header("Location: " . $url . ""); //header("Location: $HTTP_X_FORWARDED_HOST"); exit; ?>