[ Index ] |
|
Code source de phpMyAdmin 2.10.3 |
1 <?php 2 /* $Id: application_octetstream__download.inc.php 9617 2006-10-26 14:58:40Z nijel $ */ 3 // vim: expandtab sw=4 ts=4 sts=4: 4 5 function PMA_transformation_application_octetstream__download(&$buffer, $options = array(), $meta = '') { 6 global $row, $fields_meta; 7 8 if (isset($options[0]) && !empty($options[0])) { 9 $cn = $options[0]; // filename 10 } else { 11 if (isset($options[1]) && !empty($options[1])) { 12 foreach($fields_meta as $key => $val) { 13 if ($val->name == $options[1]) { 14 $pos = $key; 15 break; 16 } 17 } 18 if (isset($pos)) { 19 $cn = $row[$pos]; 20 } 21 } 22 if (empty($cn)) { 23 $cn = 'binary_file.dat'; 24 } 25 } 26 27 return 28 sprintf( 29 '<a href="transformation_wrapper.php%s&ct=application/octet-stream&cn=%s" title="%s">%s</a>', 30 31 $options['wrapper_link'], 32 urlencode($cn), 33 htmlspecialchars($cn), 34 htmlspecialchars($cn) 35 ); 36 } 37 38 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Mon Nov 26 15:18:20 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |