Revision 1040,
1.0 KB
checked in by amuller, 15 years ago
(diff) |
Ticket #559 - Atualização de download de arquivos e sessão
|
-
Property svn:eol-style set to
native
-
Property svn:executable set to
*
|
Line | |
---|
1 | <?php |
---|
2 | if(!isset($GLOBALS['phpgw_info'])){ |
---|
3 | $GLOBALS['phpgw_info']['flags'] = array( |
---|
4 | 'currentapp' => 'expressoMail1_2', |
---|
5 | 'nonavbar' => true, |
---|
6 | 'noheader' => true |
---|
7 | ); |
---|
8 | } |
---|
9 | require_once '../header.inc.php'; |
---|
10 | |
---|
11 | // Load the lang of the module. |
---|
12 | if(!$_SESSION['phpgw_info']['expressomail']['lang']) |
---|
13 | { |
---|
14 | $array_keys = array(); |
---|
15 | $fn = 'setup/phpgw_'.$_SESSION['phpgw_info']['expressomail']['user']['preferences']['common']['lang'].'.lang'; |
---|
16 | if (file_exists($fn)){ |
---|
17 | $fp = fopen($fn,'r'); |
---|
18 | while ($data = fgets($fp,16000)) { |
---|
19 | list($message_id,$app_name,$null,$content) = explode("\t",substr($data,0,-1)); |
---|
20 | $_SESSION['phpgw_info']['expressomail']['lang'][$message_id] = $content; |
---|
21 | } |
---|
22 | fclose($fp); |
---|
23 | } |
---|
24 | } |
---|
25 | |
---|
26 | foreach($_SESSION['phpgw_info']['expressomail']['lang'] as $key => $value) |
---|
27 | $script .= "array_lang['".str_replace("'","\'",strtolower($key))."'] = '".str_replace("'","\'",$value)."';\n"; |
---|
28 | echo "<script type='text/javascript'>$script</script>"; |
---|
29 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.