root/trunk/web/conf/rtr.php @ 120

Revision 120, 0.7 KB (checked in by andreu, 13 years ago)

first monitoring web site

RevLine 
[120]1<?php
2
3$CONFfinputRTR = fopen($router_list_file,'r');
4
5print "<div id=\"contenu\">\n";
6
7print "<p> Below, the list of routers defined in your configuration file: </p>\n";
8print "<p class=\"mycode\">$router_list_file</p>\n";
9
10print "<table class=\"fields\">\n";
11print "<tr> <th>Router Name</th> <th>IPv4 address 1</th> <th>IPv4 address 2</th> </tr>\n";
12while (!feof ($CONFfinputRTR)) {
13  $CONFline = fgets($CONFfinputRTR, 512);
14  $CONFline_split = split(" ",$CONFline);
15  $CONFrouter_name $CONFline_split[1];
16  if ($CONFrouter_name) {
17    print "<tr>\n";
18    print "<td>$CONFrouter_name</td><td>$CONFline_split[2]</td><td>$CONFline_split[3]</td>\n";
19    print "</tr>\n";
20  }
21 }
22print "</table>";
23
24print "</div>\n";
25
26fclose($CONFfinputRTR);
27?>
Note: See TracBrowser for help on using the browser.