3ef995c2108fe77d22c0b556fb9717cb848bc48f
bernd Index-Blöcke werden jetzt v...

bernd authored 14 years ago

1) <?php
Hanno Böck Add newlines before comment...

Hanno Böck authored 1 year ago

2) 
Bernd Wurst Added license tags for CC0,...

Bernd Wurst authored 14 years ago

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

Hanno Böck authored 3 years ago

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

Bernd Wurst authored 14 years ago

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

Hanno Böck authored 3 years ago

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

Bernd Wurst authored 14 years ago

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

bernd authored 14 years ago

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

Hanno authored 8 years ago

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

Hanno Böck authored 2 years ago

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

Hanno authored 8 years ago

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

Hanno Böck authored 2 years ago

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

Bernd Wurst authored 12 years ago

30)     }
Hanno remove whitespace in empty...

Hanno authored 8 years ago

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

Hanno Böck authored 4 years ago

32)     $shortcuts[] = [ 'section' => 'administration',
Hanno Böck Neue codingstyle-rule array...

Hanno Böck authored 2 years ago

33)         'weight'  => 50,
34)         'file'    => 'current',
35)         'icon'    => 'invoice.png',
36)         'title'   => 'Ihre Rechnungen',
37)         'alert'   => $alert, ];