source: trunk/calendar/inc/lang_alarm.php @ 5509

Revision 5509, 1.2 KB checked in by gustavo, 12 years ago (diff)

Ticket #2488 - Adicionar cabecalho de licenca em arquivos que nao o possuem

Line 
1<?php
2                /***************************************************************************
3                * Expresso Livre                                                           *
4                * http://www.expressolivre.org                                             *
5                * --------------------------------------------                             *
6                *  This program is free software; you can redistribute it and/or modify it *
7                *  under the terms of the GNU General Public License as published by the   *
8                *  Free Software Foundation; either version 2 of the License, or (at your  *
9                *  option) any later version.                                              *
10                \**************************************************************************/
11function load_lang() {
12        if(!$_SESSION['phpgw_info']['calendar']['langAlarm'])
13        {
14                $array_keys = array();
15                $fn = '../setup/phpgw_alarm_'.$GLOBALS['phpgw_info']['user']['preferences']['common']['lang'].'.lang';                 
16                echo $fn;
17                if (file_exists($fn)){
18                        $fp = fopen($fn,'r');
19                        while ($data = fgets($fp,16000))        {
20                                list($message_id,$app_name,$null,$content) = explode("\t",substr($data,0,-1));                 
21                                $_SESSION['phpgw_info']['calendar']['langAlarm'][$message_id] =  $content;
22                        }
23                        fclose($fp);
24                }
25        }
26}
27?>
Note: See TracBrowser for help on using the repository browser.