<?php
#Read sql attribute map
$ARR = file("$config[general_sql_attrmap]");
foreach($ARR as $val){
	$val=chop($val);
	if (ereg('^[[:space:]]*#',$val) || ereg('^[[:space:]]*$',$val))
		continue;
	list($type,$key,$v)=split('[[:space:]]+',$val);
	$attrmap["$key"]=$v;
	$rev_attrmap["$v"] = $key;
	$attr_type["$key"]=$type;
}
