hush-hush ultra top-secret mode
This commit is contained in:
parent
093ab7177a
commit
9fd2c2dd8a
@ -341,7 +341,12 @@ function sanitise_acl(&$item) {
|
|||||||
if(! function_exists('perms2str')) {
|
if(! function_exists('perms2str')) {
|
||||||
function perms2str($p) {
|
function perms2str($p) {
|
||||||
$ret = '';
|
$ret = '';
|
||||||
|
|
||||||
|
if(is_array($p))
|
||||||
$tmp = $p;
|
$tmp = $p;
|
||||||
|
else
|
||||||
|
$tmp = explode(',',$p);
|
||||||
|
|
||||||
if(is_array($tmp)) {
|
if(is_array($tmp)) {
|
||||||
array_walk($tmp,'sanitise_acl');
|
array_walk($tmp,'sanitise_acl');
|
||||||
$ret = implode('',$tmp);
|
$ret = implode('',$tmp);
|
||||||
|
@ -59,8 +59,9 @@ function zot_verify(&$item,$identity) {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
function zot_notify($channel,$url,$type = 'notify',$recipients = null) {
|
function zot_notify($channel,$url,$type = 'notify',$recipients = null, $remote_key = null) {
|
||||||
$x = z_post_url($url, array(
|
|
||||||
|
$params = array(
|
||||||
'type' => $type,
|
'type' => $type,
|
||||||
'sender' => json_encode(array(
|
'sender' => json_encode(array(
|
||||||
'guid' => $channel['channel_guid'],
|
'guid' => $channel['channel_guid'],
|
||||||
@ -72,6 +73,14 @@ function zot_notify($channel,$url,$type = 'notify',$recipients = null) {
|
|||||||
'callback' => '/post',
|
'callback' => '/post',
|
||||||
'version' => ZOT_REVISION)
|
'version' => ZOT_REVISION)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// Hush-hush ultra top-secret mode
|
||||||
|
|
||||||
|
if($remote_key) {
|
||||||
|
$params = aes_encapsulate($params,$remote_key);
|
||||||
|
}
|
||||||
|
|
||||||
|
$x = z_post_url($url,$prams);
|
||||||
return($x);
|
return($x);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1 +1 @@
|
|||||||
2012-11-10.134
|
2012-11-11.135
|
||||||
|
Reference in New Issue
Block a user