Changeset 265 for trunk/instant_messenger/inc
- Timestamp:
- 04/14/08 14:20:28 (16 years ago)
- Location:
- trunk/instant_messenger/inc
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/instant_messenger/inc/Jabber.abstract.php
r262 r265 32 32 const NOTICE = 'NOTICE'; 33 33 34 private final function _connect( $pUser = false, $pPassword = false, $pConnectionType = false )34 private final function _connect( $pUser = false, $pPassword = false, $pConnectionType = false, $pWebjabber = false ) 35 35 { 36 36 try … … 41 41 list($subject, $USER, $SERVER, $RESOURCE, $PORT) = $matches; 42 42 43 if ( !($socket = $this->open('tcp://' . $SERVER . ':' . $PORT, 1, 1)) ) 44 throw new Exception('[connect] #2 can\'t access tcp://' . $SERVER . ':' . $PORT . '. File: ' . __FILE__ . ' :: ' . __LINE__); 43 if ( !$pWebjabber || empty($pWebjabber) ) 44 $pWebjabber = $SERVER; 45 46 if ( !($socket = $this->open('tcp://' . $pWebjabber . ':' . $PORT, 1, 1)) ) 47 throw new Exception('[connect] #2 can\'t access tcp://' . $pWebjabber . ':' . $PORT . '. File: ' . __FILE__ . ' :: ' . __LINE__); 45 48 46 49 $this->_socket = $socket; -
trunk/instant_messenger/inc/class.Ujabber.inc.php
r260 r265 14 14 $this->_port = $_SESSION['phpgw_info']['instant_messenger']['port_jabber']; 15 15 $this->_resource = $_SESSION['phpgw_info']['instant_messenger']['resource_jabber']; 16 $webjabber = $_SESSION['phpgw_info']['instant_messenger']['webjabber']; 16 17 17 18 session_write_close(); 18 19 19 if ( $this->connect($this->_user . '@' . $this->_server . '/' . $this->_resource . ':' . $this->_port, $this->_pass, 'read/write' ) )20 if ( $this->connect($this->_user . '@' . $this->_server . '/' . $this->_resource . ':' . $this->_port, $this->_pass, 'read/write', $webjabber) ) 20 21 $this->connected = true; 21 22 else -
trunk/instant_messenger/inc/im_sessions.inc.php
r260 r265 13 13 $_SESSION['phpgw_info']['instant_messenger']['user_ldap_jabber'] = $GLOBALS['phpgw_info']['server']['user_ldap_jabber']; 14 14 $_SESSION['phpgw_info']['instant_messenger']['password_ldap_jabber'] = $GLOBALS['phpgw_info']['server']['password_ldap_jabber']; 15 $_SESSION['phpgw_info']['instant_messenger']['webjabber'] = $GLOBALS['phpgw_info']['server']['wejabber']; 15 16 16 17 $_SESSION['phpgw_info']['instant_messenger']['server']['db_name'] = $GLOBALS['phpgw_info']['server']['db_name'];
Note: See TracChangeset
for help on using the changeset viewer.