Ignore:
Timestamp:
01/18/13 16:47:21 (11 years ago)
Author:
cristiano
Message:

Ticket #2948 - Log criacao, exclusao e modificacao de contas compartilhadas e institucionais

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoAdmin1_2/inc/class.imap_functions.inc.php

    r7552 r7769  
    321321                            $result['msg']  = $this->functions->lang('Error on function') . ' imap_functions->setaclfrombox: imap_setacl'; 
    322322                            $result['msg'] .= "\n" . $this->functions->lang('Server return') . ': ' . imap_last_error(); 
    323                             break; 
     323//                            break; 
    324324                        } 
    325325                } 
     
    384384                                return $result; 
    385385            } 
     386 
     387            if(count($owners_to_remove) > 0) 
     388            { 
     389                foreach($owners_to_remove as $user => $acl) 
     390                { 
     391                    $this->functions->write_log("User removed from the shared account",'USER: '.$user.' - SHARED ACCOUNT: '.$params['uid']); 
     392                } 
     393            } 
     394            if(count($owners_to_add) > 0) 
     395            { 
     396                foreach($owners_to_add as $user => $acl) 
     397                { 
     398                    $this->functions->write_log("User added from the shared account",'USER: '.$user.' - SHARED ACCOUNT: '.$params['uid']); 
     399                } 
     400            } 
     401 
    386402            //file_put_contents("/tmp/saida", "old ".print_r($owners_acl_old, true)."remove ".print_r($owners_to_remove, true)."add ".print_r($owners_to_add, true)."update ".print_r($owners_to_update, true)); 
    387403            if( is_array($owners_acl_new)){ 
     
    442458            require_once('class.ldap_functions.inc.php'); 
    443459 
    444             if( !$ldap ) 
    445             { 
     460//          if( !$ldap ) 
     461//          { 
    446462                $ldap = new ldap_functions(); 
    447             } 
     463//          } 
    448464 
    449465            $to = $ldap->uid2mailforwardingaddress( $user ); 
     
    468484            $keys = array_keys( $tpls ); 
    469485 
    470             if( !array_diff_key( $tpl, array_keys( $keys ) ) ) 
     486            if( !array_diff_key( $tpls, array_keys( $keys ) ) ) 
    471487            { 
    472488                $newTpls = array(); 
Note: See TracChangeset for help on using the changeset viewer.