aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
Diffstat (limited to 'mod')
-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;
}