-
Notifications
You must be signed in to change notification settings - Fork 67
/
Vulnerability.php
41 lines (38 loc) · 1.27 KB
/
Vulnerability.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php
include_once('bwvs_config/sys_config.php');
require_once('header.php');
$sql = "SELECT * FROM dwvs_vulnerability ORDER BY DWVS_Vulne_id";
$data = mysqli_query($connect,$sql) or die('Error!!');
mysqli_close($connect);
?>
<link rel="stylesheet" type="text/css" href="./css/help.css">
<div class="bs-example table-responsive">
<table class="table table-striped table-hover ">
<tr>
<th>ID</th><!--漏洞ID-->
<th>漏洞名字</th><!--漏洞名字-->
<th>漏洞类型</th><!--漏洞类型-->
<th>漏洞位置</th><!--漏洞位置-->
<th>参考链接</th><!--扩展阅读文章-->
</tr>
<?php
while($com = mysqli_fetch_array($data)) {
$html['V_id'] = htmlspecialchars($com['DWVS_Vulne_id']);
$html['V_name'] = htmlspecialchars($com['DWVS_Vulne_name']);
$html['V_Type'] = htmlspecialchars($com['DWVS_Vulne_type']);
$html['V_Pos'] = htmlspecialchars($com['DWVS_Vulne_position']);
$html['V_Cor'] = htmlspecialchars($com['DWVS_Vulne_correlate']);
echo '<tr>';
echo '<td>'.$html['V_id'].'</td>';
echo '<td>'.$html['V_name'].'</td>';
echo '<td>'.$html['V_Type'].'</td>';
echo '<td> <span class="">'.$html['V_Pos'].'</span> </td>';
echo '<td>'.'<a href="'.$html['V_Cor'].'">'.$html['V_Cor'].'</a>'.'</td>';
echo '</tr>';
}
?>
</table>
</div>
<?php
require_once('Trim.php');
?>