// Need to write out to database that download has been initiated (along with cookie affid if there is one)
include( 'includes/db.inc.php');
//$query = "INSERT INTO `CallTheBall`.`file_downloads` (FileName, Counter) VALUES ('WinDaemon Zip', 1)";
// Downloads file from fileserver
$query = "UPDATE `CallTheBall`.`file_downloads` SET Counter = Counter + 1 WHERE FileName = 'WinDaemon Zip'";
$result = true; //Query($query);
if ( $result != false )
{
header("Content-Type: application/zip");
header("Content-Disposition: attachment; filename=LatestVersion/WinDaemonLatestVersion.zip");
header("Cache-control: private");
header("Location: LatestVersion/WinDaemonLatestVersion.zip");
}
else
echo "
Please click here to start downloading.";
?>