Changeset 1378 for trunk/expressoMail1_2/inc
- Timestamp:
- 08/28/09 15:15:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/inc/hook_settings.inc.php
r1375 r1378 107 107 else 108 108 { 109 110 111 112 113 114 115 116 $imap = CreateObject('expressoMail1_2.imap_functions');117 $save_in_folder_selected = $GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['save_in_folder']; 118 119 // Load Special Folders (Sent, Trash, Draft, Spam) from EmailAdmin (if exists, else get_lang) 120 $specialFolders = array ("Trash" => lang("Trash"), "Drafts" => lang("Drafts"), "Spam" => lang("Spam"), "Sent" => lang("Sent")); 121 122 123 124 125 126 109 require_once('class.imap_functions.inc.php'); 110 $boemailadmin = CreateObject('emailadmin.bo'); 111 $emailadmin_profile = $boemailadmin->getProfileList(); 112 $_SESSION['phpgw_info']['expressomail']['email_server'] = $boemailadmin->getProfile($emailadmin_profile[0]['profileID']); 113 $_SESSION['phpgw_info']['expressomail']['user'] = $GLOBALS['phpgw_info']['user']; 114 $e_server = $_SESSION['phpgw_info']['expressomail']['email_server']; 115 $imap = CreateObject('expressoMail1_2.imap_functions'); 116 $save_in_folder_selected = $GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['save_in_folder']; 117 118 // Load Special Folders (Sent, Trash, Draft, Spam) from EmailAdmin (if exists, else get_lang) 119 $specialFolders = array ("Trash" => lang("Trash"), "Drafts" => lang("Drafts"), "Spam" => lang("Spam"), "Sent" => lang("Sent")); 120 121 foreach ($specialFolders as $key => $value){ 122 if($e_server['imapDefault'.$key.'Folder']) 123 $specialFolders[$key] = $e_server['imapDefault'.$key.'Folder']; 124 } 125 unset($default); 126 $default[-1] = lang('Select on send'); 127 127 128 128 foreach($imap -> get_folders_list(array('noSharedFolders' => true)) as $id => $folder){ … … 146 146 } 147 147 } 148 148 149 } 149 150 create_select_box('Save sent messages in folder','save_in_folder',$default,'Save automatically sent messages in selected folder'); … … 157 158 158 159 create_select_box('What is the height of the lines in the list of messages?','line_height',$default,''); 159 $default = array(160 '10' => lang('small'),161 '11' => lang('normal'),162 '15' => lang('big')163 );164 165 create_select_box('What the font size in the list of messages?','font_size',$default,'');166 160 create_check_box('Use dynamic contacts?','use_dynamic_contacts','Store your\'s most used contacts'); 167 161 create_check_box('Use shortcuts?','use_shortcuts','');
Note: See TracChangeset
for help on using the changeset viewer.