Ignore:
Timestamp:
09/18/08 15:20:21 (16 years ago)
Author:
niltonneto
Message:

Alterações feitas por Alexandre Correia.
Carrega Fotos do Ldap.
Email: alexandrecorreia@…

File:
1 edited

Legend:

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

    r417 r439  
    2222        private $context; 
    2323        private $photo_user = array(); 
     24        private $handle; 
     25 
    2426 
    2527        function __construct() 
    2628        { 
    27                 $this->host             = "localhost"; 
    28                 $this->dn               = "uid=expresso-admin,ou=celepar,dc=ecelepar10612,dc=pr,dc=gov,dc=br"; 
    29                 $this->passwd   = "senha"; 
    30                 $this->context  = "dc=ecelepar10612,dc=pr,dc=gov,dc=br"; 
     29                require_once('conf_Ldap_Photos.php'); 
     30                $this->handle   = unserialize(base64_decode($CONF_SERVER)); 
    3131                 
    32                 $this->refer    = true; 
     32                $this->host             = $this->handle['host']; 
     33                $this->context  = $this->handle['context']; 
     34                $this->dn               = $this->handle['dn']; 
     35                $this->passwd   = $this->handle['passwd']; 
     36                 
     37                $this->refer    = false; 
    3338                $this->version3 = true; 
    3439        } 
     
    166171        } 
    167172} 
     173 
    168174?> 
    169  
Note: See TracChangeset for help on using the changeset viewer.