/[cvs]/nfo/site/htdocs/netfraggle.php
ViewVC logotype

Diff of /nfo/site/htdocs/netfraggle.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.9 by xabbu, Sun Sep 12 00:42:39 2004 UTC revision 1.11 by xabbu, Wed Sep 15 16:39:06 2004 UTC
# Line 23  switch ($type) { Line 23  switch ($type) {
23      include('libs/XML/Server.php');      include('libs/XML/Server.php');
24      $s = new XML_RPC_Server(array(      $s = new XML_RPC_Server(array(
25        "query" => array(        "query" => array(
26          "function" => "nfo_query"            "function" => "nfo_query"
         "signature" => array(array('struct','struct','struct')),  
27        ),        ),
28        "getContent" => array(        "getContent" => array(
29          "function" => "nfo_get_content",          "function" => "nfo_get_content",
# Line 58  function nfo_query($params) { Line 57  function nfo_query($params) {
57    #nfo_debug_write($nqlquery);    #nfo_debug_write($nqlquery);
58    $result = array();    $result = array();
59    cms_query($nqlquery,&$result);    cms_query($nqlquery,&$result);
60    #nfo_debug_write($result);    nfo_debug_write($result);
61    
62    $structinfo = array();    $structinfo = array();
63    $structcontent = array();    $structcontent = array();
# Line 67  function nfo_query($params) { Line 66  function nfo_query($params) {
66    foreach ($result[0] as $key => $value) {    foreach ($result[0] as $key => $value) {
67     $structinfo[$key] = new XML_RPC_Value($value,"string");     $structinfo[$key] = new XML_RPC_Value($value,"string");
68      }      }
69    foreach ($result[1] as $key => $value)  {    
70     $structcontent[$key] = new XML_RPC_Value($value,"struct");     #foreach ($result[1] as $key => $value)  {
71      }     #$structcontent[$key] = new XML_RPC_Value($value,"struct");
72       # }
73      
74       foreach ($result[1] as $key => $value)  {
75            $cdata = array();
76            foreach($value as $item => $data) {
77              $cdata[$item] = new XML_RPC_Value($data,"string");
78            }
79         $structcontent[$key] = new XML_RPC_Value($cdata,"struct");  
80       }
81      
82    foreach ($result[2] as $key => $value) {    foreach ($result[2] as $key => $value) {
83     $structfields[$key] = new XML_RPC_Value($value,"string");     $structfields[$key] = new XML_RPC_Value($value,"string");
84     }     }

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.11

MailToCvsAdmin">MailToCvsAdmin
ViewVC Help
Powered by ViewVC 1.1.26 RSS 2.0 feed