354c05a4ddd678c49bcbba458bffa7d13482139a
bernd Kunden können Ihre Rechnung...

bernd authored 16 years ago

1) <?php
Bernd Wurst Added license tags for CC0,...

Bernd Wurst authored 12 years ago

2) /*
3) This file belongs to the Webinterface of schokokeks.org Hosting
4) 
Hanno Böck Change license from CC0 to...

Hanno Böck authored 1 year ago

5) Written by schokokeks.org Hosting, namely
Bernd Wurst Added license tags for CC0,...

Bernd Wurst authored 12 years ago

6)   Bernd Wurst <bernd@schokokeks.org>
7)   Hanno Böck <hanno@schokokeks.org>
8) 
Hanno Böck Change license from CC0 to...

Hanno Böck authored 1 year ago

9) This code is published under a 0BSD license.
Bernd Wurst Added license tags for CC0,...

Bernd Wurst authored 12 years ago

10) 
11) Nevertheless, in case you use a significant part of this code, we ask (but not require, see the license) that you keep the authors' names in place and return your changes to the public. We would be especially happy if you tell us what you're going to do with this code.
12) */
13) 
bernd Kunden können Ihre Rechnung...

bernd authored 16 years ago

14) require_once('session/start.php');
15) require_once('invoice.php');
16) require_role(ROLE_CUSTOMER);
17) 
18) $pdfdata = get_pdf($_GET['id']);
Hanno Böck Fix not operator (!) spaces

Hanno Böck authored 6 months ago

19) if (!$pdfdata) {
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

20)     system_failure('Die PDF-Version dieser Rechnung konnte nicht aufgerufen werden. PDF-Versionen für sehr alte Rechnungen sind nicht mehr verfügbar.');
21) } else {
22)     $filename = sprintf('rechnung%05s.pdf', $_GET['id']);
23)     header('Content-type: application/pdf');
Hanno Böck Spaces between string conca...

Hanno Böck authored 6 months ago

24)     header('Content-disposition: attachment; filename=' . $filename);
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

25)     echo $pdfdata;
26)     die();