<?

include_once("bibparse.inc.php");

$id = $_REQUEST["id"];

header("pragma: nocache");
header("Content-Type: text/plain");
header("Content-Disposition: attachment; filename=".basename($id).".bib");

//header("");
print "@".bp_find_all("files", "$id");

?>
