Changeset 604 for trunk/expressoMail1_2
- Timestamp:
- 01/14/09 15:25:35 (15 years ago)
- Location:
- trunk/expressoMail1_2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/inc/load_lang.php
r566 r604 4 4 { 5 5 $array_keys = array(); 6 $fn = ' ../setup/phpgw_'.$_SESSION['phpgw_info']['expressomail']['user']['preferences']['common']['lang'].'.lang';6 $fn = 'setup/phpgw_'.$_SESSION['phpgw_info']['expressomail']['user']['preferences']['common']['lang'].'.lang'; 7 7 if (file_exists($fn)){ 8 8 $fp = fopen($fn,'r'); … … 14 14 } 15 15 } 16 $script = "array_lang = new Array();";16 17 17 foreach($_SESSION['phpgw_info']['expressomail']['lang'] as $key => $value) 18 18 $script .= "array_lang['".str_replace("'","\'",strtolower($key))."'] = '".str_replace("'","\'",$value)."';\n"; 19 echo $script;19 echo "<script type='text/javascript'>$script</script>"; 20 20 ?> -
trunk/expressoMail1_2/index.php
r569 r604 96 96 'use_dynamic_contacts' => $GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['use_dynamic_contacts'] ? $GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['use_dynamic_contacts'] : "0", 97 97 'number_of_contacts' => $current_config['expressoMail_Number_of_dynamic_contacts'] ? $current_config['expressoMail_Number_of_dynamic_contacts'] : "0", 98 'use_cache' => $current_config['expressoMail_enable_cache'] 98 'use_cache' => $current_config['expressoMail_enable_cache'], 99 'notification_domains' => $current_config['expressoMail_notification_domains'] 99 100 100 101 101 102 102 103 ); 104 103 105 104 106 $template = CreateObject('phpgwapi.Template',PHPGW_APP_TPL); … … 145 147 $_SESSION['phpgw_info']['expressomail']['email_server']['imapDefaultSpamFolder'] = $_SESSION['phpgw_info']['expressomail']['email_server']['imapDefaultSpamFolder'] ? $_SESSION['phpgw_info']['expressomail']['email_server']['imapDefaultSpamFolder'] : lang("Spam"); 146 148 $_SESSION['phpgw_info']['expressomail']['email_server']['imapDefaultSentFolder'] = $_SESSION['phpgw_info']['expressomail']['email_server']['imapDefaultSentFolder'] ? $_SESSION['phpgw_info']['expressomail']['email_server']['imapDefaultSentFolder'] : lang("Sent"); 147 149 148 150 echo '<script> var special_folders = new Array(4); 149 151 special_folders["'.$_SESSION['phpgw_info']['expressomail']['email_server']['imapDefaultTrashFolder'].'"] = \'Trash\'; … … 160 162 161 163 $obj = createobject("expressoMail1_2.functions"); 162 echo "<script src='inc/load_lang.php?".$update_version."' type='text/javascript'></script>";164 include("inc/load_lang.php"); 163 165 // INCLUDE these JS Files: 164 166 echo $obj -> getFilesJs("js/abas.js," .
Note: See TracChangeset
for help on using the changeset viewer.