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;