Changeset 2091


Ignore:
Timestamp:
03/01/10 09:30:04 (14 years ago)
Author:
niltonneto
Message:

Ticket #923 - Corrigido problema referente ao unset da variável SESSION "db".

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoMail1_2/inc/class.db_functions.inc.php

    r2012 r2091  
    11<?php 
    2 define('PHPGW_INCLUDE_ROOT','./');       
    3 define('PHPGW_API_INC','./phpgwapi/inc');        
    4 include_once(PHPGW_API_INC.'/class.db.inc.php'); 
     2if(!isset($_SESSION['phpgw_info']['expressomail']['server']['db_name'])) { 
     3        include_once('./header.inc.php'); 
     4        $_SESSION['phpgw_info']['expressomail']['server']['db_name'] = $GLOBALS['phpgw_info']['server']['db_name'];  
     5        $_SESSION['phpgw_info']['expressomail']['server']['db_host'] = $GLOBALS['phpgw_info']['server']['db_host']; 
     6        $_SESSION['phpgw_info']['expressomail']['server']['db_port'] = $GLOBALS['phpgw_info']['server']['db_port']; 
     7        $_SESSION['phpgw_info']['expressomail']['server']['db_user'] = $GLOBALS['phpgw_info']['server']['db_user']; 
     8        $_SESSION['phpgw_info']['expressomail']['server']['db_pass'] = $GLOBALS['phpgw_info']['server']['db_pass']; 
     9        $_SESSION['phpgw_info']['expressomail']['server']['db_type'] = $GLOBALS['phpgw_info']['server']['db_type']; 
     10} 
     11else{ 
     12        define('PHPGW_INCLUDE_ROOT','./'); 
     13        define('PHPGW_API_INC','./phpgwapi/inc'); 
     14        include_once(PHPGW_API_INC.'/class.db.inc.php'); 
     15} 
    516include_once('class.dynamic_contacts.inc.php'); 
    617         
Note: See TracChangeset for help on using the changeset viewer.