2007-07-09 06:12:22 +00:00
|
|
|
<?php
|
|
|
|
header("Content-Type: application/octet-stream");
|
2009-06-11 05:18:40 +00:00
|
|
|
header("Content-Disposition: attachment; filename=" . friendly_url("$_GET[download]-" . implode("_", $_GET["where"])) . "." . friendly_url($_GET["field"]));
|
2009-07-11 19:45:57 +00:00
|
|
|
echo $dbh->result($dbh->query("SELECT " . idf_escape($_GET["field"]) . " FROM " . idf_escape($_GET["download"]) . " WHERE " . where($_GET) . " LIMIT 1"));
|
2009-06-18 04:27:02 +00:00
|
|
|
exit; // don't output footer
|