4 function oexchange_init(&$a) {
6 if(($a->argc > 1) && ($a->argv[1] === 'xrd')) {
7 $tpl = load_view_file('view/oexchange_xrd.tpl');
9 $o = replace_macros($tpl, array('$base' => $a->get_baseurl()));
19 function oexchange_content(&$a) {
26 if(($a->argc > 1) && $a->argv[1] === 'done') {
27 notice( t('Post successful.') . EOL);
31 $url = (((x($_GET,'url')) && strlen($_GET['url'])) ? notags(trim($_GET['url'])) : '');
33 $s = fetch_url($a->get_baseurl() . '/parse_url&url=' . $url);
38 require_once('include/html2bbcode.php');
42 $post['profile_uid'] = local_user();
43 $post['return'] = '/oexchange/done' ;
44 $post['body'] = html2bbcode($s);
45 $post['type'] = 'wall';
48 require_once('mod/item.php');