2 require_once("include/oembed.php");
4 function oembed_content(&$a){
5 // logger('mod_oembed ' . $a->query_string, LOGGER_ALL);
7 if ($a->argv[1]=='b2h'){
8 $url = array( "", trim(hex2bin($_REQUEST['url'])));
9 echo oembed_replacecb($url);
13 if ($a->argv[1]=='h2b'){
14 $text = trim(hex2bin($_REQUEST['text']));
15 echo oembed_html2bbcode($text);
21 $url = base64url_decode($a->argv[1]);
22 $j = oembed_fetch_url($url);
25 // logger('mod-oembed ' . $j->html, LOGGER_ALL);
26 echo "</body></html>";