bernd commited on 2012-02-09 06:59:45
              Zeige 1 geänderte Dateien mit 2 Einfügungen und 1 Löschungen.
            
git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@2185 87cf0b9e-d624-0410-a070-f6ee81989793
| ... | ... | 
                      @@ -10,8 +10,9 @@ if (! $pdfdata)  | 
                  
| 10 | 10 | 
                        }  | 
                    
| 11 | 11 | 
                        else  | 
                    
| 12 | 12 | 
                         {
                       | 
                    
| 13 | 
                        +  $filename = sprintf('rechnung%05s.pdf', $_GET['id']);
                       | 
                    |
| 13 | 14 | 
                         	header('Content-type: application/pdf');
                       | 
                    
| 14 | 
                        -	header('Content-disposition: attachment; filename=rechnung.pdf');
                       | 
                    |
| 15 | 
                        +	header('Content-disposition: attachment; filename='.$filename);
                       | 
                    |
| 15 | 16 | 
                        echo $pdfdata;  | 
                    
| 16 | 17 | 
                        die();  | 
                    
| 17 | 18 | 
                        }  | 
                    
| 18 | 19 |