Changeset 6362 for sandbox/2.4.1-3/admin/inc/class.uiconfig.inc.php
- Timestamp:
- 05/31/12 15:11:04 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/2.4.1-3/admin/inc/class.uiconfig.inc.php
r6357 r6362 339 339 /* Seta o valor padrão para a configuração de número máximo de marcadores */ 340 340 $current_config['expressoMail_limit_labels'] = (isset($current_config['expressoMail_limit_labels']) && !!$current_config['expressoMail_limit_labels'] ) ? $current_config['expressoMail_limit_labels'] : 20; 341 //Pegar os todos os Atributos LDAP mapeados no arquivo user.ini 342 $map = Config::get('user', 'OpenLDAP.mapping'); 343 $validate = false; 344 $options = "<option value=''>".lang('None')."</option>"; 345 foreach($map as $value){ 346 $options .= "<option value='".$value."'"; 347 if($current_config['expressoMail_ldap_identifier_recipient'] == $value){ 348 $validate = true; 349 $options .= " selected='selected'"; 350 } 351 $options .= ">". $value . "</option>"; 352 } 353 354 if(!$validate){ 355 // Limpa Atributo LDAP do banco de dados caso a atribuição não exista mais. 356 $db = ''; 357 $db = $db ? $db : $GLOBALS['phpgw']->db; // this is to allow setup to set the db 358 $db->query("DELETE FROM phpgw_config WHERE config_app = '".$appname."' AND config_name = 'expressoMail_ldap_identifier_recipient'"); 359 } 341 360 /* Recupera o número mínimo de marcadores que pode ser definido */ 342 361 $db = ''; … … 422 441 $t->set_var('min_labels',$cont_labels); 423 442 443 $t->set_var('rows_ldap_identifier',$options); 424 444 $t->pfp('out','body'); 425 445
Note: See TracChangeset
for help on using the changeset viewer.