Changeset 180 for trunk/expressoAdmin1_2/inc/class.user.inc.php
- Timestamp:
- 02/26/08 17:04:07 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoAdmin1_2/inc/class.user.inc.php
r107 r180 469 469 // ADD or REMOVE some attributes 470 470 //////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 471 472 //////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 473 // PHOTO 474 if ($this->functions->check_acl($_SESSION['phpgw_session']['session_lid'], 'edit_users_picture')) 475 { 476 if ($new_values['delete_photo']) 477 { 478 $this->ldap_functions->ldap_remove_photo($dn); 479 $this->db_functions->write_log("removido jpegphoto do usuario",'',$dn,'',''); 480 } 481 elseif ($_FILES['photo']['name'] != '') 482 { 483 if ($new_values['photo_exist']) 484 { 485 $photo_exist = true; 486 $this->db_functions->write_log("substituido jpegphoto do usuario",'',$dn,'',''); 487 } 488 else 489 { 490 $photo_exist = false; 491 $this->db_functions->write_log("adicionado jpegphoto ao usuario",'',$dn,'',''); 492 } 493 $this->ldap_functions->ldap_save_photo($dn, $_FILES['photo']['tmp_name'], $new_values['photo_exist'], $photo_exist); 494 } 495 } 471 496 472 497 // Verifica o acesso ára adicionar ou remover tais atributos … … 532 557 $ldap_remove['phpgwaccountvisible'] = array(); 533 558 $this->db_functions->write_log("removido phpgwaccountvisible ao usuario",'',$dn,'',''); 534 }535 ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////536 // PHOTO537 if ( ($new_values['delete_photo']) && ($this->functions->check_acl($_SESSION['phpgw_session']['session_lid'], 'edit_users_picture')) )538 {539 $this->ldap_functions->ldap_remove_photo($dn);540 $this->db_functions->write_log("removido jpegphoto do usuario",'',$dn,'','');541 }542 elseif ( ($_FILES['photo']['name'] != '') && ($this->functions->check_acl($_SESSION['phpgw_session']['session_lid'], 'edit_users_picture')) )543 {544 if ($new_values['photo_exist'])545 $photo_exist = true;546 else547 $photo_exist = false;548 $this->ldap_functions->ldap_save_photo($dn, $_FILES['photo']['tmp_name'], $new_values['photo_exist'], $photo_exist);549 $this->db_functions->write_log("adicionado jpegphoto ao usuario",'',$dn,'','');550 559 } 551 560 ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Note: See TracChangeset
for help on using the changeset viewer.