6108de7883b491404150c3901961c7b65f6faceb
bernd initiales freewvs-modul

bernd authored 17 years ago

modules/freewvs/freewvs.php  1) <?php
Bernd Wurst Added license tags for CC0,...

Bernd Wurst authored 12 years ago

modules/webapps/freewvs.php  2) /*
modules/webapps/freewvs.php  3) This file belongs to the Webinterface of schokokeks.org Hosting
modules/webapps/freewvs.php  4) 
Bernd Wurst Updated copyright notice (2...

Bernd Wurst authored 11 years ago

modules/webapps/freewvs.php  5) Written 2008-2013 by schokokeks.org Hosting, namely
Bernd Wurst Added license tags for CC0,...

Bernd Wurst authored 12 years ago

modules/webapps/freewvs.php  6)   Bernd Wurst <bernd@schokokeks.org>
modules/webapps/freewvs.php  7)   Hanno Böck <hanno@schokokeks.org>
modules/webapps/freewvs.php  8) 
modules/webapps/freewvs.php  9) To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to the public domain worldwide. This software is distributed without any warranty.
modules/webapps/freewvs.php 10) 
modules/webapps/freewvs.php 11) You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see 
modules/webapps/freewvs.php 12) http://creativecommons.org/publicdomain/zero/1.0/
modules/webapps/freewvs.php 13) 
modules/webapps/freewvs.php 14) 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.
modules/webapps/freewvs.php 15) */
bernd initiales freewvs-modul

bernd authored 17 years ago

modules/freewvs/freewvs.php 16) 
modules/freewvs/freewvs.php 17) require_once('session/start.php');
bernd Zeige Freewvs-Resultate an

bernd authored 16 years ago

modules/freewvs/freewvs.php 18) 
modules/freewvs/freewvs.php 19) require_once('freewvs.php');
bernd * alle internen Links sinnv...

bernd authored 15 years ago

modules/webapps/freewvs.php 20) require_once('webapp-installer.php');
bernd Zeige Freewvs-Resultate an

bernd authored 16 years ago

modules/freewvs/freewvs.php 21) 
bernd initiales freewvs-modul

bernd authored 17 years ago

modules/freewvs/freewvs.php 22) require_role(array(ROLE_SYSTEMUSER));
modules/freewvs/freewvs.php 23) 
bernd Benutze überall title() sta...

bernd authored 14 years ago

modules/webapps/freewvs.php 24) title("Prüfung Ihrer Web-Anwendungen");
modules/webapps/freewvs.php 25) 
bernd initiales freewvs-modul

bernd authored 17 years ago

modules/freewvs/freewvs.php 26) $uid = (int) $_SESSION['userinfo']['uid'];
modules/freewvs/freewvs.php 27) 
bernd neue Bilder, mehr SSL-Zerti...

bernd authored 15 years ago

modules/webapps/freewvs.php 28) if (isset($_POST['freq']) && in_array($_POST['freq'],array("day","week","month"))) {
bernd Zeige Freewvs-Resultate an

bernd authored 16 years ago

modules/freewvs/freewvs.php 29)   check_form_token('freewvs_freq'); 
Bernd Wurst Umstellung auf mysqli

Bernd Wurst authored 11 years ago

modules/webapps/freewvs.php 30) 	DB::query("REPLACE INTO qatools.freewvs (user,freq) VALUES ({$uid},'{$_POST['freq']}');");
bernd eliminate .php extensions f...

bernd authored 16 years ago

modules/freewvs/freewvs.php 31) 	header("Location: freewvs");
bernd initiales freewvs-modul

bernd authored 17 years ago

modules/freewvs/freewvs.php 32) 	die();
modules/freewvs/freewvs.php 33) }
modules/freewvs/freewvs.php 34) 
Bernd Wurst Umstellung auf mysqli

Bernd Wurst authored 11 years ago

modules/webapps/freewvs.php 35) $result = DB::query("SELECT freq FROM qatools.v_freewvs WHERE uid={$uid};");
modules/webapps/freewvs.php 36) $result=$result->fetch_assoc();
bernd initiales freewvs-modul

bernd authored 17 years ago

modules/freewvs/freewvs.php 37) $freq=$result['freq'];
modules/freewvs/freewvs.php 38) 
bernd Benutze überall title() sta...

bernd authored 14 years ago

modules/webapps/freewvs.php 39) headline('Überprüfung Ihrer Web-Anwendungen auf Sicherheitslücken');
bernd Zeige Freewvs-Resultate an

bernd authored 16 years ago

modules/freewvs/freewvs.php 40) 
modules/freewvs/freewvs.php 41) output('<p>Das Programm freewvs prüft automatisch regelmäßig Ihre Web-Anwendungen (z.B. Blog-Software, Content-Management-Systeme, ...) auf bekannte Sicherheitsprobleme. Sie können festlegen, wie oft Sie bei gefundenen Problemen benachrichtigt werden möchten.</p>
modules/freewvs/freewvs.php 42) <p><strong>Wie oft möchten Sie über Sicherheitsprobleme benachrichtigt werden?</strong></p>
bernd Einige Dummheiten repariert...

bernd authored 15 years ago

modules/webapps/freewvs.php 43) '.html_form('freewvs_freq', 'freewvs', '', '<p>'.html_select('freq', array('day' => 'täglich', 'week' => 'höchstens einmal pro Woche', 'month' => 'höchstens einmal pro Monat'), $freq).' &#160; <input type="submit" value="speichern" /></p>'));
bernd Zeige Freewvs-Resultate an

bernd authored 16 years ago

