- Timestamp:
- 07/08/10 17:52:20 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/expressoMail1_2/inc/class.db_functions.inc.php
r1992 r3018 1 1 <?php 2 define('PHPGW_INCLUDE_ROOT','../'); 3 define('PHPGW_API_INC','../phpgwapi/inc'); 4 include_once(PHPGW_API_INC.'/class.db.inc.php'); 2 if(!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 } 11 else{ 12 define('PHPGW_INCLUDE_ROOT','../'); 13 define('PHPGW_API_INC','../phpgwapi/inc'); 14 include_once(PHPGW_API_INC.'/class.db.inc.php'); 15 } 5 16 include_once('class.dynamic_contacts.inc.php'); 6 17 … … 214 225 if($_SESSION['phpgw_info']['user']['preferences']['expressoMail']['number_of_contacts'] && 215 226 $_SESSION['phpgw_info']['user']['preferences']['expressoMail']['use_dynamic_contacts']) { 227 // Free others requests 228 session_write_close(); 216 229 $dynamic_contact = new dynamic_contacts(); 217 230 $dynamic = $dynamic_contact->dynamic_contact_toString(); … … 353 366 $calendar = $fileContent; 354 367 } 368 // It's necessary to access calendar method. 369 include_once(PHPGW_INCLUDE_ROOT.'/header.inc.php'); 355 370 356 371 $uiicalendar = CreateObject("calendar.uiicalendar");
Note: See TracChangeset
for help on using the changeset viewer.