$itemid="";
$itemid=$HTTP_GET_VARS["id"];
if ($itemid=="") {
include('header1.php');
?>
include('footer1.php');
die();
}
if ($itemid==1) {
$itemdesc="test4u_demo_setup.zip";
}
if ($itemid==2) {
$itemdesc="test4u_exam_setup210.zip";
}
if ($itemid==101) {
$itemdesc="makedb_mssqlserver.zip";
}
if ($itemid==102) {
$itemdesc="makedb_mysql.zip";
}
if ($itemid==103) {
$itemdesc="statisticsv1.zip";
}
if ($itemid==104) {
$itemdesc="ChangeSerial.zip";
}
if ($itemid==200) {
$itemdesc="DB_Migration_Tool.zip";
}
if ($itemid==203) {
$itemdesc="statisticsv2.zip";
}
$gkIP=$_SERVER['REMOTE_ADDR'];
#die($itemdesc);
openDb();
$mySQL="INSERT INTO il_downloads ( date1 , item_id , ip ) VALUES ( ".gmmktime().", ".$itemid." , '".$gkIP."')";
$rsTemp=mysql_query($mySQL,$connTemp) or die("Query failed 378");
$sub ="email:".$usermail."\n";
$sub .="ItemID:".$itemid."\n";
$sub .="itemDesc:".$itemdesc."\n";
$sub .="IP:$gkIP\n";
$sub .="http://www.ripe.net/perl/whois?form_type=simple&full_query_string=&searchtext=".$gkIP."&do_search=Search\n";
$headers="";
$headers .="From: INFOlearn Downloads\r\n";
$headers .="Reply-To: download@infolearn.gr\r\n";
$headers .="X-Mailer: PHP/".phpversion();
mail("report@infolearn.gr", "Νέο Download - File=".$itemdesc, $sub ,$headers);
if ($itemid==1) {
//header("Location: http://users.otenet.gr/~infolear/test4u_demo_setup.zip");
}
if ($itemid==2) {
header("Location: http://www.test4u.gr/download/test4u_exam_setup210.zip");
}
if ($itemid==101) {
header("Location: http://www.test4u.gr/test4u/sqlscript/makedb_mssqlserver.zip");
}
if ($itemid==102) {
header("Location: http://www.test4u.gr/test4u/sqlscript/makedb_mysql.zip");
}
if ($itemid==103) {
header("Location: http://www.test4u.gr/download/statisticsv2.zip");
}
if ($itemid==104) {
header("Location: http://www.test4u.gr/download/ChangeSerial.zip");
}
if ($itemid==200) {
header("Location: http://www.test4u.gr/download/DB_Migration_Tool.zip");
}
if ($itemid==203) {
header("Location: http://www.test4u.gr/download/statisticsv2.zip");
}
?>