--- nfo/site/htdocs/netfraggle.php 2004/09/15 16:39:06 1.11 +++ nfo/site/htdocs/netfraggle.php 2004/09/20 23:38:14 1.13 @@ -5,7 +5,7 @@ -------------------------------------------------------------------------------- --- rabit, 01:28 24.08.2004 --- joko, 04:05 30.08.2004 ---- $Id: netfraggle.php,v 1.11 2004/09/15 16:39:06 xabbu Exp $ +--- $Id: netfraggle.php,v 1.13 2004/09/20 23:38:14 xabbu Exp $ ------------------------------------------------------------------------------*/ include('inc/common/common.php.inc'); @@ -64,9 +64,30 @@ $structfields = array(); foreach ($result[0] as $key => $value) { - $structinfo[$key] = new XML_RPC_Value($value,"string"); - } - + if ($key == 'all'){ + $datall = array(); + foreach ($result[0][$key] as $keyall => $valall) { + + if ($keyall == 'fieldlist'){ + $datall2 = array(); + foreach ($result[0][$key][$keyall] as $fieldkey => $fieldval){ + $datall2 = new XML_RPC_Value($fieldval,"string"); + } + $datall[$keyall] = new XML_RPC_Value($datall2,"struct"); + }else{ + if($keyall == 'with'){ + // DO nothing yet + }else{ + $datall[$keyall] = new XML_RPC_Value($valall,"string"); + } + } + } + $structinfo[$key] = new XML_RPC_Value($datall,"struct"); + }else{ + $structinfo[$key] = new XML_RPC_Value($value,"string"); + } + } + #foreach ($result[1] as $key => $value) { #$structcontent[$key] = new XML_RPC_Value($value,"struct"); # }