From 80dd3d1fe233fe2edc53ab1c8d15e07de5623b9d Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 21 Aug 2008 06:21:32 +0000 Subject: [PATCH] New header.inc.php template - I dont force the update (updating version in phpgwapi/setup/setup.inc.php), as the old one still works through diverse defaults and I want to wait for the rewrite of a db-based session handler and making mcrpyt available for sessions again (currently not used) - required includes for xmlrpc and soap are moved to the callbacks of this services, as they are NOT required by the rest of eGroupware --- header.inc.php.template | 221 ++++++++++++++++++++-------------------- soap.php | 3 + xmlrpc.php | 5 +- 3 files changed, 118 insertions(+), 111 deletions(-) diff --git a/header.inc.php.template b/header.inc.php.template index c0170f70ee..6ca30e4131 100644 --- a/header.inc.php.template +++ b/header.inc.php.template @@ -1,131 +1,132 @@ - $GLOBALS['egw_domain']['{DB_DOMAIN}'] = array( - 'db_host' => '{DB_HOST}', - 'db_port' => '{DB_PORT}', - 'db_name' => '{DB_NAME}', - 'db_user' => '{DB_USER}', - 'db_pass' => '{DB_PASS}', - // Look at the README file - 'db_type' => '{DB_TYPE}', - // This will limit who is allowed to make configuration modifications - 'config_user' => '{CONFIG_USER}', - 'config_passwd' => '{CONFIG_PASS}' - ); +/* + Leave off the final php closing tag, some editors will add + a \n or space after which will mess up cookies later on +*/ +$GLOBALS['egw_domain']['{DB_DOMAIN}'] = array( + 'db_host' => '{DB_HOST}', + 'db_port' => '{DB_PORT}', + 'db_name' => '{DB_NAME}', + 'db_user' => '{DB_USER}', + 'db_pass' => '{DB_PASS}', + // Look at the README file + 'db_type' => '{DB_TYPE}', + // This will limit who is allowed to make configuration modifications + 'config_user' => '{CONFIG_USER}', + 'config_passwd' => '{CONFIG_PASS}' +); diff --git a/soap.php b/soap.php index be8f3193f5..a91e61fca2 100644 --- a/soap.php +++ b/soap.php @@ -22,6 +22,9 @@ ); include('./header.inc.php'); + include_once(EGW_API_INC . '/xml_functions.inc.php'); // not sure that's neccessary, but I have no way to test + include_once(EGW_API_INC . '/soap_functions.inc.php'); + $GLOBALS['server'] = CreateObject('phpgwapi.soap_server'); /* _debug_array($GLOBALS['server']);exit; */ /* include(EGW_API_INC . '/soaplib.soapinterop.php'); */ diff --git a/xmlrpc.php b/xmlrpc.php index d6f51251c1..1a99e9271a 100644 --- a/xmlrpc.php +++ b/xmlrpc.php @@ -22,7 +22,10 @@ 'disable_Template_class' => True ) ); - include('header.inc.php'); + include('./header.inc.php'); + + include_once(EGW_API_INC . '/xml_functions.inc.php'); + include_once(EGW_API_INC . '/soap_functions.inc.php'); // not sure that's neccessary, but I have no way to test //viniciuscb: a secure way to know if we're in a xmlrpc call... $GLOBALS['egw_info']['server']['xmlrpc'] = true;