| Server IP : 180.180.241.3 / Your IP : 216.73.216.80 Web Server : Microsoft-IIS/7.5 System : Windows NT NETWORK-NHRC 6.1 build 7601 (Windows Server 2008 R2 Standard Edition Service Pack 1) i586 User : IUSR ( 0) PHP Version : 5.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/AppServ/www/news/administrator/components/com_youtubegallery/views/updatedata/tmpl/ |
Upload File : |
<?php
/**
* Youtube Gallery Joomla! 3.0 Native Component
* @version 3.8.3
* @author DesignCompass corp <support@joomlaboat.com>
* @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());
$videos_rows=$db->loadAssocList();
if(count($videos_rows)!=0)
{
$row=$videos_rows[0];
echo '*title_start*='.$row['title'].'*title_end*';
echo '*description_start*='.$row['description'].'*description_end*';
echo '*lastupdate_start*='.$row['lastupdate'].'*lastupdate_end*';
}
else
echo '*status_start*=video not found*status_end*';
}
else
echo 'Data not set.';
//echo 'Data Size 1: '.strlen($video_data);
//echo 'Update Data View:<br/>
//'.$video_data;
?>