Revision 2362,
1.3 KB
checked in by amuller, 15 years ago
(diff) |
Ticket #1008 - Adicionando informações sobre licenças
|
Line | |
---|
1 | <?php |
---|
2 | |
---|
3 | /*************************************************************************** |
---|
4 | * Expresso Livre * |
---|
5 | * http://www.expressolivre.org * |
---|
6 | * -------------------------------------------- * |
---|
7 | * This program is free software; you can redistribute it and/or modify it * |
---|
8 | * under the terms of the GNU General Public License as published by the * |
---|
9 | * Free Software Foundation; either version 2 of the License, or (at your * |
---|
10 | * option) any later version. * |
---|
11 | \**************************************************************************/ |
---|
12 | $array_keys = array(); |
---|
13 | $fn = $GLOBALS['phpgw_info']['flags']['currentapp'].'/setup/phpgw_'.$GLOBALS['phpgw_info']['user']['preferences']['common']['lang'].'.lang'; |
---|
14 | if (file_exists($fn)){ |
---|
15 | $fp = fopen($fn,'r'); |
---|
16 | while ($data = fgets($fp,16000)){ |
---|
17 | list($message_id,$app_name,$null,$content) = explode("\t",substr($data,0,-1)); |
---|
18 | $script .= "array_lang['".str_replace("'","\'",strtolower($message_id))."'] = '".str_replace("'","\'",$content)."';\n"; |
---|
19 | } |
---|
20 | fclose($fp); |
---|
21 | } |
---|
22 | echo "<script type='text/javascript'>var array_lang = new Array(); $script</script>"; |
---|
23 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.