3ef995c2108fe77d22c0b556fb9717cb848bc48f
Bernd Wurst Zeige Warnung auf der Start...

Bernd Wurst authored 12 years ago

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

Hanno Böck authored 11 months ago

2) 
Bernd Wurst Zeige Warnung auf der Start...

Bernd Wurst authored 12 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 Zeige Warnung auf der Start...

Bernd Wurst authored 12 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 Zeige Warnung auf der Start...

Bernd Wurst authored 12 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) */
14) 
15) if ($_SESSION['role'] & ROLE_SYSTEMUSER) {
Hanno Fix coding style with php-c...

Hanno authored 7 years ago

16)     $alert = null;
17)     include_once('modules/webapps/include/freewvs.php');
Bernd Wurst Zeige Warnung auf der Start...

Bernd Wurst authored 12 years ago

18) 
Hanno Fix coding style with php-c...

Hanno authored 7 years ago

19)     $result = load_results();
20)     $found = 0;
21)     foreach ($result as $app) {
22)         if ($app['state'] == 'vulnerable') {
23)             $found++;
24)         }
Bernd Wurst Zeige Warnung auf der Start...

Bernd Wurst authored 12 years ago

25)     }
Hanno Fix coding style with php-c...

Hanno authored 7 years ago

26)     if ($found > 0) {
Hanno Böck Codingstyle PSR12 + array s...

Hanno Böck authored 4 years ago

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

Hanno Böck authored 1 year ago

28)             'weight'  => 40,
29)             'file'    => 'freewvs',
30)             'icon'    => 'warning.png',
31)             'title'   => 'Web-Anwendungen',
32)             'alert'   => "{$found} unsicher", ];
Hanno Fix coding style with php-c...

Hanno authored 7 years ago

33)     }