Changeset 578
- Timestamp:
- 01/07/09 17:21:17 (15 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/inc/controller.xml
r357 r578 24 24 <php path="/var/www/expresso/admin/inc" suffix=".class.php"> 25 25 <item ref="db_im" alias="get_preferences" class="db_im" method="get_preferences" prefix="class." suffix=".inc.php"/> 26 <item ref="ldap_im" alias="list_organizations_ldap" class="ldap_im" method="list_organizations_ldap" prefix="class." suffix=".inc.php"/>27 26 <item ref="bovoip" alias="getGroupsLdap" class="bovoip" method="getGroupsLdap" prefix="class." suffix=".inc.php"/> 28 27 </php> -
trunk/preferences/changepersonaldata.php
r392 r578 40 40 $GLOBALS['phpgw']->template->set_var('lang_commercial_telephonenumber',lang('Commercial Telephone number')); 41 41 $GLOBALS['phpgw']->template->set_var('lang_ps_commercial_telephonenumber', 42 lang('Observation : This telephone number will apear in the searches for your name, and will be visible for all ExpressoLivre Users.'));42 lang('Observation') . ': ' . lang('This telephone number will apear in searches for your name, and it will be visible for all ExpressoLivre Users') . '.'); 43 43 $GLOBALS['phpgw']->template->set_var('lang_change',lang('Change')); 44 44 $GLOBALS['phpgw']->template->set_var('lang_cancel',lang('Cancel')); 45 $GLOBALS['phpgw']->template->set_var('telephonenumber',$_POST['telephonenumber'] ? $_POST['telephonenumber'] : $GLOBALS['phpgw_info']['user']['telephonenumber']);46 45 $GLOBALS['phpgw']->template->set_var('form_action',$GLOBALS['phpgw']->link('/preferences/changepersonaldata.php')); 46 47 /* Get telephone number from ldap or from post */ 48 $ldap_conn = $GLOBALS['phpgw']->common->ldapConnect(); 49 $result = ldap_search($ldap_conn, $GLOBALS['phpgw_info']['server']['ldap_context'], 'uid='.$GLOBALS['phpgw_info']['user']['account_lid'], array('telephonenumber')); 50 $entrie = ldap_get_entries($ldap_conn, $result); 51 $GLOBALS['phpgw']->template->set_var('telephonenumber',$_POST['telephonenumber'] ? $_POST['telephonenumber'] : $entrie[0]['telephonenumber'][0]); 52 ldap_close($ldap_conn); 47 53 48 54 if ($GLOBALS['phpgw_info']['server']['auth_type'] != 'ldap') … … 62 68 else 63 69 { 64 // LDAP Replication mode.70 // Use LDAP Replication mode, if available 65 71 if ( (!empty($GLOBALS['phpgw_info']['server']['ldap_master_host'])) && 66 72 (!empty($GLOBALS['phpgw_info']['server']['ldap_master_root_dn'])) &&
Note: See TracChangeset
for help on using the changeset viewer.