import from HEAD:
[freeradius.git] / dialup_admin / lib / sql / attrmap.php3
1 <?php
2 #Read sql attribute map
3 $ARR = file("$config[general_sql_attrmap]");
4 foreach($ARR as $val){
5         $val=chop($val);
6         if (ereg('^[[:space:]]*#',$val) || ereg('^[[:space:]]*$',$val))
7                 continue;
8         list($type,$key,$v)=split('[[:space:]]+',$val);
9         $attrmap["$key"]=$v;
10         $rev_attrmap["$v"] = $key;
11         $attr_type["$key"]=$type;
12 }