[3019] | 1 | <?php |
---|
[5509] | 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 | |
---|
[3873] | 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 | |
---|
[3019] | 24 | $array_keys = array(); |
---|
[3873] | 25 | $fn = dirname(__FILE__) . '/../setup/phpgw_'.$GLOBALS['phpgw_info']['user']['preferences']['common']['lang'].'.lang'; |
---|
| 26 | |
---|
[3019] | 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 | } |
---|
[3873] | 35 | |
---|
[5327] | 36 | echo "var array_lang = new Array();\n{$script}"; |
---|
[3873] | 37 | |
---|
[3019] | 38 | ?> |
---|