root/trunk/web/get_param.php @ 143

Revision 140, 1.2 KB (checked in by andreu, 12 years ago)

Update web interface - BGP AS section -

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  if ($line_split[1] == "AS_RRD_LOCATION") {
33    $CONF_BGPAS_RRD_LOCATION = str_replace("\"","",trim($line_split[2]));
34  }
35 }
36
37fclose($PARAMFILE);
38
39?>
Note: See TracBrowser for help on using the browser.