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

Function Documentation

@@ -182,35 +176,6 @@ 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().

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

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

- - - -
-
- - - - - - - - - - - - - - - - - - -
import_site ( $arr,
 $pubkey 
)
-
- -

Referenced by import_xchan().

-
@@ -347,40 +284,6 @@ 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().

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

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

+

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().

-- cgit v1.2.3