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