Changeset 957
- Timestamp:
- 06/05/09 10:33:01 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/jabberit_messenger/inc/webservice.php
r948 r957 16 16 private $contextLdap; 17 17 private $userDn; 18 private $jabberName ;18 private $jabberName = null; 19 19 private $passwd; 20 20 private $photo_user = array(); … … 24 24 function __construct() 25 25 { 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 } 37 40 } 38 41 … … 140 143 public final function getPhotoLdap($pJid) 141 144 { 145 if ( ! $this->jabberName ) 146 return false; 147 142 148 $uid = substr($pJid, 0, strpos($pJid,"@")); 143 149
Note: See TracChangeset
for help on using the changeset viewer.