* @version 4.3.6 * @author Ivan Komlev <*****@*****.**> * @link http://www.joomlaboat.com * @GNU General Public License **/ // No direct access to this file defined('_JEXEC') or die('Restricted access'); if (!defined('DS')) { define('DS', DIRECTORY_SEPARATOR); } $videoid = JRequest::getVar('videoid'); if (isset($_POST['ygvdata'])) { $video_data = $_POST['ygvdata']; require_once JPATH_SITE . DS . 'components' . DS . 'com_youtubegallery' . DS . 'includes' . DS . 'misc.php'; $video_data = str_replace('"', '\\"', $video_data); YouTubeGalleryMisc::setRawData($videoid, $video_data); $db = JFactory::getDBO(); $query = 'SELECT * FROM `#__youtubegallery_videos` WHERE `videoid`="' . $videoid . '"'; $db->setQuery($query); if (!$db->query()) { die($db->stderr()); } $videos_rows = $db->loadAssocList(); $misc = new YouTubeGalleryMisc(); $getinfomethod = YouTubeGalleryMisc::getSettingValue('getinfomethod'); $misc->RefreshVideoData($videos_rows, $getinfomethod, true); $query = 'SELECT * FROM `#__youtubegallery_videos` WHERE `videoid`="' . $videoid . '"'; $db->setQuery($query); if (!$db->query()) { die($db->stderr()); }