fe8d7c2025e33349ab1e51c0e906ec3ee69dcff2
Bernd Wurst Zeige Warnung auf der Start...

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

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

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

Hanno authored 6 years ago

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

Bernd Wurst authored 10 years ago

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

Hanno authored 6 years ago

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

Bernd Wurst authored 10 years ago

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

Hanno authored 6 years ago

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

Hanno Böck authored 3 years ago

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

Hanno Böck authored 8 months ago

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

Hanno authored 6 years ago

32)     }