if (!$torrent->checkFileNoExpire($file)) { die('File has expired...'); } touch($file); header("Pragma: public"); header("Expires: 0"); header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); header("Cache-Control: private", false); if ($CONFIG['torrent_gzip']) { header('Content-Encoding: gzip'); } header("Content-Type: application/x-bittorrent"); header("Content-Disposition: attachment; filename=" . strtoupper(sha1(md5($file_ID . ".torrent"))) . ".torrent"); header("Content-Transfer-Encoding: binary"); if ($CONFIG['torrent_gzip']) { $output = $torrent->decompressFile(file_get_contents($file)); header("Content-Length: " . $torrent->decompressedSize($output)); } else { $output = file_get_contents($file); header("Content-Length: " . filesize($file)); } echo $output; exit; break; } if ($requri == "install" || $requri == "") { ?> </div> </body> </html> <?php