typo3/ext/phpmyadmin/modsub/phpMyAdmin-2.6.4-pl3/libraries/transformations/application_octetstream__download.inc.php

Vai alla documentazione di questo file.
00001 <?php
00002 /* $Id: application_octetstream__download.inc.php,v 2.0 2003/12/29 17:48:40 rabus Exp $ */
00003 // vim: expandtab sw=4 ts=4 sts=4:
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]; // filename
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&amp;ct=application/octet-stream&amp;cn=%s" title="%s">%s</a>',
00021 
00022         $options['wrapper_link'],
00023         urlencode($cn),
00024         htmlspecialchars($cn),
00025         htmlspecialchars($cn)
00026       );
00027 }
00028 
00029 ?>

Generato il Thu Jan 19 15:17:46 2006 per TYPO3 versione 3.8.1 da  doxygen 1.4.6