Changeset 62 for trunk/phpgwapi


Ignore:
Timestamp:
08/23/07 11:40:39 (17 years ago)
Author:
niltonneto
Message:

* empty log message *

Location:
trunk/phpgwapi/inc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/phpgwapi/inc/class.common.inc.php

    r2 r62  
    248248                function ldapConnect($host='', $dn='', $passwd='', $ldapreferral=false) #default: dont follow the referral 
    249249                { 
    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 
    255257                        else if(strstr($host, "ldap://")){ 
    256258                                $dn = ''; 
     
    14571459                        if (!$t || (int)$t <= 0) 
    14581460                        { 
     1461                                $t."GMT"; 
    14591462                                $t = $GLOBALS['phpgw']->datetime->gmtnow; 
    14601463                        } 
    1461  
     1464                        else 
     1465                                $t."Não GMT"; 
    14621466                        //  + (date('I') == 1?3600:0) 
    14631467                        $t += $GLOBALS['phpgw']->datetime->tz_offset; 
  • trunk/phpgwapi/inc/class.sector_search_ldap.inc.php

    r44 r62  
    178178                        $first_sector_ufn = ldap_dn2ufn($context); 
    179179                        $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; 
    181184 
    182185            return $options; 
Note: See TracChangeset for help on using the changeset viewer.