Changeset 2868


Ignore:
Timestamp:
05/27/10 08:06:19 (12 years ago)
Author:
emmanuel.ferro
Message:

Ticket #986 - [SERPRO] Correcao de erro para setar a variavel user_jabber

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sandbox/jabberit_messenger/trophy_expresso/inc/jabberit_sessions.inc.php

    r2397 r2868  
    1212  \***************************************************************************/ 
    1313 
     14                $attributeLdap = PHPGW_SERVER_ROOT . '/jmessenger/inc/attributeLdap.php'; 
     15 
    1416                //User 
    15                 $_SESSION['phpgw_info']['jabberit_messenger']['user_jabber']    = $GLOBALS['phpgw_info']['user']['account_lid']; 
     17                $_SESSION['phpgw_info']['jabberit_messenger']['user_jabber'] = $GLOBALS['phpgw_info']['user']['account_lid']; 
     18                if ( file_exists($attributeLdap) )       
     19                { 
     20                        require_once($attributeLdap); 
     21                        if( trim($attributeTypeName) == 'description' ) 
     22                        { 
     23                                $description = explode("@", $GLOBALS['phpgw_info']['user']['email']); 
     24                        $_SESSION['phpgw_info']['jabberit_messenger']['user_jabber'] = $description[0]; 
     25                        } 
     26                } 
     27 
    1628                $_SESSION['phpgw_info']['jabberit_messenger']['user_id']                = $GLOBALS['phpgw_info']['user']['account_id'];          
    1729        $_SESSION['phpgw_info']['jabberit_messenger']['passwd']                 = $GLOBALS['phpgw_info']['user']['passwd']; 
Note: See TracChangeset for help on using the changeset viewer.