Ignore:
Timestamp:
06/18/10 16:57:11 (14 years ago)
Author:
alexandrecorreia
Message:

Ticket #1113 - Correcao para a busca da foto na janela de chat para Ldaps Externos.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/jabberit_messenger/inc/webservice.php

    r1900 r2959  
    8080        { 
    8181                if( file_exists('confLDAPExternal.php')) 
    82                 { 
     82                {  
    8383                        require_once('confLDAPExternal.php'); 
    8484                        $handle   = unserialize(base64_decode($LDAP_EXTERNAL)); 
    85          
    8685                        foreach($handle as $itens) 
    8786                        { 
     
    274273                } 
    275274                else 
    276                 {                                        
     275                {                                
     276                        $jabberName = substr($pJid, strpos($pJid, "@") + 1 ); 
     277 
     278                        if( strpos($jabberName, "/") ) 
     279                                $jabberName = substr($jabberName, 0, strpos($jabberName, "/")); 
     280 
     281                        $this->ldapConnectExternal($jabberName); 
     282 
    277283                        if( !$this->fileLdapExternal ) 
    278284                                return false; 
    279                                  
    280                         $jabberName = substr($pJid, strpos($pJid, "@") + 1 ); 
    281  
    282                         if( strpos($jabberName, "/") ) 
    283                                 $jabberName = substr($jabberName, 0, strpos($jabberName, "/")); 
    284  
    285                         $this->ldapConnectExternal($jabberName); 
    286  
     285                         
    287286                        if( $this->conn ) 
    288287                        { 
     
    351350        $jid = $_REQUEST['javaPhoto']; 
    352351        $jid = ( strpos($jid, "/") !== false ) ? substr($jid, 0, strpos($jid, "/")) : $jid; 
    353          
    354352        $photo = $obj->getPhotoLdap( $jid, true ); 
    355353        $photoWidth = 70; 
Note: See TracChangeset for help on using the changeset viewer.