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