Changeset 2092


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

Ticket #923 - Corrigido problema do unset da variável 'db', feita pelo Workflow.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0/expressoMail1_2/inc/class.db_functions.inc.php

    r1308 r2092  
    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} 
     16 
    517include_once('class.dynamic_contacts.inc.php'); 
    618         
Note: See TracChangeset for help on using the changeset viewer.