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

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

first monitoring web site

Line 
1<?php
2
3$PARAMFILE = fopen($RENETCOL_PARAM,'r');
4
5while (!feof ($PARAMFILE)) {
6  $line = fgets($PARAMFILE, 512);
7  $line_split = split(" ",$line);
8  if ($line_split[1] == "ROUTERS_LIST") {
9    $router_list_file = str_replace("\"","",trim($line_split[2]));
10  }
11  if ($line_split[1] == "SUBNETS_LIST") {
12    $subnet_list_file = str_replace("\"","",trim($line_split[2]));
13  }
14  if ($line_split[1] == "SUBNETS_V6_LIST") {
15    $subnet_v6_list_file = str_replace("\"","",trim($line_split[2]));
16  }
17  if ($line_split[1] == "AS_LIST") {
18    $bgpas_list_file = str_replace("\"","",trim($line_split[2]));
19  }
20  if ($line_split[1] == "ROUTER_INDEX_MAX") {
21    $CONF_ROUTER_INDEX_MAX = str_replace("\"","",trim($line_split[2]));
22  }
23  if ($line_split[1] == "MAX_IPV4_PREFIX") {
24    $CONF_MAX_IPV4_PREFIX = str_replace("\"","",trim($line_split[2]));
25  }
26  if ($line_split[1] == "MAX_IPV4_SUBNET") {
27    $CONF_MAX_IPV4_SUBNET = str_replace("\"","",trim($line_split[2]));
28  }
29  if ($line_split[1] == "MAX_AS") {
30    $CONF_MAX_BGPAS = str_replace("\"","",trim($line_split[2]));
31  }
32 }
33
34fclose($PARAMFILE);
35
36?>
Note: See TracBrowser for help on using the browser.