Ignore:
Timestamp:
07/08/10 17:52:20 (14 years ago)
Author:
amuller
Message:

Ticket #1135 - Aplicando alterações do branches 2.0 no branches 2.2

File:
1 edited

Legend:

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

    r1992 r3018  
    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         
     
    214225                if($_SESSION['phpgw_info']['user']['preferences']['expressoMail']['number_of_contacts'] && 
    215226                        $_SESSION['phpgw_info']['user']['preferences']['expressoMail']['use_dynamic_contacts']) { 
     227                        // Free others requests  
     228                        session_write_close();  
    216229                        $dynamic_contact = new dynamic_contacts(); 
    217230                        $dynamic = $dynamic_contact->dynamic_contact_toString(); 
     
    353366                                $calendar = $fileContent; 
    354367                } 
     368                // It's necessary to access calendar method.  
     369                include_once(PHPGW_INCLUDE_ROOT.'/header.inc.php');  
    355370                         
    356371                $uiicalendar = CreateObject("calendar.uiicalendar"); 
Note: See TracChangeset for help on using the changeset viewer.