Revision 120, 0.7 KB
(checked in by andreu, 13 years ago)
|
first monitoring web site
|
Rev | Line | |
---|
[120] | 1 | <?php |
---|
| 2 | |
---|
| 3 | $CONFfinputRTR = fopen($router_list_file,'r'); |
---|
| 4 | |
---|
| 5 | print "<div id=\"contenu\">\n"; |
---|
| 6 | |
---|
| 7 | print "<p> Below, the list of routers defined in your configuration file: </p>\n"; |
---|
| 8 | print "<p class=\"mycode\">$router_list_file</p>\n"; |
---|
| 9 | |
---|
| 10 | print "<table class=\"fields\">\n"; |
---|
| 11 | print "<tr> <th>Router Name</th> <th>IPv4 address 1</th> <th>IPv4 address 2</th> </tr>\n"; |
---|
| 12 | while (!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 | } |
---|
| 22 | print "</table>"; |
---|
| 23 | |
---|
| 24 | print "</div>\n"; |
---|
| 25 | |
---|
| 26 | fclose($CONFfinputRTR); |
---|
| 27 | ?> |
---|