Changeset 62 for trunk/phpgwapi
- Timestamp:
- 08/23/07 11:40:39 (17 years ago)
- Location:
- trunk/phpgwapi/inc
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/phpgwapi/inc/class.common.inc.php
r2 r62 248 248 function ldapConnect($host='', $dn='', $passwd='', $ldapreferral=false) #default: dont follow the referral 249 249 { 250 if(!$host || $host == $GLOBALS['phpgw_info']['server']['ldap_host']) { 251 $dn = $GLOBALS['phpgw_info']['server']['ldap_root_dn']; 252 $passwd = $GLOBALS['phpgw_info']['server']['ldap_root_pw']; 253 $host = $GLOBALS['phpgw_info']['server']['ldap_host']; 254 } 250 251 if(!$host || $host == $GLOBALS['phpgw_info']['server']['ldap_host']) { 252 $dn = $dn ? $dn : $GLOBALS['phpgw_info']['server']['ldap_root_dn']; 253 $passwd = $passwd ? $passwd : $GLOBALS['phpgw_info']['server']['ldap_root_pw']; 254 $host = $host ? $host : $GLOBALS['phpgw_info']['server']['ldap_host']; 255 } 256 255 257 else if(strstr($host, "ldap://")){ 256 258 $dn = ''; … … 1457 1459 if (!$t || (int)$t <= 0) 1458 1460 { 1461 $t."GMT"; 1459 1462 $t = $GLOBALS['phpgw']->datetime->gmtnow; 1460 1463 } 1461 1464 else 1465 $t."Não GMT"; 1462 1466 // + (date('I') == 1?3600:0) 1463 1467 $t += $GLOBALS['phpgw']->datetime->tz_offset; -
trunk/phpgwapi/inc/class.sector_search_ldap.inc.php
r44 r62 178 178 $first_sector_ufn = ldap_dn2ufn($context); 179 179 $first_sector_string = split(",", $first_sector_ufn); 180 $options = "<option value='$context'>" . strtoupper($first_sector_string[0]) . "</option>" . $options; 180 181 if ($context == $selected) 182 $select_first_entrie = ' selected'; 183 $options = "<option value='$context'$select_first_entrie>+ " . strtoupper($first_sector_string[0]) . "</option>" . $options; 181 184 182 185 return $options;
Note: See TracChangeset
for help on using the changeset viewer.