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/app/webroot/news/administrator/components/com_youtubegallery/controllers/ |
Upload File : |
<?php /** * Youtube Gallery for Joomla! 1.5 Native Component * @version 3.8.3 * @author Design Compass corp <support@joomlaboat.com> * @link http://www.joomlaboat.com * @GNU General Public License **/ // Check to ensure this file is included in Joomla! defined('_JEXEC') or die( 'Restricted access' ); jimport('joomla.application.component.controller'); class YouTubeGalleryControllerThemeList extends JController { /** * New option item wizard */ function display() { JRequest::setVar( 'view', 'themelist'); parent::display(); } function newItem() { JRequest::setVar( 'view', 'themeform'); JRequest::setVar( 'layout', 'form' ); JRequest::setVar('hidemainmenu', 1); parent::display(); } function edit() { JRequest::setVar( 'view', 'themeform'); JRequest::setVar( 'layout', 'form' ); JRequest::setVar('hidemainmenu', 1); parent::display(); } /** * Saves a option item */ function apply() { // get our model $model = &$this->getModel('themeform'); // attempt to store, update user accordingly $link = 'index.php?option=com_youtubegallery&controller=themelist'; if($this->_task == 'apply') { $id=JRequest::getInt('id', 0); $link = 'index.php?option=com_youtubegallery&controller=themelist&task=edit&cid[]='.$id; } if ($model->store()) { $msg = JText::_( 'Theme Saved Successfully' ); $this->setRedirect($link, $msg); } else { $msg = JText::_( 'Theme was Unabled to Save'); $this->setRedirect($link, $msg, 'error'); } } function save() { // get our model $model = &$this->getModel('themeform'); // attempt to store, update user accordingly if($this->_task == 'save') { $link = 'index.php?option=com_youtubegallery&controller=themelist'; } if ($model->store()) { $msg = JText::_( 'Theme Saved Successfully' ); $this->setRedirect($link, $msg); } else { $msg = JText::_( 'Theme was Unabled to Save'); $this->setRedirect($link, $msg, 'error'); } } public function refreshItem() { $model =&$this->getModel('linkslist'); $cid = JRequest::getVar( 'cid', array(), 'post', 'array' ); if (count($cid)<1) { $this->setRedirect( 'index.php?option=com_youtubegallery&controller=themelist', JText::_('No Items Selected'),'error' ); return false; } if($model->RefreshPlayist($cid)) { $msg = JText::_( 'Theme(s) Refreshed Successfully' ); $link = 'index.php?option=com_youtubegallery&controller=lionkslist'; $this->setRedirect($link, $msg); } else { $msg = JText::_( 'Theme(s) was Unabled to Refresh' ); $link = 'index.php?option=com_youtubegallery&controller=linkslist'; $this->setRedirect($link, $msg,'error'); } } /** * Cancels an edit operation */ function cancel() { $this->setRedirect( 'index.php?option=com_youtubegallery&controller=themelist'); } function remove() { // Check for request forgeries JRequest::checkToken() or jexit( 'Invalid Token' ); $model =& $this->getModel('themeform'); $model->ConfirmRemove(); } function remove_confirmed() { // Get some variables from the request $cid = JRequest::getVar( 'cid', array(), 'post', 'array' ); JArrayHelper::toInteger($cid); if (!count($cid)) { $this->setRedirect( 'index.php?option=com_youtubegallery&controller=themelist', JText::_('No Items Selected') ); return false; } $model =& $this->getModel('themeform'); if ($n = $model->delete($cid)) { $msg = JText::sprintf( 'Theme(s) deleted', $n ); } else { $msg = $model->getError(); } $this->setRedirect( 'index.php?option=com_youtubegallery&controller=themelist', $msg ); } /** * Form for copying item(s) to a specific option */ function copyItem() { $cid = JRequest::getVar( 'cid', array(), 'post', 'array' ); $link = 'index.php?option=com_youtubegallery&controller=themelist'; $model = $this->getModel('themeform'); if($model->copyItem($cid,$msg)) { $msg = JText::_( 'Theme(s) Copied Successfully' ); $this->setRedirect($link, $msg); } else { if($msg=='') $msg = JText::_( 'Theme(s) was Unabled to Copy' ); $this->setRedirect($link, $msg,'error'); } } public function uploadItem() { $link = 'index.php?option=com_youtubegallery&controller=themeimport'; $this->setRedirect($link, ''); } }