<?php /** ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * [filename] is a part of PeopleAggregator. * [description including history] * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * @author [creator, or "Original Author"] * @license http://bit.ly/aVWqRV PayAsYouGo License * @copyright Copyright (c) 2010 Broadband Mechanics * @package PeopleAggregator */ $login_required = FALSE; $use_theme = 'Beta'; //TODO : Remove this when new UI is completely implemented. include_once "web/includes/page.php"; require_once "api/YouTube/YouTube.php"; // Now we are trying to get the data from the given id if (isset($_GET) && isset($_GET['url']) && !empty($_GET['url'])) { echo YouTube::getEmbedHTML($_GET['url']); }
$extention = '_audio'; $caption = $_POST['caption_audio']; break; case 'video': $url_file_field = 'userfile_video_url_'; $file_name_dynamic = "userfile_video_"; $extention = '_video'; $caption = $_POST['caption_video']; break; case 'youtube': $content = ''; $gallery_link = ''; $link = (isset($_POST) && isset($_POST['video_url'])) ? $_POST['video_url'] : ''; $embedHTML = YouTube::getEmbedHTML($link); if ($embedHTML != '') { $content .= $embedHTML; } else { $content .= '<p>No Preview Available</p>'; } ?> <p><?=$content?></p> <textarea name="attach_media_html" id="attach_media_html"><?=$content?></textarea> <?php exit(); break; }