root/trunk/web/conf/prefv6.php @ 122

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
5print "<div id=\"contenu\">\n";
6
7print "<p> Below, the list of subnets defined in your configuration file: </p>\n";
8print "<p>$subnet_v6_list_file</p>\n";
9
10print "<table class=\"fields\">\n";
11print "<tr> <th>Subnet</th> <th>Mask</th> <th>Sampling Value</th> </tr>\n";
12while (!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 }
24print "</table>";
25
26print "</div>\n";
27
28fclose($CONFfinputSUB6);
29
30?>
Note: See TracBrowser for help on using the browser.