Ignore:
Timestamp:
05/25/10 17:00:15 (14 years ago)
Author:
niltonneto
Message:

Ticket #1041 - Corrigido problema na validação da sessão por IP.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/header.inc.php.template

    r2326 r2855  
    118118        $GLOBALS['phpgw_info']['server']['versions']['current_header'] = $setup_info['phpgwapi']['versions']['current_header']; 
    119119        unset($setup_info); 
    120         $GLOBALS['phpgw_info']['server']['versions']['header'] = '2.0'; 
     120        $GLOBALS['phpgw_info']['server']['versions']['header'] = '2.2'; 
    121121        /* This is a fix for NT */ 
    122122        if(!isset($GLOBALS['phpgw_info']['flags']['noapi']) || !$GLOBALS['phpgw_info']['flags']['noapi'] == True) 
     
    126126        $connection_id = $GLOBALS['phpgw']->session->sessionid; 
    127127        if (!strlen($connection_id) != 32){ 
    128                 if (!isset($_SESSION['connection_db_info'])) 
    129                 { 
    130                 $GLOBALS['phpgw']->db->query("select trim(sessionid), ip, browser from phpgw_access_log where account_id <> 0 and lo = 0 and sessionid='{$GLOBALS['phpgw']->session->sessionid}' limit 1",__LINE__,__FILE__); 
    131                 $GLOBALS['phpgw']->db->next_record( ); 
    132                 $_SESSION['connection_db_info']['user_auth'] = $GLOBALS['phpgw']->db->row( ); 
    133                 } 
    134128                include("header.session.inc.php"); 
    135129        } 
Note: See TracChangeset for help on using the changeset viewer.