2
/* $Id: application_octetstream__download.inc.php 9617 2006-10-26 14:58:40Z nijel $ */
3
// vim: expandtab sw=4 ts=4 sts=4:
5
function PMA_transformation_application_octetstream__download(&$buffer, $options = array(), $meta = '') {
6
global $row, $fields_meta;
8
if (isset($options[0]) && !empty($options[0])) {
9
$cn = $options[0]; // filename
11
if (isset($options[1]) && !empty($options[1])) {
12
foreach($fields_meta as $key => $val) {
13
if ($val->name == $options[1]) {
23
$cn = 'binary_file.dat';
29
'<a href="transformation_wrapper.php%s&ct=application/octet-stream&cn=%s" title="%s">%s</a>',
31
$options['wrapper_link'],
33
htmlspecialchars($cn),