00001 <?php
00002
00003
00004
00005 function PMA_transformation_application_octetstream__download(&$buffer, $options = array(), $meta = '') {
00006 global $row;
00007
00008 if (isset($options[0]) && !empty($options[0])) {
00009 $cn = $options[0];
00010 } else {
00011 if (isset($options[1]) && !empty($options[1]) && isset($row[$options[1]])) {
00012 $cn = $row[$options[1]];
00013 } else {
00014 $cn = 'binary_file.dat';
00015 }
00016 }
00017
00018 return
00019 sprintf(
00020 '<a href="transformation_wrapper.php%s&ct=application/octet-stream&cn=%s" title="%s">%s</a>',
00021
00022 $options['wrapper_link'],
00023 urlencode($cn),
00024 htmlspecialchars($cn),
00025 htmlspecialchars($cn)
00026 );
00027 }
00028
00029 ?>