Server IP : 180.180.241.3 / Your IP : 216.73.216.252 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 : /AppServ/www/news/components/com_youtubegallery/models/ |
Upload File : |
<?php /** * YouTubeGallery Joomla! 1.5 Native Component * @version 3.8.3 * @author DesignCompass Corp <support@joomlaboat.com> * @link http://www.joomlaboat.com * @GNU General Public License **/ // no direct access defined('_JEXEC') or die('Restricted access'); jimport('joomla.application.component.model'); require_once(JPATH_SITE.DS.'components'.DS.'com_youtubegallery'.DS.'includes'.DS.'misc.php'); class YouTubeGalleryModelGallery extends JModel { var $gallery_list; var $YouTubeGalleryMisc; var $row; var $misc; var $total_number_of_rows; var $videoid; function __construct() { $db = JFactory::getDBO(); $this->misc=new YouTubeGalleryMisc; parent::__construct(); global $mainframe; $params = &JComponentHelper::getParams( 'com_youtubegallery' ); require_once(JPATH_SITE.DS.'components'.DS.'com_youtubegallery'.DS.'includes'.DS.'misc.php'); if(JRequest::getInt('listid')) { //Shadow Box $listid=JRequest::getVar('listid'); //Get Theme $m_themeid=(int)JRequest::getVar('mobilethemeid'); if($m_themeid!=0) { if(YouTubeGalleryMisc::check_user_agent('mobile')) $themeid=$m_themeid; else $themeid=JRequest::getVar('themeid'); } else $themeid=JRequest::getVar('themeid'); } else { $listid=(int)$params->get( 'listid' ); //Get Theme $m_themeid=(int)$params->get( 'mobilethemeid' ); if($m_themeid!=0) { if(YouTubeGalleryMisc::check_user_agent('mobile')) $themeid=$m_themeid; else $themeid=(int)$params->get( 'themeid' ); } else $themeid=(int)$params->get( 'themeid' ); } if($listid!=0 and $themeid!=0) { $videoid=JRequest::getVar('videoid'); require_once(JPATH_SITE.DS.'components'.DS.'com_youtubegallery'.DS.'includes'.DS.'render.php'); $this->misc=new YouTubeGalleryMisc; //echo '$listid='.$listid.'<br/>'; if(!$this->misc->getVideoListTableRow($listid)) { echo '<p>No video found</p>'; return false; } if(!$this->misc->getThemeTableRow($themeid)) { echo '<p>No video found</p>'; return false; } $this->total_number_of_rows=0; $this->misc->update_playlist(); $this->videoid=JRequest::getVar('videoid'); if($this->misc->theme_row->playvideo==1 and $this->videoid!='') $this->misc->theme_row->autoplay=1; $videoid_new=$this->videoid; $this->gallery_list=$this->misc->getVideoList_FromCache_From_Table($videoid_new,$this->total_number_of_rows); if($this->videoid=='') { if($this->misc->theme_row->playvideo==1 and $videoid_new!='') $this->videoid=$videoid_new; } } else { echo '<p style="background-color:red;color:white;"></p>'; return false; } return true; } } ?>