DonatShell
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 :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /AppServ/www/app/webroot/news/administrator/components/com_youtubegallery/controllers/linkslist.php
<?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 YouTubeGalleryControllerLinksList extends JController
{
	/**
	 * New option item wizard
	 */
	function display()
	{
		JRequest::setVar( 'view', 'linkslist');
		
		parent::display();
	}


	function newItem()
	{
		JRequest::setVar( 'view', 'linksform');
		JRequest::setVar( 'layout', 'edit'  );
		JRequest::setVar('hidemainmenu', 1);
		parent::display();
	}

	function edit()
	{
		
		JRequest::setVar( 'view', 'linksform');
		JRequest::setVar( 'layout', 'edit'  );
		JRequest::setVar('hidemainmenu', 1);
		parent::display();
	}

	/**
	 * Saves a option item
	 */
	function apply()
	{
		// get our model
		$model = &$this->getModel('linksform');
		// attempt to store, update user accordingly
		$link 	= 'index.php?option=com_youtubegallery&controller=linkslist';
		
		if($this->_task == 'apply')
		{
			$id=JRequest::getInt('id', 0);
			$link 	= 'index.php?option=com_youtubegallery&controller=linkslist&task=edit&cid[]='.$id;
		}
		
		
		if ($model->store())
		{
			$msg = JText::_( 'Video List Saved Successfully' );
			$this->setRedirect($link, $msg);
		}
		else
		{
			$msg = JText::_( 'Video List was Unabled to Save');
			$this->setRedirect($link, $msg, 'error');
		}

	}
	
	function save()
	{
		// get our model
		$model = &$this->getModel('linksform');
		// attempt to store, update user accordingly
		
		if($this->_task == 'save')
		{
			$link 	= 'index.php?option=com_youtubegallery&controller=linkslist';
		}
		
		
		if ($model->store())
		{
			$msg = JText::_( 'Video List Saved Successfully' );
			$this->setRedirect($link, $msg);
		}
		else
		{
			$msg = JText::_( 'Video List was Unabled to Save');
			$this->setRedirect($link, $msg, 'error');
		}
	
	}

	public function updateItem()
	{
				
				$model =&$this->getModel('linksform');
        	
				
				$cid = JRequest::getVar( 'cid', array(), 'post', 'array' );
	    
				if (count($cid)<1) {
		
				       $this->setRedirect( 'index.php?option=com_youtubegallery&controller=linkslist', JText::_('No Items Selected'),'error' );
                
						return false;
				}
					    	    
				if($model->RefreshPlaylist($cid,true))
				{
						$msg = JText::_( 'Video List(s) Updated Successfully' );
						$link 	= 'index.php?option=com_youtubegallery&controller=linkslist';
						$this->setRedirect($link, $msg);
				}
				else
				{
						$msg = JText::_( 'Video List(s) was Unabled to Update' );
						$link 	= 'index.php?option=com_youtubegallery&controller=linkslist';
						$this->setRedirect($link, $msg,'error');
				}

	}
	
	public function refreshItem()
	{
				
				$model =&$this->getModel('linksform');
        	
				
				$cid = JRequest::getVar( 'cid', array(), 'post', 'array' );
	    
				if (count($cid)<1) {
		
				       $this->setRedirect( 'index.php?option=com_youtubegallery&controller=linkslist', JText::_('No Items Selected'),'error' );
                
						return false;
				}
					    	    
				if($model->RefreshPlaylist($cid,false))
				{
						$msg = JText::_( 'Video List(s) Refreshed Successfully' );
						$link 	= 'index.php?option=com_youtubegallery&controller=linkslist';
						$this->setRedirect($link, $msg);
				}
				else
				{
						$msg = JText::_( 'Video List(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=linkslist');
	}



	function remove()
	{
		
		// Check for request forgeries
		JRequest::checkToken() or jexit( 'Invalid Token' );
		
		
		$model =& $this->getModel('linksform');
		
		$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=linkslist', JText::_('No Items Selected') );
			return false;
		}

		$model =& $this->getModel('linksform');
		if ($n = $model->delete($cid)) {
			$msg = JText::sprintf( 'Video LIst(s) deleted', $n );
		} else {
			$msg = $model->getError();
		}
		$this->setRedirect( 'index.php?option=com_youtubegallery&controller=linkslist', $msg );
	}

	/**
	* Form for copying item(s) to a specific option
	*/	
	function copyItem()
	{
		
	    $cid = JRequest::getVar( 'cid', array(), 'post', 'array' );
	    
	    
	    $model = $this->getModel('linksform');
	    $link 	= 'index.php?option=com_youtubegallery&controller=linkslist';
	    
	    if($model->copyItem($cid))
	    {
				$msg = JText::_( 'Video List(s) Copied Successfully' );
				$this->setRedirect($link, $msg);
	    }
	    else
	    {
				$msg = JText::_( 'Video List(s) was Unabled to Copy' );
				$this->setRedirect($link, $msg, 'error');
	    }
	    
	    
	    
	}


	
}

Anon7 - 2022
AnonSec Team