$_REQUEST['url'])); } if($r) { $xchan = $r[0]; if($xchan['xchan_hash']) $a->set_widget('vcard',vcard_from_xchan($xchan)); } else { notice( t('No valid channel provided.') . EOL); return; } $o = replace_macros(get_markup_template('chanview.tpl'),array( '$url' => $xchan['xchan_url'] // FIXME when magic auth is finished replace here and check that against the chanview page when unauthenticated any place // '$url' => z_root() . '/magic?f=&dest=' . $xchan['xchan_url'] . '&addr=' . $xchan['xchan_addr'] )); return $o; }