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 | \**************************************************************************/ |
---|
11 | |
---|
12 | require_once '../../header.session.inc.php'; |
---|
13 | |
---|
14 | /* This single file is used to increase upload_max_filesize and post_max_size using .htaccess*/ |
---|
15 | if(!isset($GLOBALS['phpgw_info'])){ |
---|
16 | $GLOBALS['phpgw_info']['flags'] = array( |
---|
17 | 'currentapp' => 'filemanager', |
---|
18 | 'nonavbar' => true, |
---|
19 | 'noheader' => true |
---|
20 | ); |
---|
21 | } |
---|
22 | require_once '../../header.inc.php'; |
---|
23 | |
---|
24 | $array_keys = array(); |
---|
25 | $fn = dirname(__FILE__) . '/../setup/phpgw_'.$GLOBALS['phpgw_info']['user']['preferences']['common']['lang'].'.lang'; |
---|
26 | |
---|
27 | if (file_exists($fn)){ |
---|
28 | $fp = fopen($fn,'r'); |
---|
29 | while ($data = fgets($fp,16000)){ |
---|
30 | list($message_id,$app_name,$null,$content) = explode("\t",substr($data,0,-1)); |
---|
31 | $script .= "array_lang['".str_replace("'","\'",strtolower($message_id))."'] = '".str_replace("'","\'",$content)."';\n"; |
---|
32 | } |
---|
33 | fclose($fp); |
---|
34 | } |
---|
35 | |
---|
36 | echo "var array_lang = new Array();\n{$script}"; |
---|
37 | |
---|
38 | ?> |
---|