source: companies/serpro/calendar/inc/lang_alarm.php @ 903

Revision 903, 515 bytes checked in by niltonneto, 15 years ago (diff)

Importacao inicial do Expresso do Serpro

Line 
1<?
2function load_lang() {
3        if(!$_SESSION['phpgw_info']['calendar']['langAlarm'])
4        {
5                $array_keys = array();
6                $fn = '../setup/phpgw_alarm_'.$GLOBALS['phpgw_info']['user']['preferences']['common']['lang'].'.lang';                 
7                echo $fn;
8                if (file_exists($fn)){
9                        $fp = fopen($fn,'r');
10                        while ($data = fgets($fp,16000))        {
11                                list($message_id,$app_name,$null,$content) = explode("\t",substr($data,0,-1));                 
12                                $_SESSION['phpgw_info']['calendar']['langAlarm'][$message_id] =  $content;
13                        }
14                        fclose($fp);
15                }
16        }
17}
18?>
Note: See TracBrowser for help on using the repository browser.