Changeset 6092 in subversion for trunk/roundcubemail/program/include/rcube_ldap.php
- Timestamp:
- Apr 16, 2012 7:59:08 AM (13 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/program/include/rcube_ldap.php
r6091 r6092 164 164 165 165 // initialize cache 166 $rc mail = rcmail::get_instance();167 $this->cache = $rc mail->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); 168 168 169 169 $this->_connect(); … … 176 176 private function _connect() 177 177 { 178 $ RCMAIL = rcmail::get_instance();178 $rcube = rcube::get_instance(); 179 179 180 180 if (!function_exists('ldap_connect')) … … 195 195 foreach ($this->prop['hosts'] as $host) 196 196 { 197 $host = idn_to_ascii(rcube_utils::parse_host($host));197 $host = rcube_utils::idn_to_ascii(rcube_utils::parse_host($host)); 198 198 $hostname = $host.($this->prop['port'] ? ':'.$this->prop['port'] : ''); 199 199 … … 244 244 // No password set, use the session password 245 245 if (empty($bind_pass)) { 246 $bind_pass = $ RCMAIL->decrypt($_SESSION['password']);246 $bind_pass = $rcube->decrypt($_SESSION['password']); 247 247 } 248 248 249 249 // Get the pieces needed for variable replacement. 250 if ($fu = $ RCMAIL->get_user_name())250 if ($fu = $rcube->get_user_name()) 251 251 list($u, $d) = explode('@', $fu); 252 252 else … … 1563 1563 { 1564 1564 if ($this->debug) { 1565 rc mail::write_log('ldap', $str);1565 rcube::write_log('ldap', $str); 1566 1566 } 1567 1567 }
Note: See TracChangeset
for help on using the changeset viewer.
