354c05a4ddd678c49bcbba458bffa7d13482139a
bernd Index-Blöcke werden jetzt v...

bernd authored 12 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) */
bernd Index-Blöcke werden jetzt v...

bernd authored 12 years ago

13) 
14) if ($_SESSION['role'] & ROLE_CUSTOMER) {
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

15)     $alert = null;
16)     include_once('modules/invoice/include/invoice.php');
17)     $unpayed_invoices = 0;
18)     $my_invoices = my_invoices();
19)     foreach ($my_invoices as $inv) {
20)         if ($inv['bezahlt'] == 0) {
21)             $l = get_lastschrift($inv['id']);
Hanno Böck Fix not operator (!) spaces

Hanno Böck authored 1 year ago

22)             if (!$l || $l['status'] == 'rejected') {
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

23)                 $unpayed_invoices++;
24)             }
25)         }
26)     }
27)     if ($unpayed_invoices > 0) {
Hanno Böck Spaces between string conca...

Hanno Böck authored 1 year ago

28)         $alert = $unpayed_invoices . ' unbezahlt';
Bernd Wurst Wenn Rechnung abgebucht wir...

Bernd Wurst authored 10 years ago

29)     }
Hanno remove whitespace in empty...

Hanno authored 6 years ago

30) 
Hanno Böck Codingstyle PSR12 + array s...

Hanno Böck authored 3 years ago

31)     $shortcuts[] = [ 'section' => 'administration',
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

32)                         'weight'  => 50,
33)                         'file'    => 'current',
34)                         'icon'    => 'invoice.png',
bernd Index-Blöcke werden jetzt v...

bernd authored 12 years ago

35)                         'title'   => 'Ihre Rechnungen',
Hanno Böck Codingstyle PSR12 + array s...

Hanno Böck authored 3 years ago

36)                         'alert'   => $alert, ];