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

Revision 127, 0.9 KB (checked in by andreu, 12 years ago)

Change copyright timestamp - Some correction on WEB Section

Line 
1<?php
2
3
4print "<div id=\"contenu\">\n";
5
6if ( is_file($subnet_v6_list_file) ) {
7  $CONFfinputSUB6 = fopen($subnet_v6_list_file,'r');
8
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    }
25  }
26  print "</table>";
27  fclose($CONFfinputSUB6);
28
29 } else {
30  print "<p>IPv6 Subnet declaration file is not present :( . </p>";
31 }
32 
33print "</div>\n";
34
35
36?>
Note: See TracBrowser for help on using the browser.