Changeset 3406


Ignore:
Timestamp:
10/22/10 17:02:15 (14 years ago)
Author:
alexandrecorreia
Message:

Ticket #1316 - Correcoes e melhorias na busca dos contatos para o Modulo IM.

Location:
branches/2.2/jabberit_messenger
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/jabberit_messenger/inc/class.contacts_im.inc.php

    r3266 r3406  
    188188                else 
    189189                { 
     190                // Ldap Root 
    190191                $result[] = $this->ldap->getUsersLdapRoot("cn=*".$pName."*"); 
     192                
     193                // Ldap Catalog                  
     194                        if( count($this->hostsJabberLdap) ) 
     195                        { 
     196                                foreach( $this->hostsJabberLdap as $conf ) 
     197                                { 
     198                                        $result[] = $this->ldap->getUsersLdapCatalog("cn=*".$pName."*", $conf['serverLdap'] ); 
     199                                } 
     200                        } 
    191201                
    192202                foreach( $result as $key => $value ) 
    193203                { 
    194                                 $array_uids = array_merge($array_uids, $result[$key]); 
     204                                $array_uids = array_merge($array_uids, $value); 
    195205                } 
    196206                 
  • branches/2.2/jabberit_messenger/jmessenger/inc/class.ContactsIm.inc.php

    r3266 r3406  
    119119        $members                = array(); 
    120120        $result                 = array(); 
    121         $uidType                = "uid"; 
     121        $uidType                = $this->attribute; 
    122122                $serversLdap    = unserialize( trim($_SESSION['phpgw_info']['jabberit_messenger']['groups_search']) ); 
    123123 
     
    125125                { 
    126126                        // Usa Grupos Ldap 
    127                          
    128127                        $filters = array( ); 
    129128                         
     
    167166                else 
    168167                { 
     168                // Ldap Root 
    169169                $result[] = $this->ldap->getUsersLdapRoot("cn=*".$pName."*"); 
    170170                
    171                 foreach( $result as $key => $value ) 
     171                        // Ldap Catalog                  
     172                        if( count($this->hostsJabberLdap) ) 
     173                        { 
     174                                foreach( $this->hostsJabberLdap as $conf ) 
     175                                { 
     176                                        $result[] = $this->ldap->getUsersLdapCatalog("cn=*".$pName."*", $conf['serverLdap'] ); 
     177                                } 
     178                        } 
     179 
     180                foreach( $result as $value ) 
    172181                { 
    173                                 $array_uids = array_merge($array_uids, $result[$key]); 
     182                                $array_uids = array_merge($array_uids, $value ); 
    174183                } 
    175                                  
     184                         
    176185                        if( count($array_uids) >  $this->ldap->getMaxResults() ) 
    177186                        { 
  • branches/2.2/jabberit_messenger/templates/default/enabled_ou_groups.tpl

    r3102 r3406  
    22<script type="text/javascript" src="jabberit_messenger/js/connector.js"></script> 
    33<script type="text/javascript" src="jabberit_messenger/js/xtools.js"></script> 
    4 <script type="text/javascript" src="jabberit_messenger/controller.php?act=j.glocked"></script> 
    54        <form> 
    65                <table align="center" width="90%" cellspacing="2" style="border:1px solid #000;margin-top:20px;"> 
Note: See TracChangeset for help on using the changeset viewer.