- Timestamp:
- 11/03/10 11:11:59 (12 years ago)
- Location:
- trunk/web
- Files:
-
- 1 added
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/web/conf/prefv6.php
r120 r127 1 1 <?php 2 2 3 $CONFfinputSUB6 = fopen($subnet_v6_list_file,'r');4 3 5 4 print "<div id=\"contenu\">\n"; 6 5 7 print "<p> Below, the list of subnets defined in your configuration file: </p>\n"; 8 print "<p>$subnet_v6_list_file</p>\n";6 if ( is_file($subnet_v6_list_file) ) { 7 $CONFfinputSUB6 = fopen($subnet_v6_list_file,'r'); 9 8 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"; 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 } 22 25 } 26 print "</table>"; 27 fclose($CONFfinputSUB6); 28 29 } else { 30 print "<p>IPv6 Subnet declaration file is not present :( . </p>"; 23 31 } 24 print "</table>"; 25 32 26 33 print "</div>\n"; 27 34 28 fclose($CONFfinputSUB6);29 35 30 36 ?> -
trunk/web/index.php
r125 r127 80 80 include ('./conf/menuconf.php'); 81 81 include ('./conf/rtr.php'); 82 } else if ($section == "confpref") { 83 include ('./conf/menuconf.php'); 84 include ('./conf/pref.php'); 82 85 } else if ($section == "confprefv4") { 83 86 include ('./conf/menuconf.php');