28667e96bdcc072a7485ff50021f54f555c59ea3
Bernd Wurst Neues Modul zum Abschließen...

Bernd Wurst authored 6 years ago

1) <?php
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 Neues Modul zum Abschließen...

Bernd Wurst authored 6 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 Neues Modul zum Abschließen...

Bernd Wurst authored 6 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) 
14) require_once('contract.php');
15) require_role(ROLE_CUSTOMER);
16) 
17) $pdfdata = get_contract_pdf($_REQUEST['id']);
Hanno Böck Fix not operator (!) spaces

Hanno Böck authored 1 year ago

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

Hanno authored 6 years ago

19)     system_failure('Die PDF-Version dieses Vertrags konnte nicht ausgelesen werden. Bitte wenden Sie sich an den Support.');
20) } else {
Bernd Wurst Neues Modul zum Abschließen...

Bernd Wurst authored 6 years ago

21)     $filename = 'av_vertrag.pdf';
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

22)     header('Content-type: application/pdf');
23)     header('Content-disposition: attachment; filename='.$filename);
24)     echo $pdfdata;
25)     die();