3 // this function is related to the interface/language module.
5 function xl($constant,$mode='r',$prepend='',$append='') {
7 $sql="SELECT * FROM lang_definitions JOIN lang_constants ON lang_definitions.cons_id = lang_constants.cons_id WHERE lang_id='$lang_id' AND constant_name = '$constant' LIMIT 1";
8 $res=SqlStatement($sql);
9 $row=SqlFetchArray($res);
10 $string=$row['definition'];
11 if ($string=='') { $string="$constant"; }
12 $string="$prepend"."$string"."$append";