Revision 120, 0.7 KB
(checked in by andreu, 13 years ago)
|
first monitoring web site
|
Line | |
---|
1 | <?php |
---|
2 | |
---|
3 | $CONFfinputSUB6 = fopen($subnet_v6_list_file,'r'); |
---|
4 | |
---|
5 | print "<div id=\"contenu\">\n"; |
---|
6 | |
---|
7 | print "<p> Below, the list of subnets defined in your configuration file: </p>\n"; |
---|
8 | print "<p>$subnet_v6_list_file</p>\n"; |
---|
9 | |
---|
10 | print "<table class=\"fields\">\n"; |
---|
11 | print "<tr> <th>Subnet</th> <th>Mask</th> <th>Sampling Value</th> </tr>\n"; |
---|
12 | while (!feof ($CONFfinputSUB6)) { |
---|
13 | $CONFline = fgets($CONFfinputSUB6, 512); |
---|
14 | $CONFline_split = split("\t",$CONFline); |
---|
15 | $CONFsubnet = $CONFline_split[0]; |
---|
16 | $CONFmask = $CONFline_split[1]; |
---|
17 | $CONFsamp = $CONFline_split[2]; |
---|
18 | if ($CONFsubnet) { |
---|
19 | print "<tr>\n"; |
---|
20 | print "<td>$CONFsubnet</td><td>$CONFmask</td><td>$CONFsamp</td>\n"; |
---|
21 | print "</tr>\n"; |
---|
22 | } |
---|
23 | } |
---|
24 | print "</table>"; |
---|
25 | |
---|
26 | print "</div>\n"; |
---|
27 | |
---|
28 | fclose($CONFfinputSUB6); |
---|
29 | |
---|
30 | ?> |
---|