Ignore:
Timestamp:
04/14/08 14:20:28 (16 years ago)
Author:
niltonneto
Message:
 
Location:
trunk/instant_messenger/inc
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/instant_messenger/inc/Jabber.abstract.php

    r262 r265  
    3232        const NOTICE  = 'NOTICE'; 
    3333 
    34         private final function _connect( $pUser = false, $pPassword = false, $pConnectionType = false ) 
     34        private final function _connect( $pUser = false, $pPassword = false, $pConnectionType = false, $pWebjabber = false ) 
    3535        {        
    3636                try 
     
    4141                        list($subject, $USER, $SERVER, $RESOURCE, $PORT) = $matches; 
    4242 
    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__); 
    4548 
    4649                        $this->_socket = $socket; 
  • trunk/instant_messenger/inc/class.Ujabber.inc.php

    r260 r265  
    1414                $this->_port     = $_SESSION['phpgw_info']['instant_messenger']['port_jabber']; 
    1515                $this->_resource = $_SESSION['phpgw_info']['instant_messenger']['resource_jabber']; 
     16                $webjabber       = $_SESSION['phpgw_info']['instant_messenger']['webjabber']; 
    1617 
    1718                session_write_close(); 
    1819 
    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) ) 
    2021                        $this->connected = true; 
    2122                else 
  • trunk/instant_messenger/inc/im_sessions.inc.php

    r260 r265  
    1313                $_SESSION['phpgw_info']['instant_messenger']['user_ldap_jabber']     = $GLOBALS['phpgw_info']['server']['user_ldap_jabber']; 
    1414                $_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'];                 
    1516                 
    1617                $_SESSION['phpgw_info']['instant_messenger']['server']['db_name'] = $GLOBALS['phpgw_info']['server']['db_name']; 
Note: See TracChangeset for help on using the changeset viewer.