Update of /cvsroot/php-blog/jBlog
In directory sc8-pr-cvs1:/tmp/cvs-serv14947
Modified Files:
jBlog-xmlrpc.php
Log Message:
fix for mt.getRecentEntries
Index: jBlog-xmlrpc.php
===================================================================
RCS file: /cvsroot/php-blog/jBlog/jBlog-xmlrpc.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- jBlog-xmlrpc.php 10 Mar 2003 04:07:06 -0000 1.2
+++ jBlog-xmlrpc.php 10 Mar 2003 05:55:08 -0000 1.3
@@ -56,8 +56,8 @@
return new XML_RPC_Response('', 4, "Authentication Failed");
}
$userdata = new XML_RPC_Value(
- array('nickname' => new XML_RPC_Value($jBlog['user']),
- 'userid' => new XML_RPC_Value($jBlog['jBlogEmail']),
+ array('nickname' => new XML_RPC_Value($jBlog['jBlogUser']),
+ 'userid' => new XML_RPC_Value($jBlog['authorid'], 'string'),
'url' => new XML_RPC_Value($jBlog['baseURL']),
'email' => new XML_RPC_Value($jBlog['jBlogEmail']),
'lastname' => new XML_RPC_Value(''),
@@ -95,10 +95,12 @@
$xml_entries_vals = array();
foreach ( $entries as $entry ) {
$xml_entries_vals[] = new XML_RPC_Value(
- array('postid' => new XML_RPC_Value($entry['id'], 'string'),
+ array(
+ 'postid' => new XML_RPC_Value($entry['id'], 'string'),
+ 'title' => new XML_RPC_Value($entry['title'], 'string'),
+ 'userid' => new XML_RPC_Value($entry['authorid'], 'string'),
'dateCreated' => new XML_RPC_Value(XML_RPC_iso8601_encode($entry['timestamp']), 'dateTime.iso8601'),
- 'userid' => new XML_RPC_Value($entry['authorid'], 'string'),
- 'title' => new XML_RPC_Value($entry['title'], 'string')), 'struct');
+ 'postid' => new XML_RPC_Value($entry['id'], 'string')), 'struct');
}
$xml_entries = new XML_RPC_Value($xml_entries_vals, 'array');
return new XML_RPC_Response($xml_entries);
@@ -211,13 +213,13 @@
}
return new XML_RPC_Response( new XML_RPC_Value(array(), 'array'));
}
-/* IF DEBUG
+/*
$fp = fopen("/tmp/kung-log", "a");
fwrite($fp, $HTTP_RAW_POST_DATA);
ob_start();
*/
$server = new XML_RPC_Server($dispatches,1);
-/* IF DEBUG
+/*
fwrite($fp, ob_get_contents());
fclose($fp);
*/
|