<?php
	include("../../3ivx.store/application.php");
	if ($_REQUEST["format"] == "zip") {
		$servers  = array(); // initiliaze it
		$servers[0]  = "3ivx_MPEG-4_504_trial_win.zip";
		// continue incrementing the number in the []'s each //time
	} else {
		$servers  = array(); // initiliaze it
		$servers[0]  = "3ivx_MPEG-4_504_trial_win.exe";
		// continue incrementing the number in the []'s each //time
	}
	global $CFG;


        $file = "$CFG->downloaddir/$servers[0]";
        $fileSize = filesize ($file);

        header("Content-type: application/octet-stream");
        header("Content-Length: ".$fileSize);
        header('Content-Disposition: attachment; filename="' . $servers[0] . '"');
        header('Cache-Control: must-revalidate, private');
        header('Expires: 30');
        header('Pragma: nocache');

        @readfile($file);

        exit;

?>