modules/freewvs/freewvs.php 44) 
modules/freewvs/freewvs.php 45) $results = load_results();
modules/freewvs/freewvs.php 46) 
modules/freewvs/freewvs.php 47) output('<h3>Aktuell installierte Web-Anwendungen</h3>
modules/freewvs/freewvs.php 48) <p>Die folgenden Web-Anwendungen wurden beim letzten Programmdurchlauf gefunden. Diese Liste wird i.d.R. täglich aktualisiert.</p>');
modules/freewvs/freewvs.php 49) foreach ($results AS $app) {
bernd * alle internen Links sinnv...

bernd authored 15 years ago

modules/webapps/freewvs.php 50)   $url = get_url_for_dir($app['directory']);
bernd Zeige Freewvs-Resultate an

bernd authored 16 years ago

modules/freewvs/freewvs.php 51)   output("<div class='freewvs freewvs-{$app['state']}'>\n");
modules/freewvs/freewvs.php 52)   if ($app['state'] == 'ok') {
modules/freewvs/freewvs.php 53)     output("<img src='{$prefix}images/ok.png' />\n");
modules/freewvs/freewvs.php 54)     output("<p><strong>{$app['appname']} {$app['version']}</strong></p>\n");
bernd * alle internen Links sinnv...

bernd authored 15 years ago

modules/webapps/freewvs.php 55)     output("<p>Gefunden in {$app['directory']} (<a href=\"{$url}\">{$url}</a>)</p>\n");
hanno fehlermeldung genauer, wir...

hanno authored 14 years ago

modules/webapps/freewvs.php 56)     output("<p>Diese Anwendung hat keine allgemein bekannten Sicherheitsprobleme.</p>\n");
bernd Zeige Freewvs-Resultate an

bernd authored 16 years ago

modules/freewvs/freewvs.php 57)   }
modules/freewvs/freewvs.php 58)   else {
modules/freewvs/freewvs.php 59)     $vulnlink = $app['vulninfo'];
bernd FreeWVS zeigt jetzt Ergebni...

bernd authored 16 years ago

modules/freewvs/freewvs.php 60)     $doclink = get_upgradeinstructions($app['appname']);
bernd Zeige Freewvs-Resultate an

bernd authored 16 years ago

modules/freewvs/freewvs.php 61)     if (substr($vulnlink, 0, 3) == 'CVE') {
modules/freewvs/freewvs.php 62)       $vulnlink = 'http://cve.mitre.org/cgi-bin/cvename.cgi?name='.$vulnlink;
modules/freewvs/freewvs.php 63)     }
modules/freewvs/freewvs.php 64)     output("<img src='{$prefix}images/error.png' />\n");
modules/freewvs/freewvs.php 65)     output("<p><strong>{$app['appname']} {$app['version']}</strong></p>\n");
bernd * alle internen Links sinnv...

bernd authored 15 years ago

modules/webapps/freewvs.php 66)     output("<p>Gefunden in {$app['directory']} (<a href=\"{$url}\">{$url}</a>)</p>\n");
bernd Zeige Freewvs-Resultate an

bernd authored 16 years ago

modules/freewvs/freewvs.php 67)     if ($app['safeversion'] != '') {
modules/freewvs/freewvs.php 68)       output("<p>Diese Anwendung ist von Sicherheits-Problemen betroffen. Ein <strong>Update auf Version {$app['safeversion']}</strong> wird dringend empfohlen. Prüfen Sie anhand der unten genannten Referenz welche Gefahren von dieser Anwendung momentan ausgehen.</p>\n");
modules/freewvs/freewvs.php 69)     } else {
modules/freewvs/freewvs.php 70)       output("<p>Diese Anwendung ist von Sicherheits-Problemen betroffen. Leider gibt es <strong>momentan keine aktualisierte Version</strong>. Prüfen Sie bitte anhand der unten genannten Beschreibung des Problem die möglichen Gefahren eines weiteren Betriebs dieser Anwendung.</p>\n");
modules/freewvs/freewvs.php 71)     }
modules/freewvs/freewvs.php 72)     output("<p><strong>Referenz zu diesem Sicherheitsproblem: <a href='{$vulnlink}'>{$app['vulninfo']}</a></strong></p>");
bernd FreeWVS zeigt jetzt Ergebni...

bernd authored 16 years ago

modules/freewvs/freewvs.php 73)     if ($doclink != NULL)
bernd * alle internen Links sinnv...

bernd authored 15 years ago

modules/webapps/freewvs.php 74)       output('<p><strong>Hinweis:</strong> Um Ihnen das Upgrade leichter zu machen, möchten wir Sie auf eine <a href="'.$doclink.'">deutschsprachige Upgrade-Anleitung</a> aufmerksam machen.</p>'."\n");
modules/webapps/freewvs.php 75)     $up = upgradeable($app['appname'], $app['version']);
modules/webapps/freewvs.php 76)     if ($up)
modules/webapps/freewvs.php 77)     {
bernd Bugfixes beim Webapp-installer

bernd authored 15 years ago

modules/webapps/freewvs.php 78)       if (directory_in_use($app['directory']))
modules/webapps/freewvs.php 79)         output('<p><em>Automatische Update-Aktion heute nicht mehr möglich</em></p>');
modules/webapps/freewvs.php 80)       else
modules/webapps/freewvs.php 81)         output('<p>'.internal_link('requestupdate', 'Update automatisch durchführen', "dir={$app['directory']}&app={$up}")."</p>\n");
bernd * alle internen Links sinnv...

bernd authored 15 years ago

modules/webapps/freewvs.php 82)     }