Changeset 1342 for branches/1.2/expressoMail1_2/preferences.php
- Timestamp:
- 08/19/09 11:10:14 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.2/expressoMail1_2/preferences.php
r689 r1342 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 162 135 } 163 136 else //Save Config … … 259 232 else 260 233 $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 else264 $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 else269 $GLOBALS['phpgw']->preferences->add('expressoMail','keep_archived_messages',$_POST['keep_archived_messages']);270 234 271 235 $GLOBALS['phpgw']->preferences->save_repository(); … … 312 276 $GLOBALS['phpgw']->template->set_var('lang_type_signature',lang('Signature type')); 313 277 $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?'));318 278 $GLOBALS['phpgw']->template->set_var('lang_use_signature',lang('Insert signature automatically in new messages?')); 319 279
Note: See TracChangeset
for help on using the changeset viewer.