$x[0]['hubloc_guid'],'guid_sig' => $x[0]['hubloc_guid_sig'])); $channel = $a->get_channel(); $hash = random_string(); $packet = zot_build_packet($channel,'auth',$recip,$x[0]['hubloc_sitekey'],$hash); $result = zot_zot($x[0]['hubloc_callback'],$packet); if($result['success']) { $j = json_decode($result['body'],true); if($j['iv']) { $y = aes_unencapsulate($j,$channel['prvkey']); $j = json_decode($y,true); } if($y['token']) goaway($x[0]['callback'] . '?f=&token=' . $token . '&dest=' . $dest); } goaway($dest); } goaway(z_root()); }