<?php /*------------------------------------------------------------------------ # com_guru # ------------------------------------------------------------------------ # author iJoomla # copyright Copyright (C) 2013 ijoomla.com. All Rights Reserved. # @license - http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL # Websites: http://www.ijoomla.com # Technical Support: Forum - http://www.ijoomla.com.com/forum/index/ -------------------------------------------------------------------------*/ defined('_JEXEC') or die('Restricted access'); $configs = guruModelguruDays::getConfigs(); $the_media = guruModelguruDays::getMedia(intval($_GET['cid'])); $the_media->code = stripslashes($the_media->code); //// ------- previewing - begin ///// $no_plugin_for_code = 0; $aheight = 0; $awidth = 0; $vheight = 0; $vwidth = 0; //if($main_media->type=='video') if ($the_media->type == 'video') { if ($the_media->source == 'url' || $the_media->source == 'local') { if ($the_media->width == 0 || $the_media->height == 0) { $vheight = 300; $vwidth = 400; } else { $vheight = $the_media->height; $vwidth = $the_media->width; }