Revision 1059,
769 bytes
checked in by amuller, 15 years ago
(diff) |
Ticket #559 - Removendo inclusão de header.inc.php nas classes e colocando no controler
|
-
Property svn:eol-style set to
native
-
Property svn:executable set to
*
|
Rev | Line | |
---|
[1036] | 1 | <?php |
---|
[1040] | 2 | |
---|
[2] | 3 | // Load the lang of the module. |
---|
| 4 | if(!$_SESSION['phpgw_info']['expressomail']['lang']) |
---|
| 5 | { |
---|
| 6 | $array_keys = array(); |
---|
[604] | 7 | $fn = 'setup/phpgw_'.$_SESSION['phpgw_info']['expressomail']['user']['preferences']['common']['lang'].'.lang'; |
---|
[2] | 8 | if (file_exists($fn)){ |
---|
| 9 | $fp = fopen($fn,'r'); |
---|
| 10 | while ($data = fgets($fp,16000)) { |
---|
| 11 | list($message_id,$app_name,$null,$content) = explode("\t",substr($data,0,-1)); |
---|
| 12 | $_SESSION['phpgw_info']['expressomail']['lang'][$message_id] = $content; |
---|
| 13 | } |
---|
| 14 | fclose($fp); |
---|
| 15 | } |
---|
| 16 | } |
---|
[604] | 17 | |
---|
[566] | 18 | foreach($_SESSION['phpgw_info']['expressomail']['lang'] as $key => $value) |
---|
| 19 | $script .= "array_lang['".str_replace("'","\'",strtolower($key))."'] = '".str_replace("'","\'",$value)."';\n"; |
---|
[604] | 20 | echo "<script type='text/javascript'>$script</script>"; |
---|
[566] | 21 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.