dcc202fb249a446ac15c7cf413b9f1b4a3f31b58
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 2 years 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 2 years 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 Fix coding style with php-c...

Hanno authored 6 years ago

19) if (! $pdfdata) {
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');
24)     header('Content-disposition: attachment; filename='.$filename);
25)     echo $pdfdata;
26)     die();