aboutsummaryrefslogtreecommitdiffstats
path: root/mod/admin.php
diff options
context:
space:
mode:
authorMichael Meer <michael@meer.name>2014-01-28 10:58:31 +0100
committerMichael Meer <michael@meer.name>2014-01-28 10:58:31 +0100
commitaa285b83c1c8f674be8f200d4feae6299eafc436 (patch)
tree071d97727124df6e881f8ef70167931e532a9426 /mod/admin.php
parent8ddee71c2b0f384470965dd46a2e594a4f98f8e0 (diff)
downloadvolse-hubzilla-aa285b83c1c8f674be8f200d4feae6299eafc436.tar.gz
volse-hubzilla-aa285b83c1c8f674be8f200d4feae6299eafc436.tar.bz2
volse-hubzilla-aa285b83c1c8f674be8f200d4feae6299eafc436.zip
to make visible what I try, ping still won't work, but I'm confused about get_channel
Diffstat (limited to 'mod/admin.php')
-rw-r--r--mod/admin.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/mod/admin.php b/mod/admin.php
index 950c7e5ce..e59f15c74 100644
--- a/mod/admin.php
+++ b/mod/admin.php
@@ -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" ) {