Changeset 1031 in subversion
- Timestamp:
- Feb 8, 2008 12:18:32 PM (5 years ago)
- Location:
- trunk/roundcubemail/program
- Files:
-
- 3 edited
-
include/main.inc (modified) (1 diff)
-
include/rcube_imap.inc (modified) (2 diffs)
-
lib/imap.inc (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/program/include/main.inc
r1026 r1031 563 563 { 564 564 $host = $a_host['host']; 565 $imap_ssl = (isset($a_host['scheme']) && in_array($a_host['scheme'], array('ssl','imaps','tls'))) ? TRUE : FALSE;565 $imap_ssl = (isset($a_host['scheme']) && in_array($a_host['scheme'], array('ssl','imaps','tls'))) ? $a_host['scheme'] : null; 566 566 $imap_port = isset($a_host['port']) ? $a_host['port'] : ($imap_ssl ? 993 : $CONFIG['default_port']); 567 567 } -
trunk/roundcubemail/program/include/rcube_imap.inc
r996 r1031 98 98 * @param string Password for IMAP account 99 99 * @param number Port to connect to 100 * @param boolean Use SSLconnection100 * @param string SSL schema (either ssl or tls) or null if plain connection 101 101 * @return boolean TRUE on success, FALSE on failure 102 102 * @access public 103 103 */ 104 function connect($host, $user, $pass, $port=143, $use_ssl= FALSE)104 function connect($host, $user, $pass, $port=143, $use_ssl=null) 105 105 { 106 106 global $ICL_SSL, $ICL_PORT, $IMAP_USE_INTERNAL_DATE; … … 108 108 // check for Open-SSL support in PHP build 109 109 if ($use_ssl && in_array('openssl', get_loaded_extensions())) 110 $ICL_SSL = TRUE;110 $ICL_SSL = $use_ssl == 'imaps' ? 'ssl' : $use_ssl; 111 111 else if ($use_ssl) 112 112 { -
trunk/roundcubemail/program/lib/imap.inc
r1016 r1031 50 50 - Implemented UID FETCH in iil_C_FetchHeaders() 51 51 - Abort do-loop on socket errors (fgets returns false) 52 - $ICL_SSL is not boolean anymore but contains the connection schema (ssl or tls) 52 53 - Removed some debuggers (echo ...) 53 54 … … 456 457 //check for SSL 457 458 if ($ICL_SSL) { 458 $host = "ssl://".$host;459 $host = $ICL_SSL."://".$host; 459 460 } 460 461
Note: See TracChangeset
for help on using the changeset viewer.
