query_string, LOGGER_ALL); if ($a->argv[1]=='b2h'){ $url = array( "", trim(hex2bin($_REQUEST['url']))); echo oembed_replacecb($url); killme(); } if ($a->argv[1]=='h2b'){ $text = trim(hex2bin($_REQUEST['text'])); echo oembed_html2bbcode($text); killme(); } if ($a->argc == 2){ echo ""; $url = base64url_decode($a->argv[1]); $j = oembed_fetch_url($url); // workaround for media.ccc.de (and any other endpoint that return size 0) if (substr($j->html, 0, 7) == "html, 'width="0"')) { $j->html = ''. $j->html; $j->html = str_replace('width="0"', '', $j->html); $j->html = str_replace('height="0"', '', $j->html); } echo $j->html; // logger('mod-oembed ' . $j->html, LOGGER_ALL); echo ""; } killme(); }