Changeset 5122 for trunk/workflow/inc/class.bo_utils.inc.php
- Timestamp:
- 10/31/11 14:48:26 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/workflow/inc/class.bo_utils.inc.php
r3167 r5122 88 88 $ret_complement = empty($params['complement']) ? '' : $params['complement']; 89 89 90 $ajaxConfig = &Factory::newInstance('ajax_config', 'contactcenter'); 90 // According to the ldap selected, format de config params to be extracted 91 if ($params['useCCParams'] == "true") 92 { 93 $ldap_indexes = array('module' => 'contactcenter', 94 'host' => 'cc_ldap_host0', 95 'basedn' => 'cc_ldap_context0', 96 'user' => 'cc_ldap_browse_dn0', 97 'passwd' => 'cc_ldap_pw0'); 98 } 99 else 100 { 101 $ldap_indexes = array('module' => 'workflow', 102 'host' => 'ldap_host', 103 'basedn' => 'ldap_user_context', 104 'user' => 'ldap_user', 105 'passwd' => 'ldap_password'); 106 107 } 108 $ajaxConfig = &Factory::newInstance('ajax_config', $ldap_indexes['module']); 91 109 $config = $ajaxConfig->read_repository(); 92 110 93 $ldapconfig['host'] = $config[ 'cc_ldap_host0'];94 $ldapconfig['basedn'] = $config[ 'cc_ldap_context0'];95 $usuario = $config[ 'cc_ldap_browse_dn0'];96 $senha = $config[ 'cc_ldap_pw0'];111 $ldapconfig['host'] = $config[$ldap_indexes['host']]; 112 $ldapconfig['basedn'] = $config[$ldap_indexes['basedn']]; 113 $usuario = $config[$ldap_indexes['user']]; 114 $senha = $config[$ldap_indexes['passwd']]; 97 115 98 116 if($usuario != "" && $senha != ""){
Note: See TracChangeset
for help on using the changeset viewer.