Changeset 3873 for branches/2.2/filemanager/inc/load_lang.php
- Timestamp:
- 03/16/11 11:06:54 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/filemanager/inc/load_lang.php
r3019 r3873 1 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 2 15 $array_keys = array(); 3 $fn = $GLOBALS['phpgw_info']['flags']['currentapp'].'/setup/phpgw_'.$GLOBALS['phpgw_info']['user']['preferences']['common']['lang'].'.lang'; 16 $fn = dirname(__FILE__) . '/../setup/phpgw_'.$GLOBALS['phpgw_info']['user']['preferences']['common']['lang'].'.lang'; 17 4 18 if (file_exists($fn)){ 5 19 $fp = fopen($fn,'r'); … … 10 24 fclose($fp); 11 25 } 12 echo "<script type='text/javascript'>var array_lang = new Array(); $script</script>"; 26 27 echo "var array_lang = new Array(); \n$script"; 28 13 29 ?>
Note: See TracChangeset
for help on using the changeset viewer.