From 42863896546d5638bedeb034d5c1001d1f0f35a8 Mon Sep 17 00:00:00 2001 From: friendica Date: Fri, 15 Aug 2014 06:06:39 -0700 Subject: doc update --- doc/html/diaspora_8php.html | 1238 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 1238 insertions(+) create mode 100644 doc/html/diaspora_8php.html (limited to 'doc/html/diaspora_8php.html') diff --git a/doc/html/diaspora_8php.html b/doc/html/diaspora_8php.html new file mode 100644 index 000000000..69825ab17 --- /dev/null +++ b/doc/html/diaspora_8php.html @@ -0,0 +1,1238 @@ + + + + + + +The Red Matrix: include/diaspora.php File Reference + + + + + + + + + + + + + +
+
+ + + + + + + +
+
The Red Matrix +
+
+
+ + + + + +
+
+ +
+
+
+ +
+ + + + +
+ +
+ +
+ +
+
diaspora.php File Reference
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Functions

 diaspora_dispatch_public ($msg)
 
 diaspora_dispatch ($importer, $msg, $attempt=1)
 
 diaspora_handle_from_contact ($contact_id)
 
 diaspora_get_contact_by_handle ($uid, $handle)
 
 find_diaspora_person_by_handle ($handle)
 
 get_diaspora_key ($uri)
 
 diaspora_pubmsg_build ($msg, $user, $contact, $prvkey, $pubkey)
 
 diaspora_msg_build ($msg, $user, $contact, $prvkey, $pubkey, $public=false)
 
 diaspora_decode ($importer, $xml)
 
 diaspora_request ($importer, $xml)
 
 diaspora_post_allow ($importer, $contact)
 
 diaspora_post ($importer, $xml, $msg)
 
 diaspora_reshare ($importer, $xml, $msg)
 
 diaspora_asphoto ($importer, $xml, $msg)
 
 diaspora_comment ($importer, $xml, $msg)
 
 diaspora_conversation ($importer, $xml, $msg)
 
 diaspora_message ($importer, $xml, $msg)
 
 diaspora_photo ($importer, $xml, $msg, $attempt=1)
 
 diaspora_like ($importer, $xml, $msg)
 
 diaspora_retraction ($importer, $xml)
 
 diaspora_signed_retraction ($importer, $xml, $msg)
 
 diaspora_profile ($importer, $xml, $msg)
 
 diaspora_share ($me, $contact)
 
 diaspora_unshare ($me, $contact)
 
 diaspora_send_status ($item, $owner, $contact, $public_batch=false)
 
 diaspora_is_reshare ($body)
 
 diaspora_send_images ($item, $owner, $contact, $images, $public_batch=false)
 
 diaspora_send_followup ($item, $owner, $contact, $public_batch=false)
 
 diaspora_send_relay ($item, $owner, $contact, $public_batch=false)
 
 diaspora_send_retraction ($item, $owner, $contact, $public_batch=false)
 
 diaspora_send_mail ($item, $owner, $contact)
 
 diaspora_transmit ($owner, $contact, $slap, $public_batch, $queue_run=false)
 
+

Function Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
diaspora_asphoto ( $importer,
 $xml,
 $msg 
)
+
+ +

Referenced by diaspora_dispatch().

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
diaspora_comment ( $importer,
 $xml,
 $msg 
)
+
+ +

Referenced by diaspora_dispatch().

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
diaspora_conversation ( $importer,
 $xml,
 $msg 
)
+
+ +

Referenced by diaspora_dispatch().

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
diaspora_decode ( $importer,
 $xml 
)
+
+

diaspora_decode($importer,$xml) array $importer -> from user table string $xml -> urldecoded Diaspora salmon

+

