aboutsummaryrefslogtreecommitdiffstats
path: root/mod/admin.php
diff options
context:
space:
mode:
authorMichael Meer <michael@meer.name>2014-01-29 15:45:35 +0100
committerMichael Meer <michael@meer.name>2014-01-29 15:45:35 +0100
commitef97a454bbccbd9f7e0e63180c365ed3227fe42c (patch)
treeea189a0c361f99fc829f65e70f049b8cb1c326fc /mod/admin.php
parentac8d481a3223335050a7f8dfe1c893a0b301ae7b (diff)
downloadvolse-hubzilla-ef97a454bbccbd9f7e0e63180c365ed3227fe42c.tar.gz
volse-hubzilla-ef97a454bbccbd9f7e0e63180c365ed3227fe42c.tar.bz2
volse-hubzilla-ef97a454bbccbd9f7e0e63180c365ed3227fe42c.zip
ping gives us now a reply. But the reply doesnt contains useful data, requires still some investigations
Diffstat (limited to 'mod/admin.php')
-rw-r--r--mod/admin.php24
1 files changed, 13 insertions, 11 deletions
diff --git a/mod/admin.php b/mod/admin.php
index e59f15c74..1a284c42f 100644
--- a/mod/admin.php
+++ b/mod/admin.php
@@ -478,23 +478,25 @@ function admin_page_hubloc_post(&$a){
intval($hublocid)
);
$hublocurl = $arrhublocurl[0]['hubloc_url'] . '/post';
- logger('ping hubloc_url : ' . $hublocurl , LOGGER_DEBUG);
- logger('ping get_channel : ' . print_r($a->get_channel(),true), LOGGER_DEBUG);
+
+ //perform ping
$m = zot_build_packet($a->get_channel(),'ping');
+ logger('ping message : ' . print_r($m,true), LOGGER_DEBUG);
$r = zot_zot($hubloc_url,$m);
logger('ping answer: ' . print_r($r,true), LOGGER_DEBUG);
+
+ //unfotunatly zping wont work, I guess return format is not correct
+ //require_once('mod/zping.php');
+ //$r = zping_content($hublocurl);
+ //logger('zping answer: ' . $r, LOGGER_DEBUG);
+
+ //handle results and set the hubloc flags in db to make results visible
- }
-
- //if ( $_POST'' == "check" ) {
- // //todo
- //}
+ //in case of repair store new pub key for tested hubloc (all channel with this hubloc) in db
+ //after repair set hubloc flags to 0
- //perform ping
- //handle results and set the hubloc flags in db to make results visible
+ }
- //in case of repair store new pub key for tested hubloc (all channel with this hubloc) in db
- //after repair set hubloc flags to 0
goaway($a->get_baseurl(true) . '/admin/hubloc' );
return;