Version 3.1.4
This commit is contained in:
1 parent
1d4720f3e2
commit
ae5c01cc78
2563 files changed
+283048
-240689
No files matched your search
@@ -1,18 +1,21 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.0.5
|
||||
* IP.Board v3.1.4
|
||||
* XML-RPC Server: Send, receive and process XML-RPC requests
|
||||
* Last Updated: $Date: 2009-11-24 17:17:08 -0500 (Tue, 24 Nov 2009) $
|
||||
* Last Updated: $Date: 2010-07-22 04:20:19 -0400 (Thu, 22 Jul 2010) $
|
||||
* </pre>
|
||||
*
|
||||
* @author $Author: josh $
|
||||
* @author $Author: matt $
|
||||
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
|
||||
* @license http://www.iinvisionpower.com/community/board/license.html
|
||||
* @package Invision Power Services Kernel
|
||||
* @link http://www.iinvisionpower.com
|
||||
* @license http://www.invisionpower.com/community/board/license.html
|
||||
* @package IP.Board
|
||||
* @subpackage Kernel
|
||||
* @link http://www.invisionpower.com
|
||||
* @since 6th January 2006
|
||||
* @version $Revision: 346 $
|
||||
* @version $Revision: 440 $
|
||||
*
|
||||
*
|
||||
* Example Usage:
|
||||
@@ -680,6 +683,7 @@ class classXmlRpc
|
||||
//-------------------------------
|
||||
|
||||
$host = $url_parts['host'];
|
||||
$_host = $url_parts['scheme'] == 'https' ? 'ssl://' . $host : $host;
|
||||
|
||||
$port = ( isset($url_parts['port']) ) ? $url_parts['port'] : ( $url_parts['scheme'] == 'https' ? 443 : 80 );
|
||||
|
||||
@@ -711,7 +715,7 @@ class classXmlRpc
|
||||
$path .= "?" . $url_parts["query"];
|
||||
}
|
||||
|
||||
if ( ! $fp = @fsockopen( $host, $port, $errno, $errstr, $fsocket_timeout ) )
|
||||
if ( ! $fp = @fsockopen( $_host, $port, $errno, $errstr, $fsocket_timeout ) )
|
||||
{
|
||||
$this->errors[] = "CONNECTION REFUSED FROM {$host}";
|
||||
return FALSE;
|
||||
@@ -720,7 +724,7 @@ class classXmlRpc
|
||||
else
|
||||
{
|
||||
$header = "POST $path HTTP/1.0\r\n";
|
||||
$header .= "User-Agent: IPS XML-RPC Client Library (\$Revision: 346 $)\r\n";
|
||||
$header .= "User-Agent: IPS XML-RPC Client Library (\$Revision: 440 $)\r\n";
|
||||
$header .= "Host: $host\r\n";
|
||||
|
||||
if ( $this->auth_user && $this->auth_pass )
|
||||
@@ -757,7 +761,7 @@ class classXmlRpc
|
||||
// Strip headers
|
||||
//-------------------------------
|
||||
|
||||
$tmp = split("\r\n\r\n", $data, 2);
|
||||
$tmp = explode("\r\n\r\n", $data, 2);
|
||||
$data = $tmp[1];
|
||||
|
||||
//-----------------------------------------
|
||||
|
||||
Reference in new issue
Block a user