Returns array 'message' -> decoded Diaspora XML message 'author' -> author diaspora handle 'key' -> author public key (converted to pkcs#8)

+

Author and key are used elsewhere to save a lookup for verifying replies and likes

+
 $decrypted now contains something like
+
+  <decrypted_header>
+     <iv>8e+G2+ET8l5BPuW0sVTnQw==</iv>
+     <aes_key>UvSMb4puPeB14STkcDWq+4QE302Edu15oaprAQSkLKU=</aes_key>
+

OBSOLETE

+
     <author>
+       <name>Ryan Hughes</name>
+       <uri>acct:galaxor@diaspora.pirateship.org</uri>
+     </author>
+

CURRENT

+
     <author_id>galaxor@diaspora.priateship.org</author_id>
+

END DIFFS

+
  </decrypted_header>
+
+

Referenced by receive_post().

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
diaspora_dispatch ( $importer,
 $msg,
 $attempt = 1 
)
+
+ +

Referenced by diaspora_dispatch_public(), and receive_post().

+ +
+
+ +
+
+ + + + + + + + +
diaspora_dispatch_public ( $msg)
+
+ +

Referenced by receive_post().

+ +
+
+ + + +
+
+ + + + + + + + +
diaspora_handle_from_contact ( $contact_id)
+
+ +

Referenced by diaspora_send_relay().

+ +
+
+ +
+
+ + + + + + + + +
diaspora_is_reshare ( $body)
+
+ +

Referenced by diaspora_send_status().

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
diaspora_like ( $importer,
 $xml,
 $msg 
)
+
+ +

Referenced by diaspora_dispatch().

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
diaspora_message ( $importer,
 $xml,
 $msg 
)
+
+ +

Referenced by diaspora_dispatch().

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diaspora_msg_build ( $msg,
 $user,
 $contact,
 $prvkey,
 $pubkey,
 $public = false 
)
+
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diaspora_photo ( $importer,
 $xml,
 $msg,
 $attempt = 1 
)
+
+ +

Referenced by diaspora_dispatch().

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
diaspora_post ( $importer,
 $xml,
 $msg 
)
+
+ +

Referenced by diaspora_dispatch().

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
diaspora_post_allow ( $importer,
 $contact 
)
+
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
diaspora_profile ( $importer,
 $xml,
 $msg 
)
+
+ +

Referenced by diaspora_dispatch().

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diaspora_pubmsg_build ( $msg,
 $user,
 $contact,
 $prvkey,
 $pubkey 
)
+
+ +

Referenced by diaspora_msg_build().

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
diaspora_request ( $importer,
 $xml 
)
+
+ +

Referenced by diaspora_dispatch().

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
diaspora_reshare ( $importer,
 $xml,
 $msg 
)
+
+ +

Referenced by diaspora_dispatch().

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
diaspora_retraction ( $importer,
 $xml 
)
+
+ +

Referenced by diaspora_dispatch().

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diaspora_send_followup ( $item,
 $owner,
 $contact,
 $public_batch = false 
)
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diaspora_send_images ( $item,
 $owner,
 $contact,
 $images,
 $public_batch = false 
)
+
+ +

Referenced by diaspora_send_status().

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
diaspora_send_mail ( $item,
 $owner,
 $contact 
)
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diaspora_send_relay ( $item,
 $owner,
 $contact,
 $public_batch = false 
)
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diaspora_send_retraction ( $item,
 $owner,
 $contact,
 $public_batch = false 
)
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diaspora_send_status ( $item,
 $owner,
 $contact,
 $public_batch = false 
)
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
diaspora_share ( $me,
 $contact 
)
+
+ +

Referenced by diaspora_request().

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
diaspora_signed_retraction ( $importer,
 $xml,
 $msg 
)
+
+ +

Referenced by diaspora_dispatch().

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diaspora_transmit ( $owner,
 $contact,
 $slap,
 $public_batch,
 $queue_run = false 
)
+
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
diaspora_unshare ( $me,
 $contact 
)
+
+ +
+
+ +
+
+ + + + + + + + +
find_diaspora_person_by_handle ( $handle)
+
+
+ +
+
+ + + + + + + + +
get_diaspora_key ( $uri)
+
+ +

Referenced by diaspora_decode().

+ +
+
+
+
+ -- cgit v1.2.3