Ignore:
Timestamp:
Apr 16, 2012 7:59:08 AM (13 months ago)
Author:
alec
Message:
  • Replace some references to rcmail with rcube
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/include/rcube_ldap.php

    r6091 r6092  
    164164 
    165165        // initialize cache 
    166         $rcmail = rcmail::get_instance(); 
    167         $this->cache = $rcmail->get_cache('LDAP.' . asciiwords($this->prop['name']), 'db', 600); 
     166        $rcube = rcube::get_instance(); 
     167        $this->cache = $rcube->get_cache('LDAP.' . asciiwords($this->prop['name']), 'db', 600); 
    168168 
    169169        $this->_connect(); 
     
    176176    private function _connect() 
    177177    { 
    178         $RCMAIL = rcmail::get_instance(); 
     178        $rcube = rcube::get_instance(); 
    179179 
    180180        if (!function_exists('ldap_connect')) 
     
    195195        foreach ($this->prop['hosts'] as $host) 
    196196        { 
    197             $host     = idn_to_ascii(rcube_utils::parse_host($host)); 
     197            $host     = rcube_utils::idn_to_ascii(rcube_utils::parse_host($host)); 
    198198            $hostname = $host.($this->prop['port'] ? ':'.$this->prop['port'] : ''); 
    199199 
     
    244244            // No password set, use the session password 
    245245            if (empty($bind_pass)) { 
    246                 $bind_pass = $RCMAIL->decrypt($_SESSION['password']); 
     246                $bind_pass = $rcube->decrypt($_SESSION['password']); 
    247247            } 
    248248 
    249249            // Get the pieces needed for variable replacement. 
    250             if ($fu = $RCMAIL->get_user_name()) 
     250            if ($fu = $rcube->get_user_name()) 
    251251                list($u, $d) = explode('@', $fu); 
    252252            else 
     
    15631563    { 
    15641564        if ($this->debug) { 
    1565             rcmail::write_log('ldap', $str); 
     1565            rcube::write_log('ldap', $str); 
    15661566        } 
    15671567    } 
Note: See TracChangeset for help on using the changeset viewer.