From f09ac4e5972a77dfe73338ee207e40ec463355e9 Mon Sep 17 00:00:00 2001 From: Christian Vogeley Date: Sat, 3 Aug 2013 00:18:14 +0200 Subject: Revert "Revert "merge"" This reverts commit 9294f72adb3c076932558b6f29a4c570e7962764. --- doc/html/zot_8php.html | 124 +++++++++++++++++++++++++++++++++++++++---------- 1 file changed, 99 insertions(+), 25 deletions(-) (limited to 'doc/html/zot_8php.html') diff --git a/doc/html/zot_8php.html b/doc/html/zot_8php.html index 394aa007c..74e453f0c 100644 --- a/doc/html/zot_8php.html +++ b/doc/html/zot_8php.html @@ -158,6 +158,12 @@ Functions    update_modtime ($hash)   + import_site ($arr, $pubkey) +  + build_sync_packet ($uid=0, $packet=null) +  + process_channel_sync_delivery ($sender, $arr, $deliveries) + 

Function Documentation

@@ -176,6 +182,35 @@ Functions

Referenced by zot_import().

+ + + +
+
+ + + + + + + + + + + + + + + + + + +
build_sync_packet ( $uid = 0,
 $packet = null 
)
+
+

Send a zot packet to all hubs where this channel is duplicated, refreshing such things as personal settings, channel permissions, address book updates, etc.

+ +

Referenced by connections_clone(), and settings_post().

+
@@ -266,6 +301,34 @@ Functions

Referenced by import_xchan(), process_profile_delivery(), and syncdirs().

+ + + +
+
+ + + + + + + + + + + + + + + + + + +
import_site ( $arr,
 $pubkey 
)
+
+ +

Referenced by import_xchan().

+
@@ -284,6 +347,40 @@ Functions

Referenced by chanview_content(), gprobe_run(), magic_init(), message_post(), new_contact(), poco_load(), post_init(), zot_refresh(), and zot_register_hub().

+ + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
process_channel_sync_delivery ( $sender,
 $arr,
 $deliveries 
)
+
+ +

Referenced by zot_import().

+
@@ -539,31 +636,8 @@ Functions
-

obsolete

-

function zot_notify($channel,$url,$type = 'notify',$recipients = null, $remote_key = null) {

-
$params = array(
-    'type' => $type,
-    'sender' => json_encode(array(
-        'guid' => $channel['channel_guid'],
-        'guid_sig' => base64url_encode(rsa_sign($channel['channel_guid'],$channel['channel_prvkey'])),
-        'url' => z_root(),
-        'url_sig' => base64url_encode(rsa_sign(z_root(),$channel['channel_prvkey']))
-    )), 
-    'callback' => '/post',
-    'version' => ZOT_REVISION
-);
-
-if($recipients)
-    $params['recipients'] = json_encode($recipients);
-

Hush-hush ultra top-secret mode

-
if($remote_key) {
-    $params = aes_encapsulate($params,$remote_key);
-}
-
-$x = z_post_url($url,$params);
-return($x);
-
-

Referenced by build_sync_packet(), directory_run(), notifier_run(), and post_init().

+ +

Referenced by build_sync_packet(), directory_run(), notifier_run(), and post_init().

-- cgit v1.2.3