Changeset 689 for trunk/expressoMail1_2/preferences.php
- Timestamp:
- 02/11/09 13:42:40 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/preferences.php
r673 r689 133 133 else 134 134 $GLOBALS['phpgw']->template->set_var('font_size_option_11_selected','selected'); 135 $c = CreateObject('phpgwapi.config','expressoMail1_2'); 136 $c->read_repository(); 137 $current_config = $c->config_data; 138 139 if($current_config['enable_local_messages']!='True') { 140 $GLOBALS['phpgw']->template->set_var('open_comment_local_messages_config',"<!--"); 141 $GLOBALS['phpgw']->template->set_var('close_comment_local_messages_config',"-->"); 142 } 143 else { 144 $GLOBALS['phpgw']->template->set_var('open_comment_local_messages_config'," "); 145 $GLOBALS['phpgw']->template->set_var('close_comment_local_messages_config'," "); 146 } 147 148 if ($GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['use_local_messages']) 149 $GLOBALS['phpgw']->template->set_var('use_local_messages_option_Yes_selected','selected'); 150 else { 151 $GLOBALS['phpgw']->template->set_var('use_local_messages_option_No_selected',''); 152 $GLOBALS['phpgw']->template->set_var('use_local_messages_option_Yes_selected',''); 153 } 154 155 if ($GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['keep_archived_messages']) 156 $GLOBALS['phpgw']->template->set_var('keep_archived_messages_option_Yes_selected','selected'); 157 else { 158 $GLOBALS['phpgw']->template->set_var('keep_archived_messages_option_No_selected',''); 159 $GLOBALS['phpgw']->template->set_var('keep_archived_messages_option_Yes_selected',''); 160 } 161 135 162 } 136 163 else //Save Config … … 232 259 else 233 260 $GLOBALS['phpgw']->preferences->add('expressoMail','font_size',$_POST['font_size']); 261 if ($GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['use_local_messages']) 262 $GLOBALS['phpgw']->preferences->change('expressoMail','use_local_messages',$_POST['use_local_messages']); 263 else 264 $GLOBALS['phpgw']->preferences->add('expressoMail','use_local_messages',$_POST['use_local_messages']); 265 266 if ($GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['keep_archived_messages']) 267 $GLOBALS['phpgw']->preferences->change('expressoMail','keep_archived_messages',$_POST['keep_archived_messages']); 268 else 269 $GLOBALS['phpgw']->preferences->add('expressoMail','keep_archived_messages',$_POST['keep_archived_messages']); 234 270 235 271 $GLOBALS['phpgw']->preferences->save_repository(); … … 276 312 $GLOBALS['phpgw']->template->set_var('lang_type_signature',lang('Signature type')); 277 313 $GLOBALS['phpgw']->template->set_var('big',lang('Big')); 314 $GLOBALS['phpgw']->template->set_var('lang_Would_you_like_to_keep_archived_messages_?',lang('Would you like to keep archived messages?')); 315 $GLOBALS['phpgw']->template->set_var('lang_Yes',lang('Yes')); 316 $GLOBALS['phpgw']->template->set_var('lang_No',lang('No')); 317 $GLOBALS['phpgw']->template->set_var('lang_Would_you_like_to_use_local_messages_?',lang('Would you like to use local messages?')); 278 318 $GLOBALS['phpgw']->template->set_var('lang_use_signature',lang('Insert signature automatically in new messages?')); 279 319
Note: See TracChangeset
for help on using the changeset viewer.