Changeset 988
- Timestamp:
- 06/12/09 17:49:55 (15 years ago)
- Location:
- trunk/jabberit_messenger/inc
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/jabberit_messenger/inc/class.contacts_im.inc.php
r987 r988 119 119 { 120 120 $array_uids = $this->db->get_accounts_acl(); 121 $members = array(); ;121 $members = array(); 122 122 $result = array(); 123 123 124 124 for( $i = 0; $i < count($array_uids) ; $i+=50 ) 125 125 { … … 141 141 $orgs = array_unique($orgs); 142 142 143 foreach( $orgs as $orgB ) 144 $result[] = $this->ldap->getUsersLdap ("cn=*".$pName."*", $filter_uid, $orgB );143 foreach( $orgs as $orgB ) 144 $result[] = $this->ldap->getUsersLdapRoot("cn=*".$pName."*", $filter_uid, $orgB ); 145 145 } 146 146 else 147 $result[] = $this->ldap->getUsersLdap("cn=*".$pName."*", $filter_uid, "");147 $result[] = $this->ldap->getUsersLdapRoot("cn=*".$pName."*", $filter_uid); 148 148 } 149 if(!$this->groupsLocked()) 150 $result[] = $this->ldap->getUsersLdapCatalog("cn=*".$pName."*"); 149 151 150 152 if ( is_array($result) ) -
trunk/jabberit_messenger/inc/class.db_im.inc.php
r946 r988 37 37 $this->db_pass = $_SESSION['phpgw_info']['jabberit_messenger']['server']['db_pass']; 38 38 $this->db_type = $_SESSION['phpgw_info']['jabberit_messenger']['server']['db_type']; 39 $this->user_id = $_SESSION['phpgw_info']['jabberit_messenger']['user_id']; 39 $this->user_id = $_SESSION['phpgw_info']['jabberit_messenger']['user_id']; 40 40 $this->connectDB(); 41 41 } … … 115 115 public final function get_accounts_acl() 116 116 { 117 $query = "select acl_account from phpgw_acl where acl_location in (select acl_accountfrom phpgw_acl where acl_appname = 'jabberit_messenger') ";117 $query = "select acl_account from phpgw_acl where acl_location in (select cast(acl_account as varchar) from phpgw_acl where acl_appname = 'jabberit_messenger') "; 118 118 $query .= "union select acl_account from phpgw_acl where acl_appname = 'jabberit_messenger'"; 119 119 120 120 121 if( $this->db->query($query) ) -
trunk/jabberit_messenger/inc/class.ldap_im.inc.php
r951 r988 156 156 } 157 157 158 public final function getUsersLdap( $search, $uidnumber, $ous = false) 159 { 160 // Ldap Principal 161 $ldapRoot = $this->getUsersLdapRoot($search, $uidnumber, $ous); 162 163 if( !$ous ) 164 { 165 // Ldap Outros 166 $ldapCatalog = $this->getUsersLdapCatalog( $search ); 167 $ldapRoot = array_merge( $ldapRoot, $ldapCatalog ); 168 } 169 170 return $ldapRoot; 171 } 172 173 private final function getUsersLdapCatalog( $search ) 158 159 public final function getUsersLdapCatalog( $search ) 174 160 { 175 161 $confHosts = $this->hostsJabber; … … 211 197 } 212 198 213 p rivatefinal function getUsersLdapRoot( $search, $uidnumber, $ous = false )199 public final function getUsersLdapRoot( $search, $uidnumber, $ous = false ) 214 200 { 215 201 $this->ldapRoot();
Note: See TracChangeset
for help on using the changeset viewer.