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"]));
|
2010-05-14 13:51:54 +00:00
|
|
|
echo $connection->result("SELECT" . limit(idf_escape($_GET["field"]) . " FROM " . table($TABLE), " WHERE " . where($_GET), 1));
|
2009-06-18 04:27:02 +00:00
|
|
|
exit; // don't output footer
|