query($SQL)) { while($r=$db->getrec()) { //if(!defined($r['cfg_key'])) define($r['cfg_key'],$r['cfg_value']); } } /*$SQL = "SELECT captionName,".$lang." FROM `caption`"; if($db->query($SQL)) { while($r=$db->getrec()) { $temp=str_replace(chr(13),"",$r[LANG]); define(trim($r['captionName']),$temp); } }*/ $SQL = "SELECT captionName,".$lang." FROM `labels `"; if($db->query($SQL)) { while($r=$db->getrec()) { $temp=str_replace(chr(13),"",$r[LANG]); define(trim($r['captionName']),$temp); } } ?>