some fixes:

- replaced the hardcoded /phpgroupware url with the webserver_url
- register globals
This commit is contained in:
Ralf Becker 2003-10-20 17:25:56 +00:00
parent 0656bc925a
commit 6909e7241d

View File

@ -5,8 +5,8 @@
* Maintain list and provide send interface to remote phpgw servers * * Maintain list and provide send interface to remote phpgw servers *
* Copyright (C) 2001 Miles Lott * * Copyright (C) 2001 Miles Lott *
* -------------------------------------------------------------------------* * -------------------------------------------------------------------------*
* This library is part of the phpGroupWare API * * This library is part of the eGroupWare API *
* http://www.phpgroupware.org/api * * http://www.egroupware.org *
* ------------------------------------------------------------------------ * * ------------------------------------------------------------------------ *
* This library is free software; you can redistribute it and/or modify it * * This library is free software; you can redistribute it and/or modify it *
* under the terms of the GNU Lesser General Public License as published by * * under the terms of the GNU Lesser General Public License as published by *
@ -40,10 +40,7 @@
var $kp3 = ''; var $kp3 = '';
/* These are now entered as defaults if the admin forgot to enter the full URL */ /* These are now entered as defaults if the admin forgot to enter the full URL */
var $urlparts = array( var $urlparts = array();
'xmlrpc' => '/phpgroupware/xmlrpc.php',
'soap' => '/phpgroupware/soap.php'
);
/* /*
0/none == no access 0/none == no access
@ -84,6 +81,12 @@
function interserver($serverid='') function interserver($serverid='')
{ {
$url = eregi_replace('https*://[^/]*/','',$GLOBALS['phpgw_info']['server']['webserver_url']);
$this->urlparts = array(
'xmlrpc' => $url.'/xmlrpc.php',
'soap' => $url.'/soap.php'
);
$this->db = $GLOBALS['phpgw']->db; $this->db = $GLOBALS['phpgw']->db;
if($serverid) if($serverid)
{ {