Changeset 99 for trunk/client/modules/Elezioni/foto.php
- Timestamp:
- May 16, 2011, 12:18:36 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/client/modules/Elezioni/foto.php
r86 r99 19 19 if (isset($param['id_comune'])) $id_comune=intval($param['id_comune']); else $id_comune=''; 20 20 if (isset($param['prefix'])) $prefix=$param['prefix']; 21 if (isset($param['pdf '])) $pdf=$param['pdf'];21 if (isset($param['pdfvis'])) $pdf=$param['pdfvis']; 22 22 23 23 if ($id_lista){ … … 50 50 if ($stemma=="" && is_readable('modules/Elezioni/images/vuoto.jpg')){ 51 51 $stemma = fread( fopen( 'modules/Elezioni/images/vuoto.jpg', 'r' ), filesize( 'modules/Elezioni/images/vuoto.jpg' ) );} 52 if(isset($pdf)) header('Content-type: application/pdf'); 52 if(isset($pdf)) 53 { 54 if (strstr($HTTP_USER_AGENT,"MSIE")) 55 { 56 header('Cache-Control: public'); 57 header("Content-Type: application/pdf"); 58 header("Content-Transfer-Encoding: binary"); 59 header("Content-Disposition: attachment; filename=Programma.pdf"); 60 }else{ 61 header("Content-type: application/pdf"); 62 header("Content-Disposition: attachment; filename=Programma.pdf"); 63 } 64 } 65 53 66 echo $stemma; 54 67 ?>
Note:
See TracChangeset
for help on using the changeset viewer.