2010-06-03 Miguel de Dios <miguel.dedios@artica.es>

* extensions/update_manager/lib/libupdate_manager_client.php: changed the
	source code, now check the connection to server with a socket.
	Fixes: #3004761



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2855 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
mdtrooper 2010-06-03 09:24:26 +00:00
parent c33b2e74c9
commit a2a7f86269
2 changed files with 14 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2010-06-03 Miguel de Dios <miguel.dedios@artica.es>
* extensions/update_manager/lib/libupdate_manager_client.php: changed the
source code, now check the connection to server with a socket.
Fixes: #3004761
2010-06-03 Miguel de Dios <miguel.dedios@artica.es>
* general/license/pandora_info_ast_es.html: cleaned html and fixed unclose

View File

@ -58,6 +58,14 @@ define ('XMLRPC_DEBUG', 0);
define ('XMLRPC_TIMEOUT', 15);
function um_xml_rpc_client_call ($server_host, $server_path, $server_port, $proxy, $proxy_port, $proxy_user, $proxy_pass, $function, $parameters) {
//Test conection of host
$fp = @fsockopen($server_host, $server_port, $errno, $errstr);
if ($errstr == "php_network_getaddresses: getaddrinfo failed: Name or service not known") {
echo '<strong>Open Update Manager</strong> Server comunication error: failed check connection to server.';
return false;
}
fclose($fp);
$msg = new XML_RPC_Message ($function, $parameters);
$client = new XML_RPC_Client ($server_path, $server_host, $server_port, $proxy, $proxy_port, $proxy_user, $proxy_pass);
if (defined ('XMLRPC_DEBUG'))