I've just been playing with ctdlphp, and attach the patch I had to apply to
SVN to make it "work" so far, but here's a warning - myinfo.php totally
trashed my vcard and about 30 email aliases I had along with it!  

I mention this merely as a warning to other people who play with it - don't
use a live account!  

See:  

   

This is an example of the use of ctdl_get_registration_info() to display your
personal data.

 num_msgs: 3
 response: 100  
 92657Array (     [0] =>      [1] =>      [2] => 1     [3] =>      [4] =>
text/x-vcard     [5] => 1538     [6] =>  ) 9661896663Array (     [0] =>     
[1] =>      [2] => 1     [3] =>      [4] =>
application/x-citadel-sieve-config     [5] => 6781     [6] =>  )      
  User  Room  Host      
  

---------------------------------------  571 Section  not found.  

putting it back in!Now its:  begin:vcard
n:Surename;CName;mitte;Mrs;IV
title:master
fn:CName Surename
org:citadel.org
adr:blarg;Road To nowhere ;10;Metropolis;NRW;12345;Country
tel;home:888888888
tel;work:99999999999
email;internet:u...@samplecitadel.org
email;internet:m...@samplecitadel.org
email;internet:mys...@samplecitadel.org
email;internet:i...@samplecitadel.org
FBURL;PREF:http://samplecitadel.org/Cname_Lastname.vfb
UID:Citadel vCard: personal card for Cname Lastname at samplecitadel.org
end:vcard
Index: ctdlprotocol.php
===================================================================
--- ctdlprotocol.php	(revision 7268)
+++ ctdlprotocol.php	(working copy)
@@ -372,7 +372,7 @@
 function ctdl_get_serv_info() {
 	serv_puts("INFO");
 	$reply = read_array();
-	if ((count($reply) == 23) &&
+	if ((count($reply) >= 23) &&
 	    substr($reply[0], 0, 1) == "1") {
 		$server_info=array();
 		$server_info["serv_nodename"]  = $reply[1];

Reply via email to