dcc202fb249a446ac15c7cf413b9f1b4a3f31b58
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 Fix coding style with php-c...

Hanno authored 6 years ago

27)                           'weight'  => 40,
28)                           'file'    => 'freewvs',
29)                           'icon'    => 'warning.png',
Bernd Wurst Zeige Warnung auf der Start...

Bernd Wurst authored 10 years ago

30)                           'title'   => 'Web-Anwendungen',
Hanno Böck Codingstyle PSR12 + array s...

Hanno Böck authored 3 years ago

31)                           'alert'   => "{$found} unsicher", ];
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

32)     }