Changeset 127 for trunk/web

Show
Ignore:
Timestamp:
11/03/10 11:11:59 (12 years ago)
Author:
andreu
Message:

Change copyright timestamp - Some correction on WEB Section

Location:
trunk/web
Files:
1 added
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/web/conf/prefv6.php

    r120 r127  
    11<?php 
    22 
    3 $CONFfinputSUB6 = fopen($subnet_v6_list_file,'r'); 
    43 
    54print "<div id=\"contenu\">\n"; 
    65 
    7 print "<p> Below, the list of subnets defined in your configuration file: </p>\n"; 
    8 print "<p>$subnet_v6_list_file</p>\n"; 
     6if ( is_file($subnet_v6_list_file) ) { 
     7  $CONFfinputSUB6 = fopen($subnet_v6_list_file,'r'); 
    98 
    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    } 
    2225  } 
     26  print "</table>"; 
     27  fclose($CONFfinputSUB6); 
     28 
     29 } else { 
     30  print "<p>IPv6 Subnet declaration file is not present :( . </p>"; 
    2331 } 
    24 print "</table>"; 
    25  
     32   
    2633print "</div>\n"; 
    2734 
    28 fclose($CONFfinputSUB6); 
    2935 
    3036?> 
  • trunk/web/index.php

    r125 r127  
    8080  include ('./conf/menuconf.php'); 
    8181  include ('./conf/rtr.php'); 
     82 } else if ($section == "confpref") { 
     83  include ('./conf/menuconf.php'); 
     84  include ('./conf/pref.php'); 
    8285 } else if ($section == "confprefv4") { 
    8386  include ('./conf/menuconf.php');