Ejemplo n.º 1
0
$params = io::get('params');
$params = @base64_decode($params);
if (!$params) {
    die('Incorrect parameter.');
}
$params = @unserialize($params);
if (!is_array($params) || !isset($params['url']) || !isset($params['maxwidth']) || !isset($params['maxheight'])) {
    die('Incorrect parameter.');
}
//load oembed object
$oembed = new CMS_oembed($params['url'], $params['maxwidth'], $params['maxheight']);
$title = $html = '';
if (!$oembed->hasProvider()) {
    $title = $html = 'Media not handled ...';
} else {
    $title = $oembed->getTitle();
    $html = $oembed->getHTML(array(), true);
}
if (defined('APPLICATION_XHTML_DTD')) {
    echo APPLICATION_XHTML_DTD . "\n";
}
echo '<html>
<head>
	<title>' . $title . '</title>
	<style>
		body {
			margin:		0px;
			padding:	0px;
		}
	</style>
</head>