aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-09-12 14:23:42 -0700
committerfriendica <info@friendica.com>2014-09-12 14:23:42 -0700
commit5fd0d6f7d553d79e2362a480ec504d102b299fd0 (patch)
treef8ee2195eb9cb64cb2d87028517be527758eebae
parent701ae2981df31b277e3f92b56fa47778572366fb (diff)
downloadvolse-hubzilla-5fd0d6f7d553d79e2362a480ec504d102b299fd0.tar.gz
volse-hubzilla-5fd0d6f7d553d79e2362a480ec504d102b299fd0.tar.bz2
volse-hubzilla-5fd0d6f7d553d79e2362a480ec504d102b299fd0.zip
make the xchan diagnostic tool useful
-rw-r--r--mod/xchan.php16
1 files changed, 14 insertions, 2 deletions
diff --git a/mod/xchan.php b/mod/xchan.php
index 9d4cdcc22..e51cc53cc 100644
--- a/mod/xchan.php
+++ b/mod/xchan.php
@@ -15,16 +15,28 @@ function xchan_content(&$a) {
if(x($_GET,'addr')) {
$addr = trim($_GET['addr']);
- $r = q("select xchan_name from xchan where xchan_hash like '%s%%'",
+ $r = q("select * from xchan where xchan_hash like '%s%%'",
dbesc($addr)
);
if($r) {
foreach($r as $rr)
- $o .= $rr['xchan_name'] . EOL;
+ $o .= str_replace("\n","<br />",print_r($rr,true)) . EOL;
}
else
notice( t('Not found.') . EOL);
+
+ $r = q("select * from hubloc where hubloc_hash like '%s%%'",
+ dbesc($addr)
+ );
+
+ if($r) {
+ foreach($r as $rr)
+ $o .= str_replace("\n","<br />",print_r($rr,true)) . EOL;
+
+ }
+
+
}
return $o;
}