Changeset 395 for trunk/admin
- Timestamp:
- 08/14/08 11:44:42 (16 years ago)
- Location:
- trunk/admin
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/inc/class.bovoip.inc.php
r357 r395 36 36 $groups = $this->so->getGroupsLdap($pOrg); 37 37 38 $group = "< ldap_ou>";38 $group = "<groups>"; 39 39 40 40 if((trim($groups) != '') && (is_array($groups))) 41 41 { 42 42 foreach($groups as $tmp) 43 $group .= "< ou>" . $tmp . "</ou>";43 $group .= "<group>" . $tmp['cn'].";".$tmp['gid'] . "</group>"; 44 44 } 45 45 46 $group .= "</ ldap_ou>";46 $group .= "</groups>"; 47 47 48 48 return $group; -
trunk/admin/inc/class.sovoip.inc.php
r357 r395 73 73 { 74 74 $filter = "(&(phpgwAccountType=g)(objectClass=posixGroup))"; 75 $justthese = array("cn" );75 $justthese = array("cn","gidNumber"); 76 76 $search = ldap_list($this->ldap, $organization, $filter, $justthese); 77 77 $entry = ldap_get_entries( $this->ldap, $search ); 78 78 79 79 if( $entry ) 80 { 81 foreach($entry as $tmp) 82 if( $tmp['cn'][0] != "" ) 83 $result_groups[] = $tmp['cn'][0]; 80 { 81 $idx = 0; 82 foreach($entry as $tmp) { 83 if( $tmp['gidnumber'][0] != "" ){ 84 $result_groups[$idx]['gid'] = $tmp['gidnumber'][0]; 85 $result_groups[$idx++]['cn'] = $tmp['cn'][0]; 86 } 87 } 84 88 } 85 89 … … 93 97 { 94 98 $this->db = $GLOBALS['phpgw']->db; 95 96 99 if( $this->db ) 97 100 { -
trunk/admin/inc/class.uivoip.inc.php
r359 r395 75 75 natcasesort($gvoip); 76 76 77 foreach( $gvoip as $tmp ) 78 $gvoip .= "<option value='".$tmp."'>".$tmp."</option>"; 77 foreach( $gvoip as $tmp ){ 78 $option = explode(";",$tmp); 79 $gvoip .= "<option value='".$tmp."'>".$option[0]."</option>"; 80 } 79 81 } 80 82 … … 134 136 foreach($_POST['voip_groups'] as $tmp) 135 137 $conf['voip_groups'] = (count($conf['voip_groups']) > 0 ) ? $conf['voip_groups'] . "," . $tmp : $tmp; 136 138 else{ 139 $conf['voip_groups'] = ''; 140 } 137 141 $this->bo->setConfDB($conf); 138 142 } -
trunk/admin/js/voip/functions.js
r357 r395 17 17 flag = true; 18 18 } 19 if ( !flag ) 20 select_voip.options[select_voip.length] = new Option(select_ldap.options[i].value, select_ldap.options[i].value, false, true); 19 if ( !flag ) { 20 var option = select_ldap.options[i].value.split(";"); 21 select_voip.options[select_voip.length] = new Option(option[0], select_ldap.options[i].value, false, true); 22 } 21 23 } 22 24 } … … 47 49 while(data) 48 50 { 49 select_ldap.options[select_ldap.options.length] = new Option(data.firstChild.nodeValue, data.firstChild.nodeValue, false, false); 51 var option = data.firstChild.nodeValue.split(";"); 52 select_ldap.options[select_ldap.options.length] = new Option(option[0],data.firstChild.nodeValue, false, false); 50 53 data = data.nextSibling; 51 54 }
Note: See TracChangeset
for help on using the changeset viewer.