to make visible what I try, ping still won't work, but I'm confused about get_channel
This commit is contained in:
parent
8ddee71c2b
commit
aa285b83c1
@ -468,6 +468,7 @@ function admin_page_site(&$a) {
|
||||
}
|
||||
function admin_page_hubloc_post(&$a){
|
||||
check_form_security_token_redirectOnErr('/admin/hubloc', 'admin_hubloc');
|
||||
require_once('include/zot.php');
|
||||
|
||||
//prepare for ping
|
||||
|
||||
@ -477,7 +478,12 @@ function admin_page_hubloc_post(&$a){
|
||||
intval($hublocid)
|
||||
);
|
||||
$hublocurl = $arrhublocurl[0]['hubloc_url'] . '/post';
|
||||
logger('hubloc_url : ' . $hublocurl , LOGGER_DEBUG);
|
||||
logger('ping hubloc_url : ' . $hublocurl , LOGGER_DEBUG);
|
||||
logger('ping get_channel : ' . print_r($a->get_channel(),true), LOGGER_DEBUG);
|
||||
$m = zot_build_packet($a->get_channel(),'ping');
|
||||
$r = zot_zot($hubloc_url,$m);
|
||||
logger('ping answer: ' . print_r($r,true), LOGGER_DEBUG);
|
||||
|
||||
}
|
||||
|
||||
//if ( $_POST'' == "check" ) {
|
||||
|
@ -9,6 +9,8 @@ require_once('include/zot.php');
|
||||
|
||||
|
||||
function post_init(&$a) {
|
||||
logger('POST inside',LOGGER_DEBUG);
|
||||
logger('POST given parameter: ' . print_r($_REQUEST,true), LOGGER_DEBUG);
|
||||
|
||||
// Most access to this endpoint is via the post method.
|
||||
// Here we will pick out the magic auth params which arrive
|
||||
|
Reference in New Issue
Block a user