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@…

Location:
trunk/jabberit_messenger/inc
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/jabberit_messenger/inc/controller.xml

    r417 r439  
    2626                        <item ref="images" js="images" /> 
    2727                        <item ref="show_hidden" js="show_hidden" /> 
     28                        <item ref="setup" js="setup" path="/var/www/expresso/jabberit_messenger/templates/celepar/"/> 
    2829                </js> 
    2930                <php path="/var/www/expresso/jabberit_messenger/inc" suffix=".class.php"> 
     
    3435                        <item ref="ldap_im" alias="photo_ldap" class="ldap_im" method="photo_ldap" prefix="class." suffix=".inc.php"/> 
    3536                        <item ref="ujabber" alias="AddNewContact" class="ujabber" method="AddNewContact" prefix="class." suffix=".inc.php"/> 
     37                        <item ref="FileDefine" alias="getParams" class="FileDefine" method="getParams" prefix="class." suffix=".inc.php"/>                       
    3638                </php> 
    3739                <xml></xml> 
  • 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.