bernd commited on 2007-11-30 19:57:21
Zeige 2 geänderte Dateien mit 42 Einfügungen und 0 Löschungen.
git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@823 87cf0b9e-d624-0410-a070-f6ee81989793
... | ... |
@@ -0,0 +1,29 @@ |
1 |
+<?php |
|
2 |
+ |
|
3 |
+require_once('session/start.php'); |
|
4 |
+require_role(array(ROLE_SYSTEMUSER)); |
|
5 |
+ |
|
6 |
+$uid = (int) $_SESSION['userinfo']['uid']; |
|
7 |
+ |
|
8 |
+if (in_array($_POST['freq'],array("day","week","month"))) { |
|
9 |
+ db_query("REPLACE INTO qatools.freewvs (user,freq) VALUES ({$uid},'{$_POST['freq']}');"); |
|
10 |
+ header("Location: freewvs.php"); |
|
11 |
+ die(); |
|
12 |
+} |
|
13 |
+ |
|
14 |
+output('<h3>Web vulnerability scanner</h3>'); |
|
15 |
+ |
|
16 |
+$result = db_query("SELECT freq FROM qatools.v_freewvs WHERE uid={$uid};"); |
|
17 |
+$result=mysql_fetch_assoc($result); |
|
18 |
+$freq=$result['freq']; |
|
19 |
+ |
|
20 |
+output('<p>Diese Option ermöglicht Ihnen, regelmäßige Checks ihrer Webanwendungen mit Hilfe von freewvs durchzuführen.</p>'); |
|
21 |
+$form=' |
|
22 |
+<table> |
|
23 |
+<tr><td><input type="radio" name="freq" value="day" '.($freq=="day"?'checked="checked" ':"").'/></td><td>täglich</td></tr> |
|
24 |
+<tr><td><input type="radio" name="freq" value="week" '.($freq=="week"?'checked="checked" ':"").'/></td><td>wöchentlich</td></tr> |
|
25 |
+<tr><td><input type="radio" name="freq" value="month" '.($freq=="month"?'checked="checked" ':"").'/></td><td>monatlich</td></tr> |
|
26 |
+</table><br/> |
|
27 |
+<input type="submit" value="Speichern"/>'; |
|
28 |
+ |
|
29 |
+output(html_form('freewvs_freq','','',$form)); |
... | ... |
@@ -0,0 +1,13 @@ |
1 |
+<?php |
|
2 |
+ |
|
3 |
+$menu = array(); |
|
4 |
+ |
|
5 |
+$role = $_SESSION['role']; |
|
6 |
+ |
|
7 |
+ |
|
8 |
+if ($role & ROLE_SYSTEMUSER) |
|
9 |
+{ |
|
10 |
+ $menu["freewvs_freewvs"] = array("label" => "Web vulnerabilities", "file" => "freewvs.php", "weight" => 1, "submenu" => "vhosts_vhosts"); |
|
11 |
+} |
|
12 |
+else |
|
13 |
+ $menu=false; |
|
0 | 14 |