source: trunk/filemanager/inc/load_lang.php @ 5327

Revision 5327, 864 bytes checked in by alexandrecorreia, 12 years ago (diff)

Ticket #2260 - Sincronismo do módulo Filemanager para o trunk.

Line 
1<?php
2
3require_once '../../header.session.inc.php';
4
5/* This single file is used to increase upload_max_filesize and post_max_size using .htaccess*/
6if(!isset($GLOBALS['phpgw_info'])){
7        $GLOBALS['phpgw_info']['flags'] = array(
8                'currentapp' => 'filemanager',
9                'nonavbar'   => true,
10                'noheader'   => true
11        );
12}
13require_once '../../header.inc.php';
14
15        $array_keys = array();
16        $fn = dirname(__FILE__) . '/../setup/phpgw_'.$GLOBALS['phpgw_info']['user']['preferences']['common']['lang'].'.lang';
17
18        if (file_exists($fn)){
19                        $fp = fopen($fn,'r');
20                while ($data = fgets($fp,16000)){
21                        list($message_id,$app_name,$null,$content) = explode("\t",substr($data,0,-1));
22                        $script .= "array_lang['".str_replace("'","\'",strtolower($message_id))."'] = '".str_replace("'","\'",$content)."';\n";
23                }
24                fclose($fp);
25        }
26       
27        echo "var array_lang = new Array();\n{$script}";
28       
29?>
Note: See TracBrowser for help on using the repository browser.