uawdijnntqw1x1x1
IP : 216.73.216.237
Hostname : webd009.cluster130.gra.hosting.ovh.net
Kernel : Linux webd009.cluster130.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
OS : Linux
PATH:
/
home
/
pressec
/
www
/
ads--temp-pour-eviter-les-spams
/
lib
/
xajax
/
lib
/
..
/
..
/
.
/
xmlrpc
/
php
/
XmlRpcUtils.php
/
/
<?php /* +---------------------------------------------------------------------------+ | Revive Adserver | | http://www.revive-adserver.com | | | | Copyright: See the COPYRIGHT.txt file. | | License: GPLv2 or later, see the LICENSE.txt file. | +---------------------------------------------------------------------------+ */ /** * @package OpenX * * This file describes the XmlRpcUtils class. */ // Require the XML-RPC classes. require_once 'XML/RPC/Server.php'; /** * The XmlRpcUtils class contains various XmlRpc methods. * */ class XmlRpcUtils { /** * This method converts the Info object into an XML_RPC_Value and deletes null fields. * * @param object &$oInfoObject * @return XML_RPC_Value */ function getEntityWithNotNullFields(&$oInfoObject) { $aInfoData = $oInfoObject->toArray(); $aReturnData = array(); foreach ($aInfoData as $fieldName => $fieldValue) { if (!is_null($fieldValue)) { $aReturnData[$fieldName] = XmlRpcUtils::_setRPCTypeForField( $oInfoObject->getFieldType($fieldName), $fieldValue); } } return new XML_RPC_Value($aReturnData, $GLOBALS['XML_RPC_Struct']); } /** * This method sets the RPC type for variables. * * @param string $type * @param mixed $variable * @return XML_RPC_Value or false */ function _setRPCTypeForField($type, $variable) { switch ($type) { case 'string': return new XML_RPC_Value($variable, $GLOBALS['XML_RPC_String']); case 'integer': return new XML_RPC_Value($variable, $GLOBALS['XML_RPC_Int']); case 'float': case 'double': return new XML_RPC_Value($variable, $GLOBALS['XML_RPC_Double']); case 'boolean': return new XML_RPC_Value($variable, $GLOBALS['XML_RPC_Boolean']); case 'date': if (!is_object($variable) || !is_a($variable, 'Date')) { die('Value should be PEAR::Date type'); } $value = $variable->format('%Y%m%d') . 'T00:00:00'; return new XML_RPC_Value($value, $GLOBALS['XML_RPC_DateTime']); case 'custom': return $variable; } die('Unsupported Xml Rpc type \'' . $type . '\''); } } ?>
/home/pressec/www/ads--temp-pour-eviter-les-spams/lib/xajax/lib/../.././xmlrpc/php/XmlRpcUtils.php