Changeset 952
- Timestamp:
- 06/04/09 15:22:54 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/jabberit_messenger/inc/class.contacts_im.inc.php
r946 r952 130 130 { 131 131 $array_uids = $this->db->get_accounts_acl(); 132 $count = count($array_uids);133 132 $members = array();; 134 133 $result = array(); 135 136 for( $i = 0; $i < $count ; $i+=50 ) 137 { 138 $partial_uids = array_slice($array_uids,$i,50); 139 $filter_uid = implode(")(uidnumber=",$partial_uids); 140 $filter_uid = "(uidnumber=". $filter_uid. ")"; 141 142 if( $this->groupsLocked() ) 143 { 144 $orgs[] = $this->ou_User; 145 $orgsGroupsLocked = explode(",", $_SESSION['phpgw_info']['jabberit_messenger']['organizationsGroupsLocked']); 146 147 foreach( $orgsGroupsLocked as $tmp ) 148 { 149 if( $tmp != "" ) 150 $orgs[] = "OU=". $tmp; 151 } 152 153 $orgs = array_unique($orgs); 154 155 foreach( $orgs as $orgB ) 156 $result[] = $this->ldap->getUsersLdap("cn=*".$pName."*", $filter_uid, $orgB ); 157 } 158 else 159 $result[] = $this->ldap->getUsersLdap("cn=*".$pName."*", $filter_uid, "" ); 160 } 134 135 if( is_array($array_uids) ) 136 { 137 for( $i = 0; $i < count($array_uids) ; $i+=50 ) 138 { 139 $partial_uids = array_slice($array_uids,$i,50); 140 $filter_uid = implode(")(uidnumber=",$partial_uids); 141 $filter_uid = "(uidnumber=". $filter_uid. ")"; 142 143 if( $this->groupsLocked() ) 144 { 145 $orgs[] = $this->ou_User; 146 $orgsGroupsLocked = explode(",", $_SESSION['phpgw_info']['jabberit_messenger']['organizationsGroupsLocked']); 147 148 foreach( $orgsGroupsLocked as $tmp ) 149 { 150 if( $tmp != "" ) 151 $orgs[] = "OU=". $tmp; 152 } 153 154 $orgs = array_unique($orgs); 155 156 foreach( $orgs as $orgB ) 157 $result[] = $this->ldap->getUsersLdap("cn=*".$pName."*", $filter_uid, $orgB ); 158 } 159 else 160 $result[] = $this->ldap->getUsersLdap("cn=*".$pName."*", $filter_uid, "" ); 161 } 162 } 163 else 164 $result[] = $this->ldap->getUsersLdap("cn=*".$pName."*", "", ""); 161 165 162 166 if ( is_array($result) )
Note: See TracChangeset
for help on using the changeset viewer.