Changeset 2514


Ignore:
Timestamp:
04/14/10 09:45:06 (14 years ago)
Author:
alexandrecorreia
Message:

Ticket #986 - Implementado o status de mensagem e a busca da foto no ldap.

Location:
sandbox/jabberit_messenger/trophy_expresso/inc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sandbox/jabberit_messenger/trophy_expresso/inc/WebService.php

    r2511 r2514  
    2727                        $uid = substr($pUid, 0, strpos($pUid, "/")); 
    2828                 
    29                 $photo = $ldap->getPhotoUser($uid, true); 
    30                  
    31                 if ( !$photo ) 
    32                         $photo = $ldap->getPhotoUser($uid, false); 
     29                $photo = $ldap->getPhotoUser($uid ); 
    3330         
    3431                if( $photo ) 
  • sandbox/jabberit_messenger/trophy_expresso/inc/class.LdapIM.inc.php

    r2511 r2514  
    303303        } 
    304304 
    305         public final function getPhotoUser( $_uid, $ldapRoot ) 
    306         { 
    307  
     305        public final function getPhotoUser( $_uid ) 
     306        { 
    308307                $uid    = substr($_uid, 0, strpos($_uid, "@")); 
    309308                $host   = substr($_uid, (strpos($_uid, "@") + 1)); 
    310309                 
    311                 if( $ldapRoot ) 
    312                 { 
    313                         $this->ldapRoot(); 
    314                 } 
    315                 else 
     310                if( count($this->hostsJabber) ) 
    316311                { 
    317312                        $confHosts      = $this->hostsJabber;    
     
    328323                                        $this->ldap             = $this->ldapCatalog(); 
    329324                                } 
    330                         }                                
     325                        } 
     326                         
     327                        if( !$this->ldap ) 
     328                                $this->ldapRoot();                                                               
     329                } 
     330                else 
     331                { 
     332                        $this->ldapRoot(); 
    331333                } 
    332334 
Note: See TracChangeset for help on using the changeset viewer.