Xchan Lookup';
$o .= '
';
$o .= '
';
if(x($_GET,'addr')) {
$addr = trim($_GET['addr']);
$r = q("select * from xchan where xchan_hash like '%s%%'",
dbesc($addr)
);
if($r) {
foreach($r as $rr)
$o .= str_replace("\n","
",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","
",print_r($rr,true)) . EOL;
}
}
return $o;
}