more doco
This commit is contained in:
parent
abd58bce68
commit
ca605a8c83
@ -537,9 +537,6 @@ function import_xchan($arr) {
|
|||||||
else
|
else
|
||||||
$new_flags = 0;
|
$new_flags = 0;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$x = q("insert into xchan ( xchan_hash, xchan_guid, xchan_guid_sig, xchan_pubkey, xchan_photo_mimetype,
|
$x = q("insert into xchan ( xchan_hash, xchan_guid, xchan_guid_sig, xchan_pubkey, xchan_photo_mimetype,
|
||||||
xchan_photo_l, xchan_addr, xchan_url, xchan_connurl, xchan_name, xchan_network, xchan_photo_date, xchan_name_date, xchan_flags)
|
xchan_photo_l, xchan_addr, xchan_url, xchan_connurl, xchan_name, xchan_network, xchan_photo_date, xchan_name_date, xchan_flags)
|
||||||
values ( '%s', '%s', '%s', '%s' , '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', %d) ",
|
values ( '%s', '%s', '%s', '%s' , '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', %d) ",
|
||||||
@ -760,6 +757,14 @@ function zot_fetch($arr) {
|
|||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @function zot_import
|
||||||
|
*
|
||||||
|
* Process an incoming array of messages which were obtained via pickup, and
|
||||||
|
* import, update, delete as directed.
|
||||||
|
*
|
||||||
|
* The message types handled here are 'activity' (e.g. posts), 'mail' and 'profile'
|
||||||
|
*/
|
||||||
|
|
||||||
function zot_import($arr) {
|
function zot_import($arr) {
|
||||||
|
|
||||||
@ -772,8 +777,6 @@ function zot_import($arr) {
|
|||||||
return array();
|
return array();
|
||||||
}
|
}
|
||||||
|
|
||||||
// logger('zot_import: data1: ' . print_r($data,true));
|
|
||||||
|
|
||||||
if(array_key_exists('iv',$data)) {
|
if(array_key_exists('iv',$data)) {
|
||||||
$data = json_decode(aes_unencapsulate($data,get_config('system','prvkey')),true);
|
$data = json_decode(aes_unencapsulate($data,get_config('system','prvkey')),true);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user