Revision 3873,
863 bytes
checked in by alexandrecorreia, 14 years ago
(diff) |
Ticket #1646 - Erro em gerenciamento de pastas do File manager
|
Line | |
---|
1 | <?php |
---|
2 | |
---|
3 | require_once '../../header.session.inc.php'; |
---|
4 | |
---|
5 | /* This single file is used to increase upload_max_filesize and post_max_size using .htaccess*/ |
---|
6 | if(!isset($GLOBALS['phpgw_info'])){ |
---|
7 | $GLOBALS['phpgw_info']['flags'] = array( |
---|
8 | 'currentapp' => 'filemanager', |
---|
9 | 'nonavbar' => true, |
---|
10 | 'noheader' => true |
---|
11 | ); |
---|
12 | } |
---|
13 | require_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.