Changeset 957


Ignore:
Timestamp:
06/05/09 10:33:01 (15 years ago)
Author:
alexandrecorreia
Message:

Ticket #541 - O arquivo confLDAPInternal.php não é criado, gera um erro no applet java.

File:
1 edited

Legend:

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

    r948 r957  
    1616        private $contextLdap; 
    1717        private $userDn;         
    18         private $jabberName; 
     18        private $jabberName = null; 
    1919        private $passwd; 
    2020        private $photo_user = array(); 
     
    2424        function __construct() 
    2525        { 
    26                 require_once('confLDAPInternal.php'); 
    27                 $handle   = unserialize(base64_decode($LDAP_INTERNAL)); 
    28  
    29                 $this->jabberName       = $handle['jabberName']; 
    30                 $this->serverLdap       = $handle['serverLdap']; 
    31                 $this->contextLdap      = $handle['contextLdap']; 
    32                 $this->userDn           = $handle['user']; 
    33                 $this->passwd           = $handle['password']; 
    34                  
    35                 $this->refer    = true; 
    36                 $this->version3 = true; 
     26                if ( file_exists('confLDAPInternal.php') ) 
     27                { 
     28                        require_once('confLDAPInternal.php'); 
     29                        $handle   = unserialize(base64_decode($LDAP_INTERNAL)); 
     30         
     31                        $this->jabberName       = $handle['jabberName']; 
     32                        $this->serverLdap       = $handle['serverLdap']; 
     33                        $this->contextLdap      = $handle['contextLdap']; 
     34                        $this->userDn           = $handle['user']; 
     35                        $this->passwd           = $handle['password']; 
     36                         
     37                        $this->refer    = true; 
     38                        $this->version3 = true; 
     39                } 
    3740        } 
    3841         
     
    140143        public final function getPhotoLdap($pJid) 
    141144        { 
     145                if ( ! $this->jabberName ) 
     146                        return false; 
     147 
    142148                $uid = substr($pJid, 0, strpos($pJid,"@")); 
    143149                 
Note: See TracChangeset for help on using the changeset viewer.