diff options
author | Paolo Tacconi <p.tacconi@giunti.it> | 2014-09-15 10:01:25 +0200 |
---|---|---|
committer | Paolo Tacconi <p.tacconi@giunti.it> | 2014-09-15 10:01:25 +0200 |
commit | 4f793069bf4aafcfe77d50e47690173104ef23c7 (patch) | |
tree | 7fe1bfcb18672300bf14967338690ea4fa51e640 /mod/xchan.php | |
parent | ed7f3001c1c1deec5076ae12114e5c42865b6251 (diff) | |
parent | 58aad83e5cb0edaf1ccc543147030e782c5e7ba9 (diff) | |
download | volse-hubzilla-4f793069bf4aafcfe77d50e47690173104ef23c7.tar.gz volse-hubzilla-4f793069bf4aafcfe77d50e47690173104ef23c7.tar.bz2 volse-hubzilla-4f793069bf4aafcfe77d50e47690173104ef23c7.zip |
Merge branch 'master' of https://github.com/friendica/red
Diffstat (limited to 'mod/xchan.php')
-rw-r--r-- | mod/xchan.php | 16 |
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; } |