Revision 127, 0.9 KB
(checked in by andreu, 12 years ago)
|
Change copyright timestamp - Some correction on WEB Section
|
Rev | Line | |
---|
[120] | 1 | <?php |
---|
| 2 | |
---|
| 3 | |
---|
| 4 | print "<div id=\"contenu\">\n"; |
---|
| 5 | |
---|
[127] | 6 | if ( is_file($subnet_v6_list_file) ) { |
---|
| 7 | $CONFfinputSUB6 = fopen($subnet_v6_list_file,'r'); |
---|
[120] | 8 | |
---|
[127] | 9 | print "<p> Below, the list of subnets defined in your configuration file: </p>\n"; |
---|
| 10 | print "<p>$subnet_v6_list_file</p>\n"; |
---|
| 11 | |
---|
| 12 | print "<table class=\"fields\">\n"; |
---|
| 13 | print "<tr> <th>Subnet</th> <th>Mask</th> <th>Sampling Value</th> </tr>\n"; |
---|
| 14 | while (!feof ($CONFfinputSUB6)) { |
---|
| 15 | $CONFline = fgets($CONFfinputSUB6, 512); |
---|
| 16 | $CONFline_split = split("\t",$CONFline); |
---|
| 17 | $CONFsubnet = $CONFline_split[0]; |
---|
| 18 | $CONFmask = $CONFline_split[1]; |
---|
| 19 | $CONFsamp = $CONFline_split[2]; |
---|
| 20 | if ($CONFsubnet) { |
---|
| 21 | print "<tr>\n"; |
---|
| 22 | print "<td>$CONFsubnet</td><td>$CONFmask</td><td>$CONFsamp</td>\n"; |
---|
| 23 | print "</tr>\n"; |
---|
| 24 | } |
---|
[120] | 25 | } |
---|
[127] | 26 | print "</table>"; |
---|
| 27 | fclose($CONFfinputSUB6); |
---|
| 28 | |
---|
| 29 | } else { |
---|
| 30 | print "<p>IPv6 Subnet declaration file is not present :( . </p>"; |
---|
[120] | 31 | } |
---|
[127] | 32 | |
---|
[120] | 33 | print "</div>\n"; |
---|
| 34 | |
---|
| 35 | |
---|
| 36 | ?> |
---|