HEX
Server: Apache
System: Linux iad1-shared-e1-19 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User: austral3d (14892361)
PHP: 5.6.40
Disabled: NONE
Upload Files
File: /home/austral3d/fourdplan.com/webservices4.9dev/ActualizarLimites.php
<?php
	require_once("comun/conexion_mysqli.php");
	require_once("fdp/FdpNode.php");

	$db = fdp_connect();

	$limites = new Limite();
	$xml_string = file_get_contents('php://input'); 
	$xml = new SimpleXMLElement($xml_string);
	$result = "";
	echo "XML is: " . $xml . " from " . $xml_string;
	foreach ($xml as $limit) {
		$result = [];
		foreach($limit as $name => $value) {
			$result[$name] = $value;
		}
		$result = $limites->insert($db, $result);
	}
	echo "Result is: " . $result . "\n";
	echo ("ok");
?>