| Server IP : 85.158.181.41 / Your IP : 216.73.217.12 Web Server : Apache System : Linux cloud9-vm129 6.1.178+1-ph #ph SMP PREEMPT_DYNAMIC Wed Jul 29 09:00:54 UTC 2026 x86_64 User : moncbefd ( 1024) PHP Version : 7.3.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/moncbefd/www.moneta.at/actindo/classes/Components/ |
Upload File : |
<?php
require_once('Zend/XmlRpc/Request/Http.php');
/**
* Actindo Faktura/WWS Connector
* class for handling xmlrpc requests
* @package actindo
* @author Patrick Prasse <patrick.prasse@actindo.com>
*
* @author Friedemann Kalab <kalab@actindo.de>
* @version $Revision: 901 $
* @copyright Copyright© Actindo AG 2018, <support@actindo.com>, Carl-Zeiss-Ring 15 - 85737 Ismaning
* @license http://opensource.org/licenses/GPL-2.0 GNU Public License
*/
class Actindo_Connector_Components_Request extends Zend_XmlRpc_Request_Http
{
protected $compression = null;
/**
* Create a new XML-RPC request
* @param string $method (optional)
* @param array $params (optional)
* @param array $server (optional) $_SERVER array (used to detect content compression)
*/
public function __construct($method = null, $params = null, $server = null)
{
if ($server !== null) {
if (isset($server['HTTP_CONTENT_ENCODING'])
&& strtolower($server['HTTP_CONTENT_ENCODING']) == 'gzip'
) {
$this->compression = 'gzip';
}
}
parent::__construct($method, $params);
}
/**
* load XML data into internal object
* extends the parent function to handle compressed xml documents
* @param string $request
* @uses parent::loadXML
* @return bool
*/
public function loadXML($request)
{
switch ($this->compression) {
case 'gzip':
if (function_exists('gzinflate') && ($inflated = @gzinflate(substr($request, 10)))) {
$request = $inflated;
}
break;
}
return parent::loadXML($request);
}
}